Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-05-30

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:02 aparsons joined #salt
00:03 jchadwick joined #salt
00:07 jchadwick hello all. I am stumped and was hoping somebody generous could point me in the right direction. I'm on develop and trying to use salt.pillar.s3 for multiple isolated environments, but it appears they're all merged. Is it possible? If so, am i doing it right? https://gist.github.com/johnwchadwick/22e439df3d87ee25f7ae
00:10 MatthewsFace joined #salt
00:18 cruatta joined #salt
00:19 bhosmer_ joined #salt
00:21 fllr_ joined #salt
00:23 sunkist joined #salt
00:24 caddar joined #salt
00:25 sunkist1 joined #salt
00:28 barbs joined #salt
00:34 bhosmer_ joined #salt
00:42 ndrei joined #salt
00:46 noway_ joined #salt
01:06 mrbigglesworth joined #salt
01:10 cruatta joined #salt
01:11 otter768 joined #salt
01:16 solidsnack joined #salt
01:16 fllr joined #salt
01:19 mejiamariano joined #salt
01:19 solidsnack joined #salt
01:19 vexati0n joined #salt
01:25 beauby joined #salt
01:36 forrest joined #salt
01:43 dendazen joined #salt
01:58 mgw joined #salt
02:08 beauby joined #salt
02:09 DammitJim joined #salt
02:11 DammitJim silly question.. I want to write a formula or state (not sure what it is called)
02:11 DammitJim that checks if the timezone on my ubuntu minion is set to EST (vs EDT)
02:11 murrdoc it will be a state
02:11 DammitJim if it is not set to EST, then run timedatectl set-timezone EST
02:11 DammitJim ok, good
02:12 DammitJim I got the part of the state where I am making sure it has systemd-services installed
02:12 DammitJim what piece do I use for running the command?
02:12 DammitJim or the "check"
02:12 DammitJim cmd.run ?
02:12 murrdoc no
02:12 murrdoc u have to use a state module
02:13 fllr joined #salt
02:13 murrdoc set-clock:
02:13 murrdoc timezone.system:
02:13 murrdoc - utc: False
02:13 murrdoc - name: TimeZonE
02:14 DammitJim oh, actually cmd.wait...
02:14 murrdoc no man
02:14 murrdoc no
02:14 murrdoc no cmd.*
02:14 murrdoc :D
02:15 DammitJim oh, I thought I could only use timedatectl for setting EST on Ubuntu
02:15 DammitJim again, I am making sure the server isn't observing Daylight savings time
02:15 DammitJim are you telling me I don't even need to install systemd-services?
02:16 murrdoc yup
02:16 murrdoc i use the exact state i just pasted to u
02:16 murrdoc setup my servers to be UTC
02:16 murrdoc do u understand what states are ?
02:17 murrdoc http://docs.saltstack.com/en/latest/ref/states/all/
02:17 murrdoc all of those
02:17 murrdoc so there is a timezone state http://docs.saltstack.com/en/latest/ref/states/all/salt.states.timezone.html
02:17 murrdoc that will set your servers time to whatever timezone u want
02:17 murrdoc and u can run it against a server X number of times
02:18 ageorgop joined #salt
02:18 DammitJim so, where you said: - name: TimeZonE, I should say - name: EST
02:19 seev you could put name: Ricardo
02:19 seev but that would make your timezone fresh
02:20 murrdoc jokes
02:20 murrdoc seev:  got em
02:20 seev I had a server that ran off with a jazz band
02:20 seev learned my lesson
02:21 murrdoc which was ?
02:21 seev just because it's free on amazon prime, doesn't mean it's still funny
02:22 cruatta joined #salt
02:22 murrdoc HAHAH
02:23 DammitJim lol
02:24 seev sorry, I'm a joker
02:24 seev and a saltstack enthusiast
02:26 DammitJim thanks murrdoc
02:29 DammitJim murrdoc, how do I run the "check" that the timezone is set to EST and UTC is False?
02:30 murrdoc i am not sure why u need to run it
02:30 murrdoc the state execution does that natively
02:30 DammitJim because at this time, I don't have any other tool to read it
02:30 DammitJim and I want to show it to someone else
02:30 murrdoc oh
02:30 murrdoc then u use module executions
02:30 murrdoc salt '*' timezone.get_hwclock
02:30 DammitJim oh cool!
02:31 murrdoc http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.timezone.html
02:31 seev /etc/sysconfig/clock
02:31 murrdoc dont do what seev said
02:31 seev make sure you manage this file if youre on CentOS or RHEL
02:31 beauby joined #salt
02:31 DammitJim lol.. that said localtime
02:31 murrdoc salt manages it as part of the module
02:31 seev I had the timezone resetting to UTC randomly until I did that
02:31 seev and the /etc/localtime as a symlink
02:31 DammitJim thanks seev I'm running away from RHEL as fast as I can
02:31 seev not saying that's the best way, but it's how I did it
02:32 murrdoc k u understand what an execution moduel is right DammitJim JIM
02:32 seev I never used any modules, just the built-in states
02:33 DammitJim yes, sir ;)
02:33 DammitJim dammit
02:33 DammitJim I'm not a doctor, I'm a salt enthusiast like seev
02:33 DammitJim :D
02:33 seev then again I remember when I used to manage servers with bash scripts and ad-hoc crap
02:34 DammitJim weird, none of those timezone modules tell me if the server is observing DST
02:34 DammitJim hey, I still do that on RHEL 5.9 servers!
02:34 seev I took 4500 lines of puppet manifests and replaced them with 1500 lines of salt states
02:35 DammitJim murrdoc, that state you gave me for set-clock... that only runs once, right?
02:35 seev I'm like a saltstack virus spreading through the local community, they love it when I explain the benefits of out of the box remote parallel execution, and the simplicity of pillar
02:35 DammitJim it doesn't keep checking to set it, right?
02:36 murrdoc it runs when u run it
02:39 DammitJim weird, I can't set the server back to EDT
02:43 murrdoc did u change the state ?
02:43 murrdoc u need to read basepi 's book
02:44 murrdoc http://www.amazon.com/Learning-Saltstack-Colton-Myers/dp/1784394602
02:44 murrdoc it ll explains whats what
02:44 murrdoc so u know what to run to do what
02:47 gladiatr joined #salt
02:48 seev I learned by using it at two different jobs from scratch
02:49 murrdoc k new plan dammit jim
02:49 murrdoc learn it here
02:49 murrdoc quit
02:49 murrdoc get another job
02:49 murrdoc use it there
02:49 murrdoc quit
02:49 murrdoc :D
02:49 seev I am about to leave my job for a new one, if you want mine, you will learn a bunch of salt
02:49 seev and, eventually, hate me
02:51 murrdoc :)
02:55 mrbigglesworth joined #salt
03:02 writtenoff joined #salt
03:08 murphyslawbbs joined #salt
03:09 solidsnack joined #salt
03:09 beauby joined #salt
03:12 otter768 joined #salt
03:28 hybridpollo left #salt
03:34 murrdoc joined #salt
03:56 civirrein joined #salt
03:59 civirrein left #salt
04:03 badon_ joined #salt
04:24 desposo joined #salt
04:46 flywalke1 joined #salt
04:55 flywalke1 left #salt
04:56 cruatta joined #salt
05:04 cruatta joined #salt
05:06 numkem_ joined #salt
05:13 otter768 joined #salt
05:35 preachermanx joined #salt
05:40 tkharju joined #salt
05:44 adelcast joined #salt
05:48 aberdine I see a line   - .{{ grains['os']|lower }} in a state file - is the . a saltism or a jinja2 thing and what is its purpose?
05:49 numkem_ joined #salt
05:50 iggy aberdine: relative import/path
05:50 aberdine thanks iggy
05:51 nobrak joined #salt
05:51 nobrak joined #salt
05:54 evle joined #salt
05:55 iggy aberdine: if you want more info, try pasting the code/pointing to the it
05:55 aberdine that's all I need - now I know what it is I can hunt the docs a bit more easily
05:56 iggy aww, I'm bored
05:57 aberdine I might have more questions soon
05:57 aberdine still very new to salt
05:57 aberdine but really liking it
06:00 iggy we all do
06:03 aberdine I have a question about good practice - I'm looking to improve a salt formula, but I need another formula (epel repo) - how do I reference the other formula or not that there is a dependency?
06:11 mrbigglesworth joined #salt
06:12 mrbigglesworth joined #salt
06:15 nobrak joined #salt
06:15 nobrak joined #salt
06:24 c10 joined #salt
06:28 drawks joined #salt
06:30 esharpmajor joined #salt
06:32 iggy we haven't really solved that just yet
06:32 iggy you have to include it and just hope the person has it
06:32 aberdine ok
06:32 iggy it's on the todo list
06:33 iggy :)
06:35 stoogenmeyer joined #salt
06:36 c10 joined #salt
06:39 Tyrm joined #salt
06:40 tkharju joined #salt
06:50 KFDM joined #salt
06:50 c10 joined #salt
06:54 KFDM left #salt
06:54 georgemarshall joined #salt
07:03 tmclaugh[work] joined #salt
07:14 otter768 joined #salt
07:20 ndrei joined #salt
07:31 jpaetzel joined #salt
07:32 markm joined #salt
07:41 solidsnack joined #salt
07:45 Tyrm joined #salt
07:52 markm joined #salt
08:02 bhosmer_ joined #salt
08:21 dalexander joined #salt
08:32 CeBe joined #salt
08:42 tomh- joined #salt
08:43 linjan joined #salt
08:44 ndrei joined #salt
08:47 dalexander joined #salt
08:47 CeBe joined #salt
08:54 CeBe joined #salt
09:00 CeBe joined #salt
09:04 ndrei joined #salt
09:11 ndrei joined #salt
09:11 supersheep joined #salt
09:15 otter768 joined #salt
09:17 ProT-0-TypE joined #salt
09:19 joeto joined #salt
09:27 bastiaan joined #salt
09:36 jtang joined #salt
09:45 pkimber joined #salt
10:17 tkharju joined #salt
10:24 c10 joined #salt
10:30 tkharju joined #salt
10:49 linjan joined #salt
10:57 supersheep joined #salt
11:02 favadi joined #salt
11:03 favadi joined #salt
11:06 ramteid joined #salt
11:16 otter768 joined #salt
11:21 Berty_ joined #salt
11:22 Tyrm joined #salt
11:26 sunkist joined #salt
11:28 stoogenmeyer joined #salt
11:29 Bateau_ joined #salt
11:31 donmichelangelo joined #salt
11:32 tkharju joined #salt
11:42 saifi joined #salt
11:49 totte left #salt
11:56 aidin_ joined #salt
12:06 Berty_ joined #salt
12:11 elfixit joined #salt
12:12 ndrei joined #salt
12:12 fllr joined #salt
12:15 Alan_S_ joined #salt
12:41 jtang joined #salt
12:42 tkharju joined #salt
12:42 elfixit joined #salt
12:54 tkharju joined #salt
13:00 jeremyr joined #salt
13:10 Norbell joined #salt
13:17 otter768 joined #salt
13:18 Tyrm joined #salt
13:27 favadi joined #salt
13:28 badon joined #salt
13:28 bhosmer joined #salt
13:29 colttt joined #salt
13:39 favadi joined #salt
13:49 ponpanderer joined #salt
13:54 favadi joined #salt
13:55 georgemarshall joined #salt
14:01 peters-tx joined #salt
14:01 fllr joined #salt
14:01 stoogenmeyer hi does anyone have a clever idea of how I can clear the mine data on the master before applying a specific state to a minion? I adopted a small line of code which removes mine.p files that are older then 90 seconds on the master
14:02 stoogenmeyer I see 2 options, one is to call an event from the minion when applying the state, e.g. 'master.refresh_mine', then react on the master to this event and run the code snippet to delete the mine data
14:03 stoogenmeyer the other (which I don't know if it's possible) is to have the master run the code snippet as part of the state file i'm running on the minion. But I don't know if is it possible to have a cmd.run on the master as part of a minion's state
14:10 CeBe joined #salt
14:28 hasues joined #salt
14:28 hasues left #salt
14:32 aidin_ joined #salt
14:34 ProT-0-TypE joined #salt
14:47 dayid joined #salt
14:47 rudi_s left #salt
14:50 cheus joined #salt
14:57 barbs joined #salt
15:04 Jahkeup joined #salt
15:04 CeBe joined #salt
15:07 ndrei joined #salt
15:15 ndrei joined #salt
15:18 otter768 joined #salt
15:21 Tyrm joined #salt
15:50 fllr joined #salt
15:52 tastybuds joined #salt
15:52 caddar joined #salt
15:56 linjan joined #salt
15:57 tastybuds left #salt
16:04 favadi joined #salt
16:15 Auroch joined #salt
16:16 ProT-0-TypE joined #salt
16:22 iggy stoogenmeyer: does a mine.update work in your environment?
16:26 iggy or mine.flush
16:26 stoogenmeyer yes they work, the problem is mine data for a minion that does not exist anymore will not be removed by flush or update
16:26 iggy the master should be removing mine data when you remove keys
16:27 stoogenmeyer but im not removing keys, those minions may come back online
16:27 stoogenmeyer i use this to remove stale mine data: find /var/cache/salt/master/minions/ -type f -name mine.p ! -newermt '-90 sec' -exec bash '-c' 'rm {}' ';'
16:28 stoogenmeyer and i set the mine_interval for 1 minute
16:31 favadi joined #salt
16:34 iggy how are you adding keys?
16:34 Auroch joined #salt
16:37 stoogenmeyer right now still doing it manually |-:
16:39 iggy ahh
16:39 iggy so yeah, I guess I see the desire to want to keep that around
16:41 iggy yeah, you can just schedule that cleanup job I guess
16:41 golodhrim joined #salt
16:47 stoogenmeyer oh man, works really nicely. In that specific state file I emit an event (or task) 'master.refresh_mine' which deletes the old mine data.
16:47 stoogenmeyer How would I go about scheduling something ?
16:48 Pulp joined #salt
16:50 iggy salt has a scheduler built-in
16:52 stoogenmeyer um, ill look it up. thanks iggy
16:53 cpowell joined #salt
16:53 cpowell joined #salt
16:58 saffe joined #salt
17:01 cruatta joined #salt
17:08 saffe joined #salt
17:17 saffe joined #salt
17:19 otter768 joined #salt
17:20 subsignal joined #salt
17:34 mgw joined #salt
17:35 brandk joined #salt
17:35 saffe joined #salt
17:35 cruatta_ joined #salt
17:39 fllr joined #salt
17:43 Not_ joined #salt
17:50 cruatta joined #salt
17:54 ndrei_ joined #salt
17:58 chamunks joined #salt
18:03 cpowell joined #salt
18:18 ignarps joined #salt
18:23 dalexander joined #salt
18:24 supersheep joined #salt
18:33 saffe joined #salt
18:41 jchen joined #salt
18:41 jchen left #salt
18:54 fllr joined #salt
18:55 bhosmer joined #salt
18:59 Corey joined #salt
19:14 eliasp joined #salt
19:16 Bateau_ joined #salt
19:19 otter768 joined #salt
19:20 viq joined #salt
19:25 signull joined #salt
19:29 CeBe joined #salt
19:36 cpowell joined #salt
19:45 bin_005 joined #salt
19:45 borgstrom joined #salt
20:00 hal58th joined #salt
20:06 belak joined #salt
20:07 belak This might be an odd question, but is there a good way in pillar to set some defaults in a dict then override them for a certain OS? Like a default packages list then just override certain ones for debian and what not
20:14 cpowell joined #salt
20:19 randybias joined #salt
20:19 cpowell_ joined #salt
20:19 randybias The GCE instructions seem out of date on the website?  Or, at least, they don't match the comments in the code.  Which one is right?
20:19 cpowell_ joined #salt
20:32 p66kumar joined #salt
20:32 p66kumar left #salt
20:34 p66kumar joined #salt
20:35 p66kumar left #salt
20:35 froztbyte iggy: https://github.com/iggy/quinn is a nice idea. did it ever move?
20:40 golodhrim joined #salt
20:40 golodhrim joined #salt
20:41 p66kumar joined #salt
20:43 masterkorp joined #salt
20:45 Berty_ joined #salt
20:47 relicanth joined #salt
20:47 murrdoc joined #salt
20:54 jhauser joined #salt
20:56 Berty__ joined #salt
21:09 belak Is there a way to store important files, like ssl keys, in pillar so only minions that need them get them?
21:11 Berty_ joined #salt
21:17 froztbyte belak: yes. off the top of my head, I know the sensu-formula does this
21:18 froztbyte it uses a specific block formatting syntax type
21:19 belak Interesting
21:19 Gabemo joined #salt
21:19 belak name: |
21:20 belak Thanks froztbyte
21:20 froztbyte np
21:20 otter768 joined #salt
21:36 CeBe joined #salt
21:36 bin_005 joined #salt
21:41 relicanth How do I specify in my top file that I want every minion to use some state file (say example.sls), but pull the version needed from the respective environment?
21:41 relicanth I don't want to have to list example.sls under each environment in the top file
21:56 JohanR joined #salt
21:59 dendazen joined #salt
22:01 badon_ joined #salt
22:18 swa_work joined #salt
22:54 bin_005 joined #salt
22:56 supersheep joined #salt
23:03 ponpanderer joined #salt
23:04 supersheep joined #salt
23:07 supersheep joined #salt
23:14 barbs joined #salt
23:15 brandk joined #salt
23:21 otter768 joined #salt
23:26 barbs left #salt
23:36 murrdoc joined #salt
23:53 Not_ joined #salt

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary