Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-11-11

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

All times shown according to UTC.

Time Nick Message
00:00 iggy there's a +1 button on it for me
00:02 murrdoc joined #salt
00:03 meylor1 joined #salt
00:06 rm_jorge joined #salt
00:11 dooshtuRabbit joined #salt
00:20 chitown any idea on when 2014.7 debs will be ready?
00:21 murrdoc after it ships
00:22 UtahDave chitown: debs are the last packages we're waiting on. There were some issues getting the docs to build.
00:24 chitown k. last i saw it would be a "couple of days" after pip and that happened on the 4th..???
00:24 chitown just wanted to make sure u didnt forget ;) :)
00:28 murrdoc whats the salty way to do this 'perl -pi -e "s/^ENABLED=\"false\"/ENABLED=\"true\"/g" /etc/default/sysstat
00:28 murrdoc '
00:28 jevonearth I'm writing a sls file, for use on Linux and FreeBSD. I want to specify shell, on linux it is /usr/bin/zsh on FreeBSD it is /usr/local/bin/zsh. What's the approrpiate method to deal with this case? I understand matchers are one option.
00:29 murrdoc file.replace!
00:29 joehh UtahDave: working (not very succesfully) on it now...
00:30 aqua^mac joined #salt
00:30 UtahDave joehh: :) yay.  anything I can do to help?
00:31 joehh not really - other than see if anyone else has had trouble building the docs
00:32 hal58th murrdoc: I do this for sshd...  file.replace:     - name: /etc/ssh/sshd_config     - pattern: '^#*\s*PermitRootLogin.*'     - repl: "PermitRootLogin no"
00:32 UtahDave whiteinge thinks it might be an old version of sphinx on the os.  have you tried using pip -u to upgrade your sphinx?
00:35 alexr joined #salt
00:35 UtahDave joehh: hey, are you going to be online in a couple hours?
00:39 joehh probably - no meetings planned for this arvo
00:39 pipps joined #salt
00:40 joehh UtahDave: I haven't yet - that may be a issue - not insurmountable, but I'll try that to see if it gives me any guidance
00:40 UtahDave cool. I have to head home for dinner, but I'll hit you up a little later.
00:40 hal58th jevonearth: I can help you with that. Let me write it up
00:41 Pixionus in the Salt in Depth section of index page of the readthedocs.org doc, it states that modules can be used for transferring files, but I was unable to find a module in the list that was meant to do so.  Did I miss it?
00:41 jevonearth This channel is terribly helpful & responsive :)
00:42 murrdoc joined #salt
00:43 hal58th jevonearth: Write out your state and then insert this line. {% if grains['os'] == "Ubuntu" %} shell: /usr/bin/zsh {% endif %} {% if grains['os'] == "Redhat" %} shell: /usr/local/bin/zsh {% endif %}
00:44 jalbretsen joined #salt
00:44 hal58th you will have to do a salt-call grains.items to figure out what grain and value you would want to use
00:45 jevonearth great, thanks for thay
00:45 jevonearth that
00:46 hal58th welcome
00:48 joehh UtahDave: I think I've figured it out. The content-type headers in the rest_cherrypy docs are tripping up the html formatter into trying to do something special
00:48 joehh https://github.com/saltstack/salt/blob/develop/salt/netapi/rest_cherrypy/app.py#L696
00:49 speed145a joined #salt
00:49 murrdoc why doesnt this work http://pastebin.com/5qG6VEii
00:50 murrdoc it would be nice if it did
00:52 arnoldB skyler: https://github.com/saltstack/salt/pull/17574 the IPv6 regex thing, if you're interested..
00:53 aqua^mac joined #salt
00:54 arnoldB the test server was under heavy attack (looking at the PR list for python 3 compat) :)
00:55 murrdoc really tho
00:56 murrdoc why cant we make more than one function
00:56 arnoldB murrdoc: "why doesnt this work" doesn't sound to me like an error message
00:56 arnoldB murrdoc: *WHAT* does not work?
00:58 murrdoc have you looked at the paste?
00:58 murrdoc http://pastebin.com/5qG6VEii
00:58 arnoldB sure I did
00:59 murrdoc so why doesnt that work
00:59 arnoldB so what's wrong with it?
00:59 murrdoc the salt state compiler not able to make that a dict ?
01:00 arnoldB I can't find any message complaining about any dict
01:00 pipps joined #salt
01:00 murrdoc local:
01:00 murrdoc Data failed to compile:
01:00 murrdoc ----------
01:00 murrdoc ID 'sysstat-setup' in SLS 'ec.status' contains multiple state declarations of the same type
01:00 arnoldB but btw. in line 5-7 you are missing dashes
01:00 arnoldB please don't paste raw data in here
01:01 forrest @murrdoc You can't use file.replace and file.directory under the same ID.
01:01 murrdoc hmm
01:02 murrdoc file is the key ?
01:02 forrest murrdoc: Correct.
01:02 murrdoc ah
01:02 murrdoc that makes sense
01:02 forrest murrdoc: same way you couldn't have pkg.installed, and pkg.removed under the same ID
01:02 murrdoc can i do file: directory: … append: ...
01:02 arnoldB murrdoc: https://np.adm.sx/view/1dcf61e8
01:02 forrest murrdoc: Nope, I'd say just move one to a different ID, makes it more clear regarding what is happening as well.
01:03 forrest Good example arnoldB
01:03 arnoldB forrest: I believe file is not the key. instead it was file.<function> which is fine
01:03 arnoldB forrest: simply the syntax of the list wasn't valid
01:04 forrest arnoldB: ? You can't call file multiple times in the same ID last time I checked, unless something has changed in the recent release.
01:04 arnoldB forrest: he didn't called file. he called file.directory and file.replace
01:04 forrest arnoldB: Correct, but those are both part of file
01:05 forrest you can't have two instances of any file.* in the same ID
01:05 forrest same goes for other state modules.
01:05 arnoldB hmm that worked for 2 years for me or I have a wrong memory :)
01:05 bmonty joined #salt
01:06 hal58th arnoldB: They were probably different types of states. a pkg and a file. just not two files
01:06 forrest yeah the issue is specifically two functions from the same module.
01:08 murrdoc yeah which it should be able to handle , it being how i think salt would parse it
01:08 murrdoc but anyhow
01:09 arnoldB murrdoc: does it work now?
01:09 murrdoc similar to how names: got implemented
01:10 murrdoc separate states always worked arnoldB
01:10 murrdoc i should have asked my question better
01:10 murrdoc i wanted to know what part of the salt compiler made the multiple functions in a state fail
01:10 murrdoc my bad
01:10 arnoldB fine. I go to bed (2 am here). bye.
01:11 forrest Later
01:11 gmcwhistler joined #salt
01:11 murrdoc haha
01:11 murrdoc later arnoldB
01:12 Nazca__ joined #salt
01:13 forrest joined #salt
01:14 TyrfingMjolnir joined #salt
01:16 dude051 joined #salt
01:16 zach joined #salt
01:21 seydu joined #salt
01:24 meylor joined #salt
01:24 zach_ joined #salt
01:25 meylor joined #salt
01:25 Jarus joined #salt
01:27 pipps joined #salt
01:29 skyler arnoldB: Nice change, that cleans it up a lot!
01:29 Jarus joined #salt
01:31 Jarus joined #salt
01:32 gmcwhistler joined #salt
01:32 Jarus joined #salt
01:34 Pixionus so my questions are very elementary, but I was unable to find a module for transferring files and I am not sure I understand how salt.output.highstate can be used to see the output from the highstate command.
01:34 Pixionus Running highstate remotely and it would be helpful to see the output sometimes.
01:35 Pixionus Then the team is thinking it might be good to transfer our sensor data to our data server using Salt.
01:40 hal58th I wish I could help you Pixionus: but I haven't needed to store the output. For the transfer of data, it really depends on what you want to do with that data
01:40 zach_ joined #salt
01:40 hal58th You might want to take a look at this. http://docs.saltstack.com/en/latest/topics/mine/index.html
01:41 Pixionus I think we just want to transfer flat data to the server where it is checked, parsed, and added to the database by a homebrew process.
01:42 hal58th I'd look up how to do JMS messaging then. Especially if you want it to be reliable
01:42 Pixionus Hadn't looked at the Mine yet.  That might be why there is mention of modules having this function but any such modules seem to have disappeared?
01:42 Pixionus Thanks.  Ill read up on that now.
01:42 hal58th Yeah I could see that. I don't know the history of this project that well. Just started using it a few months ago
01:45 otter768 joined #salt
01:46 hasues joined #salt
01:48 funzo_ joined #salt
01:49 Pixionus We don't actually use much Java in our system.  It's a little bit heavier than we like for our embedded machines.
01:50 hasues left #salt
01:52 murrdoc http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.s3.html needs a 'sync'
01:53 MindDrive joined #salt
01:56 NVX joined #salt
01:56 aqua^lsn_ joined #salt
01:57 jonathan__ joined #salt
01:57 rubenb_ joined #salt
01:57 viq joined #salt
01:58 ikanobori__ joined #salt
01:58 wiqd joined #salt
01:59 brendanashworth joined #salt
01:59 synical joined #salt
01:59 Bremsstrahlung joined #salt
01:59 lkannan joined #salt
01:59 jalbretsen joined #salt
02:00 CatPlusPlus joined #salt
02:01 ujjain joined #salt
02:01 jgelens joined #salt
02:01 gmoro joined #salt
02:02 cb joined #salt
02:05 zach joined #salt
02:05 forze joined #salt
02:05 Jarus joined #salt
02:06 jbub joined #salt
02:06 Emantor joined #salt
02:08 Jarus joined #salt
02:08 cleme1mp_ joined #salt
02:08 b1nar1 joined #salt
02:08 Jarus joined #salt
02:10 chitown_ joined #salt
02:10 superseb_ joined #salt
02:11 hasues joined #salt
02:11 MatthewsFace joined #salt
02:12 hasues left #salt
02:16 Pixionus So is this output.highstate module something I can use from the master to see the output?  Hope I don't offend, but this documentation kinda sucks.  (as a document writer in my company, I know it's damn near impossible to come up with great documentation with time allotments and all so no offense meant)
02:20 brendanashworth hi there, so i'm totally new to salt and i've never done much with any other tools like it... does anyone have any reading recommendations to get started besides the documentation?
02:22 aquinas_ joined #salt
02:23 Pixionus Kinda in the same boat myself brendanashworth
02:24 brendanashworth :p glad to see someone else is here with me
02:24 miqui joined #salt
02:25 murrdoc http://docs.saltstack.com/en/latest/topics/tutorials/index.html
02:25 murrdoc no
02:25 Pixionus Been trying to figure it out myself with the docs, but I think it might be time to start a good wiki or something.  Slowly putting together a sort of primer for those like us as well.
02:25 murrdoc that page is a good start http://docs.saltstack.com/en/latest/topics/tutorials/index.html
02:26 brendanashworth thanks murrdoc
02:26 Pixionus yeah, the tutorial is currently the best place to start, but for many, it would be nicer to have a good overview and the like
02:26 murrdoc true
02:26 dude051 joined #salt
02:27 murrdoc do u have questions on config management
02:27 murrdoc or salts idea of it
02:27 zekoZeko Pixionus: if you want to see the output of salt commands run them with -v to get the job id and lookup that later.
02:27 Pixionus I keep running into little snags where I am just lost.  I read through the docs, and maybe misunderstand something or am led down a rabbit hole that turns out to be unrelated.
02:27 zekoZeko Pixionus: all output of minions is saved, even if your command timeouts and doesn't wait for all the output
02:28 Pixionus so what is it that the output.highstate module really does?
02:28 Pixionus We were hoping to see the output live if possible.
02:28 carlos_felix joined #salt
02:28 zekoZeko Pixionus: salt-run jobs.list_jobs list the job ids
02:29 Pixionus Not what jobs are currently running.  We were hoping to see the output of the highstate live as it is, well, output.
02:29 zekoZeko Pixionus: how are you running it?
02:29 zekoZeko salt host state.highstate?
02:30 Pixionus yes
02:30 zekoZeko i guess there's a timeout somewhere
02:30 zekoZeko setting, but I wouldn't know off the top of my head
02:30 Pixionus The problem is that the servers are installed at client locations and we config them remotely while the installer is there.  Seeing all the output could help if the installer needs to adjust something for the location's specific oddities
02:31 Pixionus We get all the output if we run it via ssh or directly on the minion.
02:31 Pixionus Are you saying that it should also output to the master terminal?
02:31 Pixionus If run from there?
02:31 zekoZeko Pixionus: well, it seems to be salt -t <timeout in secs> host state.highstate
02:32 Pixionus trying it now but usually have output on the minion by now.
02:33 murrdoc how are you running i t
02:33 zekoZeko i don't understand. the installer connects back to the master and runs stuff, or are there two different people and you want the installer to see output on the minion?
02:33 Pixionus Gave it a few minutes so maybe Ill at least get a successful result or something?
02:33 Pixionus well, our minions are headless.
02:33 zekoZeko yeah
02:34 Pixionus The only time we see the output on the minion is if we ssh in (hoping not to have to do that any more) or in dev where I give the minion a head.
02:34 Pixionus but if you run highstate on the minion it is verbose
02:34 Pixionus about all the modifications made.
02:34 Pixionus ah.
02:34 zekoZeko as i've said, highstates take a while, but to see how it looks for instance do test.ping, that returns the name of the minion(s) and True
02:34 Pixionus ok, it did give a final output.
02:36 Pixionus Yeah.  This will work, but we were looking for all the other stuff you can see directly on the minion.  Either way, this will serve my purposes.
02:36 Pixionus Just have to make a troubleshoot doc for the guys that will handle this in the end.
02:37 Pixionus so what is the output.highstate module for then if this was just a matter of a timeout?
02:37 mohae joined #salt
02:38 Pixionus From the doc, I _think_ it's just the config for the return data?
02:39 Pixionus ::shrugs::   alright then.
02:39 zekoZeko Pixionus: what do you want to see from the minion?
02:39 zekoZeko Pixionus: you can see grains & stuff and run commands to check stuff
02:40 zekoZeko Pixionus: salt host cmd.run "ip addr sh"
02:40 zekoZeko Pixionus: etc
02:41 zekoZeko Pixionus: The return data from the Highstate command is a standard data structure which is parsed by the highstate outputter to deliver a clean and readable set of information about the HighState run on minions.
02:42 Pixionus one sec.  Running it on a minion direct to make sure I'm not just mixing up memories.
02:45 Pixionus yeah, it gives a stream of all the output from each of its actions.  I was thinking it was more useful to see all this in case of a problem, (because we can see the specific errors) but if I understand you correctly, if the output from running the command shows a problem, we can just pull up this info with the id from -v
02:45 zekoZeko yup
02:45 Pixionus alright.  Thanks zekoZeko I can work with this (and it is for sure better than what I would have had some luckless troubleshooter sitting through for each install :P  )
02:45 zekoZeko or salt-call jobs.list_jobs or something to that effect (i haven't memorized everything yet, sorry if i mislead you a little)
02:46 zekoZeko lists jobs that were run
02:46 Pixionus That's fine.  I need to learn how to use these id's to pull up the more detailed info.  Do you know where it is stored? Master or minion?
02:46 zekoZeko yeah, it's jobs.list_jobs
02:46 zekoZeko master
02:47 zekoZeko just read the docs man, it's all there, i've learned all of this today :)
02:47 elfixit joined #salt
02:47 Pixionus Been going down different avenues in the docs for other purposes.
02:48 darrend joined #salt
02:48 Pixionus having a steap learning curve, but I'm getting through it.  It's all simple in the end, its just not explained very well every time.
02:48 zekoZeko yeah, i've started a few months ago, then stopped, now i started again and it's much clearer.
02:49 brendanashworth joined #salt
02:50 zekoZeko i need a cheat sheet to print and put on the wall
02:50 Pixionus Yeah, kinda making a cheat sheet myself.  Was thinking it would be good to put in like an introductory primer wiki thingy... or maybe just a blog post.
02:50 Pixionus something to help if others are as slow on the uptake as I
02:51 meylor joined #salt
02:51 zekoZeko i've already transfered this https://github.com/saltstack/salt/wiki/Cheat-Sheet to two A4 sheets, but it's not really what I want yet. The problem is I also don't exactly know what I want yet, and when I will, I won't need the cheat sheet anymore. sucks :)
02:52 brendanashworth ahah! a cheat sheet!
02:54 Pixionus Thanks!
02:55 Pixionus If we flesh it out a bit this could be a good thing for them to add to their docs.
02:56 Pixionus Coworker has already been using it :P but he agrees it could use a bit of context
02:56 zekoZeko you're welcome to, i'm neck deep in my own system documentation right now, don't really want to delve into another thing like that.
02:56 mosen joined #salt
02:57 Pixionus Don't expect you to
02:58 Pixionus I kinda believe documentation should be a community venture.  No one person has the time to do it all and no one knows what another person might have trouble with, see need for.
02:59 perfectsine joined #salt
02:59 zekoZeko yeah, i'm working on that in our organization here. Hard to make people learn to apply a little dokuwiki markup to email pastes.
03:02 Pixionus hard to get people to document in general.  I'm lauded as one of the better at this company, but I suck all things told.
03:02 ggillies joined #salt
03:05 zekoZeko I did some linux howto translations in the 90s, learned a bit doing that :)
03:05 Pixionus Sounds like a good way to at that.
03:06 Pixionus *too
03:06 brendanashworth what always bothered me was doxygen-style comments
03:06 brendanashworth it literally does not help you one bit when trying to find a function that does something, but NOBODY ever finds a function and wants to know what it does
03:07 brendanashworth especially in 1k+ loc java files
03:09 Pixionus I am not sure I understand your second statement.
03:09 Pixionus But I think it describes what I have just encountered.
03:09 brendanashworth :p
03:10 Pixionus I generally hate auto generated documentation unless I am already pretty familiar with the subject.
03:11 Pixionus Otherwise I haven't a clue what any of it means.
03:11 brendanashworth i think the best documentation is a bunch of tutorials, i.e. learn by doing, otherwise just a block of text does best
03:12 jagardaniel Hi again :) Is it possible to choose not to overwrite files when using file.recurse and some files already exist on the minion?
03:12 Mso150 joined #salt
03:15 favadi joined #salt
03:16 bhosmer joined #salt
03:19 Pixionus Sorry, no clue.  Hopefully someone in the know will stop by soon.  GL
03:19 thedodd joined #salt
03:19 asyncsrc joined #salt
03:21 jagardaniel ty :)
03:24 malinoff joined #salt
03:26 dude051 joined #salt
03:29 Mso150 joined #salt
03:29 asyncsrc joined #salt
03:31 baconbeckons joined #salt
03:37 asyncsrc joined #salt
03:39 asyncsrc left #salt
03:40 asyncsrc joined #salt
03:44 asyncsrc_ joined #salt
03:48 asyncsrc_ joined #salt
03:50 yetAnotherZero joined #salt
04:03 thayne joined #salt
04:04 bhosmer joined #salt
04:20 to_json joined #salt
04:27 thehaven joined #salt
04:35 ajolo joined #salt
04:37 mohae joined #salt
04:56 jalaziz joined #salt
05:04 shookees joined #salt
05:05 shookees joined #salt
05:05 racooper joined #salt
05:05 bhosmer joined #salt
05:06 Nexpro joined #salt
05:07 ghanima joined #salt
05:12 snuffeluffegus joined #salt
05:13 nitti joined #salt
05:15 tristianc joined #salt
05:15 forrest joined #salt
05:18 meylor joined #salt
05:20 shookees joined #salt
05:20 shookees joined #salt
05:28 delinquentme joined #salt
05:29 Reiner0313 joined #salt
05:30 tligda joined #salt
05:36 mgw joined #salt
05:40 baconbeckons joined #salt
05:42 pyxze joined #salt
05:43 pyxze hey folks, the mysql.server formula is giving me an "connect() argument 3 must be string, not int" error -- any ideas?
05:43 felskrone joined #salt
05:45 TheThing joined #salt
05:46 NVX pyxze: put ""'s around any number in your yaml to make it force to be a string
05:52 ramteid joined #salt
05:55 pyxze looks like the root pass is being set to a number string. may have something to do with it...
05:56 swa_work joined #salt
05:57 pyxze from here https://github.com/saltstack-formulas/mysql-formula
05:59 thayne joined #salt
06:00 perfectsine joined #salt
06:07 claytron joined #salt
06:12 gcmacmalloc joined #salt
06:20 linjan joined #salt
06:23 Schecter joined #salt
06:25 shookees joined #salt
06:25 shookees joined #salt
06:27 ndrei joined #salt
06:44 TyrfingMjolnir joined #salt
06:49 oyvjel joined #salt
06:54 bhosmer joined #salt
06:55 catpigger joined #salt
07:01 delinquentme joined #salt
07:07 TyrfingMjolnir joined #salt
07:09 colttt joined #salt
07:13 munhitsu___ joined #salt
07:13 simonmcc_ joined #salt
07:14 gebi joined #salt
07:16 sirtaj joined #salt
07:17 catpigger joined #salt
07:19 catsinsofas joined #salt
07:22 JlRd joined #salt
07:22 flyboy joined #salt
07:23 knot` joined #salt
07:23 bigl0af_ joined #salt
07:24 patrek joined #salt
07:27 bahadir joined #salt
07:29 jamesf_ joined #salt
07:29 ingard joined #salt
07:29 vu_ joined #salt
07:29 jdmf joined #salt
07:30 the_lale1u joined #salt
07:32 gebi morning :)
07:37 nmadhok joined #salt
07:38 alanpearce joined #salt
07:39 ramishra joined #salt
07:39 ramishra joined #salt
07:42 slav0nic joined #salt
07:51 b1nar1_ joined #salt
07:51 catpiggest joined #salt
07:52 bahadir morning
07:53 nmadhok morning
07:53 mschiff joined #salt
07:53 mschiff joined #salt
07:54 ujjain joined #salt
07:54 cb joined #salt
07:55 Emantor joined #salt
07:57 jbub joined #salt
07:57 jgelens joined #salt
07:58 CatPlusPlus joined #salt
08:03 lcavassa joined #salt
08:06 linjan joined #salt
08:07 __gotcha joined #salt
08:09 TyrfingMjolnir joined #salt
08:10 gmoro joined #salt
08:11 asmaps joined #salt
08:11 sdh_ joined #salt
08:12 Schecter left #salt
08:15 nmadhok left #salt
08:16 forze joined #salt
08:16 DolourousEdd joined #salt
08:16 Kelsar joined #salt
08:18 snuffeluffegus joined #salt
08:18 superted666 joined #salt
08:18 linjan joined #salt
08:20 alexr__ joined #salt
08:22 alexr__ joined #salt
08:29 shorty_mu joined #salt
08:34 jalaziz joined #salt
08:39 bmcorser joined #salt
08:39 PI-Lloyd joined #salt
08:40 oncreed joined #salt
08:40 Outlander joined #salt
08:42 oncreed hi what happened to salt-call --local state.highstate?
08:42 oncreed it does not work anymore on python 2.6
08:43 bhosmer joined #salt
08:44 madduck joined #salt
08:46 madduck joined #salt
08:46 madduck joined #salt
08:46 jhauser joined #salt
08:48 babilen oncreed: Since you changed what?
08:50 oncreed I always test and bootstrap the machine using `curl -L https://bootstrap.saltstack.com | sh -s -- -M git develop`
08:50 babilen So you mean that that doesn't work in current git HEAD?
08:51 oncreed I test my salt solution everyday on a fresh centos 6.5 machine bare bone
08:51 oncreed yes
08:51 babilen Shouldn't be too hard to bisect then to find the offending commit
08:51 oncreed it doesn't work on the current tip /head
08:53 fredvd joined #salt
08:53 Jarus joined #salt
08:53 oncreed http://pastebin.com/Bz2mKe7n here is the traceback from python 2.6
08:54 ramishra joined #salt
08:54 oncreed it says on the last part "Function state.highstate is not available."
08:54 babilen Make the web a better place and use a less shitty pastebin such as http://refheap.com, http://paste.debian.net, https://gist.github.com, http://bpaste.net, ...
08:56 oncreed https://www.refheap.com/93125 sorry don't know that paste repository, actually planned to paste it as a gist on github
08:57 iwishiwerearobot joined #salt
08:58 babilen nmadhok commited 1ae496b1085ad38488562da02aabcacfec3205be which broke at least serverdensity_device.py. Feel free to investigate for the other commits. Didn't you always wanted to learn how to use "git bisect" ? http://git-scm.com/docs/git-bisect
08:58 thayne joined #salt
08:59 oncreed sure I'll try mate
09:02 Mso150 joined #salt
09:02 wvds-nl joined #salt
09:04 stephanbuys joined #salt
09:05 stephanbuys hi all, anyone have experience with the saltstack minion on Windows in the channel?
09:05 alexr__ joined #salt
09:06 alexr__ joined #salt
09:06 oncreed me on windows server 2012
09:07 stephanbuys oncreed: I'm just starting with Windows (we do 99% on our stuff on Linux). My minions stop reporting to the salt-master after a pause of around 5 mins
09:07 stephanbuys I'm using the latest 2014.1.13 build, you ever experience it?
09:08 stephanbuys only fix seems to be a restart of the minion
09:08 oncreed haven't yet experience that probably there's a keepalive or timeout timer that you have set
09:09 oncreed ask a much more mature user here on windows I only used it to deploy on our servers with cluster mix of windows server 2012 and centos
09:10 stephanbuys oncreed, may I ask which version of the installer you are using? I'm hoping if I pick a good "stable" package the problem will dissapear
09:10 oncreed v0.17.5-2
09:10 oncreed or on git tag probably v0.17.5
09:13 stephanbuys oncreed: thanks
09:13 stephanbuys I'm going to try it
09:20 __gotcha joined #salt
09:21 babilen oncreed: Currently working on a PR to fix the "from __future__ import" errors
09:22 oncreed babilen: okay i'll watch the commit status
09:23 JlRd joined #salt
09:30 Ryan_Lane joined #salt
09:32 spo0nman joined #salt
09:33 ramishra joined #salt
09:33 __gotcha joined #salt
09:34 MK_FG joined #salt
09:35 Mso150 joined #salt
09:44 jalaziz_ joined #salt
09:46 madduck_ joined #salt
09:46 babilen oncreed: https://github.com/saltstack/salt/pull/17685 (I hope that I found all)
09:52 stephanbuys oncreed: seems tcp_keepalive_* tweaks in minion.conf solved the issue for me
09:55 oncreed babilen: okay i'll pull the new changes and test my solutions thanks mate
09:55 jalaziz joined #salt
09:55 spo0nman hello! i have salt installed in /opt/ with it's own python to keep it separate from everything else. now I'd like to execute some modules, salt-call executes them using /opt/python/... even thought I've put /usr/local/python at the start of the module. Is there any way to make salt-call call the script with a different python?
09:56 oncreed stephanbuys: seems the default config glad you've found the answer
09:59 jalaziz_ joined #salt
10:00 halfss joined #salt
10:01 __gotcha joined #salt
10:02 oncreed hmmm... try to change the path arrangement (e.g. PATH=/usr/local/bin:/usr/bin) and check which will be called by using `which python`
10:10 viq joined #salt
10:10 brayn joined #salt
10:11 jalaziz joined #salt
10:13 canci joined #salt
10:14 intellix joined #salt
10:25 MikaT joined #salt
10:27 madduck_ joined #salt
10:27 tafa2 joined #salt
10:32 bhosmer joined #salt
10:34 AirOnSkin joined #salt
10:42 AirOnSkin joined #salt
10:43 giantlock joined #salt
10:50 saru11 joined #salt
10:53 Reiner0313 joined #salt
10:53 saru11 hello everybody, perhaps, I may have a dumb question but why do I exactly need to have salt minion service running per a minion when I can run directly salt-call 'some_function_to_call' ? The minion has obviously configured available masters.
10:56 ramishra joined #salt
10:56 faust joined #salt
10:59 babilen saru11: So the master can talk to its minions?
10:59 babilen Having to log into every single minion kind of defeats the purpose, doesn't it?
11:00 Nazca joined #salt
11:01 ysiad joined #salt
11:03 stephanbuys hi all, is anyone aware of a way to spawn long-running processes with a salt-minion? Ie, it should start the process but not timeout?
11:05 ndrei joined #salt
11:14 babilen The jobs themselves don't timeout, it it just that the master doesn't wait anymore.
11:20 ThomasJ Question: Is there any way to enforce so that only the master can set grains for a minion? Ie, working under the assumption that minions are more prone to be compromised than the master, and as such an attacker could set grains that would give access to sensitive pillars. Or would the only way to work around this be to match by id's?
11:22 spoxaka joined #salt
11:26 babilen ThomasJ: You cannot prevent minions to set their own grains. Grains are *minion-local* information and should be treated as such.
11:28 madduck joined #salt
11:32 yidhra joined #salt
11:34 ThomasJ Thought so
11:36 diegows joined #salt
11:37 Kelsar_ joined #salt
11:40 saravanans joined #salt
11:40 babilen ThomasJ: This is one of the reasons why I dislike to use grains for information about your salt infrastructure (i.e. the common "tag" / "role" approach). IMHO this information should be kept on the master and not on the minions themselves. To me grains are bits of information that pertain to the local state of a minion and comprise attributes such as their hostname, ip addresses, ram, virtualisation status, ...
11:42 smoothify joined #salt
11:43 ThomasJ It seems nodegroups will do what I want, but can you check against nodegroups in jinja like you can grains?
11:44 madduck joined #salt
11:46 aqua^mac joined #salt
11:46 NV joined #salt
11:47 Sypher hi folks.. any recommendations on how to work with 'submodules' ("drivers") for salt modules?
11:47 fe92 joined #salt
11:57 babilen ThomasJ: https://github.com/saltstack/salt/issues/1886
11:57 babilen Sypher: What do you mean by that?
11:58 ThomasJ babilen: Thanks for the help
11:58 halfss joined #salt
11:59 Sypher babilen, a module that has a generic name but uses - depending on the config - a different driver to execute its commands.. somewhat like the "pkg" which uses aptpkg yumpkg etc but config-based rather than distro based
11:59 Sypher could just take a look at that one though, might be easy to implement a similar approach
12:00 babilen ThomasJ: I hope that you can figure it out from there. I haven't used it before so i can't tell you off the top of my head how to achieve what you are trying to do.
12:00 babilen Sypher: That would have been my recommendation too :)
12:00 ThomasJ I'll have a go at it. For some reason I seemed to recall having read nodegroups could not be used this way, but it seems that was outdated information
12:02 alexbst joined #salt
12:03 intellix joined #salt
12:06 bhosmer joined #salt
12:09 theproxy joined #salt
12:12 saru11 ?
12:13 saru11 babilen: yep, you are right, I have an active master avaialable in the minion config file
12:13 eliasp joined #salt
12:15 saru11 further, can anybody help me with kind of explanation of the following issue? I have let's say 100 of Windows minions, registered with 2 masters (multi-master setup), when I call salt '*' from any of the master just a few of minions respond but when I run salt-call test.ping from an "unresponsive' minion it responds
12:15 saru11 Salt infra is running on version 2014.1.7
12:19 linjan joined #salt
12:19 bhosmer joined #salt
12:21 bhosmer_ joined #salt
12:21 hobakill joined #salt
12:24 martoss joined #salt
12:24 martoss joined #salt
12:24 TheThing joined #salt
12:24 badon joined #salt
12:24 Shish saru11: I get that with single master, when the slaves take more than a couple of seconds to respond...
12:30 forze joined #salt
12:30 DolourousEdd joined #salt
12:33 CeBe joined #salt
12:35 fe92 joined #salt
12:37 ramishra joined #salt
12:42 babilen saru11, Shish: https://github.com/saltstack/salt/issues/15415 -- they "sleep" after the master rotated the key, but a "salt '*' test.ping" + some time should wake them up again.
12:45 baconbeckons joined #salt
12:47 thawes joined #salt
12:49 bhosmer_ joined #salt
12:51 fe92 joined #salt
12:58 iwishiwerearobot joined #salt
13:06 intellix joined #salt
13:07 arnoldB basepi: could you please label https://github.com/saltstack/salt/pull/17574 for backporting into 2014.7?
13:10 murrdoc joined #salt
13:11 saru11 babilen, Shish: that's interesting, will have to verify it
13:12 slav0nic joined #salt
13:18 tomspur joined #salt
13:21 QiQe joined #salt
13:22 QiQe hi guys, quick question, iptables-formula on saltstatck-formulas repo can only manage TCP rules, right?
13:23 QiQe what if I want to open a UDP range
13:23 jaimed joined #salt
13:23 cofeineSunshine joined #salt
13:23 cofeineSunshine joined #salt
13:24 jY QiQe: it does udp via proto: udp
13:25 ThomasJ jY: Seems proto is hardcoded to tcp
13:25 QiQe exactly
13:25 babilen Shouldn't be too hard to add udp support though.
13:25 ThomasJ Should be simple enough to fix though
13:26 ThomasJ If no one else have done it by the time I deploy it, I'll do it myself
13:26 QiQe ;)
13:28 TyrfingMjolnir joined #salt
13:28 babilen Question is how to do express that in the pillar. You might simply assume ["tcp"] by default and let users set proto: ["tcp", "udp"] in their pillar. Or use "tcp: True" and "udp: True" and generate suitable states from that.
13:30 ThomasJ All examples on http://docs.saltstack.com/en/latest/ref/states/all/salt.states.iptables.html only use tcp too :P
13:30 ThomasJ Not that it matters much
13:30 smoothify joined #salt
13:31 ThomasJ In any case, defaulting to TCP and allowing it to be set by grains is an improvement over today
13:32 ThomasJ Quite a few supported protocols too of course, including those listed in /etc/protocols
13:35 aqua^mac joined #salt
13:35 williamthekid joined #salt
13:36 babilen grains?
13:41 fe92 joined #salt
13:41 fe92 joined #salt
13:41 stephanbuys1 joined #salt
13:42 XenophonF joined #salt
13:46 Ahrotahntee I always thought 'states' was a little out of places for salt. You have pillars and grains and states. Why not packets? *hides*
13:47 XenophonF heh
13:47 b1nar1 joined #salt
13:47 XenophonF salt-ssh should be called "shaker"
13:48 micko joined #salt
13:48 XenophonF and salt-cloud could be called "grinder"
13:50 miqui joined #salt
13:51 stephanbuys joined #salt
13:56 sxar joined #salt
13:58 superted666 Anyone around that's familiar with loading of custom command modules? Having some issues due to a misconfiguration but can't find it.
13:59 linjan joined #salt
13:59 delinquentme joined #salt
13:59 rojem joined #salt
13:59 gngsk joined #salt
13:59 rattmuff joined #salt
13:59 saravanans joined #salt
14:00 martoss joined #salt
14:01 shepax joined #salt
14:01 shepax hi all
14:01 shepax someone know how to use pymssql to do a connection on localhost SO windwos server
14:02 sgate1 joined #salt
14:02 rawzone joined #salt
14:02 tmmt joined #salt
14:03 racooper joined #salt
14:03 rjc joined #salt
14:03 teebes joined #salt
14:03 superseb joined #salt
14:03 al joined #salt
14:04 slav0nic joined #salt
14:04 cpowell joined #salt
14:04 CatPlusPlus joined #salt
14:07 crane joined #salt
14:09 ramishra joined #salt
14:11 peters-tx joined #salt
14:11 __gotcha joined #salt
14:18 hasues joined #salt
14:19 vejdmn joined #salt
14:23 mpanetta joined #salt
14:23 hasues left #salt
14:24 thayne joined #salt
14:28 nitti joined #salt
14:33 ndrei joined #salt
14:34 mpanetta joined #salt
14:35 ndrei_ joined #salt
14:36 fe92 joined #salt
14:36 ramishra joined #salt
14:39 bhosmer_ joined #salt
14:42 Ahlee hrm.  Can you not watch: a cmd.wait?
14:42 dude051 joined #salt
14:43 Ahlee Looks like the watch is executing always, even when that cm.dwait watches a git: state
14:43 bhosmer joined #salt
14:44 viq joined #salt
14:44 alexr___ joined #salt
14:46 bhosmer joined #salt
14:46 perfectsine joined #salt
14:50 krak3n` joined #salt
14:50 mohae joined #salt
14:52 lcavassa joined #salt
14:53 shepax hi}
14:53 fgd joined #salt
14:53 seydu joined #salt
14:53 shepax when i insatll a module of python weher i have to copy the file ?
14:54 housl joined #salt
14:54 rojem joined #salt
14:55 shepax im using linux 6
14:55 jaimed joined #salt
14:55 Ahlee You should install the python module through your operating system's package manager if that's the python interpretor you're running salt from
14:55 fgd Hi everyone! I'm new to Salt and I'm struggling with a problem: how would I check for an installed package in a managed file? I want to have state-dependent logstash configuration.
14:56 kaptk2 joined #salt
14:56 wincus joined #salt
14:56 Ahlee fgd: chain your logstash config off the pkg.installed
14:56 mpanetta Is there any way to completely reset the keys on the master?  This is for 0.17.5...  My master is rejecting all the minion keys set up with salt-cloud.  They show up as accepted in salt-key -L but the minion shuts dow because the key was rejected.
14:57 mpanetta This is for a test environment so it is ok to blow all the keys away...
14:57 Ahlee mpanetta: master keys live in /etc/salt/pki/master
14:57 forze_ joined #salt
14:57 Ahlee mpanetta: alternately, set open_mode to true
14:58 mpanetta Ahlee: Thanks, let me try that.  I already tried deleting all the master keys (well moved them out of the way) but that did not help..
14:58 Ahlee mpanetta: well, is it the minion's cache freaking out?
14:59 fgd Ahlee, that could work, if I had a separate logstash config for each service. What if I want to have them all in one file?
14:59 mpanetta Ahlee: Well the minion s brand new, set up by salt-cloud, so I don't think so.
14:59 mpanetta The minion log says the master rejected the key
14:59 Ahlee mpanetta: yeah, one of hte first things I did was set open_mode: True and i've never looked back ;)
15:00 mpanetta haha ok let me check that out :)
15:00 Ahlee fgd: well.
15:00 alexr__ joined #salt
15:00 Ahlee fgd: so your logstash configs are all contained in a single, um, are they called filters?
15:01 Ahlee if that's the case, why not just drop them everywhere?  If your one config works everywhere, push it out everywhere :)
15:03 fgd Ahlee, seams a bit messy, but I guess it could work :)
15:04 hasues joined #salt
15:05 hasues On http://docs.saltstack.com/en/latest/ref/clouds/all/salt.cloud.clouds.vsphere.html, for the methods listed at the bottom, how do I make use of them?  Is this for calling Salt within python?
15:06 kermit joined #salt
15:09 hasues I'm going to say it is, based on what I'm seeing.
15:16 badon_ joined #salt
15:18 TSem joined #salt
15:18 UtahDave joined #salt
15:20 TSem How do I get the salt.client.LocalClient cmd to block until the minion finishes the command? When I run salt from bash with cmd.run it blocks until the minion finishes the command...
15:21 Ahlee fgd: *shrug* function > form ;)
15:22 Ahlee TSem: You don't, really.  You specify a long-ish timeout, and if the command doesn't respond in that timeout you poll the job queue for the return
15:23 micah_chatt joined #salt
15:23 williamthekid_ joined #salt
15:23 TSem Ahlee: Ok, I'll try with that approach. Thanks.
15:24 Ahlee hasues: yeah, that's what it looks like to me too
15:24 Damon Why doesnt file.recurse copy over symlinks? What it does is put the symlink as text in a normal file. I need to create quite alot of symlilnks and i dont want to use file.symlink
15:24 aqua^mac joined #salt
15:24 Ahlee hasues: i don't have any 2014.7.x around to test with my vsphere instances
15:24 superted666 Hey guys, simple Q hopefully. My file_roots is set to /srv/salt in there i have a top.sls. Should that be picked up by a client with an environment set to 'base' when it restarts? The logs suggest it's not loading salt://top.sls which has me flummoxed
15:24 saravanans left #salt
15:24 XenophonF does salt-cloud work with windows ec2 instances?
15:25 Ahlee Damon: looks like a regression: https://github.com/saltstack/salt/issues/5645
15:25 hasues Ahlee: I'm a bit weak on my python to know how to use said methods.
15:25 XenophonF it looks like it bootstraps over ssh
15:25 hasues Ahlee: I'll figure it out.  Thanks.
15:27 Ahlee Damon: actually, looks like there's supposed to be a flag
15:28 Damon Ahlee: What do you mean by that ? I read that post and though it was fixed. I am running 2014.1.11
15:29 ghanima joined #salt
15:29 Ahlee Damon: right, looks like it's supposed to be fixed, so I took your statement that it wasn't fixed as meaning the bug flared back up.  I'm looking through file.py right now
15:29 mpanetta Ahlee: Crap, that didn't fix it. :(
15:30 Damon Thanks Ahlee , i am using the  "keep_symlinks: True"
15:30 Ahlee mpanetta: :(  the open_mode didn't?
15:30 mpanetta Unless I forgot to restart my master...
15:30 mpanetta Yeah, let me double check
15:30 __gotcha joined #salt
15:30 troyready joined #salt
15:31 Damon Ahlee : and on the master i also have "fileserver_followsymlinks: False" . Though that might fix it
15:31 Ahlee Damon: i'm unfamiliar with that option
15:32 mpanetta Ahlee: yeah, the master is still rejecting the minions for some reason. :(
15:32 Ahlee mpanetta: is master same or newer version than the minions?
15:33 thayne joined #salt
15:33 mpanetta Ahlee: same version
15:33 UtahDave XenophonF: It's possible to do, but currently you have to make sure that a certain port is open on the windows minion's firewall when it comes up.  Which most ami's don't have open by default.
15:33 Damon Ahlee: Ok thanks anyway. Kinda annoying that it doesnt just copy symlinks. Apache kinda uses a lot. And a few is not a problem but hundreds....
15:33 UtahDave there's a bit of work that needs to be done to make that more automated.
15:33 mpanetta Ahlee: both are 0.17.5
15:33 Ahlee Damon: I hear ya.  I've wrote a lot of custom ython in a _state/ due to fileserver limitations :)
15:33 mgw joined #salt
15:34 Ahlee mpanetta: ok, let's start from the top.  You removed the minion accepted files in /etc/salt/pki, as well as the master's?
15:34 Ahlee morning UtahDave
15:35 UtahDave morning!
15:35 mpanetta Ahlee: I removed all of /etc/salt/pki/master
15:35 Ahlee ok, so you have a new master key
15:36 mpanetta yep, should have I think.
15:36 Ahlee as when salt starts it's going to regen that
15:36 mpanetta Yep
15:36 Ahlee so, your existing minions that were accepted by a previous key are being rejected, new minions are being rejected, or both?
15:36 mpanetta brand new ones spun up using salt-cloud are being rejected.
15:37 Ahlee I'm not familiar with salt-cloud, but does the master pre-seed the key?
15:37 superted666 Is there any way to list files on the salt master from a minion, want to see what the minion things is in salt://
15:37 mpanetta Old minions seem to be connecting fine
15:37 Ahlee or does the minion come up pointing to the mater, at which point the key goes pending
15:38 hasues Ahlee: Yeah, it will get a key and it be in an accepted state regardless if the minion was even deployed.
15:38 mpanetta Ahlee: salt-cloud preseeds the key some how, not sure how.  I see it as accepted in salt-key -L even before the minion gets installed, so something is preseeding...
15:38 Ahlee superted666: salt MINION cp.list_master
15:38 hasues Ahlee: So the VM will be there, but if the minion failed to boot-strap, the key still shows as being there on the master.
15:39 Ahlee makes sense.  All salt-key does is wrap file system functions around moving keys around the pki directory, so i'm guessing salt-cloud just doe the same
15:39 Ahlee i'm afraid i'm out of ideas and time to assist mpanetta, work beckons
15:39 superted666 Ahlee: Is that a module to be executed from the master?
15:39 superted666 Not sure i understand that command
15:39 mpanetta Ahlee: No probs, thanks for the help!
15:39 Ahlee superted666: yes, that's from the master.  If you want to run from the minion, salt-call cp.list_master
15:40 superted666 Wicked, thanks Ahlee
15:41 martoss1 joined #salt
15:47 martoss joined #salt
15:50 kermit joined #salt
15:50 cstoll joined #salt
15:53 eriko joined #salt
15:55 b1nar1_ joined #salt
15:55 StDiluted joined #salt
15:57 Ozack1 joined #salt
15:57 thedodd joined #salt
16:00 b1nar1 joined #salt
16:01 pdayton joined #salt
16:03 shepax some one know how t get the import decimal at python?? or how to install it?
16:04 bhosmer joined #salt
16:09 vlcn anyone know of an example of using salt.pillar.pillar_ldap
16:14 jngd joined #salt
16:14 micah_chatt_ joined #salt
16:15 cstoll left #salt
16:16 smcquay joined #salt
16:16 ramishra joined #salt
16:19 wendall911 joined #salt
16:21 conan_the_destro joined #salt
16:22 jxqz shepax: what distro are you on?
16:24 jxqz depending on the distro, you may need to install another package to get decimal, although in my experience it is part of the standard python libs => part of the python package itself
16:24 rostam joined #salt
16:25 tligda joined #salt
16:25 Ahlee Decimal has been part of python since 2.4, since salt requires 2.6 it's guaranteed to be there
16:26 perfectsine joined #salt
16:27 mpanetta Ahlee: I found my issue.  I had a configuratin issue that was pointing my new cloud servers to a different master!  Did not notice until I turned on debugging on the minion.
16:27 Ahlee well, that'll do it.
16:27 Ahlee :)  good find.
16:27 bhosmer joined #salt
16:27 mpanetta haha yeah
16:28 StDiluted joined #salt
16:29 masterkorp https://groups.google.com/forum/#!topic/salt-users/TryT8i9L1o4
16:30 masterkorp shameless cross reference
16:32 AxelFooley joined #salt
16:32 AxelFooley hi guys
16:32 AxelFooley help with jinja renderes needed here
16:33 AxelFooley i have this lib.sls file => http://pastebin.com/VJSuUvVP
16:33 AxelFooley and i'm getting "Unable to manage file: Jinja syntax error: unexpected 'end of statement block'"
16:34 AxelFooley i'm not so good with jinja
16:34 AxelFooley so i really don't know how to manage that
16:34 AxelFooley someone could help me pls?
16:38 pdayton joined #salt
16:40 pdayton joined #salt
16:41 babilen AxelFooley: Make the web a better place and use less poopy pastebins than pastebin.com such as http://refheap.com, http://paste.debian.net, http://bpaste.net, https://gist.github.com
16:42 AxelFooley sorry about that babilen
16:42 babilen Lets take a look .. What is the exact error you get?
16:42 babilen No problem (just wanted to mention it for the future)
16:43 AxelFooley i've written it above
16:43 AxelFooley "Unable to manage file: Jinja syntax error: unexpected 'end of statement block'"
16:43 babilen that's all there is?
16:43 ghanima joined #salt
16:43 babilen Ah, I have it
16:44 AxelFooley yep
16:44 giantlock joined #salt
16:44 babilen {%- if grains['domain'] == 'rete.loc'- %} should be {%- if grains['domain'] == 'rete.loc' -%}
16:44 AxelFooley ok, i'll try, hold on
16:44 babilen (note the position of the final -)
16:44 babilen (you have that on all lines
16:44 babilen )
16:45 aparsons joined #salt
16:45 ndrei joined #salt
16:45 ndrei_ joined #salt
16:47 AxelFooley ok, i've fixed my lib.sls file this way => http://paste.debian.net/131309/
16:47 AxelFooley and now i'm getting the error: "Unable to manage file: Jinja variable 'grains' is undefined"
16:47 __gotcha joined #salt
16:48 micah_chatt_ joined #salt
16:48 AxelFooley i forgot to mention my salt-master version, which is 2014.1.13+ds-1~bpo70+1
16:48 tkharju joined #salt
16:50 mpanetta Can you call orchestration from the highstate?
16:51 bhosmer joined #salt
16:51 babilen AxelFooley: Where are you using that?
16:51 iggy mpanetta: you'd generally do it the other way around
16:52 mpanetta Oh?
16:52 AxelFooley mpanetta: i think yes, actually i've never used it, so i'm not so prepared on how to do that
16:52 iggy mpanetta: I don't think you can call runners from highstate though... give it a shot and see
16:52 mpanetta What are the reasons for having both orchestration and overstate?
16:52 babilen You would definitely do it the other way round
16:52 mpanetta I think I am confused...
16:53 babilen mpanetta: historical reasons
16:53 iggy mpanetta: overstate will go away someday
16:53 babilen forget about overstate and use orchestration
16:53 mpanetta er I mean orchestration and highstate... Sorry
16:53 iggy but it's not technically deprecated now
16:53 babilen stop confusing yourself! (and us) ;)
16:53 mpanetta lol
16:53 iggy orchestration is for doing "stuff" across different nodes
16:53 mpanetta highstate is for all nodes?
16:54 iggy no, a highstate runs on a single node
16:54 pipps joined #salt
16:54 iggy I mean you can run it on multiple nodes
16:54 iggy but it only makes changes to a single host
16:54 babilen mpanetta: A highstate applies to each individual node, while orchestration models dependencies between nodes. (think "service FOO has to come up on nodeA before BAR can run on nodeB")
16:55 AxelFooley pretty good explanation babilen, thank you a lot
16:55 bhosmer_ joined #salt
16:55 mpanetta Ahh!
16:55 iggy whereas orch can do (f.ex.) run state-A on host1, then run state-B on host2, then run state-C on host1
16:55 babilen You can, naturally, apply a highstate to all nodes, but it does only apply to each minion individually
16:55 mpanetta Yes thanks babilen!
16:55 rojem joined #salt
16:55 ajolo joined #salt
16:55 AxelFooley so, regarding my problem :)
16:56 AxelFooley Jinja variable 'grains' is undefined
16:56 mpanetta So orchestration is generally the way to go when spinning up an environment?
16:56 AxelFooley seems like it doesn't recognise the grains variable
16:56 TTimo joined #salt
16:56 mpanetta I thought it was __grains__?
16:56 babilen AxelFooley: Where do you use the code you pasted?
16:56 iggy mpanetta: that's in python
16:56 mpanetta Ahh yes
16:57 ajolo joined #salt
16:57 babilen __grains__['foo'] vs grains['foo'] vs salt['grains.get']('foo') vs ...
16:57 AxelFooley babilen: into my lib.sls file, which is imported into a configuration file that has to be configured with certains values depending on the machine
16:57 babilen configuration file?
16:58 AxelFooley yes, in my case the user bashrc file
16:58 babilen Could you paste the *entire* self-sufficient example to, say, http://refheap.com ? Including whatever file imports something else.
16:58 iggy PASTER MOAR!!!
16:58 * babilen pesters iggy
16:58 TTimo hello. is it possible to include pillar data via globbing? e.g. I'll have various .sls in a pillar directory, I don't necessarily know the name .. I just want a rule 'pull in all the .sls'
16:58 iggy or gist since you know... it allows multiple files (And you can even drag and drop them directly into the browser)
16:58 babilen +1
16:59 babilen TTimo: Don't think so
16:59 iggy TTimo: no
16:59 mpanetta Ok that makes much more sense.  So we could use highstate to load all the common things and orchestraton to bring up the entire environment?
16:59 TTimo mhh .. I can do jinja type of stuff in the top.sls of my pillar data though ?
17:00 iggy but yeah, refheap is loads better than pastebin even
17:00 iggy mpanetta: right... you can even (as I said earlier) run highstate from orchestrate
17:00 delinquentme joined #salt
17:00 KyleG joined #salt
17:00 KyleG joined #salt
17:00 AxelFooley ok, i have this lib.sls file http://paste.debian.net/131309/, that is imported into this file http://paste.debian.net/131313/, and executed with this state file http://paste.debian.net/131314/
17:01 AxelFooley the state file is named "environment"
17:01 AxelFooley so, when i launch salt 'minion-host' state.sls environment
17:01 AxelFooley i get the error "Unable to manage file: Jinja variable 'grains' is undefined"
17:01 AxelFooley this is it :)
17:02 iggy why not just import lib.sls?
17:02 babilen brb
17:02 AxelFooley because maybe later i'll insert other jinja expressions into the lib file
17:03 iggy but traditionally, you'll see it with the import in the actual state file and then you pass what you need to the template file
17:03 AxelFooley iggy: could you provide me an example please?
17:04 iggy just about every formula in saltstack-formulas
17:05 alexr___ joined #salt
17:06 jalbretsen joined #salt
17:06 iggy AxelFooley: you probably want import with context
17:06 cmthornton I'd change lib.sls into lib.jinja (or more conventionally) map.jinja file to make it clearer that this file is used for configuration parameters/variable, not really a state file. And, I'm not sure if this is you're problem, but I think you should be including with context?
17:06 iggy so the context from the top level jinja file (i.e. salt, grains, etc.) gets passed to the included/imported one
17:07 AxelFooley ok, i'll try right now
17:08 iggy but there are definintely more elegant ways of doing that with map merging
17:09 ramishra joined #salt
17:10 cmthornton yeah, I think in the long run, AxesFooley, you probably want something more like what's described in this section: http://docs.saltstack.com/en/latest/topics/best_practices.html#variable-flexibility
17:13 aqua^mac joined #salt
17:14 druonysus joined #salt
17:14 cmthornton ha, docs seem to have the wrong path,
17:14 cmthornton /srv/pillar/apache.sls -- should be /srv/salt/apache/map.jinja
17:16 cmthornton nm, ignore me... the docs are right but they don't show the contents of map.jinja that's imported in apache/conf.sls
17:17 zlhgo joined #salt
17:18 ipmb joined #salt
17:18 linjan joined #salt
17:19 shookees joined #salt
17:19 AxelFooley i think i'll use three different bashrc files, and with pillars i'll pull the correct one based on the 'domain' grain, within the state file
17:19 SpX joined #salt
17:20 AxelFooley thank you anyway guys :)
17:21 thedodd joined #salt
17:27 beneggett joined #salt
17:27 Carl56 joined #salt
17:29 pdayton1 joined #salt
17:29 hal58th joined #salt
17:29 felskrone joined #salt
17:31 desposo joined #salt
17:32 pipps joined #salt
17:32 srage_ joined #salt
17:35 smcquay joined #salt
17:36 ghanima I am trying to test this module I found that at somepoint I will make into a grain
17:36 ghanima the code is here and its pretty vanilla from what I can tell
17:36 ghanima http://paste.ubuntu.com/8944594/
17:36 srage joined #salt
17:36 ghanima However everytime I try to execute it with salt-call I get the following error
17:37 ghanima Error: http://paste.ubuntu.com/8944602/
17:37 b1nar1 joined #salt
17:37 ghanima from a syntax standpoint at glance everything I am doing looks correct
17:39 micah_chatt_ joined #salt
17:42 aparsons joined #salt
17:42 iggy just as an fyi, I'd avoid doing cmd.run's as a grain
17:42 iggy they get called multiple times during state runs
17:42 speed145a joined #salt
17:43 delinquentme joined #salt
17:45 iggy you could add it to your mine functions and pull the data from the salt mine
17:45 ghanima iggy: that was my plan
17:46 ghanima but I want to confirm that the module works
17:46 iggy understandable ;)
17:46 ghanima first before adding the it as a mine function
17:46 ghanima iggy: using salt-call am I calling it incorrectly
17:46 ghanima that's the only thing I can think of
17:47 iggy ghanima: is that the entire module?
17:48 ghanima iggy: code wise yes
17:48 iggy take out all the imports except for the import os
17:48 iggy the others aren't used (and seem to be what is causing your issue)
17:49 iggy and I verified they aren't required to get the dunder dicts (as I though that might have been why they were there for no reason)
17:50 alexr__ joined #salt
17:50 ghanima iggy: I removed all the imports
17:50 ghanima and still the same error
17:50 ghanima sorry I kept os
17:50 iggy resync and all?
17:50 ghanima iggy: I did a manual edit on the minion
17:50 rostam joined #salt
17:50 iggy that doesn't do it
17:51 iggy I'm pretty sure you need to sync to have the minion re"import" the modules
17:51 Ryan_Lane joined #salt
17:51 DolourousEdd joined #salt
17:53 ghanima iggy: same error http://paste.ubuntu.com/8944839/
17:53 ghanima this after I did a resync
17:55 iggy ls /srv/salt/_modules
17:55 ghanima [root@aotrafc001 modules]# ls *
17:55 ghanima perfdata_check_mk.py  perfdata_check_mk.pyc
17:55 agend joined #salt
17:55 ghanima sorry that was from the minion
17:55 Gareth morning morning
17:56 SheetiS joined #salt
17:56 ghanima [crhancoc@aotrafo004 _modules]$ ls
17:56 ghanima perfdata_check_mk.py
17:56 ghanima [crhancoc@aotrafo004 _modules]$ pwd
17:56 ghanima /srv/salt/_modules
17:56 ghanima [crhancoc@aotrafo004 _modules]$
17:56 UtahDave morning Gareth!
17:56 ghanima I also have the output of the sync if you need it
17:57 iggy everything looks right to me
17:57 ghanima iggy: holy crap
17:57 ghanima the return statement
17:57 ghanima has to match the filename of the module
17:58 iggy yeah, damn
17:58 ghanima I misunderstood __virtual__ I thought __virtual__ was meant to act as an overriide meaning you how you invoke the module can be different than then the filename of the module
17:58 smcquay joined #salt
17:59 iggy it doesn't technically have to match
17:59 bhosmer joined #salt
17:59 iggy see f.ex. the aptpkg (and other pkg) modules
18:00 iggy I wonder what that stuff about the version numbers was
18:01 ghanima iggy: to you previous point "avoid using cmd.run as a grain"
18:01 ghanima I don't think I am doing that in my example do you see an indiciation of that
18:01 aparsons joined #salt
18:01 iggy no, but you said you were planning on making it a grain
18:02 mbrgm joined #salt
18:02 mbrgm hi! can I get salt-master to log to stdout?
18:03 ghanima iggy: oh my bad no I was planning on making it into a mine well I am not sure
18:03 ghanima iggy: I have been reading about salt mine vs salt publish
18:03 iggy mbrgm: sudo salt-master -l debug
18:03 ghanima it seems salt publish can poll more often than salt mine
18:03 mbrgm iggy: ty!
18:03 jalaziz joined #salt
18:03 iggy ghanima: yes, but publish takes a little more pre-setup
18:04 ghanima i am al ears
18:04 iggy you have to specifically whitelist functions that minions can run and where they can run them
18:04 iggy in the master config
18:04 hunmonk_ joined #salt
18:05 hunmonk_ left #salt
18:05 iggy where as mine functions you can just plop in a pillar/minion config/etc and then everybody has access to the data
18:05 SheetiS I was always concered about allowing too much power on minions with publish.  Some unforeseen consequence that would come back to bite me.
18:05 mpanetta Are there any examples out in the wild that detail how to use orchestration and highstate together?
18:06 mpanetta I saw the one in the docs
18:06 SheetiS mpanetta: I have an orchestration that does some things then runs a highstate
18:06 SheetiS I can share  a bpaste in a moment.
18:06 mpanetta SheetiS: That may be helpful, thanks
18:07 iggy I have a bunch of stuff... that works about 20% of the time
18:07 mpanetta 20% of the time? heh
18:07 SheetiS https://bpaste.net/show/8e90588ff1f5
18:08 SheetiS I have this setup as a macro because I import it from other orchestrations for different types of targetting
18:08 jalaziz joined #salt
18:08 SheetiS you wouldn't have to do that yourself
18:08 mpanetta Ah sweet
18:09 SheetiS I did orchestration that because I statefully manage my grains and then share the grains via mines
18:10 mpanetta Yeah, that makes sense.  We do something similar here.
18:10 SheetiS and since the mine state would run at the time of the highstate, and I was polling roles from the mine to see what states should be run, I was having to run 2 highstates before
18:10 hunmonk_ joined #salt
18:11 SheetiS Only thing I don't like about it is that I couldn't batch from an orchestration.  Don't know if that was ever added in 2014.7, but I know some people have discussed it.
18:11 mpanetta Ah, to keep from flooding the master?
18:11 iggy I don't think it was added yet
18:11 rap424 joined #salt
18:12 SheetiS Looks like it wasn't when I checked the feature request on github.
18:12 mbrgm one more thing: what do '17s', '8s' ... in the logformat string mean?
18:13 forrest joined #salt
18:13 hasues joined #salt
18:15 rostam joined #salt
18:15 intellix joined #salt
18:17 murrdoc joined #salt
18:19 hasues left #salt
18:20 saltcompound joined #salt
18:21 hal58th mbrgm: Can you give an example? I'm not sure what you are talking about
18:21 zooz joined #salt
18:21 saltcompound I am trying to create a compound match in my top config file that specifies all servers, except a few. Can anyone assist?
18:21 jeffspeff I want to add (let's say) "-Office" to the end of each minion name. What is the best way to do this in a state file and also check to make sure that it hasn't already been done? I don't want to end up constantly appending -Office and end up with computer1-office-Office-Office...
18:22 hal58th saltcompound: Sure did you read the manual about compound matching?
18:23 saltcompound hal58th: I did, I was able to get this to work : * and not SERVERNAME
18:23 hal58th jeffspeff: You can probably do a file.replace with a regex string to add to the minion id. Then I recommend an automatic restart of the salt-minion. You will have to readd the minion key though
18:23 saltcompound but I would like to use * and not (SERVERNAME or SERVERNAME2)
18:24 hal58th ah I see saltcompound. Let me take a look
18:24 saltcompound much appreciated
18:25 pipps joined #salt
18:25 hal58th Looks like you need to follow this format. "salt -C '* and not web-dc1-srv' test.ping"
18:25 hal58th for the top file, I'm sure it's something similar
18:25 wendall911 joined #salt
18:26 iggy sudo salt -C '* and not E@.*(arcee|bumblebee).*' test.ping
18:27 ndrei joined #salt
18:27 saltcompound trying this now
18:27 iggy or you could probably use: * and not L@min1,min2,min3
18:27 hal58th Oo, I like that one iggy:
18:30 pdayton joined #salt
18:31 hal58th jeffspeff: Here is a quick example of a file replace and restart salt minion via cmd.wait https://np.adm.sx/view/95fe525d
18:32 ghanima iggy: hey another question about mine
18:32 jeffspeff hal58th, thanks.
18:32 jeffspeff i'll test that here shortly
18:32 hal58th jeffspeff: welcome
18:32 ghanima iggy: so I didn't think about this when I started but the data that is returned what format is that in a dictionary
18:33 ghanima if I only want to show a subset of that data how would I do so
18:33 saltcompound iggy & hal58th, in my top file I have: '* and not L@Server1,Server2'
18:33 catsinsofas Ahlee, " has been part of python since 2.4, since salt requires 2.6 it's guaranteed to be there" not quite actually, i dont know if any other distro allows this but on gentoo you can (to an extent) restrict the stdlib. e.g. you can turn off sqlite support
18:33 jeffspeff hal58th, how can i check to make sure that "-Office" wasn't already added?
18:33 saltcompound Server1 does not get targeted, but Server2 does
18:33 jeffspeff i don't want to keep applying this to minions once it's already done
18:33 catsinsofas (was from earlier just stumbled on it in the backlog)
18:33 iggy saltcompound: L@ has to match the minion_id exactly (so usually a fqdn in my case)
18:34 saltcompound it is exact (i use shortnames for  minion_id)
18:34 hal58th jeffspeff: you will just have to make sure your perl regex does not match strings with "-office" at the end
18:35 iggy catsinsofas: presumably someone who is going out of their way to limit the python stdlib is also going to know that it restricts their usage of anything that relies on that... i.e. not worth mentioning in documentation as it'll confuse people more than it'll clarify things
18:36 catsinsofas iggy, well if you run gentoo i would argue you can be expected to either know this or be able to find #gentoo on IRC
18:36 alexr__ joined #salt
18:36 iggy saltcompound: WORKSFORME
18:36 catsinsofas just noting it for completeness that you cannot completely rely on the full stdlib being present
18:36 linjan joined #salt
18:37 iggy I've got other ideas for you if you run Gentoo, but as my mom always said... if you don't have anything nice to say, keep your damn mouth shut
18:37 saltcompound iggy: in the top.sls file?
18:37 catsinsofas iggy, you should follow her advise then :P
18:37 micah_chatt_ joined #salt
18:37 iggy saltcompound: that was on the command line... it shouldn't be any different in the top file
18:38 StDiluted lol
18:39 iggy ghanima: paste some examples (anywhere by pastebin.com please)... I'm not really following what you're asking
18:42 ghanima iggy: http://paste.ubuntu.com/8945648/
18:42 ghanima thinking I am going to have to create a function for each datatype denoted like <<<example>>>
18:44 jrluis joined #salt
18:44 Mso150 joined #salt
18:44 iggy that's the actual output of that program?
18:45 troyready joined #salt
18:45 forrest joined #salt
18:45 bhosmer joined #salt
18:47 hal58th saltcompound: I guess do a  sudo salt-call grains.get id to make sure your id is correct
18:48 Ahlee catsinsofas: fair enough.  Thanks for correcting my broad generalization, and adding yet entry under "reason's I personally will never use gentoo"
18:48 catsinsofas hehe
18:48 Ahlee That's kind of an interesting use case, but man.  Why can't we just KISS
18:48 catsinsofas well im not sure how that made it into gentoo
18:49 iggy because -O10
18:49 catsinsofas i guess someone didnt want sqlite and submitted it so now everyone can turn it off
18:49 berserk joined #salt
18:49 vejdmn joined #salt
18:50 Ahlee yeah
18:50 saltcompound hal58th: if i do * and not L@Server1,Server2 (Server1 does not get targeted but Server2 does, if i reverse their order then Server2 does not get targeted but Server1 does)
18:50 Ahlee I can see the desire for it, however much I don't approve of it in spirit
18:50 Ahlee that's why I don't get to make those decisions :)
18:50 bhosmer joined #salt
18:51 iggy saltcompound: did you try it on the command line to see if you get the same behavior?
18:51 catsinsofas with great power comes great responsibility ;)
18:51 saltcompound i will try that
18:54 oyvjel joined #salt
18:55 saltcompound when running the command via cli, i get the same result as if it were in the top file
18:58 saltcompound fixed it, i had a compound that overruled my list to deny. Thanks for all the helpl iggy and hal58th!
19:01 rojem joined #salt
19:01 aqua^mac joined #salt
19:02 pdayton joined #salt
19:03 hal58th saltcompound: I thought it would be something silly like that
19:05 arnoldB is the 2014.7 branch broken (or unstable) at the moment? getting "Exception RuntimeError: 'dictionary changed size during iteration' in <bound method MasterEvent.__del__ of <salt.utils.event.MasterEvent object at 0x33b5050>> ignored" after executing salt commands
19:10 thayne joined #salt
19:12 ndrei joined #salt
19:14 spookah joined #salt
19:15 saravanans joined #salt
19:17 bhosmer joined #salt
19:22 cpt-oblivious joined #salt
19:22 cpt-oblivious joined #salt
19:23 aw110f joined #salt
19:29 tmh1999 joined #salt
19:30 ckao joined #salt
19:30 pipps joined #salt
19:34 cpt-oblivious joined #salt
19:35 cpt-oblivious joined #salt
19:36 faust joined #salt
19:38 Mso150_x joined #salt
19:39 cpt-oblivious joined #salt
19:41 saravanans joined #salt
19:41 hal58th left #salt
19:41 hal58th joined #salt
19:43 alexr__ joined #salt
19:46 nitti joined #salt
19:46 alexr__ joined #salt
19:48 viq joined #salt
19:49 meylor joined #salt
19:53 kballou joined #salt
19:55 dlam joined #salt
19:55 dlam hmm how do i manually reconnect a minion to master?   (i ran like `salt-run manage.down` and all my boxes arent connected :O)
19:57 kickerdog joined #salt
20:00 shoemonkey joined #salt
20:00 MrFuzz joined #salt
20:02 KyleG I usually just restart the minion
20:05 __gotcha joined #salt
20:09 UtahDave joined #salt
20:10 ericof joined #salt
20:13 giantlock joined #salt
20:15 kickerdog1 joined #salt
20:17 kickerdog joined #salt
20:18 pdayton joined #salt
20:23 pipps joined #salt
20:25 asyncsrc joined #salt
20:27 murrdoc joined #salt
20:31 to_json joined #salt
20:34 bhosmer joined #salt
20:35 nicksloan what's the latest on ubuntu packages? Is there a way to help out?
20:38 babilen nicksloan: There was a problem with building the documentation, but they are solved now as far as I know. I'd expect packages to hit the mirrors soon.
20:38 babilen (but that's just my gut feeling)
20:39 murrdoc joined #salt
20:42 TTimo joined #salt
20:44 balltongu joined #salt
20:45 paull1953 joined #salt
20:46 murrdoc joined #salt
20:47 paull1953 Anyone have an idea as to when the 2014.7 release might make it to the Ubuntu ppa?
20:48 manfred joehh: ^^
20:49 manfred he is the one that would know
20:49 hal58th1 joined #salt
20:49 paull1953 Thanks!
20:49 babilen soon™ :)
20:49 delinquentme joined #salt
20:50 iggy 2 weeks
20:50 aqua^mac joined #salt
20:51 murrdoc joined #salt
20:51 paull1953 Soon is good… but we’re in pain due to a regress in 2014.1.13… the fix is in 2014.7… so sooner is better, of course.
20:52 paull1953 But having an idea when is helpful. Thanks again.
20:52 iggy I wonder if any more releases are planned for 2014.1
20:53 iggy I know we won't be moving to 2014.7 for now (we use compound matches in mine.get)
20:54 mpanetta ah crap
20:54 mpanetta I forgot about that
20:54 jeffspeff i know i'm missing something simple here... here's a function of my state file and the highstate result for it. in the minion conf file, the hostname does not have "-Office" appended, nor does it get changed, even though the state returns as "true"
20:55 jeffspeff oh forgot the pastebin http://pastebin.com/qhADbnC5
20:55 paull1953 Judging by the thread in Github issues in Salt repo, it didn’t appear that another release for 2014.1 was getting considered. But maybe…
20:55 mpanetta iggy: Why did they disable compound matches in mine.get again?  Security or something?
20:55 manfred iggy: my understanding is there won't be
20:56 mpanetta because compound matches in mine.get are very useful..
20:56 iggy mpanetta: effectively... being able to guess pillar data via mine queries
20:57 mpanetta Weird
20:57 mpanetta so it would only be exploitable though guessing values to match...
20:57 iggy that's what I thought
20:57 iggy but you forget about globbing
20:58 mpanetta But does that expose the actual value?
20:58 babilen paull1953: Which refression is that?
20:58 babilen *regression
20:58 rallytime joined #salt
20:59 babilen I was also under the impression that upstream wasn't planning on releasing yet another 2014.1 minor release.
20:59 iggy i.e. I@pillar:password:f* -> I@pillar:password:fo* -> etc...
20:59 mpanetta Ah
20:59 mpanetta Ok so it allows dictionary attacks...
20:59 iggy if you want to look at it that way
21:00 mpanetta Well actually easier then that...
21:00 paull1953 babilen: a faulty exception occurs after retrieving a file from S3 store. File comes down ok, but the returner dict is misinterpreted, thinks its missing an entry
21:00 babilen Okay, I was just curious. That one does not affect us at all.
21:01 babilen skyler: Great success with the ML post concerning formulas ;)
21:02 paull1953 Yeah, from all my searching over the past week, I think we may be the only ones affected in production. The bug was found via someone’s testing, and they contributed their patch up to the repo for consideration. It got included in 2014.7.
21:02 mpanetta iggy: So it matches against any pillar, not just the pillar the minion already has access to?
21:02 babilen paull1953: What exactly was patched?
21:02 UtahDave joined #salt
21:03 babilen (do you have the SHA of the commit or PR?)
21:03 mpanetta I would assume the latter, since you can just do a pillar.items to get all the pillar data a minion has access to anyway...
21:03 iggy mpanetta: the old version, yeah
21:03 hal58th joined #salt
21:03 iggy it's already fixed apparently, and scheduled for the 2014.7.1 release
21:03 paull1953 babilen: yes, I think I can find it. Give me a minute to dig it up.
21:03 nitti_ joined #salt
21:04 mpanetta iggy: Ah nice :)
21:04 iggy (after there was talk of torches and pitchforks)
21:04 mpanetta lol
21:04 babilen yeah, hot tar makes for a pretty convincing argument these days
21:05 hal58th jeffspeff: I think the state will always return as true unless it didn't have access to change the file. The comment is really what you have to look at. I would try double quotes in your repl pattern. I think that helped me for some strange reason
21:05 Mso150_x joined #salt
21:05 jeffspeff hal58th, thank
21:05 jeffspeff *thanks
21:07 hal58th jeffspeff: I would also test out your regex. seems to match anything starting with "id: " right now. http://regexpal.com/
21:07 hal58th Make sure to click the match at line breaks option in that website
21:07 jeffspeff http://regex101.com/r/nC5gE3/1
21:09 hal58th http://regex101.com/r/nC5gE3/2
21:10 mbrgm hal58th: the default logformat is '%(asctime)s,%(msecs)03.0f [%(name)-17s][%(levelname)-8s] %(message)s'. what do '03.0f', '-17s', '-8s' mean?
21:11 iggy mbrgm: check the python docs (which I think then tell you to look at the C printf docs)
21:13 hal58th mbrgm: I'll save you some time because I was interested too. https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting
21:14 TTimo joined #salt
21:17 nitti joined #salt
21:17 paull1953 babilen: Here’s the issue thread in github. mzdaniel also includes his patch: https://github.com/saltstack/salt/issues/16610
21:17 babilen ta
21:18 babilen paull1953: So all changes in https://github.com/saltstack/salt/pull/16629/files are necessary?
21:19 jeffspeff hal58th, any idea why that isn't working or what to do to fix the regex?
21:20 hal58th unfortunately I am not good at regex so I am not much help. I usually ask the dev guy behind me for some help
21:20 paull1953 The change in the pr seems more generalized than the patch. That’s the changes that I found in the released module.
21:21 babilen So what is needed to get you running?
21:21 ghanima joined #salt
21:22 babilen paull1953: Background to my question is that you can easily patch states and modules and place the fixed versions in _states and _modules respectively to sync them to the minions. That way you could get running again *iff* that really is all it takes.
21:24 paull1953 babilen: I’m not completely stuck since I patched the py code. Problem is it breaks our automation chain for rapidly creating AWS instances on demand for a large devel team. I need to get back to ‘no hands on’ so I’m not intervening every time they need a platform.  ;)
21:26 paull1953 babilen: but…. what you said about placing fixed verions in _modules? That could be my way out.. will I find it in the doc (aka, I’m sure that I would, if I knew where to look).
21:27 Reiner0314 joined #salt
21:29 aquinas joined #salt
21:30 skyler babilen: Thanks
21:32 Reiner0314 joined #salt
21:34 babilen paull1953: You use _modules for your own custom execution modules, but nothing prevents you from putting modules from upstream in there and have *them* synced. I use that for "pre-release" bug-fixes quite regularly.
21:34 babilen http://docs.saltstack.com/en/latest/ref/modules/#modules-are-easy-to-write
21:34 mpanetta If I were to put my orchestration in my base env, how would I specify the environment to run under in the orchestration file?  Just matches?  Or can I set salt_env there?
21:38 dude051 joined #salt
21:41 kermit joined #salt
21:41 TTimo joined #salt
21:44 jeffspeff http://regex101.com/r/lO8sQ1/1   this matches like i want it to, but it deletes the rest of the file
21:45 Setsuna666 joined #salt
21:47 mosen joined #salt
21:50 GrueMaster joined #salt
21:51 JlRd joined #salt
21:54 Reiner0315 joined #salt
21:55 pipps joined #salt
21:57 druonysus joined #salt
21:58 UtahDave joined #salt
21:59 dude051 joined #salt
21:59 hunmonk joined #salt
22:01 UtahDave left #salt
22:03 mdasilva joined #salt
22:04 mdasilva im suffering massive pain with gitfs backend... my master has suddenly stopped pulling new changes from git
22:05 cpt-oblivious joined #salt
22:07 elfixit joined #salt
22:07 jameswarren joined #salt
22:07 iggy mdasilva: salt-run fileserver.update
22:08 mdasilva yep ran that
22:08 iggy no errors?
22:08 mdasilva no errors
22:08 iggy might try running it with -l debug
22:08 mdasilva looked into the cache and it was older states
22:09 jameswarren newbie question - can a custom grain access data in pillar? would like to access details about ec2 servers without spreading AWS credentials everywhere
22:09 mdasilva iggy: yeah odd, it has been working fine
22:12 iggy make sure you can checkout manually... could be keys changed, etc.
22:12 MugginsM joined #salt
22:15 mgw joined #salt
22:15 forrest joined #salt
22:17 mdasilva iggy: im using credentials for the states, key for pillar
22:17 mdasilva i guess i should get the gitfs using keys as well :|
22:18 Reiner0315 joined #salt
22:21 iggy yeah, we use github, so we had to go straight keys
22:21 honestly [A
22:22 iggy (and separate ones for each repo for some ridiculous reason that github thinks is cool)
22:22 mdasilva i was pulling my eyes out trying to figure out why i was getting state id collisions
22:22 mdasilva had some trouble reworking how my states were organized for git as well
22:23 nicksloan On 2014.1, what would be the ideal way to replace my production instance, with a new one, and get the DNS switched over?
22:23 bhosmer joined #salt
22:24 nicksloan seems like boto_route53 state, but I'm not totally sure how to get the public IP address of the instance into my states
22:25 nicksloan ideally I'd use an elastic ip and point the DNS at that, and then just attach that IP to the new instance
22:25 teebes joined #salt
22:27 mbrgm hal58th, iggy: ty
22:35 dstokes is there a command i can run on a minion to return the salt master?
22:35 iggy salt-call -g
22:36 iggy or you could be more specific with salt-call grains.item master
22:37 dstokes iggy: i was grepping grains for 'salt' :facepalm: thx!
22:39 aqua^mac joined #salt
22:39 b1nar1 joined #salt
22:42 ghanima joined #salt
22:42 getabc joined #salt
22:43 getabc good morning, afternoon and good night
22:44 getabc Can anybody help me with a SLS syntax for a windows file.recurse?
22:45 getabc I keep getting an error " Name c:/sync/test/ in sls nodejs is not a dictionary"
22:45 jaimed joined #salt
22:45 jagardaniel how does your statefile looks like :)?
22:46 getabc currently
22:46 getabc 'C:/sync/test':    - file.recurse:      - source: salt://home/syncthing      - include_empty: True
22:46 iggy file.recurse shouldn't have a - in front of it
22:48 jagardaniel btw, you talked about filesystem.update with salt-run - is it possible to run that in a state file to ensure that you got the latest files from a gitfs?
22:49 iwishiwerearobot joined #salt
22:49 getabc iggy awesome
22:50 getabc that did the trick - now have to fix the source dir
22:50 getabc thanks that was a pretty dumb mistake on my part
22:50 iggy we all do it (I'm notorious for forgetting the :'s at the end of the lines
22:50 miqui joined #salt
22:51 getabc lol
22:54 davet joined #salt
22:55 davet1 joined #salt
22:59 murrdoc joined #salt
23:01 kermit joined #salt
23:03 toddnni joined #salt
23:03 bhosmer joined #salt
23:04 getabc got it working ! goodbye syncthing
23:04 mbrgm left #salt
23:05 Outlander joined #salt
23:05 hal58th1 joined #salt
23:05 meylor joined #salt
23:08 getabc time to get sme coffee
23:09 skyler What do you guys do when highstate hangs?
23:10 nicksloan salt-cloud seems to be ignoring cloud.profiles.d
23:10 jcockhren always be ignoring
23:12 nicksloan nevermind, I'm dumb
23:18 Outlander joined #salt
23:18 pipps joined #salt
23:23 hasues joined #salt
23:23 hasues left #salt
23:26 badon_ joined #salt
23:26 intellix joined #salt
23:31 seydu joined #salt
23:33 aquinas_ joined #salt
23:38 iggy anybody know what |+ means in yaml?
23:38 murrdoc concatenate ?
23:39 iggy it was used similarly to a normal | for a multiline string
23:39 murrdoc http://yaml.org/spec/1.2/spec.html
23:39 murrdoc search for 'Block Scalar Headers
23:39 murrdoc '
23:39 iggy I read the spec
23:39 iggy it's still unclear
23:40 iggy keep comments?
23:41 murrdoc is the |+ is followed by blank line ?
23:42 iggy no, it's followed by a gpg key
23:42 iggy https://github.com/saltstack-formulas/elasticsearch-logstash-kibana-formula/blob/master/kibana/init.sls
23:42 murrdoc thats saying, keep the new line at the end of this block of text
23:43 bhosmer joined #salt
23:43 iggy okay, I guess I didn't really realize it wouldn't by default
23:44 murrdoc not surprising
23:44 murrdoc yaml is tricky
23:49 TyrfingMjolnir joined #salt
23:53 b1nar1 joined #salt
23:54 smcquay joined #salt

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