Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-05-31

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

All times shown according to UTC.

Time Nick Message
00:00 Tyrm joined #salt
00:02 randybias OK, I'm guessing the web information is accurate and the source documentation is wrong on GCE.  That's the way it looks anyway.
00:11 fllr joined #salt
00:20 Tyrm joined #salt
00:20 c10 joined #salt
00:25 jab416171 joined #salt
00:27 Not_ joined #salt
00:28 rosenfs_ left #salt
00:49 SheetiS joined #salt
00:50 c10 joined #salt
01:05 Bateau_ joined #salt
01:14 cruatta joined #salt
01:16 cruatta_ joined #salt
01:18 writtenoff joined #salt
01:19 cberndt joined #salt
01:21 Cile joined #salt
01:22 otter768 joined #salt
01:35 mrbiggle_ joined #salt
01:51 c10 joined #salt
02:00 fllr joined #salt
02:04 armguy joined #salt
02:09 bhosmer joined #salt
02:10 cruatta joined #salt
02:27 favadi joined #salt
02:35 packeteer joined #salt
02:49 bin_005 joined #salt
03:09 beauby joined #salt
03:15 desposo joined #salt
03:23 otter768 joined #salt
03:35 favadi joined #salt
03:39 badon joined #salt
03:40 c10 joined #salt
03:52 mrbigglesworth joined #salt
04:05 notnotpe_ joined #salt
04:17 swa_work joined #salt
04:18 NightMonkey joined #salt
04:20 sNkr joined #salt
04:25 armguy joined #salt
04:26 kossy joined #salt
04:32 [vaelen] joined #salt
04:35 sk_0 joined #salt
04:35 dthorman joined #salt
04:40 stoogenmeyer joined #salt
04:45 Not_ joined #salt
04:46 armguy joined #salt
04:49 brandk joined #salt
04:57 notnotpeter joined #salt
05:02 timoguin joined #salt
05:03 sn00py joined #salt
05:06 TyrfingMjolnir joined #salt
05:12 evle joined #salt
05:19 notnotpeter joined #salt
05:24 otter768 joined #salt
05:26 aarontc joined #salt
05:29 c10 joined #salt
05:33 bin_005 joined #salt
05:47 hasues joined #salt
05:54 flebel joined #salt
05:59 pppingme joined #salt
06:01 hasues left #salt
06:14 repl1cant joined #salt
06:20 fllr joined #salt
06:25 solidsnack joined #salt
06:29 c10 joined #salt
06:32 bin_005 joined #salt
06:36 brandk joined #salt
06:41 joeto1 joined #salt
06:46 davetoo joined #salt
06:46 davetoo left #salt
07:03 tmclaugh[work] joined #salt
07:08 stoogenmeyer joined #salt
07:19 c10 joined #salt
07:25 otter768 joined #salt
07:34 dalexander joined #salt
07:35 SpX joined #salt
07:36 bhosmer joined #salt
07:40 favadi joined #salt
07:49 dendazen joined #salt
07:49 monkey66 joined #salt
08:02 bluenemo joined #salt
08:11 linjan joined #salt
08:15 kossy_ joined #salt
08:26 solidsnack joined #salt
08:40 monkey66 left #salt
08:43 brandk joined #salt
08:54 supersheep joined #salt
08:59 markm joined #salt
09:01 bin_005 joined #salt
09:09 bin_005_l joined #salt
09:17 preachermanx joined #salt
09:20 evle joined #salt
09:26 otter768 joined #salt
09:33 ITChap joined #salt
09:45 preachermanx joined #salt
10:02 schuckles joined #salt
10:02 adelcast joined #salt
10:09 schuckles joined #salt
10:10 Blindpete joined #salt
10:12 badon joined #salt
10:28 tomh- joined #salt
10:32 djdeaf joined #salt
10:32 djdeaf Hi, any idea how to unzip a file of a target machine? using states (not module)
10:32 djdeaf tried using archive.extracted but it doesn't seem to work on local file
10:38 djdeaf as using it gives an "CommandExecutionError: Exception encountered unpacking zipfile: ZipFile instance has no attribute" error
10:45 MohShami joined #salt
10:46 MohShami hey guys, is there a way in top.sls to remove a base state from a host?
10:46 MohShami something along the lines of http://pastebin.com/HShjpJzp
10:56 CeBe joined #salt
10:58 Rjturek joined #salt
11:26 favadi joined #salt
11:27 otter768 joined #salt
11:28 jhauser joined #salt
11:28 Blindpete left #salt
11:28 Blindpete_ joined #salt
11:29 favadi joined #salt
11:30 cberndt joined #salt
11:31 michelangelo joined #salt
11:32 Blindpete joined #salt
11:36 stoogenmeyer MohShami: You could try creating a state that will be the "anti" state of the one you're trying to get rid of
11:36 MohShami thanks stoogenmeyer, can you point me to a page that explains that?
11:36 stoogenmeyer for example, if your original state called for a file.managed, then your new state will have a file.absent
11:37 MohShami ah ok
11:37 MohShami with the same name?
11:37 MohShami right?
11:37 stoogenmeyer Yes
11:38 MohShami is there an equivalent to file.absent for packages?
11:39 stoogenmeyer I'm sure there is, google for salt state pkg or something like that
11:39 stoogenmeyer http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.removed
11:40 MohShami didn't find it at first, seems it's pkg.removed :)
11:40 stoogenmeyer yea found it too
11:40 MohShami The conflicting ID is 'opensmtpd' and is found in SLS 'base:basebsd.opensmtpd' and SLS 'base:mx.opensmtpd'
11:41 favadi joined #salt
11:42 brandk joined #salt
11:42 MohShami stoogenmeyer, shouldn't it just override?
11:43 saifi joined #salt
11:44 stoogenmeyer Do you have pkg.installed in one file and pkg.removed in another file, and both of them are applied to the minion? I don't know what would happen in that case
11:44 MohShami yes that is what I'm trying to do, let me try to do it differently
11:49 Auroch joined #salt
11:54 MohShami stoogenmeyer: I found it, http://docs.saltstack.com/en/latest/ref/states/include.html
11:54 MohShami in the server you don't want the package to be installed, add a state and add the exclude part in it
11:55 MohShami so if we have basebsd.opensmtpd in '*', you add one called server.postfix for example, and at the beginning type exclude: - sls: basebsd.opensmtpd
11:56 stoogenmeyer sounds cool, it works ?
11:56 MohShami perfectly
11:57 stoogenmeyer cool
11:57 MohShami http://pastebin.com/cm9pNFrP
11:57 MohShami adding this in the state for a bunch of servers would prevent opensmtpd from being installed (Y)
11:57 MohShami thanks a million mate
12:20 malinoff joined #salt
12:22 Blindpete_ joined #salt
12:24 Schmidt left #salt
12:35 mrbigglesworth joined #salt
12:36 Berty_ joined #salt
12:40 brandk joined #salt
13:00 jeremyr joined #salt
13:01 stoogenmeyer is there a way to file.manage a directory ? file.directory seems to only create the folder whereas I want to actually copy the folder with all it's content from the master. I saw there's a module cp but couldn't find a state for it
13:02 stoogenmeyer nvm, found out about file.recurse
13:05 joeto joined #salt
13:07 jhauser joined #salt
13:27 otter768 joined #salt
13:30 favadi joined #salt
13:33 markm joined #salt
13:38 stoogenmeyer joined #salt
13:52 mrbigglesworth joined #salt
13:55 cpowell joined #salt
14:01 peters-tx joined #salt
14:06 schuckles joined #salt
14:09 joeto1 joined #salt
14:21 iggy froztbyte: nope. started it ywars ago for the company i worked for... some bits work though. main reason i've left it there
14:21 ndrei joined #salt
14:22 iggy hal58th: happy birthday man
14:22 cruatta joined #salt
14:23 ek6 joined #salt
14:26 favadi joined #salt
14:26 stoogenmeyer is there a way to set aliases for a minion? same as: alias say-hi="echo hi"
14:36 brandk joined #salt
14:38 joeto joined #salt
14:38 ek6 just curious stoogen (because I am not a shell expert in any way) are you interest in just the shim or the entire command...I assume you just want the shim of  alias bar="salt <long list of options not included but that targets bar> "  so you could type >bar statefile  ?
14:39 favadi joined #salt
14:40 iggy no
14:41 ek6 who are you talking to capt. killjoy?
14:42 ek6 you could certainly alias an entire command string....
14:49 Pulp joined #salt
14:53 spaceSub joined #salt
15:01 spaceSub Do salt minions need the salt-master to be constantly available?
15:01 evle1 joined #salt
15:02 spaceSub I would like to rework my private server with salt. I have no other servers permanently running. Does it make sense to use my workstation as a salt-master?
15:04 spaceSub Why do the minions need to contact the server anyway? Couldn't it just be the other way arround?
15:04 stoogenmeyer ek6: Hey, it's actually so I could have aliases on many machines of commonly used commands for us such as "docker run <with many options>", etc
15:04 stoogenmeyer but be pretty cool to add salt commands to that too.
15:06 ek6 i use bash aliases all the time but for complete commands lines not for partials...im not sure if partials work...although I think that was iggy saying they would not..
15:06 stoogenmeyer ek6: I don't need partials, I need them for complete commands as well
15:06 ek6 spacesub: your last question i would answer with 'sure its called salt-ssh'
15:07 markm joined #salt
15:08 ek6 spacesub: i have seen installations where the minions are rarely running and the master is well....basically as needed the master is spun up and i had them use knock to start the minions.. im SURE there are better ways to do this
15:11 spaceSub ek6: Oh, cool. I didn't know salt can do that.
15:11 spaceSub Thanks.
15:12 ek6 well thats not salt...thats just a gimicky way to start the minions...I havent looked to see if you could just put the minions on a 'try forever loop with a longer then normal retry' to just leave them running
15:18 favadi joined #salt
15:20 spaceSub Hrm jeah..
15:23 schuckles hi
15:24 schuckles I was wondering if anyone can point me to some examples of where the boto cloudformation modules are being used in a class for the creation of a VPC?
15:24 schuckles I'm fairly new to salt
15:28 otter768 joined #salt
15:34 dendazen joined #salt
15:35 iggy the minions will shut down if they can't contact the minion after a certain amount of time
15:36 iggy schuckles: you might find something on http://ryandlane.com/blog/
15:37 hasues joined #salt
15:37 hasues left #salt
15:38 stanchan joined #salt
15:40 mrbigglesworth joined #salt
15:46 spaceSub left #salt
16:10 mdupont joined #salt
16:18 markm joined #salt
16:25 bfoxwell joined #salt
16:29 supersheep joined #salt
16:29 joeto1 joined #salt
16:34 viq joined #salt
16:38 brandk joined #salt
16:40 jcockhren Lita handler for salt -> https://github.com/sophicware/lita-salt/
16:40 jcockhren disclaimer: that's me
16:42 jcockhren so far service, supervisord, schedule execution modules
16:42 jcockhren and pillar and manage runners
16:43 iggy you might add a little more info about what lita is to someone that comes across the page via looking for salt stuff and doesn't necessarily know what lita is
16:44 iggy make Lita a link or something
16:53 jcockhren Made a link. Working on the improving the README. For example show the supported runners and execution modules.
16:54 jcockhren (and sub commands)
16:54 favadi joined #salt
17:05 gfa joined #salt
17:12 CeBe joined #salt
17:21 cpowell joined #salt
17:25 fllr joined #salt
17:26 timoguin joined #salt
17:26 mordonez joined #salt
17:26 mordonez joined #salt
17:28 swa_work joined #salt
17:29 otter768 joined #salt
17:41 Not_ joined #salt
17:43 hasues joined #salt
17:44 stoogenmeyer joined #salt
17:50 golodhrim joined #salt
17:50 linjan joined #salt
17:52 detachedHEAD joined #salt
17:57 mrbigglesworth joined #salt
18:04 p66kumar joined #salt
18:11 al joined #salt
18:23 hasues left #salt
18:23 cruatta joined #salt
18:26 jonher937 joined #salt
18:37 thed joined #salt
18:43 stoogenmeyer hey, I have a few questions: 1. I want to extend the runner mine function, can I put a mine.py file in /srv/salt/_runners/mine.py and the new runner function will be available to me? 2. I want the runner function to run a command on the master, is there a better way to achieve this other then os.system or subprocess.call? I saw salt.client but the example only shows how to make a call to minions. Thanks!
18:44 stevednd joined #salt
19:13 linjan joined #salt
19:15 ponpanderer joined #salt
19:20 viq joined #salt
19:24 supersheep joined #salt
19:30 otter768 joined #salt
19:39 bin_005_l joined #salt
19:42 kermit joined #salt
19:43 Whissi joined #salt
19:46 solidsnack joined #salt
19:52 bin_005 joined #salt
19:53 Not_ joined #salt
19:54 matthew-parlette joined #salt
19:58 supersheep joined #salt
20:17 bhosmer joined #salt
20:17 markm joined #salt
20:40 katyucha joined #salt
20:40 katyucha hi
20:41 katyucha I'm looking about Salt for my work. But I can't find informations about vmware : can I deploy vm  from a template ?
20:55 matthew-parlette joined #salt
20:59 Norrland katyucha: check the vsphere module perhaps?
21:04 bin_005_k joined #salt
21:09 monkey66 joined #salt
21:15 bin_005 joined #salt
21:19 coreping joined #salt
21:19 bin_005_k joined #salt
21:25 cozby_ joined #salt
21:27 murphyslawbbs joined #salt
21:27 cozby_ hey guys I'm kind a struggling here.. I'm just copying over an nginx config file and then I'd like to reload the service but its not working..  here's my simple sls file
21:27 cozby_ http://pastebin.com/5KN0zHfG
21:31 otter768 joined #salt
21:34 timoguin joined #salt
21:35 monkey66 left #salt
21:36 cpowell joined #salt
21:37 whytewolf cozby_: try this instead https://gist.github.com/whytewolf/c647508e600cf8cbde41
21:38 cozby_ whytewolf: sure, I'll give it a shot, i've tried various renditions of that but not quite that
21:39 whytewolf if that doesn't work please post error messages
21:39 whytewolf also, please don't use pastebin. it is horible for copying out of.
21:42 cozby_ whytewolf: sure, https://paste.ee/p/mwWUH
21:42 cozby_ I just randomly lookd up a pastbin alternative :P
21:43 whytewolf gist is perfered. it allows you to have multiple files, as well as make changes so you don't have to keep giving a new url
21:43 cozby_ whytewolf: ah,ok
21:43 cozby_ my bad
21:44 whytewolf no problem
21:46 whytewolf okay, try this. these states should either be in the same file. or the service sls should include the file sls
21:46 whytewolf https://gist.github.com/whytewolf/c647508e600cf8cbde41
21:49 CeBe joined #salt
21:53 cozby_ whytewolf: :( https://gist.github.com/anonymous/99d643ce872c26ec6bc9
21:54 cozby_ my sls file is called createNginxConf
21:54 cozby_ (to provide some context)
21:55 whytewolf oh stupid typoe. that should be service.running not service.restart
21:55 markm joined #salt
21:56 whytewolf service.restart is the module not the state. service.running is the state
22:00 cozby_ ok but when I changed it to service.running it said it was already running
22:00 cozby_ does that mean it reloaded tho?
22:01 whytewolf it will only restart if the file changes in the same run
22:08 cozby_ whytewolf: so I copy the nginx conf over and then I run that service restart
22:10 whytewolf salt should copy the file over and then restart the service when you run the state or highstate
22:10 whytewolf you shouldn't do anything personally
22:10 whytewolf [besides tell salt to run the state or highstate]
22:15 OliverMT highstate just means that it should run all states that match it right?
22:15 OliverMT (just to highjack the convo :P )
22:16 whytewolf in the simplest of terms OliverMT yes.
22:16 OliverMT I come from puppet
22:16 OliverMT and I absolutely love it
22:16 whytewolf lol. I started with salt to avoid chef and puppet
22:17 OliverMT to clarify, I hate puppet
22:17 OliverMT I have used puppet as the lesser of the evils for a long time
22:17 OliverMT anyhow
22:17 OliverMT is a cronjob of salt '*' state.highstate every 30min (with some batching etc) a good way to do period state refreshes?
22:17 OliverMT in puppet you configure the client phone-home periods
22:17 OliverMT how often they should do it
22:18 OliverMT not even sure it makes sense in salt
22:18 OliverMT since you can just run the highstate specifically for the minion you are updating the sls files for
22:19 whytewolf actually it does make sense in salt. and salt has a built in sceduler
22:19 whytewolf http://docs.saltstack.com/en/latest/topics/jobs/schedule.html
22:21 cruatta joined #salt
22:21 OliverMT awesome, just what I was looking for
22:24 cpowell joined #salt
22:33 Singularo joined #salt
22:42 cruatta joined #salt
22:49 cozby_ whytewolf: thanks
22:49 cozby_ seems to work well now
22:50 spiette joined #salt
22:56 dendazen joined #salt
22:56 cruatta joined #salt
22:58 ajw0100 joined #salt
23:00 Aidin joined #salt
23:05 solidsnack joined #salt
23:09 mosen joined #salt
23:12 Aidin left #salt
23:12 Aidin joined #salt
23:16 rickflare left #salt
23:32 otter768 joined #salt
23:37 helgim_ Howdy. Anyone know how one goes about passing parameters to docker containers(docker run some/container -param1..etc)? ( using salt.states.dockerio.running)
23:53 cberndt joined #salt
23:54 vexati0n does the RAET transport require any ports opened on minions, or is everything still minion->master ?

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