Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-06-17

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

All times shown according to UTC.

Time Nick Message
00:07 AdamSewell joined #salt
00:09 bemehow joined #salt
00:09 cachedout joined #salt
00:10 redondos joined #salt
00:11 MindDrive joined #salt
00:11 bemehow_ joined #salt
00:14 joehoyle joined #salt
00:21 ajprog_laptop joined #salt
00:22 matrix3000 joined #salt
00:23 joehoyle joined #salt
00:29 otter768 joined #salt
00:35 mgw joined #salt
00:39 Shenril joined #salt
00:45 bfwg joined #salt
00:46 fragamus joined #salt
00:49 mosen joined #salt
00:51 jimklo joined #salt
00:52 jimklo joined #salt
01:02 malinoff joined #salt
01:03 wendall9111 joined #salt
01:07 mateoconfeugo joined #salt
01:21 Nexpro joined #salt
01:27 yomilk joined #salt
01:33 quickdry21_ joined #salt
01:40 logix812 joined #salt
01:41 l0x3py joined #salt
01:47 mateoconfeugo joined #salt
01:50 teskew joined #salt
01:51 AdamSewell joined #salt
01:55 joehoyle joined #salt
01:59 jalbretsen joined #salt
01:59 ajolo joined #salt
02:11 Outlander joined #salt
02:16 fragamus joined #salt
02:18 Ryan_Lane joined #salt
02:23 ipalreadytaken joined #salt
02:25 otter768 joined #salt
02:35 mafrosis joined #salt
02:46 geekmush joined #salt
02:57 taion809 joined #salt
03:01 ajolo_ joined #salt
03:02 mgw joined #salt
03:04 crazysim joined #salt
03:08 ipalreadytaken joined #salt
03:08 cachedout joined #salt
03:10 AdamSewell joined #salt
03:14 joehoyle joined #salt
03:17 catpigger joined #salt
03:21 Ryan_Lane joined #salt
03:21 Ryan_Lane joined #salt
03:28 lae left #salt
03:37 retr0h joined #salt
03:42 yomilk joined #salt
03:44 cachedout joined #salt
03:55 borgstrom joined #salt
04:09 jtang1 joined #salt
04:12 AdamSewell joined #salt
04:13 thayne joined #salt
04:23 Ryan_Lane joined #salt
04:36 joehillen joined #salt
04:45 anuvrat joined #salt
04:49 yomilk joined #salt
04:50 yomilk joined #salt
04:51 felskrone joined #salt
04:59 bones050 joined #salt
05:01 mateoconfeugo joined #salt
05:06 mateocon_ joined #salt
05:11 lionel joined #salt
05:12 jnials joined #salt
05:22 ramteid joined #salt
05:23 jalaziz joined #salt
05:28 mateoconfeugo joined #salt
05:42 thayne joined #salt
05:49 jalaziz joined #salt
05:49 mateoconfeugo joined #salt
06:11 chuffpdx_ joined #salt
06:11 mateoconfeugo joined #salt
06:15 ipalreadytaken joined #salt
06:22 timc3 joined #salt
06:29 marnom joined #salt
06:32 ipalreadytaken joined #salt
06:33 mateoconfeugo joined #salt
06:41 xinkeT joined #salt
06:45 borgstrom joined #salt
06:49 ipalreadytaken joined #salt
06:53 kossy joined #salt
06:54 mateoconfeugo joined #salt
06:55 xinkeT joined #salt
06:58 anuvrat joined #salt
07:04 ml_1 joined #salt
07:06 jalaziz joined #salt
07:13 alanpearce joined #salt
07:16 mateoconfeugo joined #salt
07:18 jalaziz joined #salt
07:21 anuvrat joined #salt
07:21 chiui joined #salt
07:25 vu joined #salt
07:28 mafrosis joined #salt
07:33 insurance joined #salt
07:33 bhosmer joined #salt
07:33 insurance left #salt
07:36 mrTango joined #salt
07:37 mafrosis lo I’ve been tinkering with client_acl
07:37 mafrosis I always get the message Failed to create directory path "/etc/salt/pki/minion"
07:37 mateoconfeugo joined #salt
07:39 mafrosis chmod g+rx /etc/salt/pki
07:41 jhauser joined #salt
07:44 yomilk joined #salt
07:49 scristian joined #salt
07:51 kiorky joined #salt
07:53 timc3 joined #salt
07:59 stevednd joined #salt
07:59 mateoconfeugo joined #salt
07:59 scott_w joined #salt
08:00 thart joined #salt
08:00 joehoyle joined #salt
08:01 thart I am trying to use ssh.check_key but my keys do not have options. I must put something there. Is there a way to say option is blank?
08:01 darkelda joined #salt
08:01 darkelda joined #salt
08:05 philipsd6 joined #salt
08:06 zsoftich_ joined #salt
08:06 picker joined #salt
08:07 thart Ahh some of my keys have equal signs in it. That breaks the python. Using salt-ssh may be the issue. Not fully compatible yet.
08:07 thart oh well
08:08 thart my ssh keys have no options and characters that break the salt python script.  shucks.
08:08 toddejohnson joined #salt
08:10 jdmf joined #salt
08:11 Tekni joined #salt
08:13 joehoyle_ joined #salt
08:18 briner joined #salt
08:19 UForgotten joined #salt
08:20 CeBe joined #salt
08:20 ldlework joined #salt
08:20 philipsd6 joined #salt
08:20 mrTango joined #salt
08:20 ramteid joined #salt
08:20 lionel joined #salt
08:20 retr0h joined #salt
08:20 Nexpro joined #salt
08:20 ajprog_laptop joined #salt
08:20 redondos joined #salt
08:20 jeffrubic joined #salt
08:20 Cidan joined #salt
08:20 lz-dylan joined #salt
08:20 xzarth joined #salt
08:20 perfectsine joined #salt
08:20 [diecast] joined #salt
08:20 penguin_dan joined #salt
08:20 scoates joined #salt
08:20 rawzone joined #salt
08:20 rnts joined #salt
08:20 vbabiy joined #salt
08:20 ixokai joined #salt
08:20 seventy3 joined #salt
08:20 flebel joined #salt
08:20 vandemar joined #salt
08:20 ninkotech joined #salt
08:20 kwmiebach joined #salt
08:20 zz_cro joined #salt
08:20 dusel joined #salt
08:20 torrancew joined #salt
08:20 bdf joined #salt
08:20 faulkner joined #salt
08:20 notbmatt joined #salt
08:20 basepi joined #salt
08:20 patarr joined #salt
08:20 TheRealBill joined #salt
08:20 AirOnSkin joined #salt
08:20 modafinil joined #salt
08:20 ahale joined #salt
08:20 jeremyBass joined #salt
08:20 Kraln joined #salt
08:20 seblu joined #salt
08:20 workingcats joined #salt
08:20 andabata joined #salt
08:20 dancat joined #salt
08:20 rjc joined #salt
08:20 jforest joined #salt
08:20 MTecknology joined #salt
08:20 twinshadow joined #salt
08:20 renoirb joined #salt
08:20 gwmngilfen joined #salt
08:20 grep_away joined #salt
08:20 EWDurbin joined #salt
08:20 SaveTheRbtz joined #salt
08:20 t0rrant joined #salt
08:20 clone1018 joined #salt
08:20 AnswerGuy joined #salt
08:20 mephx joined #salt
08:20 eagen joined #salt
08:20 goki joined #salt
08:20 pjs joined #salt
08:20 fxdgear joined #salt
08:20 smferris joined #salt
08:20 gldnspud joined #salt
08:20 bwq- joined #salt
08:20 whiteinge joined #salt
08:20 jchen joined #salt
08:20 FL1SK joined #salt
08:20 smkelly joined #salt
08:20 sirtaj joined #salt
08:20 aqua^^ joined #salt
08:20 Gareth joined #salt
08:20 jasonrm joined #salt
08:20 joshbaptiste joined #salt
08:20 terinjokes joined #salt
08:20 AlexM850 joined #salt
08:20 goodwill joined #salt
08:20 wiqd joined #salt
08:20 frozenice joined #salt
08:20 scooby2 joined #salt
08:20 codysoyland joined #salt
08:20 tonthon joined #salt
08:20 emilisto_ joined #salt
08:20 __number5__ joined #salt
08:20 alainv joined #salt
08:20 londo joined #salt
08:20 nhubbard joined #salt
08:20 zdong joined #salt
08:20 carmony joined #salt
08:20 tedski joined #salt
08:20 johtso joined #salt
08:21 mateoconfeugo joined #salt
08:21 berto- joined #salt
08:21 [vaelen] joined #salt
08:21 kossy joined #salt
08:21 chuffpdx_ joined #salt
08:21 jsmith joined #salt
08:21 xenoxaos joined #salt
08:21 madduck joined #salt
08:21 Kelsar joined #salt
08:21 dpac|away joined #salt
08:21 Eugene joined #salt
08:21 homelinen joined #salt
08:21 copelco joined #salt
08:21 jY joined #salt
08:21 ay joined #salt
08:21 Dattas joined #salt
08:21 NV joined #salt
08:21 jmccree joined #salt
08:21 djinni` joined #salt
08:21 kaictl joined #salt
08:21 georgemarshall joined #salt
08:21 nliadm joined #salt
08:21 codekoala joined #salt
08:21 Jahkeup joined #salt
08:21 CaptTofu joined #salt
08:21 chutzpah joined #salt
08:21 agh joined #salt
08:21 JordanTesting joined #salt
08:21 Sypher joined #salt
08:21 neilf_ joined #salt
08:21 _blackjid joined #salt
08:21 rawtaz joined #salt
08:21 whitepaws joined #salt
08:21 __alex joined #salt
08:21 etw joined #salt
08:21 AlcariTheMad joined #salt
08:21 delkins joined #salt
08:21 hillna_ joined #salt
08:21 Sway joined #salt
08:21 tmmt joined #salt
08:21 emostar joined #salt
08:21 ze- joined #salt
08:21 balltongu_ joined #salt
08:21 mariusv joined #salt
08:21 terminalmage joined #salt
08:21 shano joined #salt
08:21 marcinkuzminski joined #salt
08:21 manfred joined #salt
08:21 techdragon joined #salt
08:21 blast_hardcheese joined #salt
08:21 zsoftich joined #salt
08:21 patrek joined #salt
08:22 Valdo joined #salt
08:23 1JTAAIT0M joined #salt
08:24 zach joined #salt
08:24 bdf_ joined #salt
08:24 rnts_ joined #salt
08:24 andabata- joined #salt
08:24 lz-dylan_ joined #salt
08:25 rjc_ joined #salt
08:28 ninkotech joined #salt
08:28 foresj joined #salt
08:28 MTecknol1gy joined #salt
08:33 jhauser joined #salt
08:34 kossy joined #salt
08:36 eightyeight joined #salt
08:37 ninkotech joined #salt
08:44 MTecknol1gy joined #salt
08:44 foresj joined #salt
08:44 Guest6741 joined #salt
08:44 zsoftich joined #salt
08:44 CeBe joined #salt
08:44 ldlework joined #salt
08:44 philipsd6 joined #salt
08:44 mrTango joined #salt
08:44 ramteid joined #salt
08:44 lionel joined #salt
08:44 retr0h joined #salt
08:44 Nexpro joined #salt
08:44 ajprog_laptop joined #salt
08:44 redondos joined #salt
08:44 jeffrubic joined #salt
08:44 Cidan joined #salt
08:44 xzarth joined #salt
08:44 perfectsine joined #salt
08:44 [diecast] joined #salt
08:44 penguin_dan joined #salt
08:44 scoates joined #salt
08:44 rawzone joined #salt
08:44 vbabiy joined #salt
08:44 seventy3 joined #salt
08:44 flebel joined #salt
08:44 vandemar joined #salt
08:44 kwmiebach joined #salt
08:44 zz_cro joined #salt
08:44 dusel joined #salt
08:44 torrancew joined #salt
08:44 faulkner joined #salt
08:44 notbmatt joined #salt
08:44 basepi joined #salt
08:44 patarr joined #salt
08:44 TheRealBill joined #salt
08:44 AirOnSkin joined #salt
08:44 modafinil joined #salt
08:44 ahale joined #salt
08:44 jeremyBass joined #salt
08:44 Kraln joined #salt
08:44 seblu joined #salt
08:44 workingcats joined #salt
08:44 dancat joined #salt
08:44 gldnspud joined #salt
08:44 bwq- joined #salt
08:44 whiteinge joined #salt
08:44 jchen joined #salt
08:44 FL1SK joined #salt
08:44 smkelly joined #salt
08:44 sirtaj joined #salt
08:44 aqua^^ joined #salt
08:44 Gareth joined #salt
08:44 jasonrm joined #salt
08:44 joshbaptiste joined #salt
08:44 terinjokes joined #salt
08:44 AlexM850 joined #salt
08:44 goodwill joined #salt
08:44 wiqd joined #salt
08:44 frozenice joined #salt
08:44 scooby2 joined #salt
08:44 codysoyland joined #salt
08:44 tonthon joined #salt
08:44 emilisto_ joined #salt
08:44 __number5__ joined #salt
08:44 alainv joined #salt
08:44 londo joined #salt
08:44 nhubbard joined #salt
08:44 zdong joined #salt
08:44 carmony joined #salt
08:44 tedski joined #salt
08:44 johtso joined #salt
08:44 smferris joined #salt
08:44 fxdgear joined #salt
08:44 pjs joined #salt
08:44 goki joined #salt
08:44 eagen joined #salt
08:44 mephx joined #salt
08:44 AnswerGuy joined #salt
08:44 clone1018 joined #salt
08:44 t0rrant joined #salt
08:44 SaveTheRbtz joined #salt
08:44 EWDurbin joined #salt
08:44 grep_away joined #salt
08:44 gwmngilfen joined #salt
08:44 renoirb joined #salt
08:44 twinshadow joined #salt
08:44 mateoconfeugo joined #salt
08:47 mihait joined #salt
08:48 millz0r joined #salt
08:48 CD_ joined #salt
08:51 jdmf joined #salt
08:51 Katafalkas joined #salt
08:52 giantlock joined #salt
08:55 Lomithrani joined #salt
08:55 Katafalkas joined #salt
09:01 briner babilen, few days ago, you replied to me about the abilities to use the state and the distributed shell in conjunction. I was wondering if we can restart service on minion with salt even if the name of the service are not the same on the hosts. At that time, I was talking about the abilities tot restart apache apache2 on debian or http2 on redhat. I try to do it with xynon deamon: (hobbit-client for Debian & xymon-client for Redhat) wi
09:01 briner th no success. I've put my configuration on http://pastebin.com/iCJep2Zu
09:02 briner babilen, I remember you telling me that you were not 100% sure that this modification will be seen on salt.services... It feels that it is not.
09:03 babilen pity
09:03 AirOnSkin joined #salt
09:04 briner :(
09:04 mateoconfeugo joined #salt
09:05 babilen briner: Sorry, I can't look into it right now. I'd recommend to write to salt-users and I'll have a look later
09:05 briner babilen, yep... I'll do it. thanks agaim
09:06 mateocon_ joined #salt
09:07 dwfreed joined #salt
09:15 CeBe1 joined #salt
09:17 zz_cro joined #salt
09:17 ggoZ joined #salt
09:18 ixokai joined #salt
09:25 briner babilen, I've simply done a state, which restart the service
09:26 martin3k joined #salt
09:26 martin3k Hi all
09:27 TyrfingMjolnir joined #salt
09:31 martin3k how do i call a init.sls file from the top.sls ? like salt://nginx/init.sls
09:37 babilen martin3k: - nginx
09:38 superted666 joined #salt
09:39 martin3k that leads to an error saying Rendering SLS "base:nginx" failed: Conflicting ID "cmd.run"
09:39 martin3k i thought i might call it wrong but seems there is sth else up
09:39 babilen martin3k: Could you paste that state to http://paste.debian.net ?
09:40 babilen (err, the file)
09:40 martin3k jap
09:42 martin3k its actually this one here https://gist.github.com/renoirb/6722890
09:43 Katafalk_ joined #salt
09:45 TyrfingMjolnir joined #salt
09:51 HontoNoRoger joined #salt
09:51 HontoNoRoger hello! is there something like puppet's fragmets which can be concat'ed in salt?
09:51 dcolish joined #salt
09:52 Katafalkas joined #salt
09:53 babilen martin3k: I don't necessarily see an error with that .. you use that as your nginx/init.sls? That is a rather unusual choice as it has nothing to do with nginx
09:53 masterkorp I like the nginx.ng states
09:55 austin987 joined #salt
09:56 HontoNoRoger or to be more general: Can I create files out of base files and append something to them before pushing it to the minion without the use of templates and pillar data?
09:56 rglen joined #salt
10:00 workingcats joined #salt
10:03 Lomithrani Is it possible that salt conflict with cassandra ?  When I setup a new server without using salt I get no problem and when I use salt it seems that it is not working ... (pretty simple stuff  with salt , deleting a jar downloading another one managing the conf file and running cassandra)
10:05 chokosabe joined #salt
10:05 chokosabe hi all
10:05 chokosabe looking for some help, I cant seem to set different hostnames in the top.sls file
10:06 Lomithrani Hi , what do you mean ?
10:07 chokosabe akin to this:
10:07 chokosabe https://github.com/wunki/django-salted/blob/master/salt/roots/salt/top.sls
10:08 chokosabe when I run this, salt doesn't install to 'vagrant.django-salted.org'
10:08 chokosabe it stops after going through the states uder '*'
10:09 chokosabe under
10:09 chokosabe thanks
10:09 Lomithrani when you  do   #salt '*' test.ping
10:10 Lomithrani you have a machine called "vagrant.django-salted.org" ?
10:10 chokosabe yeah, I set this in the vagrantfile
10:10 chokosabe config.vm.hostname
10:11 Lomithrani what I would do
10:11 happytux joined #salt
10:11 chokosabe ah, found the prob, its a vagrant issue....
10:11 chokosabe just checked the hostname with socket
10:11 Lomithrani :)
10:11 chokosabe can I ask another question
10:11 chokosabe dont know if you have exp with django
10:12 chokosabe trying to run syncdb and collectstatic
10:12 Lomithrani I don't :) I just try to help as much as I can because  I always have ppl here saving my skin =)
10:12 chokosabe http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.djangomod.html
10:12 chokosabe The docs here dont really wive an example of how you go about running these commands
10:13 Lomithrani I agree that "<settings_module> " seems quite vague to me aswell
10:14 chokosabe anyone knows what CLI stands for?
10:21 N-Mi joined #salt
10:24 martin3k babilen: of course its java/init.sls. I just used nginx as an example cause i thought the call was wrong
10:24 babilen chokosabe: command line interface
10:25 chokosabe Thx
10:25 babilen martin3k: Anything else you changed/adapted? May I see *your* state and the actual error?
10:26 martin3k sure, this is the deb
10:26 martin3k http://paste.debian.net/105428/
10:26 martin3k the top, sorray
10:27 martin3k the java/init.sls remains exactly the same
10:27 martin3k and so does the error
10:28 martin3k http://paste.debian.net/105429/
10:28 bhosmer joined #salt
10:30 martin3k sorry for complicating things, i believed in an error on my side to call the state
10:31 babilen And your java/init.sls is exactly the same as the one in the gist?
10:36 martin3k it just dawned to me that during the c&p action some of the spaces got lost. i just realized that yaml needs these to interpret the code
10:39 chokosabe Does salt cache files?
10:39 chokosabe I have a machine that has changed hostname
10:39 martin3k seems to run now. sorry for wasting your time babilen
10:40 Katafalk_ joined #salt
10:40 chokosabe salt doesn't recognise the new hostname
10:40 dsolsona joined #salt
10:46 babilen martin3k: Just do everyone a favour and paste your *actual* files and their output in one pastebin. That way people can see the actual problem rather than some "idealised" version of it (that probably works)
10:46 babilen ;)
10:47 babilen chokosabe: Did you switch the keys?
10:49 viq babilen: remember my gitfs problems? Now picure me putting on a dunce hat and hiding in a dark corner waving a flag with "nevermind" on it ;)
10:49 babilen viq: ... please elaborate?
10:49 TyrfingMjolnir joined #salt
10:49 babilen (same thing?)
10:50 viq "sudo salt -v hirauchi arch.update-mirrors" - what's wrong with this command?
10:50 netzmonster joined #salt
10:50 viq It took me I think now 3 days to figure out there was a crucial bit missing...
10:50 chokosabe babilen: No didn't switch the keys
10:51 chokosabe babilen: This is with a vagrant vm. I have done vagrant reload.
10:52 chokosabe This is a great project. OPS simplified but the docs really need work...
10:52 babilen viq: Is arch.update-mirrors available? Aren't you missing state.sls there? I also target in '..', but that shouldn't be the problem
10:52 viq babilen: precisely - I was missing state.sls in there
10:52 viq Thus the dunce hat
10:52 babilen And once again it would have been easy if you had shown actual commands :D
10:53 viq Thus the dark corner ;)
10:53 masterkorp Guys how do diferent staging from production environments ?
10:53 viq masterkorp: git branches?
10:53 masterkorp on the minion level
10:53 viq masterkorp: what do you mean?
10:53 babilen I really strongly dislike that GitFS treats branches as environments and merges top.sls files across all of them
10:54 viq babilen: so yeah, sorry for taking up time and not providing enough information
10:54 babilen viq: It happens
10:54 masterkorp viq: the minions that are part of the production environment and the minions that part of the staging environments
10:55 babilen There is always a fine line between "this is my entire system. Learn it Mr. Data!" and "I see now that my idealised case does not actually exhibit the problem in question." :)
10:55 Lomithrani joined #salt
10:55 viq masterkorp: you assign them to different environments in your top.sls
10:57 masterkorp http://docs.saltstack.com/en/latest/ref/states/top.html
10:57 masterkorp ok, found it
11:02 chokosabe Any ideas on why salt doens't pick up on a change in hostname
11:02 chokosabe ?
11:02 chokosabe Thanks
11:02 viq chokosabe: elaborate?
11:03 chokosabe I have a vagrant env that uses salt to provision
11:04 chokosabe I change the hostname in the vagrant file
11:04 chokosabe I reload the vagrant vm
11:04 viq chokosabe: /etc/salt/minion_id
11:04 chokosabe I ssh into the vagrant vm and run python
11:05 Katafalkas joined #salt
11:05 chokosabe I run socket.getfqdn() and the hostname form that matches the hostname I have set
11:05 chokosabe I then try to run salt again, but It stops execution at the block that requires the nes hostname (in top.sls)
11:06 chokosabe I change the hostname to the old (initial) hostname and salt runs fine
11:06 viq chokosabe: /etc/salt/minion_id
11:06 chokosabe Thanks
11:06 masterkorp http://pastie.org/private/23hfrftjnfdpe70yy7oia
11:06 masterkorp i am trying the nginx formula on kitchen-salt
11:06 masterkorp and I get this
11:06 masterkorp [CRITICAL] Rendering SLS "base:nginx.ng.install" failed: Jinja error: get() got an unexpected keyword argument 'merge'
11:06 masterkorp /tmp/kitchen/srv/salt/nginx/ng/map.jinja(7):
11:06 chokosabe ubuntu-14.04-amd64-vbox
11:07 masterkorp what the heck does it even mean ?
11:07 chokosabe :viq yes this shows the wrong (old) hostname
11:07 viq masterkorp: is that on develop, or hydrogen?
11:07 viq chokosabe: remove it, restart salt-minion or reload machine
11:07 babilen hydrogen has been released?
11:08 chokosabe viq: thx, will it come back?
11:08 viq babilen: yes, hydrogen == 2014.1
11:08 masterkorp viq: develop ? hydrogen ?
11:08 viq babilen: helium wasn't
11:08 viq masterkorp: git head or 2014.1 ?
11:08 babilen viq: right!
11:08 masterkorp develop
11:08 masterkorp "You asked for latest and you have 2014.1.4 installed, sweet! "
11:09 viq uhm, 2014.1.4 is not develop
11:09 masterkorp so hydrogen it is
11:09 viq masterkorp: then you can't use nginx.ng
11:10 viq masterkorp: https://github.com/saltstack-formulas/nginx-formula/blob/master/README.rst read the 'next-generation' part of it
11:11 masterkorp i see thanks
11:11 masterkorp i would like to use this much better organized salt formulas
11:13 viq masterkorp: and as the readme there says, for that you need either git head or wait for helium to be released
11:14 masterkorp yeah thanks
11:18 joshbaptiste joined #salt
11:19 netzmonster joined #salt
11:22 bigl0af joined #salt
11:24 netzmonster joined #salt
11:31 netzmonster joined #salt
11:38 diegows joined #salt
11:42 dsolsona joined #salt
11:44 canci joined #salt
11:49 bhosmer joined #salt
11:52 aubsticle_ joined #salt
11:52 Katafalk_ joined #salt
11:53 jrdx joined #salt
11:56 jsmith left #salt
11:58 MZAWeb_ joined #salt
11:59 logix812 joined #salt
12:06 masterkorp Guys any vim users? Do you know any syntax highlither for vim to go with salt ?
12:09 viq masterkorp: https://github.com/saltstack/salt-vim
12:10 masterkorp lol right there in your face
12:10 masterkorp sorry and thanks viq
12:12 viq ;)
12:13 martin3k hi guys, can anyone share a working top.sls that uses the mysql module? i am kind of stuck
12:15 masterkorp martin3k: https://duckduckgo.com/?q=winch%208274
12:15 masterkorp you need this :p
12:15 masterkorp it gets anyone unstuck :p
12:16 xmj viq: do you use gitlab?
12:16 alanpearce joined #salt
12:19 viq xmj: yeah, at work, though not very intensively
12:19 xmj viq: do you happen to run it on a centos server and deploy through salt?
12:20 viq I happen to run it on debian server and deploy using salt
12:20 xmj with the official salt-formula? :)
12:20 ndrei_ joined #salt
12:20 viq xmj: I wrote 90%+ of it :P
12:21 kedo39 joined #salt
12:21 xmj viq: is the comment on centos still valid?
12:22 viq I didn't have much time to play with it, and I still don't have a good idea how to get a supported version of ruby on centos, so yeah, not really expected to work on centos
12:22 napper joined #salt
12:22 viq centos 7 once out will make it much easier
12:23 AdamSewell joined #salt
12:24 xmj well
12:24 viq I still need/want to abstract the choice of DB, even though now they recommend postgres, and I want to play with the recommended procedure of "run backup before upgrading", but again, haven't had that much chance to play with it recently
12:24 xmj i'm looking to fill the last two days of working for this client with meaningful work.
12:24 xmj this client runs C6.5.
12:25 * viq nods
12:25 xmj viq: are you aware of any caveats that are certain not to work?
12:26 jas-_ joined #salt
12:26 viq Well, first one, you need to install a newer ruby than centos comes with, and have it available in default paths without any trickeries, otherwise gitlab-shell will not work
12:26 viq I _think_ that git available on CentOS is new enough, but I'm not certain
12:27 viq xmj: maybe the omnibus packages would be a solution?
12:28 to_json joined #salt
12:28 viq Or the bitnami installer
12:28 viq https://www.gitlab.com/installation/
12:28 xmj omnibus was the one that comes with puppet
12:28 xmj viq: we're already running gitlab, it works _just fine_
12:29 xmj the client wants me to put it into cfg mgmt :)
12:29 viq xmj: with ruby 1.8.7 (or whatever it is) and git 1.7.1 ?
12:30 xmj 1sec
12:32 xmj 1.9.1 and 1.7.11
12:32 xmj 1.9.1 is probably coming from gitlab itself
12:33 ndrei_ joined #salt
12:33 viq how so?
12:33 xmj because it's in /home/git/gitlab/vendor/bundle/ruby/1.9.1/ ?
12:34 viq whaa?
12:34 viq 'which ruby' gives you that?
12:34 xmj lsof |grep unicorn
12:34 xmj but close
12:34 scarcry joined #salt
12:34 ipmb joined #salt
12:35 viq Well, I'd need to figure out a good way to get ruby and git in required versions on centos. I haven't yet.
12:39 rigor789|away joined #salt
12:39 martin3k how do i tell the mysql module to use the pillar to create users, i think that is my problem.. for now i just call
12:39 martin3k - mysql.server
12:39 martin3k - mysql.database
12:39 martin3k - mysql.user
12:39 martin3k - mysql.client  but this does not seem to work
12:40 martin3k the server is installed but i fail to login with the credentials stored in pillar
12:41 brandon_ joined #salt
12:41 viq martin3k: you're using https://github.com/saltstack-formulas/mysql-formula ?
12:42 martin3k yes viq, i cloned it and adjusted the pillar
12:42 martin3k guess thats not all i need to do
12:43 viq martin3k: and are you certain that your machine sees the pillar? Does pillar.get give you the values you put in?
12:44 XenophonF joined #salt
12:45 quickdry21_ joined #salt
12:46 xmj viq: epel!
12:46 * xmj looks at https://dl.fedoraproject.org/pub/epel/6/x86_64/
12:47 martin3k viq: no if seems to return an empty string
12:47 blarghmatey joined #salt
12:47 viq martin3k: well, there's your problem
12:48 martin3k thanks man =)
12:49 viq xmj: epel has neither git nor ruby
12:50 xmj hm
12:51 DammitJim joined #salt
12:52 DammitJim how do I ensure that I am running the same version of salt in my minions vs my master?
12:52 DammitJim my minions are Red Hat 5, Red Hat 6, Windows 2012 R2, Windows 2008 R2
12:52 DammitJim and my master is Debian
12:52 DammitJim (might have to set up a Red hat Master if it's too hard to maintain)
12:53 viq DammitJim: "easiest" would be to build packages yourself. Or have a local repo to which you put appropriate versions of packages
12:53 DammitJim oh gosh
12:53 viq xmj: exactly, hm.
12:53 DammitJim so, this is going to be harder setting up than I thought
12:54 shadfc if I setup a directory using 'file.directory', i then have to use 'file' only when listing that as a require. Can someone explain why? seems confusing to me
12:54 DammitJim (I had been messing with salt in my own environment where everything is the same)
12:55 XenophonF viq: epel has git
12:56 XenophonF viq: epel has ruby, too
12:56 viq shadfc: module "file", function "directory"
12:56 viq XenophonF: link please, because I don't see the packages in https://dl.fedoraproject.org/pub/epel/6/x86_64/
12:57 N-Mi joined #salt
12:57 XenophonF viq: I just did a "yum search git" on my CentOS 6.5 test VM, with EPEL enabled.
12:57 shadfc viq: yes, but why is the require just "file"? feels like I should be telling the require to make sure that thing is a directory.
12:57 viq XenophonF: they are in main repos, not in epel
12:57 XenophonF oh sorry my mistake
12:58 XenophonF well there's a bunch of git-related stuff in EPEL - like, git-annex and such
12:59 viq Yes. But there isn't a newer version of git nor ruby in epel - there isn't any version of them in there.
12:59 XenophonF true
13:00 viq shadfc: there is a bit of discussion currently, what you're saying is part of the reason why. Here are two ways to write the same thing, maybe this will make it clearer for you http://pbot.rmdir.de/Y9FcGaqqGtzYirYp2Hlp9A
13:01 viq shadfc: you're basically saying "require a state using module file and named thus"
13:02 jdmf joined #salt
13:02 viq shadfc: and in the same state name you won't be able to have any other reference to the file module
13:03 shadfc ok, that makes more sense
13:05 rocket joined #salt
13:06 rocket how do I ensure a bunch of directories exist?
13:06 c2c joined #salt
13:06 millz0r file.directory
13:06 c2c Hello, Is there a way to "test" if a pillar is set in a state file and "fail" if not ?
13:06 rocket millz0r what is the syntax for more than one directory?
13:07 shadfc I'm trying to provision a vagrant box using salt. Checkouts of private git repos fail seemingly because salt doesn't know the github username and password to use. Anyone solved this? I have ssh agent forwarding on
13:07 millz0r - names: -a -b -c
13:07 viq c2c: look for 'jinja defined'
13:07 rocket thanks :)
13:08 viq rocket: http://pbot.rmdir.de/ckpIzu_ms_Woy4tZ1lgdVw or jinja for loop
13:08 c2c ha ... ALL sls files are jinja templates ?
13:08 viq but millz0r beat me to it ;)
13:08 racooper joined #salt
13:08 viq no, all SLS files are YAML. You can use jinja (and others) to generate yaml
13:09 happytux joined #salt
13:09 c2c But I can use {% if ... is defined %} directly in a .sls file ?
13:09 viq c2c: http://docs.saltstack.com/en/latest/ref/renderers/
13:10 viq yes
13:10 c2c Ok ! thx !
13:11 Katafalkas joined #salt
13:12 c2c Last one : Can I "force" a sls to tail ?
13:12 viq tail?
13:12 c2c fail
13:12 c2c sorry
13:12 viq Ah
13:13 cstrutton joined #salt
13:13 viq Hm... cmd.run exit 1 ?
13:13 racooper is there a way to pull a list of minions that have updates available, instead of listing the individual updates? (pkg.list_upgrades, but just "true" or "false" responses?)
13:13 c2c Ok thanks
13:14 cstrutton good morning... can anyone help me understand how to configure the apache formula?  the pillar example file lists a bunch of config options.  Do they go in a dot config file or do they go int the pillar?
13:15 viq cstrutton: if they're listed in the pillar.example then they go into pillar
13:18 shadfc viq: that also explains why i cannot do a git.latest to check something out and then require 'file' in another state to make sure that it exists, right? I'd need to use a file state on the checkout directory to have that work?
13:19 viq shadfc: well, requirements refer to defined states. To require a file on disk you'd have to define a state that refers to it first
13:20 viq shadfc: but, you can require said git state
13:20 shadfc right. my assumption was that the requires were doing their own checks using the actual state modules, not just checking for defined states
13:21 viq No, require means "don't execute until after this named state executed successfuly"
13:21 shadfc gotcha
13:21 shadfc much clearer now
13:21 viq On the other hand there is http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.exists
13:21 Bandikoto joined #salt
13:22 viq But you'd still have to define a file.exists and then require that in another state
13:22 Teknix joined #salt
13:26 dude051 joined #salt
13:27 kermit joined #salt
13:28 MTecknology joined #salt
13:29 cstrutton ok.. im still missing something obvious.  I put the example pillar in my pillar root.  when I run highstate, I get an Jinga error that {{ID}} is not defined.  where does the ID variable get defined?
13:30 jchen cstrutton: pastebin the pillar?
13:30 viq cstrutton: https://github.com/saltstack-formulas/apache-formula/blob/master/pillar.example#L20
13:31 cachedout joined #salt
13:36 cstrutton jchen: I am using example.pillar exactly as it appears in git.  do I have to make any initial mods to make it work?
13:37 jchen cstrutton: i have no idea which example.pillar you're looking at
13:37 cstrutton https://github.com/saltstack-formulas/apache-formula/blob/master/pillar.example
13:38 jchen cstrutton: the comment in the line viq posted suggests that the name of the site is the ID
13:38 jchen i.e. example.com
13:39 cstrutton that is what I was expecting, but Jinga says ID is undefined.
13:40 cstrutton It would make sense that I can set that value when I call it but I cant find anywhere that tells me how to set it.
13:43 perfectsine_ joined #salt
13:48 AdamSewell joined #salt
13:49 vejdmn joined #salt
13:50 masterkorp Stupid question
13:50 masterkorp does salt-cloud need to be installed on salt-master ?
13:51 cstrutton yes.. ran into that myself.. apt-get install salt-cloud
13:51 masterkorp its not stupid obvious on the docs, thank you cstrutton
13:51 cstrutton I know.. going to submit something for that...
13:53 mgw joined #salt
13:56 aquinas_ joined #salt
13:57 anotherZero joined #salt
13:57 JasonSwindle joined #salt
13:58 smcquay joined #salt
13:59 masterkorp also, how do you guys keep secrets on pillar data secret
13:59 JasonSwindle masterkorp: I put pilliar in a git submodule
13:59 JasonSwindle and made that private
13:59 Katafalk_ joined #salt
14:00 masterkorp hmm
14:00 JasonSwindle it made the git clone more complex, but let's me version control the passwords
14:00 cachedout joined #salt
14:00 JasonSwindle once on the system, that........ that I am not sure about
14:00 masterkorp i used chef-vault with chef
14:00 masterkorp wonder is there is something equivalent
14:01 Ahlee how does grouping work for compound matching?  Trying -C "(G@foo:bar and G@baz:qux) and not G@abc:def"
14:01 JasonSwindle Salt does not have databags, or dbags
14:03 timoguin I believe there's a GPG encrypted external pillar in develop
14:05 Katafalkas joined #salt
14:08 Ztyx1 joined #salt
14:09 Ztyx1 left #salt
14:09 m1crofarmer joined #salt
14:09 xerxas joined #salt
14:10 Lomithrani joined #salt
14:11 thayne joined #salt
14:11 dusel joined #salt
14:14 Ahlee i'm just dumb on my previous complex matching
14:20 oz_akan_ joined #salt
14:24 kermit joined #salt
14:25 repl1cant joined #salt
14:27 jchen masterkorp: https://github.com/saltstack/salt/issues/4546
14:30 manfred masterkorp: that is kind of being worked on a bit
14:31 manfred the db thingy that techhat is working on right now iirc
14:32 timoguin to put it technically...
14:32 manfred exactly
14:32 jalbretsen joined #salt
14:35 anuvrat joined #salt
14:36 aquinas_ joined #salt
14:39 Dattas joined #salt
14:39 wendall911 joined #salt
14:40 ekristen joined #salt
14:41 rascharles joined #salt
14:41 babilen I'm trying to use data on a minion that has to be generated on another minion (certificates). I would like to be able to tell the other minion (or have the master tell it) to generate that data and make it available as, say, certificates:foo:$hostname in the pillar (so I can write the file with content_pillar)
14:42 lude babilen: you want "minionfs"
14:43 aquinas_ joined #salt
14:43 * babilen ♥ salt
14:43 rascharles I need to distribute a configuration file. And certain variables in the file need to be expanded on a per minion basis...like the minion's hostname, etc.
14:44 rascharles I would think the conf file would be a jinja template itself
14:44 babilen Okay, that looks great. How do I get the other minion to generate a new certificate (i.e. run a specific command)
14:44 babilen I guess I have to look into "orchestrate" to express these inter-minion dependencies?
14:45 ajprog_laptop joined #salt
14:45 babilen rascharles: yes, that is *exactly* how you would do it.
14:45 rascharles I've seen lots of examples of using jinja in sls files and pillars but not in a configuration file like an https.conf
14:45 timoguin there are tons in the formulas
14:45 rascharles babilen: can you share an url with an example? Perhaps I've just overlooked such?
14:45 babilen rascharles: https://github.com/babilen/nagios-formula/blob/master/nagios/nrpe/files/nrpe.cfg.jinja is one example
14:46 rascharles Thanks!
14:46 timoguin rascharles: and another: https://github.com/saltstack-formulas/apache-formula/blob/master/apache/vhosts/standard.tmpl
14:46 babilen rascharles: In fact you find *many* examples on https://github.com/saltstack-formulas and the general "formula design guide" is found at http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
14:50 N-Mi joined #salt
14:50 babilen lude: MinionFS is available to all minions isn't it? It's not really a problem right now, but for other setups I would have to keep data like that from the prying eyes of other minions
14:50 manfred babilen: you will be able to do that in raet
14:50 thayne joined #salt
14:50 manfred babilen: i would wait for raet
14:50 manfred it is able to move into beat
14:50 manfred beta*
14:50 babilen helium?
14:50 manfred yeah
14:51 rallytime joined #salt
14:51 babilen The much awaited super-awesome release
14:51 manfred it will be available in helium, won't be 100% done, but it will be usable.
14:51 manfred and then what you want will be added soonish
14:51 babilen I really have to keep a list of "things I can do better/have to reimplement differently once Helium has been released" :)
14:51 thedodd joined #salt
14:51 babilen Okay, great
14:51 manfred but for controling passing stuff between minions, and controlling what other minions can see... raet will be much better
14:51 manfred cause it won't require passing the data through the master
14:52 babilen Splendid ... What's the best way to express inter-minion dependencies? (i.e. use that certificate, but generate it on OTHERHOST first)
14:52 happytux joined #salt
14:52 manfred if you are passing data between minions, minionfs is the only reasonable way really...
14:53 manfred might be worth trying to use publish.publish?
14:53 manfred or the mine
14:53 babilen Sure, but I have to run a command *first* on another minion before I have that data
14:53 babilen I generate certificates on-demand and want to make them available to minions.
14:53 manfred publish.publish can do cmd.run on the other minion
14:53 manfred an overstate is probably the way to go then
14:54 timoguin or the orchestrate runner
14:54 manfred sure
14:55 Gareth there was an example of the salt-users list the other day similar to that.  solution suggested by whiteinge was to use a reactor.
14:55 Gareth s/of/on/
14:55 babilen And now I have all those buzzwords again :)
14:55 manfred http://i.imgur.com/TIdOxpB.gif
14:55 jaimed joined #salt
14:55 timoguin babilen: http://docs.saltstack.com/en/latest/topics/tutorials/states_pt5.html#the-orchestrate-runner
14:56 timoguin that let's you specify a target minion for running a state
14:56 timoguin and you can use the normal requisite system
14:56 babilen My understanding of the orchestrate system was rather "make sure database server is up before webserver"
14:57 agend joined #salt
14:57 jamescarr joined #salt
14:58 timoguin well it's more flexible than that
14:58 babilen I guess it would help to formulate once again what I want to achieve. I essentially only want to: 1. Define a file.managed state that writes a certificate that has been generated *on demand* on another host. 2. Be able to trigger that generation on the certificate server and make that new data available as, say, targethostname.crt (or something)
14:58 m1crofarmer joined #salt
14:59 Heartsbane joined #salt
14:59 Heartsbane joined #salt
14:59 XenophonF if I specify "watch"/"watch_in" for a particular state, do I also need to specify "require"/"require_in"?  Or is that redundant?
14:59 babilen XenophonF: it is redundant
14:59 XenophonF thanks babilen!
14:59 Katafalk_ joined #salt
15:00 babilen XenophonF: I typically define services and then use watch_in in every configuration files that should trigger a restart/reload of the service
15:00 XenophonF babilen: me too
15:01 XenophonF i do the same thing for pkg states that have a corresponding service state
15:01 * babilen reads orchestrate, minionfs, publish.publish and the rest of the lot again
15:02 perfectsine joined #salt
15:04 m1crofarmer joined #salt
15:04 pdayton joined #salt
15:09 oz_akan_ joined #salt
15:09 saru11 joined #salt
15:10 saru11 hello, I'm looking for somebody who could help me with some more advanced syntax in Jinja templates
15:10 elfixit joined #salt
15:10 saru11 my question is related to salt formulas and map.jinja file
15:11 saru11 let's say I want to define some package name based on filter by 'os_family' grain
15:12 saru11 that's pretty common as I checked other formuls
15:12 saru11 I have to define such package it per every os_family grain
15:12 viq xmj: https://github.com/saltstack-formulas/gitlab-formula/issues/3#issuecomment-46313901 mentions a repo with ruby and git new enough for gitlab
15:12 Katafalkas joined #salt
15:13 saru11 but what if I don't want to repeat and share it for a group of os_family grains and then just extend it by values specific to the specific os_family grain?!?
15:13 kermit joined #salt
15:14 kballou joined #salt
15:14 saru11 it's like having a default python dict default_os and specific one for CentOS like centos_os and I would like to get something like default_os.update(centos_os)
15:15 ekristen hey guys, i need to get the IP of eth0 from another minion, I’m trying to use mine.get but running into issues, I don’t want to loop over the values, just grab the first one
15:15 ekristen salt['mine.get'](search_mongos, 'network.interfaces', 'compound')['eth0']['inet'][0]['address']
15:15 ekristen that keeps failing
15:15 JasonSwindle joined #salt
15:15 donaldinho joined #salt
15:15 Katafalk_ joined #salt
15:19 xmj viq: tyvm
15:21 saru11 I wrote a simple example what I mean: http://pastebin.com/f70hmF7f
15:22 saru11 could somebody look at it please?
15:23 DammitJim joined #salt
15:23 DammitJim I'm sorry... I had to leave the channel earlier. How do I make sure I have the same version of salt in my minion and master where my master is Debian Wheezy, my minions are Windows 2008R2, Windows 2012, Red Hat 5, and Red Hat 6?
15:24 DammitJim or do I need separate salt masters for each OS?
15:26 viq DammitJim: if the version difference is not too big, it's enough that salt master is same or newer than minions
15:27 donaldinho this has probably been asked before but I can't find an answer to it. Every 10 secs I'm getting the following in my minion log
15:27 donaldinho 2014-06-17 15:27:23,220 [salt.utils       ][ERROR   ] This master address: 'salt' was previously resolvable but now fails to resolve! The previously resolved ip addr will continue to be used 2014-06-17 15:27:23,220 [salt.crypt       ][WARNING ] SaltClientError:
15:27 bemehow joined #salt
15:27 DammitJim viq, how do I know that, though?
15:28 Eugene Do you mean how do you ensure that? By doing all of your upgrades simultaneously via a state
15:28 bemehow_ joined #salt
15:28 donaldinho I've got file_client: local in my minion.conf so not sure why this error is occuring. anyone?
15:29 viq DammitJim: how do you know what?
15:29 Lomithrani left #salt
15:30 DammitJim if the minion version and the master isn't "that" different
15:30 masterkorp manfred: jchen thanks
15:30 DammitJim I guess most of you have the same OS and OS version?
15:32 viq DammitJim: far from it
15:32 DammitJim then how do you handle it?
15:33 viq CentOS, Debian 6, Debian 7, FreeBSD 9, FreeBSD 10, OpenBSD
15:34 viq I upgrade masters first. Custom packages where needed. Not care about minor differences.
15:34 DammitJim viq, thank you! That gives me more confidence that I can do this
15:34 DammitJim what do you mean by custom packages?
15:35 viq OpenBSD in repos has 0.17.4, I took newer ports and built 2014.1.3
15:35 DammitJim ok, so I do have to look at them 1 by one
15:40 mateoconfeugo joined #salt
15:41 Networkn3rd joined #salt
15:43 ml_1 joined #salt
15:45 viq xmj: and the guy in question just posted what he has in place for centos (WIP) https://github.com/Tinuva/gitlab-formula
15:45 xmj woo
15:45 c2c joined #salt
15:46 c2c Hello, anyone knows if it's possible to copy a directory with salt.states.file.copy  (aka cp -R) ?
15:46 xmj viq: bookmarked, i'll look into it tomorrow
15:46 c2c I got Comment: Failed to copy "/data/filer/sources/enrj/D38/config/fw" to "/data/fw_config/D38" even if source is readable and dest writeable
15:47 yomilk joined #salt
15:47 tinuva *blush* didnt expect that to be posted here. That commits on that repo is very ugly
15:48 timoguin looks okay to me. :)
15:48 viq tinuva: hey, it's work done, it's _WAY_ better than work not done ;)
15:49 viq ie mine :P
15:49 tinuva heh thx
15:49 tinuva well it gets gitlab installed on a mostly clean CentOS 6, which has epel and salt-minion installed
15:50 joehoyle joined #salt
15:50 tinuva I could log in with the default user created on the web interface, so i assume it works 100%, but will have to test a bit more
15:50 tinuva next, I want to make it install on CentOS 7
15:51 viq tinuva: a first uneducated guess is that the only difference for 7 would be not needing the additional repo for git and ruby
15:54 Lomithrani joined #salt
15:54 piv joined #salt
15:55 piv joined #salt
15:55 tligda joined #salt
15:56 tinuva viq, yeah i believe so
15:56 philipsd6 Hey, is there any official way to tell salt-ssh where to find python on the target server? We have python2.7 installed in a non-standard location, and currently, I have a script that patches salt/client/ssh/__init__.py to munge $PATH, and then I rebuild the tarball with "salt-run thin.generate overwrite=1"
15:57 linjan joined #salt
15:57 linjan__ joined #salt
15:57 chiui joined #salt
15:57 philipsd6 Ansible deals with this via the ansible_python_interpreter variable in the inventory...
15:59 philipsd6 I think this variable would fit in nicely in the salt roster target data structure: http://docs.saltstack.com/en/latest/topics/ssh/roster.html
16:00 robinsmidsrod joined #salt
16:01 davet joined #salt
16:02 viq philipsd6: that's where I was expecting to see this option if present, but the docs don't mention it...
16:03 CheKolyN joined #salt
16:03 philipsd6 well, maybe I can submit a pull req for that, if some of the more experienced salt devs agree that's appropriate.
16:04 Joseph joined #salt
16:05 KyleG joined #salt
16:05 KyleG joined #salt
16:05 Joseph pillar question. Docs are unclear but can I use pillar as a "secure" file server, which is to say that only minions that i target will have access to the files and no others. this contrasts with generic file server where minions have full access to all files.
16:06 Joseph Pillar docs seems to indicate its only about storing data in variables.
16:06 Katafalkas joined #salt
16:07 troyready joined #salt
16:07 timoguin Joseph: minions only get pillars targetted for them
16:07 timoguin unlike the file server
16:08 timoguin the master renders and sends it down, whereas the minions render everything in the file server themselves
16:09 rtucker joined #salt
16:09 joehoyle joined #salt
16:09 Joseph timoguin: yes i understand that but my question is whether pillar is a file server. i.e. i put file installer.bin in pillar and then target it to minion X. Does this mean that 1. minionX can get that file from pillar and 2. no other minion can get it
16:10 timoguin oooh
16:10 Joseph Or is it that you are only storing arbitrary strings in a variable and thats it?
16:10 timoguin no pillar can't handle files as far as i know
16:10 Joseph timoguin: is there a feature request for it to do so? :)
16:10 timoguin probably-mabye
16:10 davet1 joined #salt
16:11 Joseph :) in all honesty, what i actually want is ACLs for the fileserver
16:11 blarghmatey1 joined #salt
16:13 timoguin yeap
16:14 Joseph but i don't see a git issue for that
16:14 Joseph I guess i could always open one and then it can get closed if everyone hates the idea or there's an existing issue and i just missed it
16:14 ipmb joined #salt
16:14 Joseph github issue i mean
16:15 timoguin 1543 and 3790 are the closest i see, but not quite what we're talking about
16:15 rgarcia_ joined #salt
16:16 aquinas_ joined #salt
16:17 thayne joined #salt
16:19 Joseph timoguin: yea plus ACLs on fileserver which is actually what i want really isn't a pillar specific thing. Being able to serve files up from pillar is one way of do it but honeslty i just think having something like client_acls being applied to directories and files on the fileserver is something else
16:19 Joseph and the latter is what i really want
16:19 Joseph :)
16:20 darkelda joined #salt
16:28 perfectsine joined #salt
16:29 anuvrat joined #salt
16:31 joehillen joined #salt
16:34 chokosabe sorry to bother; anyone familiar with this:
16:34 chokosabe File "_unpacker.pyx", line 119, in msgpack._unpacker.unpackb (msgpack/_unpacker.cpp:119)
16:35 chokosabe its a msgpack error when running - this was working on an identical box
16:35 bhosmer joined #salt
16:35 chokosabe its a linux x64 ubunutu box
16:35 m1crofarmer joined #salt
16:41 timoguin oh my.... https://github.com/StephenPCG/vim-snippets-salt
16:42 timoguin just got posted to the mailing list
16:45 Joseph timoguin: is this an alternative to jinja templating?
16:45 timoguin no
16:46 timoguin it's vim autocomplete for states
16:46 Joseph timoguin: okay so what does this do in salt? :)
16:46 forrest joined #salt
16:46 timoguin it scans the salt source and builds up snippets for the available states
16:46 timoguin look at the gif at the bottom of the README
16:46 timoguin show it in action
16:46 Joseph timoguin: holy cow that is so cool
16:47 timoguin https://github.com/StephenPCG/vim-snippets-salt/blob/master/snippets/sls-2014.1.5.snippets
16:47 Joseph that's fricking awesome
16:47 timoguin he's got 0.17.5 and 2014.1.5 snippets already in there
16:47 Joseph timoguin: also this is awful. I am an emacs acolyte. This will make me a heretic. :(
16:47 timoguin lol i love the vim
16:47 Joseph timoguin: i do NOT love VIM
16:47 Joseph At all.
16:47 Joseph :)
16:47 viq Joseph: EmacsOS ;)
16:48 Ryan_Lane joined #salt
16:48 Joseph viq: be nice
16:49 viq I do hear good things about orgmode for example, but never could get around to learning emacs, and vi is everywhere...
16:50 racooper Emacs: a nice OS that needs a decent text editor :p
16:51 Joseph viq and racooper: http://xkcd.com/378/
16:51 Joseph its funny cause its true
16:52 Joseph I fully concede that keybinds and hotkeys are extremely inferior compared to what is in VIM
16:53 JasonSwi_ joined #salt
16:53 ipmb_ joined #salt
16:53 rglen joined #salt
16:54 Joseph that all said...vim snippets in saltstack...that's just amazing. i'll have to switch to it for writing my states cause one thing i am not going to do is try to write an emacs module to do this. I don't love emacs enough to deal with lisp.
16:54 shaggy_surfer joined #salt
16:54 schimmy joined #salt
16:55 viq Joseph: if you want to play with vim, have a look at http://vim.spf13.com/
16:58 schimmy joined #salt
16:59 chrisjones joined #salt
17:00 JasonSwindle joined #salt
17:00 schimmy1 joined #salt
17:00 JasonSwindle joined #salt
17:01 pugs joined #salt
17:02 felskrone joined #salt
17:03 bemehow joined #salt
17:04 pugs Regarding https://github.com/saltstack/salt-api/issues/142 - I'm experiencing similar issue but using PHP CURL, setting application/json content types, reusable X-Auth-Tokens, but receiving "lowstates must be list" when just trying a test.ping command.  Any ideas?
17:05 whiteinge pugs: what is the JSON you are sending?
17:06 pugs For the post data?
17:06 pugs {"client":"local","tgt":"node01","fun":"test.ping"}
17:08 forrest viq, I'm going to unsubscribe from that issue on the gitlab formula
17:08 forrest it's just too much spam in my inbox ever morning when I wake up :P
17:10 viq forrest: :P
17:10 forrest I need to start filtering github emails
17:11 viq I somewhat already do that
17:11 dstokes anyone know if it's possible to do relative imports w/ jinja? trying to use a macro in a pillar that's defined in a sibling dir. (i.e. import '../states/deploy/lib.sls' as lib)
17:12 whiteinge forrest: filtering github emails ftw
17:12 forrest whiteinge, hell yea! Did you see my messages from yesterday
17:13 whiteinge forrest: i recently found out github sends you email in two different ways (which has changed how I filter): github emails you indirectly for repos you're subscribed to, AND it emails you both directly and indirectly for issues you're participating in.
17:13 forrest yes I hate that
17:13 whiteinge now i have two labels: "notifications" and "issues"
17:13 whiteinge and the world is awesome once again
17:13 forrest I need to remember to do the filtering when I get home, it's been bad the past few months
17:13 forrest which is good
17:13 forrest but still awful
17:14 whiteinge forrest: yeah, saw your email. talked to rhett. i believe that's going up today
17:14 forrest also we should fix the apache formula, https://github.com/saltstack-formulas/apache-formula/issues/8#issuecomment-46279977
17:14 aw110f joined #salt
17:14 forrest The fact that the fastest way is to use your own blows
17:14 forrest whiteinge, sweet!
17:14 whiteinge yeah, the format i put that example pillar in is really confusing people.  :-/
17:15 whiteinge the formula works fine (afaik) it's just the pillar example that needs more explanation
17:15 shaggy_surfer joined #salt
17:17 forrest hmm
17:17 forrest Did you write this before converting to the apache:lookup:var format?
17:17 forrest I could just look at the history I guess
17:17 forrest maybe people aren't realizing all of those apache segments get merged?
17:18 jimklo joined #salt
17:19 mr_chris joined #salt
17:20 tligda1 joined #salt
17:20 mr_chris Is it possible yet to restart salt with salt without it either failing or spawning too many instances of salt-minion?
17:22 pugs whiteinge: have any ideas about that "Lowstates must be a list" with salt-api?  I dumped some REST client libraries to use PHP CURL functions for more control.  I realize any questions with PHP in it bring a certain level of judgement. ;)
17:22 whiteinge pugs: very sorry. i missed your reply
17:23 pugs There's no rocket science here though.  I have a standard PHP array that I'm then running json_encode against and setting as the CURL POSTFIELDS data
17:23 whiteinge pugs: send this instead: [{"client":"local","tgt":"node01","fun":"test.ping"}]
17:23 pugs Hey no problem
17:23 whiteinge you can send multiple commands in a single HTTP request so it has to be a list of dictionaries
17:24 pugs Hmm.. let me give that a try!
17:26 pugs whiteinge: omg, ty - you are my hero.
17:26 whiteinge woot
17:26 tligda joined #salt
17:26 tligda left #salt
17:26 xt whiteinge: remember me complaining about the same thing? :)
17:26 xt but I never found a way to do it using form data
17:26 tligda joined #salt
17:26 xt but json ofc is not a problem since json can be lists
17:27 whiteinge xt: you can't send multiple commands via urlencoded format. only json/yaml
17:27 Joseph I am going to feel stupid if this issue already exists https://github.com/saltstack/salt/issues/13510
17:27 smcquay joined #salt
17:27 Joseph oh well i think its a good idea....worse that can happen is its just closed as a dup
17:28 xt whiteinge: exactly, so why would one ever get that error when using urlencoding :)
17:28 xt that's what I tried to tell you the last time too
17:28 Katafalkas joined #salt
17:32 whiteinge iirc, i couldn't reproduce the error
17:32 xt sent you some details in PM
17:33 joehoyle joined #salt
17:36 * whiteinge looks
17:40 rawzone_ joined #salt
17:41 Flusher joined #salt
17:41 arthabaska joined #salt
17:41 mprymek joined #salt
17:43 dstokes what is the load path for jinja imports? is it relative to the topfile?
17:46 dstokes ugh nvm, relative paths are prohibited in jinja templates? https://github.com/saltstack/salt/blob/a3f36090ec328dd5099336e2ceec44e03971d35d/salt/utils/jinja.py#L100
17:49 dstokes anyone know why relative import paths are not supported in the jinja loader class?
17:49 anuvrat joined #salt
17:50 timoguin try a single period for relative paths. pretty sure that was implemented for state includes, but maybe it'll work for jinja imports too
17:51 druonysus joined #salt
17:51 bhosmer joined #salt
17:52 ironwilliamcash joined #salt
17:52 kedo39 joined #salt
17:53 dstokes `./../other/macro.sls` still errors out with 'relative paths are prohibited'
17:53 dstokes absolute path errrors w/ 'MinionError: Unsupported path:'
17:54 redondos joined #salt
17:54 redondos joined #salt
17:55 vexati0n joined #salt
17:56 kermit joined #salt
17:59 rawzone joined #salt
18:00 jjanyan joined #salt
18:00 jjanyan left #salt
18:02 jchen i'm having some issues with my pillar top file: https://gist.github.com/fly/8076a373e9463cbba49b https://github.com/fly/pillars/blob/master/top.sls#L7
18:02 jchen oh im dumb
18:03 timoguin needs to be grains instead of compound?
18:03 timoguin err *grain
18:03 timoguin oh nevermind. colons.
18:04 ifnull joined #salt
18:05 ifnull I’m trying to debug the issue defined in ticket #12248 https://github.com/saltstack/salt/issues/12248
18:05 ifnull I’m starting to think it is a ZeroMQ issue
18:05 druonysuse joined #salt
18:06 ramteid joined #salt
18:06 ifnull Has anyone experienced any issues with ZeroMQ on Ubuntu 14.04?
18:08 ifnull I’m noticicing that 60-80% of the time this line returns an empty string https://github.com/saltstack/salt/blob/develop/salt/transport/__init__.py#L151
18:10 happytux joined #salt
18:11 jdmf joined #salt
18:15 jdmf joined #salt
18:25 jdmf joined #salt
18:28 netzmonster joined #salt
18:29 vexati0n hey ... so i'm trying to figure out how i can determine, from the minion, whether or not salt is actually functional. the problem is i have a number of minions that are because of network conditions able to connect to ret_port but not to pub_port. so whatever salt-call command i do on the minion succeeds just fine, but it will never actually receive instructions from the master.
18:29 vexati0n is there any way that i can detect this condition using only the minion ?
18:30 Ahlee vexati0n: is specifying an alternate --return out of the question?
18:31 vexati0n not necessarily, but i'm not familiar with that option.
18:31 Ahlee vexati0n: salt is capable of returning via a multitude of options, by default it goes back to the master, but you can have it return to any arbitrary endpoint
18:32 vexati0n well this is the problem. it isn't returning that causes the issue, it's receiving published instructions in the first place.
18:32 vexati0n salt-call always succeeds because it doesn't need to be told by the master what to do, it just does what you tell it to do locally and returns
18:32 vexati0n but i can't tell from that whether or not it's going to receive instructions from the master or not
18:33 Ahlee ah, my mistake. So you're looking for a way for the minion to detect if it's currently able to communicate with the master
18:33 Ahlee rather than asking the master if it can communciate with the minion
18:33 vexati0n right
18:33 JeroenH_ joined #salt
18:34 vexati0n first i tried salt-call test.ping, but that always works no matter what. then i tried cp.get_file, but that also works from salt-call even if it doesn't work from salt on the master
18:34 Ahlee ifnull: that's disturbing.
18:35 ifnull Ahlee: I think I found the cause and it looks to be a known issue with ZeroMQ. http://docs.saltstack.com/en/latest/topics/troubleshooting/master.html#salt-master-stops-responding
18:36 ifnull I’m doing a couple more tests nows
18:36 Ahlee senyes, but you're running ZMQ>4
18:36 Ahlee so is there a regression in zmq?
18:36 forrest can you double check to make sure there aren't any issues with your conf file?
18:37 forrest I believe someone had an issue with that where it threw that error, but they had a conf typo
18:37 forrest so it was just 'passing' over the error
18:37 vexati0n ugh. ZMQ is over 4 now?
18:38 vexati0n i just went through hell to get ZMQ 3 on centos 5.
18:38 Ahlee vexati0n: heh, yeah.
18:38 Ahlee i'm staying on 3.
18:38 Ahlee but, looks like ubuntu is:   ZMQ: 4.0.4
18:38 Ahlee damn kids and their upgrade early upgrade often
18:39 vexati0n i have a bunch of debian 7 machines that i will probably put 4 on, but my centos will probably stay 3 unless someone has a reliable build
18:39 vexati0n ^ assuming this regression talk isn't a big deal
18:41 mprymek joined #salt
18:41 ifnull forrest: i don’t believe it is a conf issue as it works most of the time
18:42 forrest ifnull, ok cool, sorry didn't see that as I didn't go back through all the scrollback
18:43 ifnull I jut tried applying the changes specified in the troubleshooting doc but had no luck http://docs.saltstack.com/en/latest/topics/troubleshooting/master.html#salt-master-stops-responding
18:45 mgw1 joined #salt
18:46 ifnull I’m noticing the same issue occurs when trying to establish the crypted_transfer in L151d https://github.com/saltstack/salt/blob/develop/salt/transport/__init__.py#L151
18:47 ironwilliamcash Hi everyone, I have a question that I cannot seem to find the answer to. I'm trying to apply registry keys to windows through an sls file. But the windows box is a 64bit OS, so when the registry key is applied, it goes to the WOW6432Node path in the registry instead of the regular one. Is there anyway to force a specific path for the keys to be applied to?
18:47 smcquay is there an environment variable that I can set so that I don't have to set -c for all my commands? (non-root user for testing)
18:47 jchen so i'm in a pillar, how do i get the value of a key in another pillar?
18:48 aubsticle_ joined #salt
18:48 forrest ironwilliamcash, as a heads up if you don't get an answer it might be worth opening an issue regarding the ability to specify that if it doesn't exist in the docs, and UtahDave might take a look since he maintains the windows stuff.
18:49 ironwilliamcash Thanks forrest, I looked everywhere and can't seem to find an option to do this.
18:49 forrest ironwilliamcash, yea it might just not exist than. The windows components are pretty awesome, but since they aren't used as heavily as the linux side sometimes stuff gets missed.
18:49 forrest *then
18:50 XenophonF left #salt
18:51 ironwilliamcash forrest, so should I open an issue right away? My only work around right now is to call a batch file to apply the registry key, which kind of defeats the purpose of Salt
18:51 forrest I'd open an issue requesting the feature
18:51 ironwilliamcash Ok, thanks
18:51 forrest especially if you've already confirmed it isn't an option, or a kwarg you can pass for it
18:51 forrest yea np
18:52 forrest ironwilliamcash, I'd tag @utahdave as well
18:52 forrest might be something very quick/easy to implement
18:52 ironwilliamcash forrest, ok cool. I open this directly on github right?
18:52 forrest yep
18:52 ironwilliamcash thx
18:53 forrest np, if you want you can even dive into the code and add it as a PR
18:53 forrest we always love pull requests :D
18:53 ironwilliamcash hahaha no doubt :) , I'll see if I can find a quick answer :)
18:53 forrest cool
18:54 Joseph is there any documentation on the internals of the salt master file server so that if someone wanted to make a PR for new functionality in it, they'd have a starting place?
18:54 Joseph or is it...look at thee source code?
18:54 Joseph :)
18:54 jalaziz joined #salt
18:58 rascharles Another question...I set a role in /etc/minion
18:58 rascharles roles:
18:58 rascharles - web
19:00 rascharles when {{grains.roles}} is rendered from a jinja template it comes out as ['web']
19:00 notbmatt - denotes a list item
19:00 notbmatt your minion file defines {'roles': ['web']}
19:00 rascharles Ah, yaml to python
19:00 rascharles OK
19:04 rascharles notbmatt: That last line you typed is actually JSON format, yes?
19:04 notbmatt python was my intention
19:05 rascharles Thanks for the tip
19:07 notbmatt I suppose it actually compiles to OrderedDict([('roles', ['web'])])
19:09 smcquay_ joined #salt
19:11 forrest joined #salt
19:20 layer3switch joined #salt
19:20 hopthrisC if i execute `salt-call saltutil.running`, why would it ever output
19:20 hopthrisC [INFO    ] Executing command 'iptables --help' in directory '/root'
19:20 hopthrisC ?
19:21 hopthrisC (and then the output of iptables --help
19:22 carmony So I am using Vagrant & Salt, and when I call a highstate I see salt just hung on salt-call saltutil.sync_all
19:22 carmony I strace it and just see "getdents(4, /* 1 entries */, 32768)     = 24" for millions of lines
19:22 hopthrisC that's how my problems started...
19:22 kermit joined #salt
19:23 carmony hopthrisC: there is likely a module for iptables that for it to initialize it checks to see if iptables is installed
19:25 hopthrisC carmony: but why would it have started showing this behaviour only now?
19:26 hopthrisC i'm slightly panicking, here
19:26 carmony any thoughts basepi? :P
19:26 Ryan_Lane that's also annoying the hell out of me, too, since it's broken on os x
19:26 carmony Ryan_Lane: which?
19:27 Ryan_Lane [INFO    ] Executing command 'iptables --help' in directory '/Users/ryanlane'
19:27 Ryan_Lane [ERROR   ] Command 'iptables --help' failed with return code: 127
19:27 Ryan_Lane it's probably a grain
19:27 carmony hrm
19:27 hopthrisC ok, colleague just installed the kernel modules. that explains that
19:27 basepi hopthrisC: ah, glad you figured it out.  was definitely weird that that would start showing up with no change in salt version
19:28 basepi Ryan_Lane: what version are you seeing it on?
19:28 mrTango joined #salt
19:28 Ryan_Lane 2014.1.5
19:28 Ryan_Lane and I see it when calling states
19:29 basepi sounds like some sort of grains change or something, for sure.  can you file an issue if you haven't already?
19:29 Ryan_Lane hm. not a grain
19:29 Ryan_Lane it happens even when using --skip-grains
19:31 cheus So I asked this yesterday but just couldn't find a good practice: when working on a module I had a situation where an argument gained a default value. This is a problem: either we lose backwards compat for those using it positionally or we fail lint because it's declared before ags without defaults. Lesser evil?
19:33 cheus s/ags/args/
19:33 rawzone_ joined #salt
19:34 manfred cheus: https://github.com/saltstack/salt/pull/13489
19:35 cheus manfred, Sweet. Saw that. Fantastic!
19:35 Ryan_Lane ah. I see what it is
19:35 Ryan_Lane basepi: look at the iptables module's __virtual__ function
19:36 manfred Ryan_Lane: it is fixed in develop
19:36 manfred Ryan_Lane: https://github.com/saltstack/salt/commit/4ba24c7a16a739ab3696481060892875be6be220
19:36 carmony what the heck, why would salt-call state.highstate get stuck at "[DEBUG   ] Loaded virtualenv_mod as virtual virtualenv"
19:36 Ryan_Lane manfred: cool
19:38 basepi aaaaand, now it's fixed in 2014.1, so it will be in 2014.1.6 if there is one
19:39 picker joined #salt
19:39 manfred yar
19:39 Ryan_Lane basepi: cool :)
19:41 ahale joined #salt
19:42 Katafalkas joined #salt
19:44 mackstick joined #salt
19:46 jimklo joined #salt
19:46 jimklo joined #salt
19:49 mackstick joined #salt
19:51 mackstick joined #salt
19:53 mackstick joined #salt
19:54 joehoyle joined #salt
20:00 ggoZ joined #salt
20:02 dsolsona joined #salt
20:06 bemehow_ joined #salt
20:10 ipalreadytaken joined #salt
20:12 picker joined #salt
20:13 matrix3000 joined #salt
20:15 Ryan_Lane hm. is there any way to run more than one salt-call process at a time?
20:16 Ryan_Lane it looks like it tracks the pid via pidfile and exits if there's more than one
20:16 danielbachhuber joined #salt
20:17 joehoyle joined #salt
20:17 Ryan_Lane nevermind I think we got it worked out
20:20 joehillen joined #salt
20:20 perfectsine joined #salt
20:20 oz_akan_ joined #salt
20:20 repl1cant joined #salt
20:20 dusel joined #salt
20:20 dude051 joined #salt
20:20 Guest6741 joined #salt
20:20 zsoftich joined #salt
20:20 CeBe joined #salt
20:20 retr0h joined #salt
20:20 jeffrubic joined #salt
20:20 Cidan joined #salt
20:20 xzarth joined #salt
20:20 [diecast] joined #salt
20:20 penguin_dan joined #salt
20:20 scoates joined #salt
20:20 vbabiy joined #salt
20:20 seventy3 joined #salt
20:20 vandemar joined #salt
20:20 kwmiebach joined #salt
20:20 notbmatt joined #salt
20:20 patarr joined #salt
20:20 TheRealBill joined #salt
20:20 modafinil joined #salt
20:20 dancat joined #salt
20:20 twinshadow joined #salt
20:20 renoirb joined #salt
20:20 gwmngilfen joined #salt
20:20 grep_away joined #salt
20:20 EWDurbin joined #salt
20:20 SaveTheRbtz joined #salt
20:20 t0rrant joined #salt
20:20 clone1018 joined #salt
20:20 AnswerGuy joined #salt
20:20 mephx joined #salt
20:20 eagen joined #salt
20:20 goki joined #salt
20:20 pjs joined #salt
20:20 fxdgear joined #salt
20:20 smferris joined #salt
20:20 johtso joined #salt
20:20 tedski joined #salt
20:20 carmony joined #salt
20:20 zdong joined #salt
20:20 nhubbard joined #salt
20:20 londo joined #salt
20:20 alainv joined #salt
20:20 __number5__ joined #salt
20:20 emilisto_ joined #salt
20:20 tonthon joined #salt
20:20 codysoyland joined #salt
20:20 scooby2 joined #salt
20:20 frozenice joined #salt
20:20 wiqd joined #salt
20:20 goodwill joined #salt
20:20 AlexM850 joined #salt
20:20 terinjokes joined #salt
20:20 jasonrm joined #salt
20:20 Gareth joined #salt
20:20 aqua^^ joined #salt
20:20 sirtaj joined #salt
20:20 smkelly joined #salt
20:20 FL1SK joined #salt
20:20 jchen joined #salt
20:20 whiteinge joined #salt
20:20 bwq- joined #salt
20:20 gldnspud joined #salt
20:22 forrest whiteinge, you should link the doc contribution documentation to http://docs.saltstack.com/en/latest/topics/development/contributing.html
20:30 MatthewsFace joined #salt
20:32 druonysuse joined #salt
20:33 smcquay joined #salt
20:34 JasonSwindle joined #salt
20:35 rgarcia_ joined #salt
20:36 jalaziz joined #salt
20:36 mprymek joined #salt
20:36 ifnull joined #salt
20:36 pdayton joined #salt
20:36 thedodd joined #salt
20:36 racooper joined #salt
20:36 philipsd6 joined #salt
20:36 flebel joined #salt
20:36 torrancew joined #salt
20:36 faulkner joined #salt
20:36 basepi joined #salt
20:36 jeremyBass joined #salt
20:36 seblu joined #salt
20:36 vejdmn joined #salt
20:36 jforest joined #salt
20:36 MTecknol1gy joined #salt
20:36 ksalman joined #salt
20:37 arthabaska joined #salt
20:38 ksalman is there a better way of doing this? https://gist.github.com/anonymous/48245be75531a6f06960. Setting timezone on Linux and Solaris is slightly different but that's not a problem. The problem arrises when there are host scattered across the globe and this seems clunky. I have to write nested if statements
20:39 ldlework joined #salt
20:40 racooper just run 'em all at Zulu.
20:40 racooper :p
20:40 oz_akan_ joined #salt
20:41 Joseph ksalman: what about setting the timezone in a pillar?
20:41 Joseph and then just get the pillar in the state?
20:42 ksalman won't that still require if statements?
20:42 Joseph ksalman: probably but they won't be nested and they'll be contained in a separate file
20:43 Joseph ksalman: another option is nodegroups
20:43 Joseph ksalman: one nodegroup for each timezone
20:43 gamingrobot joined #salt
20:43 Joseph ksalman: do you know how you would like to do it?
20:44 ksalman Joseph: i would just like it to be easier to read, something other then nested if statements =)
20:44 ksalman with pillars, why wouldn't they be nested though?
20:45 ksalman there's still multiple OSes and multiple timezones
20:45 AdamSewell joined #salt
20:46 Joseph ksalman: what about setting the timezone as a grain ?
20:46 Joseph custom grain
20:47 Joseph that should avoid all if statements
20:47 ksalman hmm.. now there's an idea
20:47 ksalman i don't know why it didn't occur to me =)
20:47 Joseph and setting the grain should be easy enough because you could just target based on the ip address range
20:48 ksalman probably because i was modifying a simple timezone file and it got out of control after a while
20:48 Joseph totally understand
20:48 ksalman thanks
20:48 Joseph brb
20:48 ksalman that is definitely the answer for me
20:48 Ryan_Lane basepi: that iptables check fix is broken
20:48 Ryan_Lane I left a comment
20:49 Ryan_Lane it's actually more broken now than before
20:50 basepi yay!
20:50 basepi ;)
20:50 Ryan_Lane :)
20:50 forrest Ryan_Lane, the breaker of things
20:50 Ryan_Lane I didn't break that, I left a comment as to why it's broken ;)
20:50 basepi I'm thinking I'm just going to revert it, and then fix it with a quiet flag, rather than moving it
20:50 basepi Because it's just the noisiness that's the problem, right?
20:51 Ryan_Lane well, it shouldn't need to run it at all in __virtual__
20:51 Ryan_Lane you just need to make sure HAS_CHECK is defined
20:51 basepi ah, i'll grab that
20:51 timoguin Ryan_Lane plz stop breaking iptables thx
20:52 thayne joined #salt
20:55 basepi technically it was techhat.  =P
20:55 forrest It was his lack of beard
20:55 forrest clearly the only thing that could impair his judgement
20:55 timc3 joined #salt
20:55 basepi Ryan_Lane: https://github.com/saltstack/salt/pull/13518
20:55 basepi i didn't realize it was still a problem in develop, so i made the change on 2014.1 and then ported it forward to develop
20:58 oz_akan__ joined #salt
20:59 oz_akan__ joined #salt
21:03 manfred basepi: it was fixed in develop?
21:03 manfred oh
21:03 manfred nevermind
21:03 ckao joined #salt
21:03 manfred i see what happened
21:05 basepi yep, just fixed in the wrong order from what i usually do
21:05 basepi because i thought it was already fixed in develop.  =P
21:07 manfred yeah, i saw your fix
21:07 manfred i didn't realize it was broken at all in develop
21:08 conan_the_destro joined #salt
21:08 ipalread_ joined #salt
21:09 arthabaska joined #salt
21:13 pdayton1 joined #salt
21:13 snave joined #salt
21:17 smcquay grrr so why does salt-minion not find apache-libcloud when pip freeze | grep apache says it's there? so confused.
21:18 mafro joined #salt
21:19 * smcquay brushes up on python packaging and error messages.
21:21 n8n joined #salt
21:22 manfred restart the minion?
21:23 manfred or did you run saltutil.sync_all?
21:23 shaggy_surfer joined #salt
21:23 manfred also, check your python path, if pip installed to /usr/local/lib/python2.x, then /usr/lib/python2.x might not see it?
21:23 smcquay I am trying to install a minion via pip so that it can be added to my master.
21:24 smcquay on startup it claims that it can't find libcloud
21:24 smcquay although I can do it interactively
21:24 manfred what do you get when you run 'which salt-call' on that server?
21:25 manfred also, which apache-libcloud version did you install? from pip?
21:26 matrix3000 joined #salt
21:28 will joined #salt
21:28 smcquay from pip; 0.14.1 ?
21:28 smcquay /usr/local/bin/salt-call
21:28 smcquay so /usr/local/bin
21:28 ksk do you try as the user thats running the salt-minion?
21:29 smcquay yeah, launchctl runs it as root.
21:29 manfred where is the apache-libcloud libraries? /usr/lib/python2.x/{site,dist}-packages/apache-libcloud, or /usr/local ?
21:29 arthabaska joined #salt
21:30 thayne joined #salt
21:31 smcquay /Library/Python/2.7/site-packages/libcloud/__init__.py :\
21:32 manfred oh right
21:32 smcquay /usr/lib/python2.7 symlinks to not that location. very odd.
21:32 manfred osx
21:32 manfred ¯\(°_o)/¯
21:32 smcquay ¯\(°_o)/¯ indeed
21:32 smcquay I'll hack this one out. Odd that pip would fail me. this is pip from get-pip
21:33 smcquay yeah, I get minion to launch fine with virtualenv. so it shall be. thanks for the help.
21:34 kermit joined #salt
21:35 mafro lo having trouble with client_acl and filesystem permissions
21:36 mafro can’t run salt-call as a different user becuase they keeping losing rw perms in /var/cache/salt/minion/proc
21:37 mafro salt-master runs as a the user “salt”, so I could feasibly set the umask for that user?
21:39 mafro hmm the minion is set to run as root… might fix it if I switch it over to user “salt” as well
21:41 aw110f Has anyone got pillar scheduler calling highstate to work properly on 2014.1.4?
21:42 ipalreadytaken joined #salt
21:43 forrest mafro, http://docs.saltstack.com/en/latest/ref/configuration/nonroot.html
21:45 chiui joined #salt
21:45 jtang1 joined #salt
21:46 mgarfias is there any modules to manage sshd_config?
21:48 manfred mgarfias: not directly
21:48 manfred mgarfias: just file.replace or file.managed
21:48 mgarfias damn, i was hoping for some magic
21:49 manfred file.replace is probably my prefered method to do that
21:49 bmatt mgarfias: http://www.youtube.com/watch?v=Xv2VqONzMDU (warning, techno) :-]
21:50 aw110f I enabled trace logging in my minion.  Another salt user mentions that he sees  'Check main poller timeout 1' run every second when he has a scheduler running, but I do not on my minion.
21:52 mafro_ joined #salt
21:52 bhosmer joined #salt
21:52 aw110f can someone explain to me what "Check main poller timeout 1" means ?
21:58 matrix3000 joined #salt
21:59 JasonSwi_ joined #salt
22:02 matrix3000 joined #salt
22:05 ajprog_laptop1 joined #salt
22:08 dsolsona joined #salt
22:10 DaveQB joined #salt
22:12 saguilar joined #salt
22:13 CheKoLyN joined #salt
22:16 mateoconfeugo joined #salt
22:19 dangra joined #salt
22:21 chiui joined #salt
22:23 younqcass joined #salt
22:31 bemehow joined #salt
22:31 jimklo joined #salt
22:35 bemehow_ joined #salt
22:47 mosen joined #salt
22:47 dsolsona joined #salt
22:47 Gue______ joined #salt
22:47 redondos joined #salt
22:47 redondos joined #salt
22:49 Gue______ left #salt
22:49 Gue______ joined #salt
22:49 Gue______ left #salt
22:49 ajw0100 joined #salt
22:52 yomilk joined #salt
22:57 forrest has anyone used source in iptables with multiple source IPs
22:57 forrest *?
22:58 mgw joined #salt
23:00 n0c_ left #salt
23:00 n8n joined #salt
23:01 jtang1 joined #salt
23:07 elfixit joined #salt
23:07 Gue______ joined #salt
23:09 Outlander joined #salt
23:11 n8n joined #salt
23:15 patarr could anyone tell me why i get no matching sls found for 'x' in env 'base'?
23:15 patarr I have a init.sls
23:16 TheThing joined #salt
23:16 Joseph patarr: need more info. Are you saying you get a message about "no matching sls" for a minion even though you expect there to be a match?
23:16 bmatt patarr: there's a known bug by which included sls files with syntax errors raise that error
23:16 patarr Joseph: I'm just trying to do a state.sls at a particular minion
23:16 bmatt top.sls -> foo/init.sls -> bar.sls; a syntax error in bar.sls results in "foo not found"
23:16 Joseph patarr: oh so you aren't even runnign a highstate?
23:17 patarr Joseph: no
23:17 Joseph patarr: can you gisthub your init.sls
23:17 bhosmer joined #salt
23:17 travisfischer joined #salt
23:18 JasonSwindle joined #salt
23:21 patarr Joseph: http://pastebin.com/2VhsJv2E
23:21 Joseph patarr: bmatt mentioned that there's a bug with included sls. can you comment out the include and see if the issue still reproduces?
23:21 patarr Joseph: I solved it. On top i have - require logstash/logstash that is wrong
23:21 Joseph patarr: oh okay
23:22 patarr I switched from the format of having somedirectory/someconfig.sls to somedirectory/init.sls
23:22 patarr If I change it to - require logstash then it works just fine.
23:22 patarr Yeah, a more descriptive error output would have been great xD
23:22 forrest patarr, is that logstash/logstash actually an init?
23:23 forrest if so it should instead be logstash, if not logstash.logstash
23:23 patarr That's what I found ^
23:23 forrest ok
23:23 patarr Thanks for your help guys
23:23 forrest sorry I was saying you just changed it to what you pasted
23:23 forrest err thought you were saying :P
23:23 patarr :)
23:27 ifnull joined #salt
23:30 n8n joined #salt
23:33 ipalreadytaken joined #salt
23:39 ipalreadytaken joined #salt
23:40 ipalreadytaken joined #salt
23:43 ipalreadytaken joined #salt
23:43 conan_the_destro joined #salt
23:47 ipalread_ joined #salt
23:49 ipalreadytaken joined #salt
23:57 JasonSwindle joined #salt
23:59 smcquay joined #salt

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