Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-09-15

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

All times shown according to UTC.

Time Nick Message
00:08 anotherZero joined #salt
00:12 aristedes joined #salt
00:12 geraint-jones-nz joined #salt
00:13 geraint-jones-nz does rallytime come here?
00:13 SunPowered joined #salt
00:18 aristedes joined #salt
00:20 murrdoc stalker
00:20 ajw0100 joined #salt
00:20 murrdoc ( i haev no clue, just kidding)
00:21 subsignal joined #salt
00:23 otter768 joined #salt
00:24 dthom91 joined #salt
00:26 mosen hi murrdoc
00:26 murrdoc sup sup
00:26 dthom91 joined #salt
00:28 boob joined #salt
00:28 murrdoc left #salt
00:31 aparsons joined #salt
00:32 jimklo joined #salt
00:33 wendall911 joined #salt
00:34 jmreicha joined #salt
00:34 jodv joined #salt
00:35 aparsons_ joined #salt
00:37 aristedes left #salt
00:38 otter768 joined #salt
00:39 pravka joined #salt
00:48 pravka joined #salt
00:49 pravka joined #salt
00:50 pravka joined #salt
01:04 RandyT SheetiS: np, thanks for taking time to give me a hand
01:10 auzty joined #salt
01:17 Aidin joined #salt
01:22 geraint-jones-nz lol - not quite
01:22 larsfronius joined #salt
01:25 RandyT Greetings all, wondering if someone is around that would be able to work with me to debug an issue that I have identified where 2015.08 fails vs 2015.05 in ec2 deployes
01:25 kira0517 joined #salt
01:26 XenophonF RandyT: maybe i can help?
01:26 XenophonF i'm still running 2015.5.3 though
01:27 RandyT XenophonF: reported a problem to the irc earlier today where 2015.08 ec2 deploys were failing as described in this gist
01:27 RandyT https://gist.github.com/rterbush/e3808758ea05ecaaec1d
01:27 RandyT downgrading to 2015.5.5 seems to make the problem go away
01:33 boob hey there
01:35 SheetiS RandyT: so it _is_ a 2015.08 issue?  If the docs don't indicate a change to syntax in that version, you should probably file a bug report so that it can be addressed as a regression.
01:35 scoates joined #salt
01:40 jmreicha_ joined #salt
01:40 RandyT SheetiS: yes sir, seems that the problem exists in 2015.08 and not 2015.5.5
01:41 RandyT The only doco change I find is the change from the terms "provider" to "driver" in the provider config
01:41 RandyT There may be others I have missed, but so far, no enlightenment
01:41 laax joined #salt
01:43 catpiggest joined #salt
01:45 SheetiS I'd file an issue on github then https://github.com/saltstack/salt/issues.  You may want to see if there is an existing issue that matches first, but on quick glance/kw search, I did not see an existing open issue that matched.
01:45 RandyT SheetiS: yes, searched there earlier as well. I will file the bug. Thanks again for helping me out.
01:46 SheetiS No problem.  Glad you at least got something working.  Hopefully you can do everything you need with 2015.5.5 in the meantime :)
01:47 RandyT making progress...
01:56 RandyT SheetiS: filed: https://github.com/saltstack/salt/issues/27121
01:57 joe_n joined #salt
02:04 dthom91 joined #salt
02:06 dthom91 joined #salt
02:10 anmolb joined #salt
02:28 sunkist1 joined #salt
02:47 jimklo_ joined #salt
03:05 womble Is it (possible|recommended|reasonable) to reference a different variable in a pillar?  Say I've got a list of containers to create on a machine, and I need to specify their IP addresses to the container manager, but I'd prefer not to have to write the IP in multiple places, could I pull it out of a "central list of machines" (with something like `ip: {{salt['pillar.get']('machines:<hostname>:ip')}}`?
03:05 womble Or is that just going to end in tears down the road?
03:06 XenophonF womble: you can't look up the values of pillar keys whilst in the middle of setting pillar keys
03:07 XenophonF if i have a bunch of pillar SLS files that need to use common values, i use the various jinja import statements to load and distribute those values
03:09 clintberry joined #salt
03:09 evle joined #salt
03:13 druonysus joined #salt
03:15 womble Darn.  It was such a nice idea, in theory...
03:16 womble XenophonF: My understanding is that jinja resets variables per-file, so I'd set the variable in some other file, then everywhere I wanted to use it I'd just import that file then use the variable everywhere it was needed.  Is that about the gist of it?
03:20 favadi joined #salt
03:27 sunkist joined #salt
03:29 kuromagi joined #salt
03:29 techdragon joined #salt
03:30 qman__ joined #salt
03:30 NachoDuck joined #salt
03:30 hardwire joined #salt
03:30 berto- joined #salt
03:30 tr_h joined #salt
03:30 evilrob joined #salt
03:30 XenophonF womble: basically, yeah
03:30 [vaelen] joined #salt
03:31 geekatcmu joined #salt
03:31 chutzpah joined #salt
03:31 GrueMaster joined #salt
03:31 esharpmajor joined #salt
03:31 womble XenophonF: C'est la vie.  Thanks for pointing me in the right direction.
03:31 madssj joined #salt
03:31 voxxit joined #salt
03:31 grepory joined #salt
03:32 antonw joined #salt
03:32 XenophonF no problem!
03:41 GrueMaster joined #salt
03:42 esharpmajor joined #salt
03:42 laax joined #salt
03:43 zmalone joined #salt
03:44 NachoDuck joined #salt
03:46 pratikmallya joined #salt
03:48 tkharju joined #salt
03:54 adelcast joined #salt
03:54 choke joined #salt
03:54 qman__ joined #salt
03:55 choke Just setup a reactor and it doesn't appear to be functioning.  https://gist.github.com/ch0ke/6a1f522383cf6d2d62be  has both files, and the command i run along with the output.
04:03 tr_h joined #salt
04:03 dyasny joined #salt
04:03 geekatcmu joined #salt
04:03 berto- joined #salt
04:04 und1sk0_ joined #salt
04:04 [vaelen] joined #salt
04:04 evilrob joined #salt
04:04 techdragon joined #salt
04:04 voxxit joined #salt
04:07 bhosmer_ joined #salt
04:11 virusuy joined #salt
04:11 virusuy joined #salt
04:11 hardwire joined #salt
04:12 skarn joined #salt
04:26 otter768 joined #salt
04:54 st_iron joined #salt
04:54 st_iron hi
04:54 ramteid joined #salt
05:01 stqism joined #salt
05:06 zer0def joined #salt
05:08 anmol joined #salt
05:11 joe_n joined #salt
05:19 mosen joined #salt
05:24 larsfronius joined #salt
05:29 malinoff joined #salt
05:40 whytewolf choke: not enough info. check the minion logs to see if the highstate actually ran [it wouldn't show up in the salt-cloud commands, because it is a seperate independent call.]
05:42 choke I ended up running salt-master -l debug and I see that it does run.. So if I wait 5 minutes I can ssh into the server and have my changes.  So that changes my question to:  How to get that to display in the output when I call salt-cloud to create the minion as I've seen happen in other peoples salts
05:43 whytewolf choke: not sure where you saw someone running a salt-cloud operation that showed a highstate. as that isn't one of the things that normally happen in salt-cloud. do you have an example of this?
05:43 laax joined #salt
05:44 choke My work salt-stack does this...  let me create a new instance right quick and i'll gist up the result
05:44 rdas joined #salt
05:44 whytewolf check the profiles and providers. and was as any userdata that is being run. cause they are not using reactors for that
05:46 whytewolf maybe there are using state_action or something like it
05:47 whytewolf s/state_action/start_action
05:47 zer0def joined #salt
05:48 choke there is a start_action there, and I have that in mine too.  But I just tried it on my works master, and it seems to not do it ( it used to, i'm not going crazy )
05:48 ITChap joined #salt
05:50 TyrfingMjolnir joined #salt
05:51 whytewolf most likely it was the start_action that was causing it. but start_actions are a bit on the wonky side anyway. and sometimes don't work
05:52 choke ahh, quite possible the case.  Here I thought it wasn't running at all, and it was something to do with digital ocean ( my personal salt ) vs ec2 ( work salt )
05:55 choke and with that answer, i'll be able to move on and finish my stack..   thanks whytewolf
05:55 whytewolf no problemo
05:57 Fiber^ joined #salt
06:03 cro joined #salt
06:03 cberndt joined #salt
06:03 FOCer joined #salt
06:04 colttt joined #salt
06:04 Fiber^ joined #salt
06:05 sjorge joined #salt
06:05 sjorge joined #salt
06:08 cberndt joined #salt
06:10 katyucha joined #salt
06:13 trph joined #salt
06:19 favadi joined #salt
06:19 pbrooko joined #salt
06:20 Fiber^ joined #salt
06:21 zer0def joined #salt
06:21 womble jinja question: how do I get a value from a hash, and if the key doesn't exist, use a default value?  Similar to salt['pillar.get']('key', 'default') but for "local" hashes (in this case, it's hashes taken from a for loop over a pillar variable)
06:24 hipikat womble: your_var_from_the_loop.get('key', 'default_val') works (the same as in Python)
06:25 womble hipikat: Thanks!
06:26 womble I'm still not sure just how much Python I can put in my Jinja...
06:27 otter768 joined #salt
06:29 LotR joined #salt
06:37 joe_n joined #salt
06:41 jodv joined #salt
06:44 iggy joined #salt
06:45 petersson joined #salt
06:46 zerthimon joined #salt
06:51 stephanbuys joined #salt
06:52 KermitTheFragger joined #salt
06:53 sroegner joined #salt
06:55 kawa2014 joined #salt
06:56 laax joined #salt
06:57 linjan joined #salt
06:58 GreatSnoopy joined #salt
07:02 lupulcelbun joined #salt
07:06 jfroche joined #salt
07:08 Grokzen joined #salt
07:09 Norrland seems like som man pages are missing https://docs.saltstack.com/en/stage/ref/modules/all/salt.modules.useradd.html
07:10 Ztyx joined #salt
07:11 Norrland ah nvm. /en/latest/ worked.
07:13 stephanbuys left #salt
07:13 Ztyx joined #salt
07:14 Furao joined #salt
07:14 teryx510 joined #salt
07:15 pmcg joined #salt
07:17 petersson joined #salt
07:21 egil joined #salt
07:26 dopesong joined #salt
07:27 malinoff joined #salt
07:33 Furao joined #salt
07:36 markm_ joined #salt
07:44 chiui joined #salt
07:45 losh joined #salt
07:48 impi joined #salt
07:48 Furao joined #salt
07:49 trph joined #salt
07:49 trph joined #salt
07:53 slav0nic joined #salt
07:55 froztbyte """Storing Static Data in the Pillar - SaltStack \n https://docs.saltstack.com/en/stage/topics/pillar/index.html""" -> """404: Page not found \n The page you are requesting cannot be found. Please try one of the following pages instead:"""
08:06 s_kunk joined #salt
08:11 Ztyx joined #salt
08:11 petersson is there a good way to store salt procdures for repetitive tasks? The severe concern I have is that salt is very ahoc shot from the hip and adds risk to service delivery
08:11 babilen froztbyte: stage? You might want to refer to https://docs.saltstack.com/en/develop/topics/pillar/ , but there are probably some issues due to the documentation being rebuild as part of the release process
08:11 froztbyte babilen: that's what google gives me
08:11 babilen petersson: "state" ?
08:12 babilen Well, "SLS file"
08:12 petersson more like ansible-playbook
08:12 froztbyte babilen: I've noticed this a handful of times now
08:12 petersson the state is too loose
08:12 petersson not like a processor you can count on every build
08:12 babilen How so?
08:13 petersson well with roles and playbooks the whole software package is done. consolidated like a processor build
08:13 babilen What is the actual problem you are trying to solve?
08:13 petersson service delivery
08:13 Xevian joined #salt
08:13 petersson running the mcdonalds, subway, ... francise of software
08:13 petersson a consistent devlivery
08:13 freelock joined #salt
08:13 petersson and quality
08:14 petersson my impression is that salt is more reactive
08:14 petersson to it windows admins
08:14 petersson rather than software vendors
08:14 babilen Salt is reactive, yeah. You define a state that should be achieved and, once it has been achieved, it has been achieved.
08:14 petersson got it. thanks.
08:15 eseyman joined #salt
08:15 babilen I still don't get why "I achieved the state you wanted me to achieve" is not what you want. I mean if it isn't in the state you want to achieve then, well, something is wrong with your definition of that state.
08:15 babilen ENOCOFFEE
08:16 petersson the keywork is I
08:16 petersson the roles are critical
08:16 petersson in building a software processor for consistent delivery
08:16 babilen That doesn't mean anything
08:16 petersson "I achieved the state you wanted me to achieve"
08:16 petersson yes actually it does
08:16 petersson I
08:16 petersson too much I in Salt
08:16 pbrooko joined #salt
08:16 petersson for engineering
08:17 petersson its more an admin tool
08:17 petersson rather than an systems and software engineering tool
08:17 zer0def joined #salt
08:17 petersson my assuption is that the incomes are 80k max compared to 150k for better tools
08:17 babilen What is the actual technical problem you are trying to solve?
08:17 petersson which is fine
08:17 pbrooko joined #salt
08:18 babilen nvm, forget that I asked. Have a nice day and may you find more "¬ I" in the world.
08:19 petersson @babilen: if you were to build enterpise saas software ti would be good to have it all in one package.
08:19 petersson currently it looks like Ansible,Tomcat,AWS is the bread and butter
08:19 petersson the salt stack seems very very fat
08:19 petersson for creating world class software
08:20 petersson i.e. http://meiers.io
08:20 petersson I want to keep it as thin as possible and the highest quality
08:21 petersson especially in a recssion where cost is a primary factor
08:23 thefish joined #salt
08:24 petersson this is not political that its weird to have multiple wifes. its just I want to see what the quality of salt administration is.
08:25 petersson perverted sysadmins
08:26 larsfronius joined #salt
08:26 malinoff petersson: can you stop spamming here and just try salt and see how it can help you instead?
08:26 Norrland petersson: did you stumble into any problem when evaluating salt?
08:27 malinoff petersson: it's open source and free, you don't have to pay to try
08:27 monkey66 joined #salt
08:28 petersson yes, i was at linkedin,tango,apple,ge,fed,ibm, and many other recently consulting
08:28 petersson and evaluated each of the tools
08:28 petersson puppet,salt,ansible
08:28 otter768 joined #salt
08:28 petersson I agree my evaluation may seem spam. it was so much quality time with each organization
08:29 petersson i know all three very well
08:29 Norrland petersson: any relevant regarding salt?
08:29 petersson yes, noone actally used it
08:30 malinoff petersson: this conversation may become extremely more productive if you'd have your thoughts and evaluation results formed into a whitepaper
08:30 babilen petersson: This is a technical support channel. Please, if you have a *specific* technical problem you require help with or, even, a broader question with a clearly defined scope then, by all means, feel free to ask it. You monologue on the other hand right now is neither constructive nor conducive to discussion.
08:30 petersson ITIL and TOGAF are service support
08:31 petersson ITIL (Service Deviver & Service Support ) are technical support
08:31 petersson the question of software delivery like a processor manufactuing is ITIL (service devliery )
08:31 petersson its a higher engineering level conversation.
08:32 petersson anyways. it was a pleasure meeting you and I wish you the best of luck
08:32 babilen wtf?
08:33 malinoff babilen: hi - nobody uses salt - bye
08:33 malinoff quite constrictive :)
08:33 Ztyx joined #salt
08:33 Norrland maybe contact the enterprise part of saltstack for questions regarding process implementations.
08:34 kawa2014 joined #salt
08:34 cyborglone joined #salt
08:34 petersson just kill it it's odd. I give it 1 maybe 2 more years. sorry, dont shoot the messenger. its lifecycle software. even good stuff like tivoli framework died. who cares.
08:35 petersson rest in peace salt
08:35 petersson sorry
08:37 babilen I can only repeat myself: wtf?!
08:38 rofl____ pretty much
08:38 rofl____ :O
08:38 rofl____ enough with the bath#salt
08:38 babilen heh
08:39 harkx joined #salt
08:39 ThomasJ O.o
08:39 keimlink joined #salt
08:39 ThomasJ And this started out like a normal day
08:40 ThomasJ Now... not so sure anymore
08:40 elsmo joined #salt
08:44 larsfronius joined #salt
08:45 babilen Lets just pretend this never happens and be happy about the new salt release!
08:45 babilen *happened
08:50 briner joined #salt
08:50 losh joined #salt
08:53 keimlink joined #salt
08:54 Aidin joined #salt
09:08 Aidin joined #salt
09:15 Ztyx joined #salt
09:16 irctc392 joined #salt
09:25 sirex joined #salt
09:26 Ztyx1 joined #salt
09:28 pankaj joined #salt
09:41 Phil-Work I'm being thick but... I can't work out how to use a formula
09:41 Phil-Work I've installed the formula and configured the formulas directory in the master config
09:42 Phil-Work I've created a pillar with the hostgroup specific data
09:42 Phil-Work how do I get this formula to start deploying the relevant stuff to those hosts? https://github.com/saltstack-formulas/nginx-formula
09:44 babilen Phil-Work: Could you paste your configuration (master config), directory layout, state + pillar top.sls and referenced SLS files to one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, http://dpaste.de, … ?
09:48 babilen (oh, and your command + output)
09:48 jhauser joined #salt
09:48 Phil-Work babilen: https://gist.github.com/phil-lavin/ab2fc7fb15a07011e46e
09:49 Phil-Work babilen: https://gist.github.com/phil-lavin/aa6c460d2ddc0820cb88
09:49 Phil-Work added command and output
09:50 babilen Did you restart the master after making changes to its config?
09:50 Phil-Work yes
09:50 Phil-Work just restarted again to be sure - still the same
09:53 babilen What does "salt '*' cp.list_master" and "salt '*' cp.list_states" give you?
09:58 babilen brb
10:00 Phil-Work babilen: sorry, got distracted
10:00 Phil-Work https://gist.github.com/anonymous/285823baee5bae85dd9d
10:05 babilen Phil-Work: Anything interesting in the logs if you run the master in debug mode? That means: 1. Stop the service 2. Run "salt-master -ldebug"
10:07 Phil-Work the fscking init script isn't stopping it...
10:07 Phil-Work that might be the issue
10:07 Phil-Work really dislike systemd
10:07 babilen This is unlikely to be related to systemd. How are you stopping it and how did you restart it before?
10:07 Phil-Work systemctl stop salt-master.service
10:09 babilen Does saltstack ship unit files now?
10:10 sgargan joined #salt
10:10 bhosmer joined #salt
10:10 Phil-Work not by the looks of it, actually
10:10 Phil-Work but it does seem the init script tries to use systemd on Debian
10:11 babilen So, what does "service salt-master stop" give you?
10:11 Phil-Work no output
10:11 Phil-Work init script says
10:11 Phil-Work root@salt-01:/srv/salt# /etc/init.d/salt-master stop
10:11 Phil-Work [ ok ] Stopping salt-master (via systemctl): salt-master.service.
10:11 babilen Or running the init script directly ... but then: What is the actual problem? What does "systemctl status salt-master.service" give you?
10:12 Phil-Work https://gist.github.com/anonymous/16beb979bb7d3f41986b
10:12 Aidin joined #salt
10:13 babilen Any salt-master processes?
10:13 Phil-Work a few, yes
10:13 babilen Kill them with fire!
10:13 Ztyx joined #salt
10:14 Phil-Work killed with fire
10:14 Phil-Work systemctl started it again ok
10:14 Phil-Work however stop still doesn't work
10:18 babilen This is on jessie I guess?
10:18 slav0nic git.latest in 2015.8.0 now require `identity:` and ignoring user keys, this is bug or feature?)
10:18 Phil-Work babilen, yeh - jessie
10:19 babilen slav0nic: There were plenty of git related changes: https://docs.saltstack.com/en/latest/topics/releases/includes/git-2015.8.0.html
10:21 babilen Phil-Work: Either way: I take it that nginx is now being found?
10:22 Phil-Work babilen, it is - thanks
10:23 giantlock joined #salt
10:23 slav0nic babilen, i know but i don't see any identity info
10:23 babilen slav0nic: Sorry, I haven't had any time to play with 2015.8.0 yet, I just read the release notes and remembered that it contained a lot of information on git.*
10:24 babilen (I can't use 2015.8.0 as I'm not allowed to deploy the new packages as they are in contrib and not main)
10:24 slav0nic okey tnx, new features - new bugs B)
10:24 babilen \o/
10:24 * babilen guesses that it might not be a bad thing that he has to wait for 2015.8.1 before he switches
10:29 otter768 joined #salt
10:31 bytemask joined #salt
10:32 gchao joined #salt
10:32 stevednd joined #salt
10:32 xenoxaos joined #salt
10:33 Edgan___ joined #salt
10:34 lupulcelbun joined #salt
10:41 Furao joined #salt
10:44 zer0def joined #salt
10:53 ujjain joined #salt
10:53 ujjain joined #salt
10:53 thalleralexander joined #salt
10:54 thalleralexander hi im using salt 2015.5.3 and was wondering if there is a way to print the path from which the saltmaster will load _modules from? i have problems that modules arent found and not distributed to minions and wanted to check if im using the right folder.
10:55 giantlock joined #salt
10:57 laax joined #salt
10:57 Rumbles joined #salt
10:58 Furao joined #salt
11:00 Phil-Work using the nginx formula from https://github.com/saltstack-formulas/nginx-formula - if I change the name of or delete a vhost, it creates a new config and leaves the old one in place
11:02 Phil-Work does anyone have an example of doing a cleanup of files based on an exclusion list?
11:05 Phil-Work also... has someone changed the website to royally break search results? :(
11:17 lampshades joined #salt
11:18 Diaoul joined #salt
11:22 unholycrab joined #salt
11:25 Furao joined #salt
11:26 slav0nic Phil-Work, have same problem, i usually set temporary salt.states.file.absent for old configs
11:29 Furao joined #salt
11:34 Phil-Work slav0nic, ok, thanks
11:39 slav0nic Phil-Work, check also this https://github.com/saltstack-formulas/salt-formula/blob/master/salt/minion.sls#L8-L15
11:39 gwmngilfen joined #salt
11:39 Phil-Work I saw recurse but it seems to be used for copying directories full of files
11:40 Phil-Work files here are created with templates
11:40 slav0nic yep, if u not managed all config files this is not good, but i don't think that u can find better solution
11:48 aristedes joined #salt
11:48 aristedes left #salt
11:49 stephanbuys joined #salt
11:52 deus_ex joined #salt
11:54 wnkz joined #salt
12:00 TooLmaN joined #salt
12:05 giantlock joined #salt
12:08 breakingmatter joined #salt
12:12 GabLeRoux joined #salt
12:12 tmclaugh[work] joined #salt
12:13 JDiPierro joined #salt
12:20 sgargan joined #salt
12:21 impi joined #salt
12:21 lampshades joined #salt
12:23 renat joined #salt
12:27 renat Hello! Who know how match the list of minions via rest_api? In salt cli tool I use -L, but how pass list into tgt parameter?
12:28 zerthimon joined #salt
12:28 dthom91 joined #salt
12:30 Phil-Work this is driving me nuts... how should this be indented to stop it whining? https://gist.github.com/phil-lavin/0a6bf7cfe8e242d372cc
12:30 otter768 joined #salt
12:30 Phil-Work presently I get: expected <block end>, but found '?' in file.absent
12:31 mapu joined #salt
12:33 dyasny joined #salt
12:37 JDiPierro joined #salt
12:41 zer0def joined #salt
12:45 DammitJim joined #salt
12:45 Furao joined #salt
12:49 dthom91 joined #salt
12:49 totte left #salt
12:53 shiriru joined #salt
12:53 Phil-Work this is infuriating!
12:56 murrdoc joined #salt
12:59 malinoff joined #salt
13:02 ferbla joined #salt
13:02 dthom91 joined #salt
13:03 sgargan joined #salt
13:04 singke joined #salt
13:05 singke hi
13:07 bhosmer joined #salt
13:09 nofxrok joined #salt
13:11 thefish joined #salt
13:14 timoguin joined #salt
13:21 shiriru joined #salt
13:22 subsignal joined #salt
13:22 yidhra joined #salt
13:23 dthom91 joined #salt
13:27 nofxrok joined #salt
13:29 cyborglone joined #salt
13:30 laax joined #salt
13:32 pravka joined #salt
13:34 bhosmer_ joined #salt
13:34 win_salt joined #salt
13:34 TooLmaN Kind of a general Ubuntu Server question:  I am adding some old servers to my salt setup.  When I add a couple of them, the key-name is "servername.domain.com."  This is the old way we did it.  I have changed the resolv.conf files/folders and hostname file.  Salt still sees the new key in the old name format.  Where do I change the server hostname to exclude the domain portion?  Thanks
13:37 protoz joined #salt
13:38 FOCer joined #salt
13:40 cpowell joined #salt
13:50 perfinion TooLmaN: set the id: in /etc/salt/minion and then set domainname: example.com
13:51 _Kev_ joined #salt
13:52 Akhter joined #salt
13:52 _Kev_ Hello - can anyone help  me with authentication issues to the salt-api using the python requets module? (all works fine from curl command line). Or does anyone have any examples of using the salt-api with the requests module and json. Optionally usint the /run interface for auth and the wheel client too :)
13:52 dthom91 joined #salt
13:53 TooLmaN perfinion: perfect thank you kindly
13:53 DammitJim joined #salt
13:53 TooLmaN What is the recommended way to install salt?  The docs show adding the repo manually and running the bootstrap script.
13:54 dthom91 joined #salt
13:54 TooLmaN Is one type preferred over another?
13:55 bluenemo joined #salt
13:58 murrdoc its up to you
13:58 murrdoc i prefer to use pacakges
13:58 cresten joined #salt
13:59 murrdoc some people prefer the wild ride that is github:develop
13:59 murrdoc :)
13:59 murrdoc some prefer using github tags
14:03 TooLmaN murrdoc: I've grown accustomed to the bootstrap script.  Still quite new with salt.  Thanks
14:03 scoates joined #salt
14:08 Aidin joined #salt
14:11 kevinquinnyo joined #salt
14:12 kbaikov joined #salt
14:12 s_kunk joined #salt
14:13 zmalone joined #salt
14:13 sunkist joined #salt
14:15 mpanetta_ joined #salt
14:18 k00l joined #salt
14:18 k00l hey gang, my master just started ignoring my minions, anyway to reset it so it will accept the keys and such ?
14:19 k00l I can see the key requests comming from the minion through the event bus
14:19 zwi joined #salt
14:19 k00l but the master refesuses to see them
14:22 tanta joined #salt
14:22 andrew_v joined #salt
14:24 murrdoc status salt-master
14:25 k00l for me ?
14:27 llua joined #salt
14:30 cresten Hey guys, I’m about to dive into doing this huge salt implementation to orchestrate our rethinkdb servers, and I’m curious how you all facilitate development in saltstack
14:30 cresten currently I’m concerned with the long turn-around for developing the salt states on my local machine, and then having to upload it to a server and testing it on my cluster
14:31 otter768 joined #salt
14:31 cresten any protips how to make this faster?
14:35 zer0def joined #salt
14:37 timoguin joined #salt
14:37 kbyrne joined #salt
14:37 StolenToast I'm pretty new too but could you define the state you want and put it in the environment you want.  Then when you develop you edit the top file to push that state to your test machine, and when you want to try it in prod you push it to the real one.
14:38 _JZ_ joined #salt
14:38 StolenToast sorry the sentence is grammatically weird, I kind of developed that one as I typed...
14:38 petersson joined #salt
14:39 k00l hey gang, my master just started ignoring my minions, anyway to reset it so it will accept the keys and such ?
14:39 k00l I can see the key requests comming from the minion through the event bus
14:39 k00l but the master refesuses to see them
14:39 StolenToast That's how I'm doing it, though.  I've made aliases to use sed and automagically dis/enable the production node from my top file
14:39 thefish k00l: does salt-key show any of them as denied?
14:39 k00l no it dosnt show any keys
14:39 k00l but the venet system shows the auth as pending
14:40 thefish k00l: so `salt-key -L` shows zero keys?
14:40 k00l thefish: yes
14:40 kbyrne joined #salt
14:41 SheetiS joined #salt
14:41 thefish k00l: what do you see with ls /etc/salt/pki/master/*
14:42 k00l thefish: nothing
14:42 thefish ouch
14:42 k00l well i mean it shows my masters pem files and a list of thing like denied minions and such but there are no minions listed
14:43 thefish i dont know if there's trick to getting the minions to retry sending their keys, restarting the minion service might do it
14:43 k00l thefish: sorry not "nothing " in the traditional sence
14:43 k00l ya restrated master and minions like 20 times.. very frustrating this Saltthing.
14:43 thefish ^ also assuming you have connectivity/firewall config correct etc
14:44 k00l like 3rd time i will have had to rebuld teh master ...grr.
14:44 thefish k00l: stay with it, its awsum once you get the hang of it
14:44 k00l no filre wall can ping the minions and masters from everywhere
14:44 k00l thefish: id really like some more documentation
14:44 thefish ive found the docs pretty good
14:45 thefish do you have the master as a minion to itself?
14:45 k00l thefish: or an accual troubleshooting guid. im feeling VERY uneasy about using Salt to release a production system
14:45 k00l no its a seperate systems
14:46 k00l i even tryed a full purge and resinatll of teh master
14:46 thefish on one of the minions, stop the minion service, delete the minion_id file, start the minion service. once done run salt-key -L again
14:46 thefish also tail the minion log to see if theres anything coming up in there
14:48 thefish k00l: and while thats happening, tail the master log
14:48 k00l looking now
14:48 masterkorp Is it possible to tell the salt-bootstrap script an option with the ip on the salt-master
14:48 masterkorp ?
14:48 masterkorp I need a quick dirty way of doing it
14:49 zmalone joined #salt
14:49 thefish masterkorp: export BS_SALT_MASTER_ADDRESS=yourmasterhere
14:49 FOCer joined #salt
14:50 thefish masterkorp: look in the top of the bootstrap file, there are a couple of handy env vars you can set
14:50 k00l thefish: restart the master in open mode ?
14:50 thefish k00l: no
14:50 k00l thefish: The Salt Master has rejected this minion's public key! To repair this issue, delete the public key for this minion on the Salt Master and restart this minion. Or restart the Salt Master in open mode to clean out the keys. The Salt Minion will now exit.
14:51 k00l thefish: are they talking about the pki folder ?
14:51 thefish k00l: salt-key -L should now show at least one rejected key
14:51 thefish k00l: yes, salt-key looks there
14:51 dthom91 joined #salt
14:51 k00l thefish: no it dosnt show any keys at all
14:52 thefish k00l: grep pki_dir /path/to/master/config
14:54 k00l thefish: yep thats the right directory
14:55 Akhter joined #salt
14:55 Nagyman_ joined #salt
14:55 thefish k00l: does salt-key -L show *any* keys?
14:55 pratikmallya joined #salt
14:55 k00l thefish: nope
14:55 k00l thefish: and i have even purged the install and reinstalled it
14:56 thefish k00l: anything in the master log?
14:56 k00l empty
14:57 XenophonF fellow windows sysadmins - here's a new interface for Windows servicing via DISM, https://github.com/irtnog/active-directory-formula/blob/master/_modules/windows_servicing.py
14:57 thefish k00l: in master config, change log_level to debug, restart master, and check you get logging to wherever log_file is pointed (i think default is /var/log/salt/master)
14:58 k00l its always at debug level
14:58 XenophonF right now, all it does is install Windows features, but in contrast with salt.modules.win_servicemanager, this should actually work across all versions and all editions of Windows since Windows Vista
14:58 k00l thefish: its always at debug level
14:58 TomJepp XenophonF: ooh, useful
14:58 XenophonF I'd appreciate any feedback.
14:58 thefish k00l: then something is badly broken - you should see at least some log with that
14:58 masterkorp thefish: thanks
14:58 k00l yeah i was thinking that myself.
14:58 XenophonF My end goal is to wrap all Windows servicing operations exposed by DISM.
14:58 thefish k00l: is your master running on a dedicated vm/box?
14:59 giantlock joined #salt
14:59 k00l thefish: yes
14:59 thefish k00l: selinux?
14:59 XenophonF That includes operating on offline images.
14:59 k00l thefish: ubuntu
14:59 thefish k00l: what version of salt-master?
14:59 TomJepp XenophonF: I will definitely keep an eye on it. may be helpful for automated deploy of IIS-based web servers for ASP.NET apps
14:59 fish_ left #salt
14:59 k00l thefish: salt-master 2015.5.3 (Lithium)
15:00 TomJepp as in automated roll out of the VM, etc
15:00 XenophonF TomJepp: I'm heading in that direction myself.  However, since I'm a glutton for punishment, I'm going to tackle AD FS and SharePoint deployment.
15:00 TomJepp "SharePoint" poor you
15:00 thefish k00l: disk full? can you touch /etc/salt/pki/master/minions/foo
15:01 k00l thefish: no the disk has lots of space
15:01 thefish XenophonF: that sounds quite painful, hope you're going to do a write-up
15:02 XenophonF thefish: i'm going to do a salt state formula, likely based on autospinstaller
15:02 racooper joined #salt
15:02 thefish k00l: can you touch a file in pki/master/minions?
15:02 thefish k00l: and is the salt-master def running
15:02 k00l thefish: yes it worked
15:03 malinoff joined #salt
15:03 pdayton joined #salt
15:03 k00l salt-master start/running, process 3418
15:03 thefish k00l: you prob want to delete that file you touched, or salt-key will get confused
15:03 k00l thefish: no worries there. looks liek another reinstall is in order.. i fear i may have choosen the wrong platform with salt
15:04 k00l thefish: thansk for teh trouble shooting mate.
15:04 thefish k00l: give chef a try then, and keep sharp instruments away from your desk ;)
15:04 k00l thefish: LOL, yeah
15:05 thefish k00l: prob doc every single command you run for the master install, something very abnormal happened ther
15:05 thefish k00l: if you have no minions (and no states i guess), just make a new vm and bootstrap, its quick
15:06 k00l thefish: i have tons of stuff built that i have to migrate. its very anoying
15:06 thefish k00l: you have tons of states?
15:06 k00l yes i have been working on this for weekens
15:06 k00l thefish: weeks *
15:06 thefish k00l: still all good, the states are separate from the master
15:07 thefish just copy the state tree in and you're done
15:07 k00l yep
15:07 thefish make sure that your master isnt accidently a minion as well, and some state is wiping things out
15:08 thefish (though we have the master as a minion here, so all its state is in git)
15:08 debian112 joined #salt
15:10 pdayton1 joined #salt
15:13 polishdub joined #salt
15:14 PeterO_ joined #salt
15:21 Brew joined #salt
15:22 jimklo joined #salt
15:25 anotherZero joined #salt
15:25 dthom91 joined #salt
15:25 RedundancyD joined #salt
15:27 Nagyman_ hi all, salt novice here. trying to architect a reasonable environment configuration based around pillars. If anyone is able to provide any guidance, much appreciated! I'm not sure how to "run" salt against the environments... or if that even makes sense. I have a gist here that outlines the setup I'm trying to achieve and some questions.
15:27 Nagyman_ https://gist.github.com/Nagyman/cc11a8eb9ee4070e3f11
15:29 Brew joined #salt
15:30 dopesong joined #salt
15:31 iggy personally, I'd avoid salt environments unless you just have a really good reason to work with them
15:32 TooLmaN Does the install_salt.sh script install salt-syndic, salt-cloud, salt-ssh, and salt-api?
15:32 dthom91 joined #salt
15:32 TooLmaN Or more directly, the bootstrap script?
15:33 jalbretsen joined #salt
15:33 StolenToast Nagyman_: this is probably the most useful tut: https://docs.saltstack.com/en/latest/topics/tutorials/states_pt1.html
15:33 StolenToast explains how to set up the states and run them "against" the state you define
15:34 StolenToast and you need at least one environment for salt to work
15:35 win_salt joined #salt
15:36 Nagyman_ iggy: interesting. maybe confusing that the salt docs seem to recommend them (or at least no strong recommendation against)... what's the alternative for having different pillar data for different machines? just name the files differently and use them in the pillar top file with machine targetting?
15:36 debian112 joined #salt
15:37 iggy Nagyman_: that's what I'd do
15:37 iggy we went the multiple masters route and had a custom grain that pulled something similar to an environment from GCE metadata
15:38 iggy then we just used things like `  - rsyslog.{{ ocsenv }}` in the pillar top file
15:38 aparsons joined #salt
15:40 XenophonF man, i wish python had a proper MULTIPLE-VALUE-BIND
15:41 pdayton joined #salt
15:42 iggy tuples don't work? (I know 0 lisp)
15:46 murrdoc if i do salt * state.highstate on a master with 300 minions
15:46 Nagyman_ StolenToast: I've been through those tutorials... looking at this practical example https://docs.saltstack.com/en/latest/topics/tutorials/states_pt4.html#practical-example  .... I'm not sure how Salt determines that it should operate in the "dev" environment. Does salt just look for the machine glob regardless of environment, and work backwards to determine
15:46 Nagyman_ in which environment that machine exists then pick the pillars that apply in such?
15:46 murrdoc will every one get highstated
15:47 StolenToast I think the default env is defined in files_roots
15:47 ITChap joined #salt
15:47 StolenToast so if nothing is defined it will find the first environment list in file_roots that can satisfy the state (provide all teh files it needs)
15:50 StolenToast 'web*dev*':
15:50 StolenToast - webserver.dev
15:50 StolenToast Nagyman_: I think that's how it works
15:50 favadi joined #salt
15:51 aparsons joined #salt
15:54 aparsons_ joined #salt
15:55 rim-k https://github.com/UtahDave/salt-vagrant-demo
15:55 petersson joined #salt
15:56 rim-k this Vagrantfile doesn't work :/
15:56 rim-k first, it fails with colorize shouldn't exist
15:56 PeterO_ rim-k: grab a CentOS image
15:57 rim-k then, it fails with pub and private keys should be specified (which is already the case in the Vagrantfile)
15:57 PeterO_ rim-k: https://gist.github.com/polds/c874f405c0d0197a952e
15:57 malinoff joined #salt
15:58 PeterO_ Specifically notice the bootstrap_options
15:58 rim-k I see
15:58 rim-k thank you PeterO_
15:58 rim-k is this the issue?
15:59 rim-k I'll take a look at the bootstrap script
15:59 rim-k and see what those parms are
15:59 PeterO_ I only need those flags when running Vagrant for some reason.
15:59 rim-k mmm
16:00 rim-k have you ever got the issue?
16:01 cresten left #salt
16:02 dbruns joined #salt
16:03 choke joined #salt
16:03 alemeno22 joined #salt
16:03 tanta the svn state looks a little rough
16:04 slav0nic joined #salt
16:05 murrdoc salt-call state.highstate
16:05 murrdoc Killed
16:05 murrdoc whuutt
16:07 dijit murrdoc: probably OOM?
16:07 dijit strace it to see what happens before death.
16:09 murrdoc thanks diljit
16:09 writtenoff joined #salt
16:09 murrdoc good call
16:10 Cyis I could really use a sanity check. Given the example https://gist.github.com/jbouse/5a796463cd976d00771c would it make sense to use a jinja file to massage the pillar data or simply attempt to put the necessary logic into the state file itself?
16:10 hasues joined #salt
16:10 hasues left #salt
16:11 murrdoc yes
16:11 viq joined #salt
16:11 rm_jorge joined #salt
16:12 pratikma_ joined #salt
16:15 Cyis murrdoc: was that intended in response to me or someone else?
16:15 bluenemo joined #salt
16:15 murrdoc sorry someone else
16:16 Cyis murrdoc: :) okay I thought that might be the case
16:16 murrdoc in some other window even
16:16 zer0def joined #salt
16:16 Cyis murrdoc: if that doesn't sound all too familiar :)
16:17 murrdoc also yes use jinja
16:17 murrdoc like in the state file itself iterate over the pillar
16:18 Cyis that's what I thought and was trying to find some example to look at how to store it to pass on for use by the state.
16:19 TheRealBill joined #salt
16:19 JDiPierro joined #salt
16:22 Grokzen Is there anything on the minion side that uses the client_acl or external_auth config, or do the minion ignore those settings?
16:24 dthom91 joined #salt
16:24 timoguin joined #salt
16:26 bhosmer joined #salt
16:27 dthom91 joined #salt
16:28 losh joined #salt
16:31 jodv joined #salt
16:32 otter768 joined #salt
16:32 dthom91 joined #salt
16:36 sbogg joined #salt
16:36 bhosmer joined #salt
16:38 RandyT Is there a good place to report 404 errors for docs served by docs.saltstack.com?
16:39 XenophonF Cyis: are you just deploying a bunch of ZIP files, or do you want to unpack them using salt?
16:39 XenophonF Cyis: because you can just use a salt:// URI with the archive.extracted state
16:39 RandyT or someone to just ping the admin to check the error log?
16:40 petersson joined #salt
16:40 XenophonF iggy: tuples do work but i find them awkward compared to how i'd do multiple return values in a language like common lisp
16:41 XenophonF i wonder if there's a way to use changes data to signal another state to do something, like, not just that a change happened, but that a particular kind of change happened
16:41 XenophonF e.g., installing a windows feature vs. installing a windows feature that requires a reboot
16:42 * Phtes hates yaml
16:42 Cyis XenophonF: Ultimately it needs to extract the zip file into the appropriate directory... I'm just trying to normalize the data and get it formatted for the state so that it doesn't have to include the logic... this is part of that rewrite I had previously mentioned with my former counterpart leaving last week
16:44 pcn Any word on when 2015.5.5 will be in the ubuntu ppa?
16:47 bhosmer__ joined #salt
16:48 Phil-Work if I have a grain called 'roles' which is a list of roles, what is the if statement syntax to check if a single string exists within that list?
16:48 XenophonF Phil-Work: if 'foo' in grain.get['roles']
16:48 XenophonF or something along those lines
16:49 Phil-Work thanks
16:49 XenophonF you really, really want to read the jinja docs
16:49 XenophonF http://jinja.pocoo.org/docs/dev/templates/
16:50 XenophonF https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html
16:50 XenophonF Phil-Work: those two links plus the various examples in the https://github.com/saltstack-formulas repo will answer a lot of the "how do i do X" questions
16:51 Phil-Work thanks
16:51 bhosmer joined #salt
16:54 FOCer joined #salt
17:00 GabLeRoux joined #salt
17:00 jodv joined #salt
17:01 k00l joined #salt
17:01 jimklo joined #salt
17:02 forrest joined #salt
17:04 forrest_ joined #salt
17:04 dopesong joined #salt
17:04 Cyis XenophonF: the path would work out to something like {{ drive }}\{{ root_path }}\{{ site }}\{{ path }} where site would be iterated through websites if  platform:role:websites:XXX:root_path didn't exist default to platform:role:root_path
17:07 breakingmatter joined #salt
17:08 k00l thefish: I created a new master and all is good
17:08 cyborglone joined #salt
17:08 XenophonF sounds like a job for a couple of nested for loops, Cyis
17:10 Gareth o/
17:13 pcdummy joined #salt
17:17 murrdoc \o
17:18 pcdummy joined #salt
17:19 malinoff joined #salt
17:20 malinoff joined #salt
17:22 alainv joined #salt
17:23 Phtes Anyone able to assist, getting a LC failed to create, and ASG failed to create heres my state http://pastebin.com/Qpt1qbSX
17:23 Phtes keys omitted obviously, but i have them in the state
17:23 malinoff joined #salt
17:24 twork i've goofed up something i can't find. extending the formula for vsftpd: https://gist.github.com/mjinks/84003b56b815ddfb780b
17:25 impi joined #salt
17:26 twork i've had that pattern (commented out where it should't be) before, and it's always been a typo somewhere higher up the template, but i'm not finding any such thing now
17:26 aw110f joined #salt
17:27 _JZ_ joined #salt
17:28 malinoff joined #salt
17:29 beastea joined #salt
17:29 w1gz joined #salt
17:29 malinoff joined #salt
17:29 choke joined #salt
17:29 beastea hello
17:30 Brew joined #salt
17:31 twork ...and... something seems to switch between the working entries (long list) and the broken ones, with nothing in between. but above, fine, below, commenting out.
17:32 bhosmer joined #salt
17:34 tanta joined #salt
17:35 vdmo left #salt
17:35 Bryson joined #salt
17:35 teebes joined #salt
17:37 darkhuy_ joined #salt
17:37 JDiPierro joined #salt
17:37 beastea can anybody suggest anything on mine.get usage?
17:37 beastea https://gist.github.com/beastea/a53e967e09e0f45d3408
17:37 pcn Or the timeline for 2015.08.0 for ubuntu?
17:38 murrdoc github saltstack formulas , hostfile formula
17:38 beastea here is my configuration for mine.get
17:39 beastea but I've got nothing after state.highstate run
17:39 beastea can you please suggest something
17:40 stephanbuys joined #salt
17:41 Cyis XenophonF: yeah... but if I'm doing this in jinja to prepare the resulting nested stucture to the state so I could use a "{% from "..." import blah with context %}" do I just set an array inside the jinja and then append to it as I iterate through the loops?
17:42 pdayton joined #salt
17:42 Phtes Anyone able to assist, getting a LC failed to create, and ASG failed to create heres my state http://pastebin.com/Qpt1qbSX  checked logged no helpfu lerrors other than "failed to create"
17:46 bhosmer joined #salt
17:46 pcn Phtes: can you do the ASG create on the system with the AWS CLI or with boto directly?
17:46 twork progress, sort of. my trouble seems to arise from weirdness in the macros in the vsftpd formula. if anybody's following along: switching my template's "{{ option(..." to "{{ option_default_uncommented..." fixes the issue. but the behavior is reversed above the point i indicated.
17:47 Phtes pcn I can create ASG's and LC's in the aws console, and python boto
17:47 pcn e.g. instant_type != instance_type
17:49 Phtes pcn also made a LC in aws CLI thats a mimic of the salt one just to be sure :/
17:49 pcn Phtes: that looks like a typo that could break
17:49 Phtes ohhh
17:50 Phtes you are correct :)
17:50 Phtes still fail :( haha
17:51 pcn Phtes: scrpits -> scripts
17:51 pcn etc
17:51 pcn ?
17:51 Phtes holy hell, yeah I see them now..need more coffee
17:52 zmalone joined #salt
17:53 tanta is there a way to force salt to re-read the /etc/salt/grains file during a state run?
17:55 Phtes blerg, looks like every typo fixed but still failing
17:57 giantlock joined #salt
17:59 pcn Phtes: launch_config docs say that it takes a dictionary, and I think you're passing in a list of dictionaries
17:59 DammitJim joined #salt
17:59 pcn Maybe specify the launch config separately and just pass in the name?
17:59 pcn (for now)
18:01 randomredditor joined #salt
18:02 Phtes hmm
18:08 Rumbles joined #salt
18:08 polishdub joined #salt
18:08 dthom91 joined #salt
18:10 knite joined #salt
18:11 knite accidentally removed salt-minion from one of my minions. how can I get a minion's last known IP address?
18:11 wendall911 joined #salt
18:11 szhem joined #salt
18:12 arnoldB basepi: is there a change to get into https://github.com/orgs/saltstack/people without changing the job position? :)
18:12 arnoldB s/change/chance/
18:12 dthom91 left #salt
18:13 hahuang65 joined #salt
18:14 hahuang65 i'm trying to upgrade rubygems in salt. This turns out to be very hard to search because apparently people are searching for how to update specific gems, where I'd like to upgrade the rubygems package itself. Anyone know of a good solution to this?
18:15 tanta how was it installed original hahuang?
18:15 baweaver joined #salt
18:17 timoguin joined #salt
18:19 dthom91 joined #salt
18:19 ajw0100 joined #salt
18:20 hahuang65 tanta: so it's installed by ruby when we have ruby installed via salt
18:20 arnoldB basepi: the only purpose is community support assistance & labeling like in #24903
18:20 dbruns joined #salt
18:20 Phtes pcn using a prebuilt launch config worked, ASG issue was lack of "- region"
18:20 basepi arnoldB: Sure, though the non-saltstack employees in there only really have merge access on salt-contrib. Only saltstack employees currently have merge access to saltstack/salt and the other core repos.
18:20 tanta then you should be able to use the built-in package manager to upgrade it, i.e.: yum -y update rubygems
18:20 basepi arnoldB: ah, well, that won't help. Unfortunately there's no way to give labeling rights to a person without giving them merge rights.
18:21 myra joined #salt
18:21 hahuang65 tanta: but what if I want it in salt?
18:21 hahuang65 tanta: with a version specified?
18:21 arnoldB basepi: alright. maybe saltstack inc have a German subsidiary sometime^^
18:21 iggy XenophonF: so your real complaint is "why don't people write useful programs in lisp so I understand it better"?
18:22 tanta https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.installed see the 'version' parameter
18:22 basepi arnoldB: That would be awesome! I added the label you requested. And at some point in the future we may implement a system for vetting community members for merge access in saltstack/salt, just not at this opint.
18:22 basepi point*
18:22 dbruns Something I’ve been curious about with salt is why do salt states use single property objects at the finer level? Example: https://gist.github.com/danielbruns-wf/8f77d97a2f6896505734
18:22 myra hi there, is gitfs not changing files on salt master, but allow salt master to look for salt files in git repo?
18:22 arnoldB basepi: cool
18:23 dbruns and where in the code for saltstack are the salt states parsed? I’d like to look at how it does that.
18:23 dopesong_ joined #salt
18:23 basepi dbruns: salt/state.py is the state compiler
18:24 iggy dbruns: I assume because you can have multiple "keys" with the same name
18:24 hahuang65 tanta: so salt has `salt.modules.rvm.rubygems` but not for rbenv. :(
18:26 ferbla joined #salt
18:27 iggy ruby people all switched to docker ages ago
18:27 isn joined #salt
18:27 isn I am getting this error
18:27 isn No Top file or external nodes data matches found
18:28 isn but I have a top.sls file /srv/salt
18:29 iggy what about pillar?
18:29 isn I have not created a pillar
18:30 isn Do i have to create it?
18:30 isn I am new to salt
18:31 Phtes pcn the - region missing in ASG was also the launch_config problem
18:31 Phtes both work now,
18:31 viq joined #salt
18:31 opensource_ninja joined #salt
18:31 mkropinack joined #salt
18:32 XenophonF iggy: that's about right ;)
18:32 isn any idea on this error?
18:32 isn No Top file or external nodes data matches found
18:33 otter768 joined #salt
18:33 Phtes did you configure your paths
18:35 mrwboilers joined #salt
18:38 mkropinack left #salt
18:44 alemeno22_ joined #salt
18:47 Phtes is it possible to pass parameters to salt states?
18:48 pdx6 joined #salt
18:48 Phtes i.e  salt-call --local state.sls mystate appname instancetype #ofinstances
18:49 unholycrab joined #salt
18:53 pcn Phtes: cool
18:53 kantesh joined #salt
18:59 [dee] joined #salt
19:00 tanta what happens if I send a SIGHUP to salt-call?
19:00 druonysus joined #salt
19:00 druonysus joined #salt
19:02 PeterO_ joined #salt
19:04 techdragon joined #salt
19:07 keimlink joined #salt
19:10 cberndt joined #salt
19:12 bfrog joined #salt
19:14 forrest joined #salt
19:15 forrest If anyone else wants to see the reactor on minions, can you please +1 on https://github.com/saltstack/salt/issues/15265
19:15 forrest I really want this functionality :(
19:16 forrest I should probably just write it myself
19:16 XenophonF hey fellow windows admins - i've updated my windows_servicing module (an interface to DISM), which you can find at https://github.com/irtnog/active-directory-formula/blob/master/_modules/windows_servicing.py
19:17 XenophonF i've also just committted a windows_feature state module, https://github.com/irtnog/active-directory-formula/blob/master/_states/windows_feature.py
19:18 XenophonF the two together should allow windows feature installation/removal on Windows Vista and newer, including Server Core editions
19:20 protoz joined #salt
19:21 Ztyx joined #salt
19:21 XenophonF if there's interest, i might extend the execution module to support other DISM servicing actions, e.g., driver installation
19:23 Cyis is there a requirement that jinja variables begin with a alpha character?
19:25 GreatSnoopy joined #salt
19:26 SheetiS joined #salt
19:27 stqism joined #salt
19:27 XenophonF Cyis: the jinja documentation doesn't say
19:27 XenophonF http://jinja.pocoo.org/docs/dev/templates/#variables
19:28 Cyis hmm.. odd... cause I was getting an error with a variable starting with a difit but as soon as I changed that it works
19:32 dthom91 joined #salt
19:32 Ztyx joined #salt
19:34 baweaver joined #salt
19:36 timoguin joined #salt
19:39 theologian joined #salt
19:43 tanta I figured out a way to re-execute a salt-call state.highstate run with a custom grains file: https://gist.github.com/anonymous/0ae390c5e5f11e1adb1c
19:43 tanta it's a little ghetto though, but I couldn't figure out a better way to handle this
19:44 Configio joined #salt
19:46 giantlock joined #salt
19:50 larsfronius joined #salt
19:51 ajw0100 joined #salt
19:52 dthom91 joined #salt
19:52 jimklo joined #salt
19:55 jimklo joined #salt
19:57 hahuang65 joined #salt
19:58 pravka joined #salt
20:01 XenophonF has anyone else needed to distinguish between the Standard and Server Core editions of Windows in a Salt state?
20:02 XenophonF I'm looking through the available grains but don't see anything that'd let me do that
20:02 kevinquinnyo joined #salt
20:05 Norrland XenophonF: maybe the easiest way is to manually set the grains. Or manage on minion id level.
20:05 zerthimon joined #salt
20:06 opensource_ninja joined #salt
20:08 linjan joined #salt
20:09 bhosmer joined #salt
20:12 Ztyx joined #salt
20:13 Ztyx joined #salt
20:15 Ztyx1 joined #salt
20:15 teebes joined #salt
20:18 babilen XenophonF: If there is a programmatic way of determining that you could write a custom grain. But then this is Windows...
20:21 s_kunk joined #salt
20:22 Ztyx joined #salt
20:24 dthom91 joined #salt
20:29 breakingmatter joined #salt
20:32 cyborgIone joined #salt
20:34 otter768 joined #salt
20:34 yidhra_ joined #salt
20:35 writtenoff joined #salt
20:36 aparsons joined #salt
20:37 |Fiber^| joined #salt
20:42 ahammond My salt master is on centos 6.6, libsoduim is available from epel at version 0.4.5. I'd like a newer version. Any easy options or do I have to package it myself?
20:42 quantumriff joined #salt
20:43 quantumriff my google-fu is apparently weak.  Last year, a setting came out to combine all the yum install commands from all states into one yum install.. Many of my states have a handful of packages each, and this would really speed up the initial highstate.. Does anyone remember what that is called?
20:44 quantumriff not sure if it was yum specific, or for pkg in general
20:44 aparsons_ joined #salt
20:47 pdx6 if I wanted to make sure a process was running that tends to crash every once in a while, which would be the best way to go? a reactor? put salt-call in cron?
20:47 shiriru joined #salt
20:50 tanta joined #salt
20:53 babilen pdx6: I'd use something like consul or zookeeper for that
20:54 Cyis anyone know of a reliable trick on Windows that if you called service.dead to stop a service ensuring the service is completely stopped before proceeding?
20:56 babilen (or even just systemd or supervisord or monit or ...)
20:57 quantumriff pdx6: I would setup the process as  system service (upstart, systemd, or init depending on your distro) and setup to auto-respawn when it dies..
20:57 quantumriff you can also do a 'service.running' in salt, to verify its running
20:57 forrest pdx6: Just user supervisord
20:58 pdx6 it has an init script (this is logstash-forwarder)
20:58 pdx6 but forwhatever reason it exits without error
20:58 pdx6 I think the box is under a lot of memory pressure so it gets oomed or whatever freebsd does
20:59 pdx6 I was thinking supervisord but I wanted to avoid installing more software if I could
20:59 pdx6 since my site requires approval for new packages
20:59 troyreadyy joined #salt
21:01 k00l mic check
21:01 k00l is there a way to use PHP to tap the API ?
21:01 quantumriff pdx6: you could do it the getto way.. and have a state with the manual command to run, with an unless statement that queries for if its running..
21:02 druonysus joined #salt
21:02 pdx6 quantumriff: that is sort of the point where I am at
21:02 pdx6 I wish I knew why logstash-forwarder was crashing, that would be better :)
21:02 pdx6 but that's for another channel
21:04 babilen pdx6: Do you get anything in the logs or any event that you could send to the master?
21:04 babilen (thinking beacons here)
21:04 babilen But then I'd really use something appropriate for it such as supervisord or systemd
21:05 jodv babilen: you could just use ps.pgrep in a beacon + a reactor
21:05 pdx6 no that's the problem. I'll consider supervisord since we seem to like python here
21:05 babilen yeah, something like that, jodv
21:05 zz_Cidan joined #salt
21:05 pdx6 I'll check out beacons
21:05 babilen And that's how we lost pdx6 in the rabbit hole
21:05 jodv or a scheduled state that does a start of the logstash forwarder when pgrep returns nothing
21:06 pdx6 babilen: well, at least I'd learn more salt in the process
21:06 babilen I'm not too font of that, but it would work I guess
21:06 jodv beacons arent super well documented yet afaik so good luck :)
21:06 babilen pdx6: No, beacons are cool. It was rather meant in the "the rabbit hole of salt is deeper than you thought and beacons are dangerous (awesome) poison"
21:06 babilen sense
21:06 davisj quantumriff: I think you may be looking for 'state_aggregate' which is a config file setting.
21:07 babilen And yeah, they *do* lack documentation.
21:07 ntropy and speaking of documentation, anyone uses pepa for external pillars?
21:07 jodv documentation in general is always something that gets neglected, even more so in an open source project
21:07 jodv just the nature of the world
21:07 ntropy following through the docs doesn't get me a working setup :/
21:08 k00l is there a way to use PHP to tap the API ?
21:08 quantumriff davisj: thanks! this does look like what I was trying to find!
21:08 jodv k00l: if you can send HTTP GET/POST requests then sure
21:08 babilen k00l: MySaltAdmin ?
21:08 babilen jk
21:08 sunkist joined #salt
21:08 pdx6 thanks for the ideas, I'll try beacons/reactors and file a bug with the logstash team
21:08 babilen pdx6: I'd *still* use a proper tool for that.
21:08 k00l jodv: are there any docs on how to pull it off ?
21:08 babilen But have fun :)
21:09 unholycrab joined #salt
21:09 jodv how to write PHP?
21:09 jodv there are docs on how to use the API endpoints if thats what youre looking for
21:09 quantumriff so, if I set state_aggregate: -  pkg in my master.conf, it will run on all minions that support aggregate? or do I need to ensure all my minions support it first?
21:09 pdx6 it is a problem with some other packages at this site that are custom, so I'll standardize on something
21:09 jodv are you talking about using some PHP script as a client to the API or exposing the API via a PHP app?
21:10 k00l jodv: im not sure what the best practise is
21:10 jodv what is it you're trying to do?
21:10 jodv best practice, from a Salt perspective, would be to not use PHP ;)
21:10 k00l i want to kick off a state from php on another srv
21:10 k00l minion*
21:11 jodv ok, so a minion kicks off a state run on another minion?
21:11 k00l pretty much
21:11 davisj quantumriff: you mean you have older minions that predate that feature? I would guess it would still run on them, just without any aggregation.
21:12 jodv k00l: yeah, you could have whatever hit the HTTP API ... doesnt really matter what it's implemented in as long as it talks to the endpoint correctly
21:12 k00l however, that minion thats kicking off teh build is getting its direction from a webpage, so i can use PHP there
21:12 quantumriff davisj: thanks.. I think so to.. an think all my minions are updated, but i'm checking now
21:12 elsmo joined #salt
21:13 jodv https://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.html
21:13 jodv https://docs.saltstack.com/en/latest/ref/netapi/all/ (if you want something other than cherrypy running the server side)
21:13 jodv tho cherrypy is by far the most widely used (afaik)
21:13 k00l jodv: thansk ill read this and get back in here when i haved questions .. thanks for teh direction
21:13 jodv np
21:14 k00l ill just stick with chery
21:16 laax joined #salt
21:20 jodv k00l:  you might also consider https://docs.saltstack.com/en/latest/ref/configuration/master.html#peer-publish-settings
21:21 jodv and circumvent the HTTP API entirely
21:22 hahuang65 joined #salt
21:23 laax joined #salt
21:26 voileux joined #salt
21:28 k00l grrr, can anyone direct me on how to even find out of i have PyOpenSSL installed ?
21:28 k00l jodv: thanks mate ill read that too ..
21:31 breakingmatter joined #salt
21:33 ferbla_ joined #salt
21:38 jimklo joined #salt
21:38 k00l anyone ??
21:39 JDiPierro joined #salt
21:42 murrdoc pip freeze
21:42 murrdoc on the minion
21:42 murrdoc BUELLER
21:43 k00l huh r u talking to me ?
21:44 k00l murrdoc: says that on my master when i try to generate a cert
21:46 jmreicha joined #salt
21:48 linjan joined #salt
21:48 [dee] joined #salt
21:52 k00l k i needed pip
21:53 murrdoc :)
21:54 baweaver joined #salt
21:56 troyready joined #salt
21:56 clintberry joined #salt
21:58 ferbla joined #salt
22:00 cwyse joined #salt
22:01 rdxc joined #salt
22:10 bhosmer joined #salt
22:11 hasues joined #salt
22:11 RedundancyD joined #salt
22:11 pratikmallya joined #salt
22:13 hasues left #salt
22:14 Configio joined #salt
22:15 dthom91 joined #salt
22:16 dork joined #salt
22:25 wryfi joined #salt
22:26 hax404 joined #salt
22:27 scoates_ joined #salt
22:29 rdxc_ joined #salt
22:32 scoates joined #salt
22:34 otter768 joined #salt
22:39 baweaver joined #salt
22:40 icflournoy joined #salt
22:40 jhauser joined #salt
22:44 archimedespi joined #salt
22:45 JDiPierro joined #salt
22:48 Aidin joined #salt
22:49 icflournoy joined #salt
22:50 cliluw joined #salt
22:50 archimedespi I'm looking at setting up Salt for a (smallish) installation of a couple Linux servers. I'm restricted in how many servers I can use though, and all the ones I can use now have to be minions. Could I run the master on my workstation, VPNed in to the network the servers are on?
22:51 larsfronius joined #salt
22:53 breakingmatter joined #salt
22:54 jdubinsky joined #salt
22:56 unholycrab joined #salt
22:57 womble archimedespi: I suppose you could do that.  You could also run the master on a machine that is also a minion for other things.
23:00 knite joined #salt
23:05 mosen joined #salt
23:06 jodv archimedespi: as long as the minions can send traffic to the master on the publish and return port (4505 and 4506 by default), then it shouldnt matter
23:08 keimlink_ joined #salt
23:09 indispeq Hello, I am trying to use salt-formula (bind-formula) by cloning the repo on an instance and then doing a salt-call --local state.sls bind,bind.config
23:10 indispeq but unfortunatley, the salt-call gets stuck
23:10 indispeq it never finishes and gets stuck on the pkg.installed part of installing the packages in the formula
23:10 indispeq no error messages, it is just stuck
23:10 indispeq does anybody have experience running salt-call masterless from cloud-init and could explain why this would happen?
23:14 hemebond joined #salt
23:15 mapu joined #salt
23:30 XenophonF i'll try my hand at a custom grain - thanks babilen
23:30 XenophonF and thank you too Norrland
23:30 archimedespi womble: can the same machine be a master and a minion?
23:31 womble archimedespi: Yep.
23:31 womble I manage my masters with salt as well, so they need to run as a minion, too.
23:32 womble Nothing stopping you from adding other things to that machine's set of states, either.
23:32 archimedespi womble: and then you have your workstation as the master for the masters?
23:32 archimedespi womble: (in your setup)
23:32 womble A salt "master" is just a service.
23:32 bfoxwell joined #salt
23:32 womble archimedespi: No, I commit all changes to git, then push that out to the master(s), and then run highstate (or whatever) on the master(s).
23:35 alemeno22 joined #salt
23:36 sunkist joined #salt
23:50 PeterO_ joined #salt
23:51 stephen144 joined #salt
23:52 xDamox joined #salt
23:53 jimklo joined #salt
23:55 jimklo_ joined #salt
23:55 xDamox Hi, I am using external pillars in a masterless setup but the custom pillars don't load :(
23:55 knite joined #salt
23:59 oxi joined #salt
23:59 oxi test msg
23:59 forrest joined #salt

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