Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-05-21

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

All times shown according to UTC.

Time Nick Message
00:00 Ryan_Lane joined #salt
00:02 frasergr_ joined #salt
00:08 ajolo joined #salt
00:09 oz_akan_ joined #salt
00:12 joehh MTecknology: are you looking for something built off develop?
00:15 blast_hardcheese joined #salt
00:17 CeBe joined #salt
00:20 Luke__ joined #salt
00:21 joehoyle joined #salt
00:21 dlindquist joined #salt
00:25 brd joined #salt
00:26 mgw joined #salt
00:28 joehoyle joined #salt
00:30 iShortBus joined #salt
00:34 CeBe1 joined #salt
00:34 joehoyle joined #salt
00:41 dsolsona joined #salt
00:43 joehoyle joined #salt
00:55 krow joined #salt
00:56 TOoSmOotH joined #salt
01:00 aw110f The docs only mentions ext_pillar examples with git https://   .Can ext_pillar work with git+ssh ?
01:01 oz_akan_ joined #salt
01:01 manfred aw110f: i believe it only works with git+ssh in develop
01:02 jalaziz_ joined #salt
01:05 mgw joined #salt
01:06 aw110f thanks manfred:
01:12 ajolo joined #salt
01:12 joehoyle joined #salt
01:13 agronholm could someone take a look at this? http://bpaste.net/show/dk1LiPozakNzq8dPxnhn/
01:14 agronholm I am getting "Comment: State pip.installed found in sls triancore is unavailable"
01:14 agronholm so the virtualenv_install thing fails
01:14 agronholm I'd like to know why
01:15 bhosmer joined #salt
01:15 timoguin agronholm: that'll happen when a dependency for the module is not available
01:15 timoguin in your case, pip probably isn't installed
01:15 agronholm it is
01:15 agronholm pip_install precisely installs it
01:17 agronholm heh I just noticed that the example on the salt.states.cmd shows how to do almost the same thing
01:17 agronholm well, same thing but in a slightly different fashion
01:17 timoguin the modules aren't reloading after pip_install
01:17 agronholm I didn't realize I needed to do that
01:17 joehoyle joined #salt
01:17 malinoff joined #salt
01:18 Networkn3rd joined #salt
01:18 timoguin yea modules are loaded on minion startup unless saltutil.refresh_modules() is called
01:19 agronholm yay, all the states succeeded now!
01:19 agronholm thanks :)
01:22 agronholm I am a little confused about requires matching
01:25 agronholm can I use the same function from a module twice in a set?
01:25 xzarth_ joined #salt
01:26 agronholm never mind that
01:27 agronholm even if I use different functions from the same module, how do I refer to just the one state I want from another state?
01:27 agronholm since I can only use the module name
01:27 agronholm what if I have two states from the same module that use the same name argument
01:32 timoguin use the State ID and pass the name argument explicitly
01:32 timoguin then you can do module: uniqueid
01:33 timoguin it's not expecting the name argument, but the id
01:33 agronholm the docs say it can match either
01:33 agronholm the docs never mentioned anything about module:
01:34 AdamSewell joined #salt
01:34 timoguin i just mean the name of the module you're requiring
01:34 timoguin state ids have to be unique, so i give mine descriptive names
01:35 agronholm so can do like - require: [{module: virtualenv_install}]
01:35 agronholm and I don't even have to mention pip?
01:36 timoguin no, you have it right in your paste with - pip: virtualenv_install
01:37 agronholm what's that module thing then
01:37 Luke__ joined #salt
01:37 ashw7n joined #salt
01:37 agronholm does the requirement refer to the set or a particular state in it?
01:37 agronholm the docs don't tell anything specific about the semantics
01:40 timoguin the state in it i believe
01:40 agronholm if I had a second pip.installed: inside virtualenv_install, which one would pip: virtualenv_install refer to then?
01:41 timoguin oh, you can't do that anyway.
01:41 timoguin that is, you can't call the same module twice inside one set
01:42 agronholm I beg to differ
01:44 agronholm http://bpaste.net/show/7EVKfLhEPW6miwvnhtJT/
01:44 agronholm err
01:44 agronholm nevermind
01:44 agronholm alright then
01:44 timoguin ;-)
01:44 timoguin the reason why is the calls are compiled to a dict, so each module you're calling becomes a unique key in the dict
01:44 agronholm so how come the attributes have to be given as lists of single-element dicts?
01:44 agronholm or do they? it's done that way in all examples
01:46 Joseph_ joined #salt
01:46 timoguin meh, YAML
01:47 timoguin it depends on the arguments for the specific state module
01:47 agronholm so they don't all take keyword arguments? how is that possible?
01:47 joehoyle joined #salt
01:48 Joseph_ what version of sphinx should i use to edit the saltstack documentation?
01:48 thedodd joined #salt
01:51 joehoyle_ joined #salt
01:53 timoguin agronholm: i'm confused about what you're confused about, sorry
01:53 Joseph_ what's agronholm's question?
01:53 agronholm timoguin: why are the dashes necessary?
01:53 agronholm Joseph_: I'm wondering why in all the configuration examples the states' arguments are given as a list of single element dictionaries
01:54 agronholm I couldn't figure out why
01:54 Joseph_ to map them to keyword arguments that can be passed to a method in a python module
01:54 Joseph_ in a sense a keyword argument is a dictionary with a single element in it
01:54 agronholm Joseph_: so why not just a single dict?
01:55 ckao joined #salt
01:55 agronholm why do I need a list of dicts and not just a dict?
01:55 timoguin that's what the YAML is ultimately compiled down into, a single dict
01:55 agronholm but why are the dashes added there?
01:56 Joseph_ dash means list in yaml right
01:56 timoguin yes
01:56 timoguin it's a list of arguments
01:56 Joseph_ exactly
01:56 agronholm yeah, so why not a dict
01:56 Joseph_ the list of arguments includes either positional arguments, keyword arguments or both
01:56 Joseph_ hmmm
01:56 Joseph_ let me create a gist example
01:56 Joseph_ and maybe looking at it closely would help
01:58 Joseph_ https://gist.github.com/jaloren/3de8e7b2dcd8ff3606eb
01:58 malinoff agronholm, nice question actually
01:58 agronholm I haven't tried using a dict instead, maybe I should
01:59 Joseph_ agronholm that's an example of a very simple state file
01:59 agronholm Joseph_: yeah, and what's your point here?
01:59 Joseph_ to walk you through it
01:59 timoguin he's already done some states
02:00 Joseph_ so your issue lines 7 through 11
02:00 Joseph_ why is it a list instead of just one dictionary
02:00 Joseph_ is that the question?
02:00 joehoyle joined #salt
02:00 agronholm I'm wondering why just a dict wouldn't work if I only have keyword arguments
02:00 oz_akan_ joined #salt
02:01 agronholm actually it seems to work
02:01 agronholm I removed the dashes and show_highstate didn't complain
02:01 agronholm the output was correct too
02:01 Joseph_ can you show me the SLS you are talking via gist?
02:01 agronholm sec
02:02 agronholm https://gist.github.com/agronholm/64885052d645bbb25b6b
02:02 Joseph_ <timoguin>: sidenote...is there anyone i can email offline about modifying the sphinx documentation...i am supposed to update the state tutorials and that's going to require a bunch of changes.
02:03 Joseph_ agronholm so what lines are you focused on?
02:03 agronholm 22-25
02:03 agronholm I just removed the dashes from those lines
02:03 agronholm and it still works fine
02:03 agronholm so I'm wondering why the examples all have them
02:04 Joseph_ to make it explicit that its a list
02:04 agronholm lines 6-7 seem unnecessary now that I look at this
02:05 timoguin Joseph_: erm i'm not sure who would prefer to be the POC on that
02:05 stanchan joined #salt
02:05 joehoyle joined #salt
02:05 agronholm Joseph_: but why use a list if only keyword arguments are used...
02:05 Joseph_ the data structure hierarchy....look at line 21
02:06 Joseph_ that's state module you are calling right?
02:06 Joseph_ <timoguin>: well i don't actually need a contact per se...i just need someone to explain to me how to do this without breaking everything
02:06 Joseph_ :)
02:07 agronholm Joseph_: cmd.script: ?
02:07 agronholm what of it
02:07 Joseph_ yes
02:07 Joseph_ so when a python function is called you ALWAYS pass it a list of arguments
02:07 agronholm you can pass a dict of keyword arguments too
02:07 Joseph_ one or more of those arguments may be a keyword argument but the whole data structure is a list
02:08 agronholm I don't see any problem in just calling cmd.script(**kwargs)
02:08 agronholm in which kwargs is {'name': ...}
02:09 agronholm and wouldn't salt complain if this was wrong?
02:09 timoguin not if the YAML compiles to something that works
02:09 Joseph_ sure...if what you did was invalid the SLS wouldn't compile
02:09 Joseph_ what timoguin said
02:09 agronholm ok then
02:09 Joseph_ saltstack is serializing the yaml data into a gigantic dictionary and then iterating through it
02:10 Joseph_ it has very specific expectations of what it expects to see
02:10 Joseph_ so in terms of the data structure
02:10 Joseph_ hierarch is this module => function name => [list of arguments]
02:10 Joseph_ the items in that list could be position,keyword, or both
02:11 agronholm are you absolutely sure it HAS to be a _list_ of arguments?
02:11 Joseph_ well
02:11 Joseph_ no i can't say that
02:11 Joseph_ i am not that familiar with the internals of saltstack
02:11 Joseph_ but i would be shocked if it did not
02:11 joehoyle joined #salt
02:11 timoguin Joseph_: dunno, maybe whiteinge or UtahDave or basepi?
02:11 ajolo_ joined #salt
02:11 agronholm so if I reset my VM and run the highstate all over again as it is now, should it work?
02:12 timoguin i'm just getting a vagrant setup going to build the docs
02:12 Joseph_ all good possibilities
02:12 Joseph_ but how should i contact them
02:12 Joseph_ email?
02:12 jalbretsen joined #salt
02:12 Joseph_ i thought whiteinge was the sphinx person but i could be wrong
02:12 timoguin pretty sure he is
02:13 Joseph_ is email okay with him...if so could you private message me his contact details?
02:13 timoguin yea one sec
02:13 Joseph_ great
02:13 joehoyle joined #salt
02:13 Joseph_ <agronholm> i think an important thing to keep in mind is that saltstack'
02:14 Joseph_ s  system is designed to be simple for a user to use who is not familiar with python
02:14 Joseph_ so using the vocabulary of list and dictionary with a strict nesting hierarchy is useful
02:15 forrest joined #salt
02:15 Joseph_ and note that for pip_install, line 21 ...everything after that is a list...it just happens to only have keyword arguments in it...so i am not sure that you've sidestepped anything aside from removing the dashes. Not something i'd recommend if for no other reason than readability
02:16 agronholm Joseph_: it's not a list
02:16 cruatta joined #salt
02:16 cruatta_ joined #salt
02:16 agronholm I mean, how else would you declare a dict in yaml?
02:17 Joseph_ you can dictionaries in a list
02:17 Joseph_ have
02:17 agronholm I know that
02:17 agronholm what I'm saying is that I have a dict there, not a list of dicts
02:18 agronholm with the dashes it would've been a list of dicts
02:20 agronholm Joseph_: can I safely remove lines 6-7 and 17-18?
02:20 agronholm line 18 seems to stem from a previous misunderstanding regarding how requirements work
02:20 manfred it is an ordered dictionary if you have - with : variables
02:20 Joseph_ try doing that with the database block
02:20 Joseph_ and let me know what happens
02:21 dsolsona joined #salt
02:22 agronholm as a side note, this is really annoying...the connection between master and my vm's minion is cut whenever the minion is idle for a minute
02:22 mgw joined #salt
02:22 agronholm vm = virtualbox
02:22 Joseph_ i am not sure why that would happen
02:22 joehoyle joined #salt
02:22 Joseph_ i have not experienced a networking problem with VMs
02:22 agronholm I have tcp_keepalive_idle set to 30 already
02:22 agronholm no effect
02:23 agronholm probably a VM issue
02:23 Joseph_ and yes you can remove lines concerning the requisites without causing a problem i do not think
02:23 Joseph_ are you using a specially constructed VLAN?
02:23 agronholm no
02:23 Joseph_ odd
02:23 agronholm but this is happening over the internet, across continents no less :)
02:24 Joseph_ i have saltstack running on a set of openstack VMs with no problem
02:24 Joseph_ oh god
02:24 Joseph_ could be networking hiccups
02:24 Corey nertwerks
02:24 Joseph_ i am not terrible familiar with zeromq works but my understanding is that it tries to keep persistent connection open between the minion and the message bug
02:25 agronholm and the message bug...?
02:25 Joseph_ message bus
02:25 Joseph_ oops
02:25 agronholm yeah it does
02:25 joehoyle_ joined #salt
02:25 Joseph_ i thought saltstack was supposed to handle multidatacenter communication well but never tried it mysql
02:25 Joseph_ myself
02:25 timoguin i had auto reverse ssh tunnels at my last job as a failback for remote workstations in case the salt link failed
02:26 Joseph_ timoguin: that's awesome
02:26 agronholm I finally got show_highstate to run
02:26 agronholm output looks correct
02:26 timoguin had a frequently-used fabric script to restart the minions if they died
02:26 whiteinge timoguin, Joseph_: sorry for the slow reply. took a little dinner break
02:26 timoguin that was around 0.10-0.11 or soo.
02:27 agronholm timoguin: how do you restart minions if the connection is dead?
02:27 agronholm through ssh?
02:27 timoguin agronholm: yea that's what i did.
02:28 timoguin whiteinge: np i gotta take a break too
02:28 timoguin but don't ever do it again
02:28 XenophonF joined #salt
02:29 krow joined #salt
02:29 Joseph_ i know who needs food and sleep
02:29 Joseph_ we need to be good FSM
02:30 forrest whiteinge, you missed Dave talking to himself in the hangout
02:30 whiteinge ha
02:30 whiteinge what was he saying?
02:30 forrest I don't know
02:31 forrest he was muted
02:31 whiteinge i'll jump in there
02:31 timoguin we'll have to start recording the hangouts
02:31 timoguin so we don't lose pretty moments like that again
02:31 timoguin just don't tell dave
02:32 ajolo_ joined #salt
02:32 Joseph_ hmmm
02:32 Joseph_ does this make me an accomplice if i remain silent?
02:34 agronholm Joseph_: you are vindicated
02:34 joehoyle joined #salt
02:34 agronholm tried to apply the highstate, got a bunch of errors about not being formed as lists
02:35 mgw joined #salt
02:38 joehoyle joined #salt
02:39 otter768 joined #salt
02:39 anuvrat joined #salt
02:42 joehoyle_ joined #salt
02:42 austin_laptop joined #salt
02:44 Joseph_ :)....you were making me question myself
02:47 cpowell joined #salt
02:48 thedodd joined #salt
02:54 krow joined #salt
03:01 oz_akan_ joined #salt
03:03 bhosmer joined #salt
03:03 stephas joined #salt
03:08 MTecknology joehh: aaand, I'm back, nah, I can build it tomorrow. It's three commands. The headache is updating salt on that many boxes.
03:09 oz_akan_ joined #salt
03:13 otter768 joined #salt
03:16 forrest MTecknology, ?
03:16 forrest why can't you update it with
03:16 forrest *salt
03:16 Furao joined #salt
03:18 krow joined #salt
03:19 MTecknology forrest: I haven't tested, but updating salt always restarts the salt process and that's always killed the running process.
03:19 MTecknology is that fixed now?
03:19 forrest nope
03:19 forrest use at
03:19 MTecknology how do you update it without letting the process restart?
03:20 forrest well it restarts, but it will wait till the job is done
03:20 forrest let me see if I can find it hand on
03:20 forrest *hang
03:21 forrest MTecknology, http://docs.saltstack.com/en/latest/faq.html#what-is-the-best-way-to-restart-a-salt-daemon-using-salt
03:21 forrest or, you can do the same thing using the at state
03:22 MTecknology forrest: that works, but... apt will restart the process
03:22 forrest ?
03:22 forrest what
03:22 forrest what do you mean
03:22 forrest since when did upgrading the package restart salt?
03:22 MTecknology When you update the package, the service will restart. That's always been the case.
03:23 oz_akan_ joined #salt
03:23 forrest uhhh
03:23 forrest are you sure?
03:23 MTecknology same as installing a mysql update will restart the mysql process
03:23 forrest hmm
03:23 schimmy1 joined #salt
03:25 MTecknology forrest: all package managers that I've played with do that
03:26 forrest I think it depends on the package, I've built plenty of internal packages that don't do that
03:26 forrest specifically for that purpose
03:26 MTecknology well... it's a package thing to do so, gimme a sec
03:27 AdamSewell joined #salt
03:28 MTecknology http://bazaar.launchpad.net/~nginx/nginx/debian/view/head:/debian/nginx-full.postinst  <-- after installing nginx-full, the .postinst script is run and that restarts the process
03:28 MTecknology salt does the same thing
03:28 forrest gotcha
03:29 forrest that kinda sucks
03:31 MTecknology pretty much any service does that; I don't know of any way to tell apt to not run the postinst script, but... that's probably a good thing
03:31 agronholm can I do pip installs directly from the master?
03:31 agronholm like name: salt://package.whl
03:31 forrest MTecknology, yea, I just don't usually include restarts in my packages
03:32 MTecknology half of the packages I manage in debian do that
03:32 MTecknology nginx restarts; tdc doesn't
03:32 forrest ok, so just do a cmd.run
03:32 forrest with apt-get install salt-minion at now + 1
03:32 forrest or whatever
03:34 MTecknology could try that
03:35 joehh MTecknology, forrest: apt-get install salt-minion at now + 1  is probably the safest
03:36 joehh but you should be able to upgrade within salt since about 0.16.4/5ish
03:36 joehh I'd treat it as a packaging bug if it doesn't work
03:36 MTecknology ah, I'll try it out tomorrow.
03:37 joehh MTecknology: I'd be interested to see which commands you use - just wanting to "survey" how people are packaging salt themselves
03:37 joehh guessing some variant of salt/versions.py, dch and debuild
03:37 forrest joehh, why is debian packagin so crappy?
03:37 forrest I thought packaging for red hat distros was bad
03:37 MTecknology I read something about highstate and such running as a separate process from the minion process so the minion can be killed without killing the highstate
03:37 forrest but my new shop is ubuntu
03:37 forrest and damn does it suck
03:38 forrest *packaging
03:38 MTecknology forrest: ubuntu sucks; debian isn't so bad-
03:38 joehh having got used to it, I don't find it too bad
03:38 MTecknology it has a heavy learning curve, but once you know it, it's pretty solid
03:38 MTecknology that learning curve is far from friendly
03:43 rgbkrk joined #salt
03:45 MTecknology I half wanna just go into work now so I can grab those commands and share...
03:45 MTecknology joehh: I'll get them in the morning.
03:47 catpiggest joined #salt
03:47 MTecknology forrest: My packaging for TDC...  http://anonscm.debian.org/gitweb/?p=collab-maint/tdc.git;a=tree;f=debian;h=defd8a71bf8b680cd859d5ccd833aaadcadc0aa8;hb=HEAD
03:48 forrest yea we do something similar
03:51 * whiteinge waves goodbye to forrest
03:54 MTecknology forrest: similar to?
03:55 aw110f joined #salt
03:55 MTecknology forrest: that's the source and packaging to the most amazingest application in all of debian!
03:55 forrest just the structure
03:56 forrest lol
03:56 * forrest waves at whiteinge
03:56 MTecknology I made it pass every single gcc and lintian and source check that I could find. I also tried my hardest to make sure it meets every single policy.
03:56 forrest oh I didn't look that closely
03:57 mateoconfeugo joined #salt
03:58 untamo13 joined #salt
03:59 forrest joined #salt
04:03 ashw7n joined #salt
04:17 sgviking joined #salt
04:17 aw110f I'm starting simple using pillar_roots /srv/salt/piilars followed http://docs.saltstack.com/en/latest/topics/tutorials/pillar.html but can't get pillar.get custom_pillar to return
04:17 cruatta_ joined #salt
04:17 cruatta joined #salt
04:18 malinoff aw110f, salt \* saltutil.refresh_pillar
04:18 stanchan joined #salt
04:20 aw110f i did a saltutil.sync_all also as well as refresh_pillar already
04:22 malinoff aw110f, are you 100% sure?
04:23 malinoff some time ago sync_all wasn't working for me
04:24 aw110f running salt-call pillar.items from the minion shows the master config i set to look for custom pillars
04:24 aw110f pillar_roots:
04:24 aw110f ----------
04:24 aw110f base:
04:24 aw110f - /srv/salt/pillars
04:25 aw110f default is /srv/pillar
04:25 untamo13 joined #salt
04:25 aw110f the custom pillar i put in /srv/salt/pillars/ isn't showing
04:25 malinoff aw110f, dunno, try to restart the master
04:25 malinoff maybe it's just that config was not updated
04:26 aw110f is it working for you malinoff: ?
04:26 malinoff it was (right now I don't use salt)
04:27 toastedpenguin1 joined #salt
04:34 untamo13 joined #salt
04:44 krow joined #salt
04:45 oz_akan_ joined #salt
04:45 stephas joined #salt
04:48 brucelee1 joined #salt
04:49 wiqd_ joined #salt
04:51 bhosmer joined #salt
04:54 bmonty joined #salt
04:57 __number5__ aw110f: on minion, you shouldn't see those pillar_roots config
04:59 aw110f I only set it on the master config
05:00 cro joined #salt
05:00 aw110f i ran salt-call on the minion itself to see what pillars it returns
05:02 lionel__ joined #salt
05:05 ramteid joined #salt
05:07 pydanny joined #salt
05:18 w\laite joined #salt
05:21 absolute joined #salt
05:22 absolute joined #salt
05:24 babilen joined #salt
05:24 babilen joined #salt
05:26 krow joined #salt
05:27 pentabular joined #salt
05:27 stephas joined #salt
05:28 schimmy joined #salt
05:31 schimmy1 joined #salt
05:31 rgbkrk joined #salt
05:32 babilen Can I use other renderers (viz. pydsl, mako, py) in pillars too simply by including a shebang?
05:32 ipalreadytaken joined #salt
05:33 canci joined #salt
05:41 anuvrat joined #salt
05:45 oz_akan_ joined #salt
05:47 aw110f joined #salt
05:51 malinoff joined #salt
05:51 ndrei joined #salt
06:03 smcquay joined #salt
06:03 Dester__2 joined #salt
06:09 oz_akan_ joined #salt
06:10 picker joined #salt
06:18 cruatta joined #salt
06:18 cruatta_ joined #salt
06:20 happytux_ joined #salt
06:27 roolo joined #salt
06:28 ixokai joined #salt
06:38 felskrone joined #salt
06:40 bhosmer joined #salt
06:49 ashw7n joined #salt
06:53 liquid_tool joined #salt
06:53 ashw7n joined #salt
06:57 schimmy joined #salt
06:59 Kenzor joined #salt
07:00 ml_1 joined #salt
07:05 it_dude joined #salt
07:10 oz_akan_ joined #salt
07:13 linjan_ joined #salt
07:20 w\laite left #salt
07:24 anuvrat joined #salt
07:28 linjan joined #salt
07:34 pdayton joined #salt
07:34 liquid_tool joined #salt
07:36 pdayton1 joined #salt
07:48 harobed_ joined #salt
07:50 darkelda joined #salt
07:52 schimmy joined #salt
07:52 babilen Can I use other renderers (viz. pydsl, mako, py) in pillars ? What kind of data structure is expected/acceptable there? (yaml, ...)
07:54 ndrei joined #salt
07:54 ashw7n joined #salt
07:54 schimmy joined #salt
08:00 N-Mi joined #salt
08:01 ixokai joined #salt
08:01 TyrfingMjolnir joined #salt
08:04 pdayton joined #salt
08:10 oz_akan_ joined #salt
08:12 oz_akan__ joined #salt
08:16 fluter joined #salt
08:16 fluter hi
08:19 cruatta joined #salt
08:19 cruatta_ joined #salt
08:21 giantlock joined #salt
08:28 bhosmer joined #salt
08:30 TyrfingMjolnir joined #salt
08:32 kyr0 joined #salt
08:32 kyr0 joined #salt
08:35 ashw7n joined #salt
08:43 CeBe joined #salt
08:52 TyrfingMjolnir joined #salt
08:54 brucelee_ joined #salt
08:59 krow joined #salt
09:05 TyrfingMjolnir joined #salt
09:13 Han_ joined #salt
09:13 Han_ hi
09:13 oz_akan_ joined #salt
09:14 Han_ salt-key -L  the list i dont see any keys in accepted list or unaccepted keys
09:15 Han_ basiclly there is no keys .. but i already setup 2 minions and configure the interface , master port
09:23 pwistrand joined #salt
09:23 nkuttler Han_: doesn't really sound like you did. run master and minion with -l debug
09:26 Han_ unable to bind socket error 99 address already in use the ports are not avaliable to bind
09:26 nkuttler Han_: sounds like another master is already running
09:31 Han_ the same but error is 98
09:32 Han_ log of the master is caught signal 15 stopping the salt master
09:36 babilen Han_: Do you have other salt-master processes (pgrep salt-master) if you stop that one?
09:36 ashw7n joined #salt
09:37 Han_ ok if i just install master for master and cilents for minions is that ok?
09:37 Han_ meaning clients dosent have master salt installed in it
09:37 Han_ only minion and syndic?
09:38 Cidan joined #salt
09:38 babilen Your minions only need the minion (syndic is also not necessary)
09:40 bezaban some also want the master to be a minion
09:41 mateoconfeugo joined #salt
09:43 Furao master process can't act as a minion. but both master and minion can run on the same host
09:44 Furao but minion can partially act as a master (--local)
09:46 babilen Han_: You will have to configure your minions in such a way that they can contact the salt master too. Make sure that the master entry you have in your minion config is a valid/routable IP or resolvable hostname
09:49 malinoff joined #salt
09:50 Han_ er.. ok let me purge all and re do again
09:51 Outlander joined #salt
09:58 krow joined #salt
10:01 mschiff Is it possible to copy a file or a text from a minion back to the master?
10:04 Kenzor joined #salt
10:05 Furao mschiff: look cp module
10:07 Sacro I keep getting 'message authentication failed' unsure why
10:09 Sacro salt: error: Failed to load configuration: [Errno 21] Is a directory: '/home/ben/.salt'
10:10 Sacro oh ffs, byg 12699
10:13 mschiff Furao: cp.push .. nice thanks!
10:13 Han_ woot its stuck , it says that "waiting for minion key to be accepted by the master"
10:13 Han_ master is already up!!
10:14 oz_akan_ joined #salt
10:14 Han_ but minion says that waiting for key to be accepted by the master
10:14 Han_ what do i do wrong... ?_?
10:14 Outlander joined #salt
10:15 bezaban does salt-key -L on the master show anything?
10:15 masterkorp hello
10:16 masterkorp how do I subscribe to the salt mailing list without a gmail/google account ?
10:16 Han_ bezaban: nope it didt shows anything , meaning there is no unaccpeted keys or accepted keys
10:16 bhosmer joined #salt
10:17 Han_ in the master server
10:18 bezaban can you  nmap -p 4505-4506 the salt master from the salt minion to see if it has connectivity and that the ports are open?
10:18 bezaban and did you restart after changing the minion config to point to the master?
10:19 bezaban ie restart the minion
10:20 cruatta joined #salt
10:20 cruatta_ joined #salt
10:22 Han_ you mean service salt-minion restart?
10:23 Han_ bezaban: in the salt-master server i have made a netstat -nltp and the ports are there 4505 and 4506
10:24 Han_ so the salt-master is listening
10:24 Han_ to port 4505 and 4506
10:28 krow joined #salt
10:28 ramteid joined #salt
10:31 che-arne joined #salt
10:31 rgbkrk joined #salt
10:32 ggoZ joined #salt
10:36 Han_ still dont see any keys in salt-key -L
10:36 Han_ help anyone?
10:37 ashw7n joined #salt
10:38 ashw7n_ joined #salt
10:39 giannello joined #salt
10:41 hipster joined #salt
10:46 nkuttler Han_: are you running minion + master with -l debug yet? what's the output?
10:47 Han_ master error 98 unable to bind socket
10:48 Han_ minion attempting to auth with master server 10.0.2.15
10:48 nkuttler Han_: pw auxw | grep salt-master
10:48 nkuttler er
10:48 nkuttler Han_: ps auxw | grep salt-master
10:49 babilen Can I use other renderers (viz. pydsl, mako, py) in pillars ? I am under the impression that this is not possible, but wanted to verify that.
10:50 Han_ nkuttler: ok done what you wanner know?
10:50 nkuttler Han_: dpaste.com the output
10:50 fragamus joined #salt
10:51 harobed_ joined #salt
10:53 Han_ root 3486 0.0 0.1 3584 1460 ? Ss 18:10 0:00 su -c salt-master
10:54 nkuttler Han_: yes, so you aleady have a master running. you can't have another listen on the same ports
10:54 Han_ no only 1 master running
10:55 nkuttler Han_: that's what i just said
10:55 Han_ the rest of the 2 i already purge
10:55 nkuttler what?
10:55 Han_ ok understand
10:56 Han_ nkuttler : so the error still there.. 98 address already in use ports are not availble to bind
10:56 nkuttler Han_: yes, so you aleady have a master running. you can't have another listen on the same ports
10:57 nkuttler Han_: which *command* do you use when you get that error?
10:57 Han_ salt-master -l debug
10:57 nkuttler Han_: for the third time: yes, so you aleady have a master running. you can't have another listen on the same ports
10:57 saravanans joined #salt
10:57 nkuttler Han_: you have to STOP other masters before starting a new one
10:59 Han_ nkuttler: i dont HAVE other masters installed , like i said 1 master and 2 minion
10:59 nkuttler Han_: you're not listening. i didn't say anything about "installed" masters
11:00 nkuttler Han_: installed != running
11:00 Sacro Hm, sometimes test.ping works, sometimes I get Failed to authenticate
11:00 Sacro this is strange
11:09 Han_ nkuttler: only install salt-common and salt-master (For master in my VM), only install salt-common and salt-minion
11:09 Han_ (For the 2 minion in VM)
11:13 masterkorp how do I subscribe to the salt mailing list without a gmail/google account ?
11:14 oz_akan_ joined #salt
11:16 nkuttler Han_: sorry, i don't think i can help you
11:18 vbabiy joined #salt
11:18 johanek hi, i'm having some trouble scaling my salt master to support all the minions
11:19 johanek i'm trying to run test.ping on all the minions, but every time i run it i get a different number of responses
11:19 jrdx joined #salt
11:20 johanek i'm finding things ok up to about 1200 nodes, then after that it's not reliable
11:21 johanek anyone gone through running salt for this sort of number of nodes? once i've rolled it out everywhere we'll probably end up somewhere near 3000
11:22 Han_ nkuttler: do you understand my situation now?
11:23 nkuttler Han_: i have drawn conclusions
11:23 Han_ nkuttler: i have installed salt software into 3 VM's . 1 VM running salt-master, 1 VM running salt-minion. 1 VM running salt-minion
11:24 nkuttler johanek: many people have. you might want to ask the google group
11:24 nkuttler Han_: sorry, i don't think i can help you
11:26 marnom joined #salt
11:27 johanek nkuttler: thanks
11:29 bhosmer joined #salt
11:29 davidnknight joined #salt
11:29 bhosmer_ joined #salt
11:29 debaser joined #salt
11:31 babilen Can I render pillars with pydsl or mako too? What data structures are acceptable output if that is the case?
11:33 elfixit joined #salt
11:33 babilen Why didn't Han_ just stop the already running master?
11:34 nkuttler babilen: no idea. i'm wondering what he wants to do with salt anyway if he lacks basic sysadmin skills..
11:36 nkuttler maybe a script kiddie wanting to control his boxens </snarky>
11:36 Han_ joined #salt
11:36 Sacro i've added /srv/salt/states to file roots, but I still have to prefix states. before I can use anything
11:37 Han_ nkuttler: ok i see what you mean.. but you should have called me to stop the proccess only run salt-master -l debug
11:37 babilen Han_: So, you finally stopped all running master processes *before* running "salt-master -l debug" ?
11:37 * nkuttler thought he did that
11:38 babilen Han_: 12:57:28 nkuttler > Han_: you have to STOP other masters before starting a new one
11:38 Han_ babilen: you have to to STOP "OTHER" masters before starting a new one
11:38 Han_ OTHER
11:39 Han_ not this current running service
11:39 ashw7n joined #salt
11:39 babilen yes, all other master processes (other than the one you are about to start) -- granted, "other" is a bit superfluous there, but still :)
11:39 nkuttler let's move on
11:39 babilen +1
11:40 babilen So, how can I use pydsl or mako in my pillars?
11:40 babilen Do I have to write an ext_pillar specifically for that?
11:40 Han_ nkuttler: ok anyway thanks for helping out, but still dosent shows the keys for the minions
11:40 krak3n` joined #salt
11:41 babilen Han_: I mentioned some time ago that you have to configure your minions in such a way that they are able to contact your salt master. Did you change the master bit in the minion config? If so: What do you use in there and can you ping that hostname/ip from your minions?
11:43 Han_ babilen: erm.. yeah i did change the conf in the minion.. ok what i did was in salt-master config i put interface: 10.0.2.15 which is my ifconfig IP, and in minion config i put master: 10.0.2.15 is that correct?
11:44 babilen Han_: Can you ping 10.0.2.15 from your minion(s) ?
11:45 Han_ yep
11:45 babilen Okay, then show the debug logs on dpaste
11:46 Han_ wait 1 question..
11:47 Han_ do i need to salt-master , at the same time salt-minion for my both of my VM';s?
11:47 Han_ by typing in the command prompt
11:48 babilen You should stop *all* salt-{master,minion} processes and then start "salt-master -ldebug" on the master and "salt-minion -ldebug" on *one* minion. Paste both.
11:50 debaser hi
11:50 debaser does anyone have a working example of file.replace with MULTILINE flag? It doesn't seem to be working for me..
11:55 Sacro and again... message authentication failed
11:56 babilen debaser: What exactly have you tried, what did you expect to happen and what did happen?
11:58 toastedpenguin1 left #salt
12:00 mschiff debaser: from what I read this is broken in python and should not be used...
12:01 bhosmer joined #salt
12:05 mschiff is it possible somehow in salt.states.network to delete all interfaces that have not been defined?
12:06 debaser heres an example
12:06 debaser /var/log/btmp {
12:06 debaser missingok
12:06 debaser weekly
12:06 debaser create 0660 root utmp
12:06 debaser rotate 1
12:06 debaser }
12:06 debaser if want to change rotate 1 to rotate 24
12:07 debaser should i even be using multiline regex or is there a better way yo do it in salt?
12:07 debaser to*
12:08 debaser i need to look in the /var/log/btmp block and replace the rotate line and do this for multiple blocks
12:08 debaser so far my best solution is calling sed :)
12:09 bhosmer joined #salt
12:12 jas-_ joined #salt
12:15 babilen debaser: Why don't you manage the entire file in salt?
12:15 oz_akan_ joined #salt
12:18 oz_akan_ joined #salt
12:19 debaser babilen: might do that in the end
12:20 dsolsona joined #salt
12:20 babilen mschiff: I don't think that this is possible. It also seems to be a bit tricky as you would have to ensure that interfaces *not* defined in there are taken down so you can't easily shoehorn such functionality into it
12:21 cruatta joined #salt
12:21 cruatta_ joined #salt
12:22 babilen debaser: But what is your problem with the file.replace? A s/rotate 1/rotate 24/ shouldn't be too hard, but it's a bit tricky to come up with a suitable regular expression that matches only the btmp block. As you are obviously generating logrotate configuration files I would either simply manage that file completely in salt *or* write a suitable formula in which you define all entries.
12:22 AdamSewell joined #salt
12:22 rgbkrk joined #salt
12:25 bhosmer joined #salt
12:25 babilen debaser: But wait!
12:26 diegows joined #salt
12:27 shwaiil joined #salt
12:27 babilen debaser: Even better: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.logrotate.html
12:27 babilen Hmm, no corresponding state though
12:31 QiQe joined #salt
12:31 debaser state based on that module would be perfect :)
12:32 babilen yeah, I thought I found it (as you typically have the module/state pair), but it turned out that it does not (yet?) exist
12:33 QiQe I have this jinja template, it creates a txt with a list of all packages installed on all minion
12:33 QiQe {% for list in salt['mine.get']('*', 'pkg.list_pkgs').itervalues() -%} {% for pkg in list.iterkeys() -%} {{ pkg }} {% endfor -%} {% endfor -%}
12:34 QiQe how can I now to sort that
12:35 iMil joined #salt
12:40 jslatts joined #salt
12:40 ashw7n joined #salt
12:41 bhosmer joined #salt
12:41 bhosmer_ joined #salt
12:53 pdayton joined #salt
12:55 mingo joined #salt
12:58 Acid_Scorpion joined #salt
13:00 cpowell joined #salt
13:02 iMil joined #salt
13:05 Acid_Scorpion joined #salt
13:06 Acid_Scorpion hillna_, can anybody help me write right syntax, if I would like to use pattern in host name? - {% if grains['fqdn'] == 'host-dev.server.com' %}
13:08 ipmb joined #salt
13:11 AdamSewell joined #salt
13:11 AdamSewell joined #salt
13:12 racooper joined #salt
13:14 resmike joined #salt
13:17 jaycedars joined #salt
13:18 oc Seems like 2014.1.4 has a bug in useradd - not loading salt/utils/__init__.py?: https://gist.github.com/oc/db8a564fb6eb6789e952
13:18 oc a better suggestion?
13:22 mpanetta joined #salt
13:22 mschiff hm how can I convert a jinja variable to hex? there does not seem to be a filter like "{{foo|to_hex()}} ot something like that...
13:24 darkelda joined #salt
13:25 XenophonF1 joined #salt
13:26 MTecknology joehh: whiteinge: cd /opt/build/saltstack/salt/; git pull; git reset --hard origin/develop; dch -i; fakeroot debian/rules clean binary; reprepro -sb /var/www/gsrepo remove wheezy salt-cloud salt-common salt-doc salt-master salt-minion salt-ssh salt-syndic; reprepro -sb /var/www/gsrepo includedeb wheezy /opt/build/saltstack/*.deb   ..  then aptitude upgrade and I have it installed.
13:26 XenophonF1 left #salt
13:28 MTecknology joehh: whiteinge: My favorite part is that I have a key that is on every box so my repacks are trusted AND when 2014.6.0 is released, it'll just supercede mine
13:29 rojem joined #salt
13:30 oz_akan_ joined #salt
13:34 mingo Acid_Scorpion:  what is the pattern that you want to get?
13:35 mingo you can use .endswith('dev')
13:35 mingo {% if grains['fqdn'].endswith('dev') %}
13:35 mgw joined #salt
13:37 che-arne_afk joined #salt
13:41 ashw7n joined #salt
13:42 XenophonF joined #salt
13:42 XenophonF hey everyone - i'm trying to download M2Crypto but can't access chandlerproject.org (http://chandlerproject.org/Projects/MeTooCrypto)
13:42 XenophonF can anyone else get to that URL?
13:44 ajprog_laptop joined #salt
13:44 manfred looks down
13:44 agronholm noap
13:44 XenophonF bummer
13:44 XenophonF thanks for checking!
13:44 manfred http://isup.me/chandlerproject.org
13:44 ashw7n joined #salt
13:44 agronholm XenophonF: why not just download from pypi like usual?
13:45 XenophonF agronholm: Windows binaries haven't been posted to PyPI
13:45 XenophonF i checked there first
13:45 XenophonF :(
13:45 agronholm ah
13:46 agronholm you wanted binaries :)
13:46 XenophonF more like I am too lazy to bother with installing a Windows C++ toolchain :)
13:46 nahamu XenophonF: do the Saltstack Esky builds not come with M2Crypto?
13:47 XenophonF nahamu: they do, but i'm creating a new MSI installer package and want to start with a fresh build from git
13:47 quickdry21 joined #salt
13:48 nahamu XenophonF: you might be able to rip the M2Crypto binaries out of it, though.
13:49 hipster joined #salt
13:49 harobed joined #salt
13:49 XenophonF nahamu: that's a good idea
13:49 nahamu good luck!
13:49 XenophonF i'll go that route if the site doesn't come up soon
13:50 harobed joined #salt
13:50 harobed joined #salt
13:51 agronholm XenophonF: do you have an existing dependency on this or are you in a position to switch crypto libraries?
13:51 XenophonF agronholm: I'm trying to replicate UtahDave's build process for the windows version of the salt minion
13:51 harobed joined #salt
13:51 XenophonF http://docs.saltstack.com/en/latest/topics/installation/windows.html
13:52 ndrei joined #salt
13:52 agronholm ok
13:52 harobed joined #salt
13:53 harobed joined #salt
13:55 mateoconfeugo joined #salt
13:56 kaptk2 joined #salt
13:57 Sacro Any devs around?
13:59 nkuttler i do dev work
13:59 Sacro salt devs I mean
14:01 mschiff I want to run a cmd.run when a file.blockreplace has changes. I used "onchanges:" in the cmd.run, but although the blockreplace reports no changes, the cmd is always run, what might be wrong?
14:01 Sacro mschiff: use watch?
14:01 XenophonF mschiff: and cmd.wait
14:02 XenophonF IIRC cmd.run always runs
14:02 agronholm and that is mentioned in the cmd docs too
14:02 viq mschiff: use cmd.wait and in it watch the file.blockreplace state
14:02 viq ...as was already mentioned ;)
14:03 mschiff an thank you all ;) so i need to use wait instead of run it seems. Thanks!
14:06 MTecknology viq: I was talking to you yesterday about my exciting syndic issues, wasn't I?
14:06 viq MTecknology: I don't think you were, but feel free ;)
14:06 XenophonF i found m2crypto build instructions for windows at http://www.gooli.org/blog/building-m2crypto-on-windows/, so i'm going to give that a shot
14:07 MTecknology viq: I just wanted to share my update with the latest develop, https://github.com/saltstack/salt/issues/12915
14:07 XenophonF i'm going to need to find a copy of Visual Studio 2008 SP1, though
14:08 rgbkrk joined #salt
14:08 viq MTecknology: then no, it certainly wasn't me
14:08 viq MTecknology: so far I have one syndic with 1-2 minons hanging off of it in the lab
14:09 tyler-baker joined #salt
14:09 MTecknology I can't get salt-call working with even just one syndic... :(
14:10 Ryan_Lane joined #salt
14:12 abe_music joined #salt
14:13 mateoconfeugo joined #salt
14:14 agronholm how do I pip install wheel from the master?
14:14 agronholm *wheels
14:14 gq45uaethdj26jw6 joined #salt
14:14 agronholm the salt.modules.pip module doesn't support salt:// urls
14:14 thedodd joined #salt
14:15 tyler-baker joined #salt
14:17 gq45uaethdj26jw6 anyone have issues with the drploy script failing to run on fedora?
14:17 agronholm what deploy script
14:17 timoguin probably the bootstrap
14:18 manfred gq45uaethdj26jw6: are you using salt-cloud and just the regular deploy script?  have you tried salt-cloud -u to update it?
14:18 manfred gq45uaethdj26jw6: sometimes I have to add the -U flag on fedora cloud images to make it do a yum update before deploying salt
14:18 GradysGhost joined #salt
14:19 gq45uaethdj26jw6 manfred: did not try it with -U. I'll give it a go.
14:20 CeBe1 joined #salt
14:20 gq45uaethdj26jw6 also, i've had my gogrid instances fail ever since upgrading to 2014.1.4
14:21 dude051 joined #salt
14:21 msil joined #salt
14:22 cruatta joined #salt
14:22 cruatta_ joined #salt
14:22 dude051 joined #salt
14:22 gq45uaethdj26jw6 actually it installs salt, but pitches an exceptionb after a seccessful install
14:24 mingo where can I find the available functions for salt mine.send
14:24 mingo ?
14:25 timoguin you should be able to use the output of any function you configure in the master config
14:25 timoguin and/or the minion config
14:25 mingo salt '*' mine.send network.interfaces <---- where can I find the list of other options available...
14:25 mingo ah
14:28 gq45uaethdj26jw6 manfred: no dice,  * ERROR: Failed to run install_fedora_check_services()!!!
14:29 manfred add -D for debug output, and if it is the script, put it in the salt-bootstrap git issue tracker
14:29 manfred also there is a keep tmp flag for other stuff
14:30 gq45uaethdj26jw6 keep tmp flag?
14:30 manfred salt-cloud --keeptmp i think
14:31 manfred so that you could check logs on it if it fails
14:31 gq45uaethdj26jw6 no dice on --keeptmp. and -D you mean -l debug?
14:31 manfred no
14:31 manfred -D in your script_args
14:32 manfred for your provider
14:32 gq45uaethdj26jw6 ohh, okay
14:32 manfred to modify what the deploy_command uses
14:32 manfred that should also be where the -U goes
14:32 msil joined #salt
14:33 gq45uaethdj26jw6 manfred: thanks, i had not needed to use script_args before...
14:36 GradysGhost joined #salt
14:36 agronholm ok so if I want to cache a directory from the master in order to install packages from it, how can I get the path to the cached directory?
14:37 TOoSmOotH left #salt
14:41 agronholm it seems like the cache directory is specified in the minion config, but how can I get the path when rendering the salt state?
14:42 jeremyBass joined #salt
14:42 jaimed joined #salt
14:43 LinkRage joined #salt
14:43 rallytime joined #salt
14:44 LinkRage Hi I installed latest halite-0.1.17 web UI. it doesn't allow me to do pkg.install nginx for example. The execute button is not 'clickable'
14:44 LinkRage Target format is "Glob" and Target *
14:46 mingo what is wrong with my syntax ? salt '*' grains.filter_by '{ id : web1 }'
14:46 gq45uaethdj26jw6 manfred: -U in script_args worked like a charm, thanks a ton!
14:47 manfred yw :)
14:47 Furao joined #salt
14:47 pdayton joined #salt
14:48 mgw1 joined #salt
14:48 DaveQB joined #salt
14:49 slav0nic joined #salt
14:49 slav0nic joined #salt
14:49 meteorfox joined #salt
14:49 masterkorp Hello
14:49 masterkorp Guys lets talk deployments
14:49 masterkorp what do you do, and how salt comes into play? share you experiences
14:50 agronholm I'm in the process of figuring that out
14:50 manfred masterkorp: better to ask that kind of thing on the salt-users mailing list
14:50 mrjester joined #salt
14:51 rgbkrk joined #salt
14:52 masterkorp thing is, i need to get a gmail account to send email there
14:53 mingo manfred: would you tell me what is wrong my syntax salt '*' grains.filter_by '{id : web1}'... T_T
14:54 timoguin masterkorp: you should be able to subscribe by sending an email to salt-users+subscribe@googlegroups.com
14:54 manfred masterkorp: it is just an email, you should be able to subscribe without gmail
14:54 manfred yeah ^^
14:54 manfred mingo: no idea, never used filter_by
14:54 masterkorp thanks any keyword i need to use ?
14:54 it_dude joined #salt
14:54 * manfred shrug
14:54 mrjester left #salt
14:54 dude051 joined #salt
14:54 mingo ok
14:54 manfred ¯\(°_o)/¯
14:56 mgw joined #salt
14:58 Sacro Anyone any idea when the next release is out? Or at least how to fix the constant auth failures?
14:58 gq45uaethdj26jw6 masterkorp: what are you trying to do exactly?
14:59 gq45uaethdj26jw6 masterkorp: whoops, not you
14:59 gq45uaethdj26jw6 mingo: what are you trying to do exactly?
15:01 kermit joined #salt
15:01 mgw1 joined #salt
15:02 masterkorp timoguin: thanks, am I supussed to see any kind of confirmation ?
15:03 mingo I wanted to filter based on id
15:03 gq45uaethdj26jw6 select minions based on id?
15:03 alunduil joined #salt
15:04 gq45uaethdj26jw6 salt -G 'id:web1' ...
15:04 gq45uaethdj26jw6 ?
15:04 mingo o
15:04 cpowell joined #salt
15:04 gq45uaethdj26jw6 let me know if that gets what you want
15:05 mingo I shall
15:05 mingo thanks
15:05 vejdmn joined #salt
15:06 XenophonF left #salt
15:07 mingo gq45uaethdj26jw6: that worked for me thanks
15:07 gq45uaethdj26jw6 mingo: grat, glad it did
15:08 liquid_tool joined #salt
15:09 timoguin masterkorp: i dunno. i just googled how to join a google group without a gmail account
15:10 masterkorp thank you sir, i am stupid
15:10 cro joined #salt
15:11 rlarkin joined #salt
15:11 conan_the_destro joined #salt
15:12 vejdmn joined #salt
15:14 Sacro So does salt not support moving top.sls?
15:14 ajolo joined #salt
15:17 vejdmn joined #salt
15:19 LcKuroro joined #salt
15:19 jgarr Sacro: I think you can move it to wherever your file_roots: base is defined
15:20 jgarr but it needs to be in the root of that folder
15:21 absolute joined #salt
15:21 gq45uaethdj26jw6 manfred: is there a similar command to install a package before salt gets installed? this centos image i'm using doesnt have scp installed for some reason.... i cant use -p in script_args because the issue occurs during the script upload attempt... any ideas on that one?
15:22 Sacro jgarr: yes, and it doesn't work
15:22 Sacro unless it's the constant auth failures that are stopping my minion finding it
15:22 manfred scp should be installed.... if openssh is installed... :/
15:22 gq45uaethdj26jw6 i can ssh in, but it doesnt work without openssh-clients-5.3p1-94.el6.x86_64
15:22 manfred ¯\(°_o)/¯
15:22 gq45uaethdj26jw6 if i install that package and rerun the scp command, it works like a champ
15:23 manfred all the centos images i have used work
15:23 mingo need to get ip from my 5 web servers.. and put it my app config file such as web server: 1.2.3.4, blah,blah. anyone know how to do this with mines in jinja format??
15:23 Sacro Yes, scp isn't there by default
15:23 it_dude joined #salt
15:23 manfred werid
15:23 manfred weird*
15:23 gq45uaethdj26jw6 running joyent centos-6 image
15:25 it_dude joined #salt
15:25 gq45uaethdj26jw6 Sacro: thoughts on a workaround?
15:25 gq45uaethdj26jw6 Sacro: works on other centos images
15:27 KennethWilke joined #salt
15:27 KennethWilke left #salt
15:27 KennethWilke joined #salt
15:27 resmike joined #salt
15:28 mingo any ideas?
15:29 kaptk2 joined #salt
15:31 CeBe1 joined #salt
15:31 ipmb joined #salt
15:31 slav0nic joined #salt
15:31 patarr I'd like to throw out a suggestion here. If you do an include: at the top of an sls, if it can't find that included sls it makes no mention of that in the error message. Took me a bit to figure out that was the issue.
15:32 jalbretsen joined #salt
15:36 TyrfingMjolnir joined #salt
15:36 Sacro hmm, seems that running it as a 'salt' user also does't work
15:36 Sacro one year away, still an insane amount of bugs :(
15:37 patarr is there a jinja IRC channel?
15:38 frasergraham joined #salt
15:38 agronholm patarr: #pocoo
15:38 patarr Or for anyone who may know this, is there something like "begins with" in jinja?
15:38 patarr Thanks agronholm!
15:38 derelm joined #salt
15:39 mgw joined #salt
15:40 KennethWilke patarr: you can use the python .startswith() function on string types
15:41 tedski patarr: to add an example to what KennethWilke said, {% if var.startswith('foo') %} would work
15:41 patarr That's awesome! Thanks guys
15:41 KennethWilke tis a perfect example!
15:41 KennethWilke patarr, you're welcome
15:42 patarr any of you guys ever CNAME a salt master to 'salt'?
15:42 tedski patarr: yup
15:42 patarr tedski: nothing broken? :)
15:42 tedski patarr: that way i don't have to repackage salt-minion for all of our hosts
15:42 tedski patarr: nope.  it's designed to work.
15:42 patarr awesome.
15:42 stephas joined #salt
15:43 KennethWilke for my deploys i use the bootstrap script and the -A flag
15:43 tligda joined #salt
15:43 tedski patarr: also, it gives me the freedom to do per-dns-view salt masters :)
15:43 agronholm mingo: you mean how to iterate over a list?
15:43 KennethWilke `bash install_salt.sh -A salt.example.com`
15:43 tedski KennethWilke: when i rewrite our fai, i'm probably going that route
15:43 ipmb joined #salt
15:43 KennethWilke it's worked well for me so far
15:43 tedski KennethWilke: but, for now, with cfengine installing salt-minion for me... well... it's easiest to go packaged
15:44 KennethWilke ahhh yes i can see that
15:44 tedski but, we're mid-migration
15:44 patarr I wasn't even aware of a bootstrap script... here i was about to roll my own... lol
15:44 tedski patarr: oh, yeah, don't do that... the bootstrap script is quite nice
15:44 KennethWilke it'll bootstrap just about anything
15:44 tedski patarr: http://docs.saltstack.com/en/latest/topics/tutorials/salt_bootstrap.html
15:44 tedski patarr: i use it for my saltstack dev environment currently... it's great for that
15:44 tedski also great for testing new releases before they drop to package repos
15:45 tedski also great for what KennethWilke said
15:45 KennethWilke tedski, do you bootstrap the git version in dev?
15:45 KennethWilke i've considered it but have yet to try
15:46 tedski KennethWilke: yeah, i do... i was having all sorts of issues with pip installs on ubuntu
15:46 tedski KennethWilke: bootstrap just lets me do -A localhost and all deps are resolved the way they would be in prod
15:46 KennethWilke ahh very nice
15:47 TyrfingMjolnir joined #salt
15:51 untamo13 joined #salt
15:51 mateoconfeugo joined #salt
15:55 mingo agronholm: yes thats what O meed tp dp
15:56 agronholm mingo: the jinja2 docs do explain for loops fairly well
15:58 rallytime joined #salt
15:59 liquid_tool joined #salt
16:02 Furao joined #salt
16:05 ZombieFeynman joined #salt
16:05 vejdmn joined #salt
16:05 steverweber joined #salt
16:06 bhosmer joined #salt
16:06 steverweber Looking for some helpe finding a salt module that resolves a DNS name to an IP address
16:06 mookie joined #salt
16:06 untamo13 joined #salt
16:07 agronholm how do I run cp.cache_dir in a salt state? do I use cmd.run?
16:08 SEJeff_work agronholm, {{ salt['cp.cache_dir'](arguments) }}
16:09 agronholm SEJeff_work: but that will execute unconditionally everywhere where I put it
16:09 agronholm I only need to run it once per statefile
16:09 SEJeff_work you could use cmd.run as well
16:09 agronholm and have other states depend on it
16:09 agronholm it's just that cmd.run doesn't have a single example that runs a function
16:10 agronholm it seems like it only runs external commands
16:10 agronholm what about cmd.call?
16:10 bhosmer_ joined #salt
16:11 saravanans joined #salt
16:12 jnials joined #salt
16:12 agronholm doesn't anybody know? this seems like basic salt knowledge
16:12 mgw joined #salt
16:12 pydanny joined #salt
16:12 jcockhren agronholm: what are you trying to do again?
16:13 saravanans joined #salt
16:13 agronholm I'm trying to cache a directory from the master so I can install my wheels with pip
16:13 jcockhren oh nice. I've been playing with wheels
16:14 agronholm I know how to do that from the command line but not how to do it in a statefile
16:14 steverweber is there a salt module that resolves a DNS name to IP address other then dnsutils ?
16:14 bhosmer joined #salt
16:14 steverweber I dont want to install dig just so I can get the ip address of a DNS name
16:14 Sacro agronholm: module.run?
16:14 Sacro or cmd.wait?
16:15 cruatta joined #salt
16:15 cruatta_ joined #salt
16:15 agronholm Sacro: all the examples seem to be require paths to external commands
16:15 agronholm -be
16:15 jcockhren agronholm: so basically put a directory structure on a master on a minion?
16:15 agronholm jcockhren: yeah
16:16 agronholm so I want to execute cp.cache_dir
16:16 cruatta joined #salt
16:16 cruatta_ joined #salt
16:16 agronholm there is no state for caching that I could find
16:16 steverweber opps nm, I miss read the source
16:16 jcockhren agronholm: basically what Sacro said
16:17 jcockhren module.run
16:17 agronholm jcockhren: did you read my response?
16:17 agronholm ah okay, I'll check
16:17 Sacro cache: module.run: -name: cp.cache_dir -m_name: path
16:17 Sacro ?
16:17 jcockhren ah. once per statefile?
16:17 agronholm indeed
16:17 stephas joined #salt
16:17 agronholm I need to refresh the cached directory
16:18 Sacro depends if you need to refresh it more than once a run
16:18 agronholm just once like I said
16:18 Sacro could whack an - order: 1 in it
16:18 Sacro and a failstate
16:20 agronholm Sacro: if I require "cache" from two different states, will it execute twice then?
16:21 agronholm my gut says it won't
16:21 KyleG joined #salt
16:21 KyleG joined #salt
16:21 agronholm but I'm a noob
16:21 jcockhren agronholm: could you use a watch statement?
16:22 dsolsona joined #salt
16:22 UtahDave joined #salt
16:22 agronholm I'm trying to use module.wait
16:22 agronholm I'll pastebin my results when I've finished the changes
16:23 absolute anyone here using salt for managing apple desktops?
16:27 agronholm Sacro, jcockhren: https://gist.github.com/agronholm/64885052d645bbb25b6b#file-gistfile1-yml-L46
16:27 agronholm now only a final piece is missing -- how to properly make the wheel installations depend on that
16:27 agronholm I only want to refresh the package cache if either wheel state changes
16:27 forrest joined #salt
16:28 bhosmer_ joined #salt
16:28 shwaiil Q: Anyone successfully managed to work with the fail2ban formula available https://github.com/saltstack-formulas/fail2ban-formula or anywhere else ? Thank you!
16:29 jcockhren agronholm: nice so far
16:29 agronholm thanks
16:30 agronholm line 66 is outdated
16:30 agronholm now should I just replace it with module: packages_cache
16:30 agronholm or use watch_in
16:30 agronholm or prereq
16:30 agronholm this is so confusing :)
16:31 agronholm I don't even know what the difference is between those
16:31 schimmy joined #salt
16:32 ecdhe I have a software project where the final output is a harddrive image.  The Makefile itself can't run without several package dependencies like qemu, guestfs, etc.
16:32 ecdhe I want to document those dependencies in salt.
16:32 ecdhe Any recommendations?
16:33 forrest agronholm, they are documented: http://docs.saltstack.com/en/latest/ref/states/requisites.htm
16:33 agronholm 404
16:33 forrest http://docs.saltstack.com/en/latest/ref/states/requisites.html
16:33 forrest missed the l
16:33 agronholm I have read that
16:33 forrest shwaiil, what about the fail2ban formula?
16:33 joehillen joined #salt
16:34 n8n joined #salt
16:34 jalaziz joined #salt
16:34 shwaiil forrest: Thanks for looking! Just tried the fail2ban formula and then, tried to loggin through ssh with wrong password, but after a few tries if I typed the right one, I was in.
16:34 shwaiil ubuntu 14.04
16:34 bmcorser joined #salt
16:35 forrest did you configure the pillar to fill out your jail.local file?
16:35 schimmy1 joined #salt
16:35 forrest looks like the example has sshd in there, and 6 retries
16:35 jaycedars joined #salt
16:35 forrest I'd suggest to confirm that the jail.conf was properly populated
16:36 forrest err .local
16:36 shwaiil forrest: I'll do, because I think I just forgot :)
16:36 forrest cool
16:36 shwaiil Thank you :)
16:36 forrest np
16:37 ecdhe Or say that I've got a Makefile that processes input images with imagemagick's `convert'.  The software won't build unless the 'imagemagick' package is installed.
16:37 ecdhe Normally, I'll type sudo apt-get install imagemagick when I'm getting started on the project.
16:38 ecdhe But when I copy the git repo to another machine, it won't have all the dependencies.
16:38 ecdhe Does it make sense to keep some build-system specific states in a salt/ directory within the git repo?
16:38 bhosmer joined #salt
16:39 forrest ecdhe
16:39 forrest why would you do that?
16:39 krow joined #salt
16:39 forrest just write a build_my_project.sls
16:39 forrest and an imagemagick.sls
16:39 Foomer joined #salt
16:40 ecdhe And keep those files in the git repo?
16:40 forrest have that install imagemagick, pull down the repo (create a venv or whatever), and run the make
16:40 ashw7n joined #salt
16:40 forrest depending on whether you use gitfs or whatever for your states
16:40 forrest but if you just include imagemagick in it's own state, you can use an include statement to then use it for however many projects you might have.
16:41 ecdhe So just having a build_my_project.sls type of file along with the source would be acceptable?
16:42 ashw7n joined #salt
16:42 forrest well, I'd break it out to make it as modular as possible, but sure why not?
16:42 forrest you could have a state repo
16:42 forrest and then just use the git stuff in salt to pull down the repo
16:42 forrest so install imagemagick -> pull down the repo (always latest), cmd.run for the makefile to build the package
16:43 ecdhe forrest, I'm picking up what you're laying down there--
16:44 ecdhe It makes more sense to look at it as salt states that configure a build system and pull the code repo.
16:44 forrest yea
16:44 forrest and it makes it easy
16:44 ecdhe More sense than having a source repo that includes a patchwork of states to cobble a build system.
16:44 forrest yea that seems weird
16:45 forrest just run that state against your build machine
16:45 artificialexit joined #salt
16:45 ecdhe run it against the build machine, and then you'll have everything.
16:45 ecdhe very good!
16:45 ecdhe I really appreciate the input!
16:45 ecdhe Imagemagick is a real example, but a simpler one.
16:46 rallytime joined #salt
16:46 forrest yea of course, if you wanted to get really fancy, depending on how things are built, you could be a cool dude and spin up a new VM (if you use a cloud provider or lxc or docker), THEN do the install and build
16:46 forrest so you have a clean env every time
16:46 ecdhe For another project, I have to install a particular version of vbox, vagrant, qemu (for disk tools).
16:46 forrest ahh yea
16:46 active8 joined #salt
16:47 ecdhe The difficulty is that vbox needs to see the vmx cpu flag.
16:47 ZombieFeynman joined #salt
16:47 ecdhe But salt makes my life much easier!
16:47 forrest in that case you should create states for each thing individually, so a vbox state, the vagrant state, the qemu state, etc. Then you can pass variables to them for specific version from your pillar, so you could then support multiple versions at the same time with minimal changes
16:48 shwaiil forrest: About fail2ban formula. Would you mind having a look to my pastie describing my setup ? http://pastie.org/private/tcus518gbedct603rdnr4g unfortunately, I can still ssh to the server fine after a few wrong login attempts :)
16:49 ecdhe Good thoughts forrest, thanks for your time!
16:49 masterkorp Guys my google fu is failing
16:49 masterkorp do you guys have a formula for riemann ?
16:49 liquid_tool joined #salt
16:50 bhosmer joined #salt
16:50 bhosmer_ joined #salt
16:50 miqui joined #salt
16:50 forrest ecdhe, yea np
16:51 forrest masterkorp, we don't, if you want to make one I'd be happy to create a repo for you to make a PR against over at https://github.com/saltstack-formulas
16:51 forrest shwaiil, looks ok to me. Is the jail.local file getting populated with all that information?
16:51 forrest You might also want to check the fail2ban logs just to confirm it's seeing the attempts
16:52 shwaiil forrest: I'll double check :) I'll also check for any attempts! :)
16:52 forrest cool
16:52 jhulten joined #salt
16:53 shwaiil forrest: the /etc/fail2ban/jail.local looks fine http://pastie.org/private/0jt9im8qooxcg0mftysksw
16:54 catpig joined #salt
16:54 forrest shwaiil, yea looks ok to me, I'm really not sure then :(
16:55 KyleG joined #salt
16:55 KyleG joined #salt
16:56 shwaiil forrest: actually I found something http://pastie.org/private/kr0ftltupdpglyeepugysw
16:56 tyler-baker_ joined #salt
16:57 travisfischer joined #salt
16:57 shwaiil ooops! complete here http://pastie.org/private/vo0evucporlynwhbc7lmqa
16:57 masterkorp forrest: yeah i will start working on one
16:58 rgbkrk joined #salt
16:58 forrest shwaiil, weird
16:59 forrest masterkorp, let me make the repo real quick
16:59 forrest then you can fork it
17:00 forrest masterkorp, https://github.com/saltstack-formulas/riemann-formula
17:00 ml_1 joined #salt
17:01 bhosmer joined #salt
17:01 forrest just fork it, add your stuff, and make a PR and we'll get it merged. If you need an example feel free to steal from https://github.com/saltstack-formulas/template-formula
17:02 agronholm jcockhren, Sacro: thanks for the help, I got the caching thing to work
17:02 agronholm now I just need one more piece to get the installation working
17:03 resmike joined #salt
17:03 shwaiil forrest: do you reckon that error is related with the mail server not being yet available on the server ?
17:03 agronholm the files get cached in /var/cache/salt/minion/files/base/
17:04 mpanetta_ joined #salt
17:04 agronholm it's the last component (base) that I don't get from the cachedir option
17:04 rdorgueil joined #salt
17:04 rdorgueil joined #salt
17:05 forrest I'm not really sure to be honest. I'd suggest to do what the error says regarding starting the server up manually and watching it. It has started to get busy around here so I haven't looked closer
17:05 jcockhren agronholm: could you set your wheelhouse to be the cache directoy when attempting to install?
17:05 mpanetta_ joined #salt
17:05 agronholm wheelhouse?
17:05 agronholm not sure what you mean
17:06 jcockhren agronholm: one sec. let me pin point something for you
17:07 druonysus joined #salt
17:07 druonysus joined #salt
17:08 intr1nsic joined #salt
17:08 agronholm where can I get that missing "base" component?
17:08 agronholm dynamically of course
17:08 jcockhren https://gist.github.com/jcockhren/19207bce40ee1b8cf844
17:08 jcockhren agronholm: ^
17:08 jcockhren that's what I mean
17:08 agronholm that's exactly what I'm doing
17:08 cheus joined #salt
17:09 agronholm but I need to get that "base" component dynamically in case the environment changes
17:09 bhosmer_ joined #salt
17:09 rgbkrk_ joined #salt
17:09 jcockhren oh. hmm
17:09 agronholm jcockhren: not sure about --no-index, I can't then download dependencies from PyPI?
17:10 jcockhren agronholm: at the time, I was doing something where --no-index was needed to give packages in my wheelhouse presidence over packages in pip
17:10 jcockhren or something
17:10 cheus Does anyone know the proper way to get unescaped backslashes out of jinja? Every time I put '\' in a pillar, I get '\\' back out
17:11 jcockhren too long ago to remember. zsh_history ftw
17:11 ipalreadytaken joined #salt
17:11 agronholm jcockhren: is there a way to display the minion configuration?
17:11 jcockhren agronholm: you mean the current env?
17:11 agronholm right.
17:12 pentabular joined #salt
17:12 inSanity_ joined #salt
17:12 inSanity_ good evening
17:12 the_drow joined #salt
17:12 krow joined #salt
17:12 inSanity_ can anybody tell me how I can install a package without recommandations ? (using apt-get)
17:12 the_drow Is the developer of kitchen salt here?
17:13 the_drow I'm getting an exception and I'm not sure why: http://dpaste.com/224DA2D/
17:13 inSanity_ i tried skip_suggestions but it doesn't work
17:13 jcockhren agronholm: I don't think so.
17:13 agronholm jcockhren: so no way to dynamically determine the correct cache path?
17:14 jcockhren agronholm: was about to say, I haven't exactly needed to do that. so I'm not sure if there is a way or not
17:14 agronholm ok
17:14 agronholm thanks anyway
17:16 jcockhren agronholm: actually...
17:16 jcockhren in lowstate form, the env of the executed state is provided
17:16 agronholm where? how?
17:16 agronholm I don't really understand low/high states to begin with
17:17 oz_akan_ joined #salt
17:17 travisp joined #salt
17:18 toastedpenguin joined #salt
17:18 stanchan joined #salt
17:19 jcockhren agronholm: I see what you mean. It seems, it should be possible to retrieve the current env name in the current execution
17:19 agronholm how? :)
17:21 stephas_ joined #salt
17:21 jcockhren agronholm: maybe try http://docs.saltstack.com/en/latest/topics/development/dunder_dictionaries.html#context
17:22 jcockhren I haven't played with that one. not sure what's exactly in it
17:22 travisp If I have logging set to garbage, should I see output in the minion log if I run a  command such as test.ping?
17:22 jcockhren {{__context__['env']}}?
17:22 jcockhren not sure
17:23 jcockhren maybe even __opts__
17:23 ajprog_laptop joined #salt
17:23 travisp ah nevemind I was setting the wrong log level option
17:23 zain joined #salt
17:24 untamo13 joined #salt
17:25 stephas joined #salt
17:26 pydanny joined #salt
17:26 agronholm jcockhren: Jinja variable '__context__' is undefined
17:27 Joseph joined #salt
17:29 rdorgueil joined #salt
17:30 ashw7n joined #salt
17:31 chrisjones joined #salt
17:33 rallytime joined #salt
17:34 intr1nsic joined #salt
17:35 intr1nsic joined #salt
17:37 travisfischer joined #salt
17:37 cheus Does anyone know how to get a backslash from a pillar into a state without it being double escaped (eg, coming out as \\)
17:38 aw110f joined #salt
17:40 peters-tx joined #salt
17:40 intr1nsic joined #salt
17:41 peters-tx Anyone know what happened to the Salt PDF doc ?  It seems to consist of just a picture of the logo now
17:41 peters-tx This specifically: https://media.readthedocs.org/pdf/salt/latest/salt.pdf
17:42 forrest peters-tx, it might be best to ask whiteinge about that, I don't know what the PDF build process looks like now
17:42 peters-tx forrest: Ahh, yah it occured to me it might be a compilation failure or somesuch
17:44 rojem joined #salt
17:44 the_drow I'm getting an exception from salt
17:44 the_drow http://dpaste.com/2X11KRF/
17:44 the_drow Does anyone know what's going on?
17:46 the_drow :(
17:47 manfred the_drow: which version of salt are you running?
17:47 schmutz joined #salt
17:48 the_drow Latest (using salt-bootstrap that is invoked through kitchen salt)
17:48 manfred salt --version
17:48 manfred is it the lastest package
17:48 manfred or the latest from git develop
17:49 the_drow salt-call 2014.1.4
17:49 the_drow I have only salt-call
17:49 the_drow No salt
17:49 manfred sure then salt-call --version :P
17:49 the_drow I'm running masterless
17:49 manfred gimem a second
17:50 the_drow kk, do you need the .kitchen.yml config?
17:50 JasonSwindle joined #salt
17:50 timoguin that'd help
17:50 untamo13 joined #salt
17:51 the_drow http://dpaste.com/3F61V2T/
17:51 the_drow timoguin manfred ping
17:51 manfred the_drow: i think it is fixed in this commit https://github.com/saltstack/salt/pull/11857
17:51 manfred yeah it is
17:51 manfred that commit has it catch the error
17:51 manfred the_drow: https://github.com/cachedout/salt/commit/cdf29dd4f46c17c9b5321c8533ab2f34cea699dd#diff-91025f372e58dc0e88b6c7255c9da871R311
17:51 the_drow So salt-bootstrap from master?
17:52 manfred it is an error while rendering the pillar top file
17:52 vejdmn joined #salt
17:52 timoguin that issue probably needs to be cherry-picked to 2014.1
17:52 manfred yar
17:52 manfred doing that now
17:53 the_drow Downloading from develop
17:54 ZombieFeynman joined #salt
17:55 manfred the_drow: https://github.com/saltstack/salt/pull/12938
17:55 alainv what would be the best way to avoid reapplying a debconf setting on every run? Is there a 'require' rather than 'set'?
17:55 the_drow manfred: Awesome!
17:57 gq45uaethdj26jw7 joined #salt
17:57 the_drow manfred: http://dpaste.com/2S58BXG/
17:59 manfred yup, so that is the correct thing
17:59 manfred the error is your top file is invalid :P
17:59 vlcn I'm trying to migrate my minions to a new salt-master due to a hardware issue
17:59 krow joined #salt
17:59 the_drow Great
17:59 vlcn I have backups of the old salt-master and will be reusing the same IP
17:59 the_drow What about kazoo?
18:00 vlcn however, my minions keys are not accepted as I was expecting
18:00 rojem joined #salt
18:00 ahammond how do I do service.running - enabled from the command line?
18:01 the_drow manfred: It seems that kitchen-salt isn't picking my config
18:01 ZombieFe_ joined #salt
18:01 cruatta joined #salt
18:01 cruatta_ joined #salt
18:01 the_drow timoguin: Got any idea what's the correct syntax?
18:02 timoguin ahammond: service.start servicename if you want to run the module, or state.single service.running servicename to run the state
18:02 timoguin the_drow: yes, you're not defining the base environment
18:02 Rojematic joined #salt
18:02 timoguin https://github.com/simonmcc/kitchen-salt/blob/master/INTRODUCTION.md
18:02 the_drow timoguin: I did that now it can't find anything in the base env
18:02 timoguin see the .kitchen.yml config there
18:02 ahammond timoguin I don't care if I start them or not, I do want to do chkconfig --level 345 foo on
18:02 ahammond timoguin the enabled part is what I care about. :)
18:03 ahammond state.single is new to me, I'll go read about it.
18:03 ashw7n_ joined #salt
18:03 timoguin ahammond: you want state.enable then i think
18:04 the_drow timoguin: http://dpaste.com/016P7XE/
18:04 timoguin state.single lets you call a single state module from the CLI
18:04 the_drow timoguin: http://dpaste.com/3AVA136/ here's the .kitchen.yml file
18:04 dude051 joined #salt
18:04 the_drow I know
18:04 the_drow also state.sls
18:04 the_drow I'm trying to use kitchen-salr
18:05 timoguin i was telling ahammond that
18:06 saravanans joined #salt
18:07 timoguin the_drow: i'm not sure. looks like it can't find the files for some reason
18:08 the_drow Got it. Thank you
18:09 ahammond salt \*db\* state.single service.running name=postgresql-9.2 enable=True    works perfectly. Thanks!
18:10 abe_music joined #salt
18:15 cedwards joined #salt
18:15 mgw joined #salt
18:16 XenophonF joined #salt
18:17 stephas joined #salt
18:18 XenophonF hey UtahDave, i finished creating windows build and test environments
18:18 XenophonF i'm going to build_esky salt now
18:18 XenophonF the build host is windows 8.1 pro
18:19 XenophonF dunno if that matters
18:19 XenophonF i have both win32 and amd64 versions of Python 2.7.6 installed
18:21 krichardson joined #salt
18:22 vejdmn joined #salt
18:24 swissknife joined #salt
18:27 liquid_tool joined #salt
18:27 n8n joined #salt
18:28 XenophonF am getting an odd error when i try to build salt on windows
18:28 XenophonF setup.py says "pkg_resources.DistributionNotFound: altgraph"
18:29 XenophonF it's definitely installed
18:29 XenophonF i ran easy_install --upgrade altgraph just in case
18:29 jcockhren agronholm: huh?
18:30 rdorgueil joined #salt
18:30 micah_chatt joined #salt
18:33 marnom joined #salt
18:33 sandbender1512 joined #salt
18:34 jcockhren agronholm: sorry about that. {{pillar['something']}} works. not sure if {{context['blah']}} work
18:37 Xiao joined #salt
18:43 agronholm jcockhren: no luck with pillar['env'] either
18:43 n8n joined #salt
18:47 agronholm jcockhren: haha -- just {{ env }} works!
18:47 XenophonF i figured out how to fix the altgraph error
18:47 XenophonF i guess the wrong version gets installed when following the windows build notes
18:48 XenophonF so after doing "pip install esky", one must run "pip install --upgrade altgraph"
18:48 manfred agronholm: this will help you in the future https://github.com/saltstack/salt/pull/12832
18:48 agronholm cool
18:49 XenophonF that upgraded altgraph from 0.9 to 0.11, and now I can run salt's setup.py
18:49 Ahlee XenophonF: can you upgrade nssm to the latest version while you're rebuilding?
18:49 Ahlee i can't get logging or UNC mounts to work under the existing version
18:49 XenophonF Ahlee: don't see why not - is the version in git too old?
18:50 Ahlee checking with the guy that did the work to verify
18:50 Ahlee don't want to misspread
18:51 Ahlee yeah, the current version didn't work with system accounts
18:51 XenophonF OK
18:51 ghartz_ joined #salt
18:52 gq45uaethdj26jw6 joined #salt
18:53 XenophonF weird, I had to run "pip install --upgrade bbfreeze" too
18:53 XenophonF i guess that's why UtahDave told me to use pip instead of easy install
18:54 forrest why would you use easy_install :(
18:54 agronholm easy_install is a thing of the past
18:55 KyleG http://sentry.readthedocs.org/en/latest/quickstart/index.html#install-sentry
18:55 KyleG lol "thing of the past"
18:55 XenophonF hey I just do what the documentation tells me!
18:55 XenophonF :)
18:55 KyleG :P
18:56 agronholm KyleG: indeed, but not every project has updated their docs to match the modern practices
18:56 XenophonF I'll update my personal dev branch and submit a pull request later this evening.
18:56 schimmy joined #salt
18:56 jaycedars joined #salt
18:56 XenophonF had to run pip install --upgrade requests too
18:57 KyleG I generally find that the easier something is to install, the harder it is to troubleshoot when shit hits the fan
18:57 KyleG *generally*
18:57 XenophonF and pip install --upgrade MarkupSafe
18:58 * XenophonF contemplates re-installing Python from scratch.
18:58 vejdmn joined #salt
18:59 picker joined #salt
19:00 schimmy1 joined #salt
19:00 Ahlee forrest: pip doesn't do binary distribution, for that reason I don't use.
19:00 forrest ahh fair enough
19:00 Ahlee also pip assumes development tools on systems, who does that?
19:01 agronholm Ahlee: huh?
19:01 XenophonF Ahlee: an O/S without a compiler pre-installed isn't much of an O/S :)
19:01 agronholm Ahlee: pip can install binaries
19:01 KyleG That's fairly common actually XenophonF….
19:01 XenophonF I know.
19:01 XenophonF Irks me to no end.
19:01 agronholm dev tools not required if binary wheels are available
19:01 Ahlee yeah somebody else told me once about binary wheels
19:02 Ahlee i stopped listening at that point, as easy_install <foo> works :)
19:02 cheus Okie dokie, this is driving me nutty. Is there a way to avoid double-escaping when pulling data from an imported variable passed through a file.managed context?
19:02 agronholm Ahlee: it won't work forever
19:02 Ahlee *shrug* i'll believe that when i see it
19:02 agronholm I expect easy_install may be completely dropped or just aliased to pip at some point
19:03 Ahlee agronholm: do you expect python2x to ever actually die?
19:03 agronholm Ahlee: yes
19:03 agronholm it will take a long time, but yes
19:03 agronholm it will die
19:04 Ahlee i don't expect it to ever die
19:04 agronholm why not? programming languages evolve, 2.x doesn't evolve
19:04 agronholm there will never be any new features to it
19:05 agronholm on the language level at least
19:05 Ahlee right
19:05 XenophonF Ahlee: Python 2.x and Perl 5.x will be around for a long time.
19:05 Ahlee yeah, a very, very long time.
19:05 ksalman left #salt
19:05 agronholm and even bugfixes will stop at some point, though that point has been extended to the next decade
19:05 Ahlee near enough to forever to make not different, IMO
19:05 agronholm what's your point?
19:05 XenophonF i mean, how long have people been talking about Perl 6?
19:05 agronholm does it actually exist?
19:06 Ahlee perl6? yes.
19:06 Ahlee nayway, my whole point was as long as 2.x survives, easy_install will live on
19:06 Ahlee long live easy_install
19:06 chrisjones joined #salt
19:07 it_dude joined #salt
19:08 agronholm what's the connection?
19:09 schimmy joined #salt
19:09 XenophonF ok, i have successfully completed a 32-bit esky build on windows!
19:09 agronholm visual studio express?
19:09 XenophonF Visual Studio 2008 Standard SP1
19:09 XenophonF Python 2.7.6
19:10 XenophonF OpenSSL 1.0.1g
19:10 garthk joined #salt
19:11 krow joined #salt
19:11 rojem joined #salt
19:12 cruatta what's the deal with using pipes in cmd.run? Do they not work or should I be escaping them in some way?
19:13 cruatta i'm referring to the module
19:13 UtahDave XenophonF: that's awesome!
19:13 nkuttler cruatta: doesn't it work if the whole command is in quotes?
19:13 cruatta i'm using single quotes and it's not working
19:13 nkuttler heh, nope
19:13 cruatta do i need doubles?
19:14 nkuttler ah, yes, works for me
19:14 UtahDave XenophonF: easy_install will often have precompiled binaries that can be installed.  pip wheel isn't very widespread yet, so pip install will fail on packages that require compilation if you don't have visual studio installed
19:14 nkuttler cruatta: fwiw, works for me with single and double quotes
19:14 cruatta hmm
19:14 cruatta not working for me with either
19:14 XenophonF UtahDave: makes sense - i have Visual Studio installed
19:14 nkuttler cruatta: what's the command you're using?
19:14 cruatta i'm doing this "find /var/spool/postfix/deferred -type f | wc –l"
19:15 nkuttler cruatta: and the output?
19:15 cruatta wc: –l: No such file or directory
19:15 cruatta find: `standard output': Broken pipe
19:15 cruatta find: write error
19:15 cruatta but if i run the find by itself it works
19:15 nkuttler cruatta: just guessing, but your wc doesn't support -l?
19:15 cruatta hmm
19:15 cruatta ahahaha
19:15 cruatta thank you
19:15 cruatta d'oh
19:15 nkuttler bsd?
19:16 cruatta RHEL
19:16 nkuttler heh
19:16 cruatta i'm really surprised by this
19:16 nkuttler is that some really ancient version, or..?
19:16 cruatta unlikely
19:17 cruatta these are all RHEL 6 servers
19:17 cruatta something else is up
19:17 nkuttler that doesn't sound right. gnu wc certainly does -l
19:17 nkuttler and has for as long as i can remember
19:17 pdayton joined #salt
19:18 cruatta yeah i have another admin on this with me and he's just as confused
19:22 roolo joined #salt
19:22 saravana_ joined #salt
19:22 babilen Can I render my pillars with anything but jinja or do I have to write an external pillar for that?
19:24 UtahDave babilen: I believe you can use any renderer you want. I think you can specify that per file by using a shebang   #!mako    at the top
19:25 babilen Also for pillars?
19:25 nkuttler just try it?
19:25 babilen nkuttler: shush! ;)
19:25 nkuttler babilen: i mean, you've been asking that for, like, two days ;)
19:26 babilen I know - but I've tried different things, but I'm either doing something horribly wrong or working with wrong assumptions
19:26 rojem joined #salt
19:27 babilen Well, I will investigate it a bit more. Maybe I find the magic incantation myself.
19:28 Rojematic joined #salt
19:28 babilen I'm trying to use the pydsl renderer and am not sure which datastructures are acceptable output. I am currently working under the assumption that shebangs would work and that YAML would be acceptable output.
19:28 UtahDave babilen: does   #!mako   work for you with pillars?
19:29 UtahDave ah, ok
19:29 babilen UtahDave: Unfortunately I don't have my test setup here right now.
19:29 babilen Sorry, I've been playing off and on with this for some time (other more important things to do) and just thought that I try once more when the US is awake.
19:31 robawt yo UtahDave!
19:31 UtahDave hey, there, robawt!
19:32 fivethreeo joined #salt
19:34 pollo__ joined #salt
19:34 pollo__ how can I request a minion to send me its salt id via mine.send?
19:35 ajolo_ joined #salt
19:38 ajolo_ joined #salt
19:39 CeBe1 joined #salt
19:40 orbit_darren joined #salt
19:43 untamo13 joined #salt
19:46 joehh MTecknology: looks good, the only change i would suggest would be dch -v `python salt/version.py`
19:46 joehh so you get an incrementing version number tying it back to the git commit
19:48 XenophonF UtahDave: are the salt executables zipped up by bdist_esky relocatable?
19:49 XenophonF like, can i unzip them anywhere and have them work?
19:49 jcockhren agronholm: awesome!
19:49 UtahDave XenophonF: yep!  you can put that directory anywhere.
19:49 XenophonF also, it appears that the default minion config is missing
19:49 agronholm jcockhren: I'm having odd trouble trying to pip install now
19:49 UtahDave XenophonF: correct, if you look in the buildenv directory there's all the directory structure you need
19:49 agronholm it's giving the correct argument to -f but pip is not recognizing the directory somehow
19:50 XenophonF UtahDave, I got it
19:50 UtahDave If you put it somewhere else, you do have to update the root locations in the minion config.
19:50 agronholm pip log says "Skipping link /var/cache/salt/minion/files/base/triancore/packages (from -f); not a file"
19:50 XenophonF Gotcha
19:51 XenophonF UtahDave: someone was asking about bundling a newer version of nssm.exe
19:51 jrdx joined #salt
19:51 jcockhren agronholm: is '-f' '--find-links' ?
19:51 XenophonF dunno if that's on your release checklist
19:51 agronholm jcockhren: indeed
19:52 jcockhren is correct version of pip installed on the target minion?
19:52 UtahDave XenophonF: I'm totally fine with that.  Is there an open issue for it?
19:52 XenophonF i dunno - i can create one if necessary
19:53 Nickmman joined #salt
19:53 Nickmman Good afternoon everyone :)
19:53 agronholm jcockhren: the latest
19:53 XenophonF UtahDave: https://github.com/saltstack/salt/pull/12486
19:53 agronholm although...
19:54 agronholm yup
19:54 agronholm latest
19:54 XenophonF so looks like it was already done
19:54 UtahDave yeah, I remember that now
19:54 agronholm jcockhren: I'll try to run pip.install manually from the master
19:54 XenophonF hm, maybe i can chain to nssm's installer from the salt msi?
19:54 XenophonF i'll put that on my todo list
19:55 XenophonF that way you wouldn't have to keep a copy of nssm in your repo
19:55 saravanans joined #salt
19:55 krow joined #salt
19:56 Nickmman Is there anyone available to give me some quick guidance with a test setup I'm trying out? It includes a "base" and "appserver" environment, having some troubles with the SLS files in the second one :/
19:56 UtahDave XenophonF: sure.  I don't remember there being an nssm installer. I think it was just an executable
19:56 Nickmman New to salt and I'm learning as I go, but at least I'm trying :D
19:56 XenophonF gotcha
19:56 agronholm Nickmman: what trouble
19:57 XenophonF UtahDave, I don't think the "empty.txt" files under buildenv will be necessary, with MSI.
19:57 Nickmman agronholm: I'm testing out salt in a vagrant environment using the salt provisioner. I've got my "base" environment with a "global" entry (like in the docs) and also have a "appserver" environment
19:57 UtahDave XenophonF: it's required for git, actually
19:57 ipmb joined #salt
19:57 XenophonF oh
19:57 dude051 joined #salt
19:58 XenophonF ok
19:58 Nickmman agronholm: Both were declared by file_roots in the minion file (masterless setup) but I can't seem to get the second environment working correctly, I'm not really sure how to proceed.
19:58 XenophonF left #salt
19:58 UtahDave XenophonF: git won't track empty directories. It only tracks files, or contents of files.  (It's something like that. I'm sure a git pro can give a more precise explanation.)
19:58 XenophonF joined #salt
19:59 jcockhren :ship'd: ^
20:00 frasergr_ joined #salt
20:01 UtahDave (01:58:38 PM) UtahDave: XenophonF: git won't track empty directories. It only tracks files, or contents of files.  (It's something like that. I'm sure a git pro can give a more precise explanation.)
20:01 linjan joined #salt
20:03 Nickmman agronholm: This might be of help: http://privatepaste.com/afe5b5ab35
20:04 schimmy joined #salt
20:04 XenophonF UtahDave: thanks
20:04 KennethWilke UtahDave, +1: no empties!
20:04 KennethWilke can't diff /dev/null :)
20:04 Eugene sure you can
20:04 jcockhren heh
20:05 KennethWilke well it'll work, you CAN
20:05 KennethWilke lol
20:05 rojem joined #salt
20:05 jcockhren retcode would be 0
20:05 jcockhren so technically...
20:05 agronholm Nickmman: ok I looked at your file
20:05 KennethWilke but it's all adds or subtracts!
20:05 KennethWilke lol
20:06 agronholm Nickmman: you are missing nginx.sls, php.sls and conf-php.sls
20:06 vejdmn joined #salt
20:06 agronholm which is what you're referencing from top.sls
20:06 dude051 joined #salt
20:06 brucelee_ joined #salt
20:07 Nickmman agronholm: So in a different environment, the different "modules" can't be separated into different subdirectories with the respective init.sls?7
20:07 dude051 joined #salt
20:07 racooper is there a way with the salt apache module to get a list of configured sites that are not vhosts?
20:07 agronholm Nickmman: you need to declare them differently then
20:07 agronholm Nickmman: nginx/init, php/init etc
20:07 meteorfox joined #salt
20:08 n8n joined #salt
20:08 agronholm I believe
20:08 agronholm I'd separate them to subdirectories only when they get more complicated
20:08 agronholm this init.sls stuff smells like overengineering
20:08 meteorfox joined #salt
20:08 Heartsbane basepi: ping
20:08 druonysus joined #salt
20:08 Nickmman agronholm: So in theory, I have to modify the top.sls file to reflect what you're saying?
20:09 nkuttler agronholm: if you're limited to a single os that will work, yeah. above that not so much
20:09 druonysus joined #salt
20:09 Heartsbane Or does anyone know if there is going to be a salt-minion 1.4 for EL5 on EPEL
20:09 agronholm Nickmman: yep
20:09 agronholm nkuttler: it all comes down to how manageable they become
20:09 Nickmman agronholm: Maybe, my boss who's teaching me this showed me this way/method, to keep it "simple and not clusterfscked" XD
20:09 * Heartsbane thinks he knows who the package maintainer is.
20:10 bVector joined #salt
20:10 manfred Heartsbane: it is in -testing
20:10 racooper Heartsbane,  https://admin.fedoraproject.org/updates/search/salt?_csrf_token=9f0208f70974a03dbbd842e126523208fb79c3e6
20:10 agronholm is there an easy way to dynamically produce OS specific paths in salt state files?
20:10 Nickmman agronholm: Alright, I'm going to try that then. In that case I believe there is no harm in removing the .sls files of appserv and appserver
20:10 Heartsbane thank you
20:10 * Heartsbane blames herlo anyway.
20:11 bVector hey guys, just started using salt, four machines installed fine, fifth is not respongind to test.ping, only thing different about the system is that its 'hostname' is not a fqdn, does that matter?
20:11 manfred Heartsbane: should blame terminalmage
20:11 racooper agronholm,  that's where you can use jinja
20:11 Heartsbane I will blame herlo, you will see why
20:11 agronholm racooper: what would you recommend
20:11 eliasp agronholm: http://docs.saltstack.com/en/latest/topics/tutorials/states_pt3.html#using-grains-in-sls-modules
20:11 jcockhren bVector: no
20:11 Heartsbane terminalmage: I will get you next time
20:11 racooper what eliasp said.
20:11 bVector im running tcpdump, tons of traffic back and forth from the master except when I run test.ping, nothing
20:12 manfred Heartsbane: wait, for rhel 5 or rhel 6?
20:12 agronholm eliasp: I know I can use grains in {%if %}
20:12 jcockhren bVector: are you targeting it correct?
20:12 manfred Heartsbane: http://mirror.pnl.gov/epel/6/x86_64/salt-minion-2014.1.4-1.el6.noarch.rpm
20:12 manfred Heartsbane: rhel 6 has it in regular epel
20:12 Heartsbane manfred: rhel 5
20:12 bVector I'm doing '*' and 'madeuphostname'
20:12 jcockhren bVector: also try the runner: 'salt-run manage.up'
20:12 bVector neither work
20:12 agronholm what I really wanted was some kind of salt['path.compose']('this', 'and', 'that')
20:12 manfred ahh then yeah, waiting time
20:12 agronholm which would look at the OS grain and render the proper path for the OS
20:12 jcockhren manage.down is good to see what isn't responding
20:14 agronholm Nickmman: my approach is to usually keep it simple and then expand to more complex structures later to maintain manageability
20:14 MTecknology does salt-syndic need to be installed on the master of masters too?
20:15 MTecknology I'm assuming not
20:15 Nickmman agronholm: So in this case, it would be in a different environment (appserver), have all the sls files in the appserver directory?
20:16 agronholm Nickmman: I can't say what is good for your use case...I'm just saying what my method is
20:16 ajolo_ joined #salt
20:16 terminalmage Heartsbane: I had to rebuild the RPM for EL5 to add a minimum version of yum-utils, so it's taking longer to get to stable. The packages are built and available in testing though and you're welcome to test and then vote for it.
20:16 agronholm eliasp: I mean, would you really put a jinja IF block on every line that needs a pathname?
20:16 bVector so I did manage.up/down shows the hostname as not responding.  I've got the minion running in debug mode, no output at all after: Minion Pub socket/Minion Pull socket
20:16 jeblair joined #salt
20:16 Nickmman agronholm: Gotcha, thanks for the suggestion :)
20:17 Heartsbane terminalmage: the right thing to do is blame herlo, whiteinge or UtahDave
20:17 jcockhren bVector: hostname =/= minion id
20:17 Heartsbane terminalmage: alway in that order
20:17 Heartsbane Just saying
20:17 terminalmage hehe
20:17 bVector the minion id is the hostname by default though right?
20:17 jcockhren bVector: firewalled on the minion side? is the minion's cert accepted?
20:18 bVector minions cert is accepted, no firewall in between
20:18 kaictl joined #salt
20:18 jcockhren bVector: I dunno. Never did that. all my minion Ids are deliberate
20:19 eliasp bVector: I think the default is the FQDN, not the hostname
20:19 jcockhren bVector: brb. tho.
20:22 agronholm jcockhren: https://gist.github.com/agronholm/acdf65be3f538977117d
20:23 pdayton joined #salt
20:23 agronholm I wonder how I could get the actual command salt executes
20:23 ashw7n joined #salt
20:25 mgw does anybody else think that http://docs.saltstack.com/en/latest/topics/tutorials/gitfs.html#gitfs-remotes-over-ssh should allow ssh keys to be specified in the config, rather than just looking for ~/.ssh/id_rsa?
20:26 ZombieFeynman joined #salt
20:26 amontalban joined #salt
20:26 Nickmman agronholm: It still won't pick up the sls files :(
20:27 taion809 joined #salt
20:27 it_dude joined #salt
20:27 Nickmman agronholm: I'll try what you suggested, and see if that works.
20:27 agronholm Nickmman: you should be able to use sls files from subdirectories
20:27 schmutz joined #salt
20:27 agronholm just need to figure out the correct way to tell salt that
20:28 davidnknight joined #salt
20:29 UtahDave fivethreeo: Hey, there.
20:29 fivethreeo hey :)
20:29 bVector so I see that there is possibly a version mismatch betweein the minion and my master
20:29 agronholm jcockhren: I can reproduce the same thing without involving salt, so that's good
20:29 ZombieFeynman joined #salt
20:30 bVector minion is 0.12.1
20:30 UtahDave fivethreeo: Hey, I saw your question yesterday about anyone wanting to help with an openstack support with Salt
20:30 bVector master has 2014.1.4
20:30 UtahDave fivethreeo: I looked at your repo, I like what you've got so far. Especially converting all the json to yaml from the forked repo.  very nice
20:30 fivethreeo i see there is some more work on that https://github.com/CSSCorp/openstack-automation/issues/5
20:31 fivethreeo but i don't quite get why he wans json ;)
20:31 fivethreeo wants
20:31 UtahDave I know. Json is so hard to read compared to yaml
20:31 Joseph oui they are trying to make this work with icehouse
20:32 Joseph apparently someone is masochistic
20:32 fivethreeo not to forgen hunting syntax errors
20:34 Joseph yes utahdave...because humans suck at balancing brackets
20:35 agronholm which is why yaml is great :)
20:35 Joseph absolutely
20:35 Joseph i love the json config files that don't pretty print the json
20:35 Nickmman agronholm: Oddly enough, it doesn't work with what you suggested :( It still can't find the sls files, I've moved the init.sls out of their directories and placed them in /srv/salt/appserver/xxx.sls and nothing :c
20:35 Joseph and...i am supposed to parse this how?
20:35 bVector so how do you guys install salt on ubuntu? I'm getting version 0.12.1 from the salt ppa, and that seems to be way out of date
20:35 agronholm Nickmman: wait, is top.sls in /srv/salt/appserver?
20:35 UtahDave yep.  yaml isn't perfect. It does have its warts, but it's my favorite config file format by far
20:36 Joseph utahdave....yes it sucks but it sucks less than everything else :)
20:36 Nickmman agronholm: Nope, I've removed it. The only things that are in there are the sls files and the files/ directory.
20:36 agronholm so are all your sls files in the same directory?
20:36 Nickmman agronholm: For that environment, yes.
20:36 agronholm and top.sls doesn't contain references to any subdirectories?
20:37 agronholm if you're still getting errors, something else must be wrong
20:37 agronholm could you check if you still get the same errors?
20:38 Nickmman agronholm: That's correct. Let me clarify it up a bit more... The only top.sls is in /srv/salt that has the environment "appserver" included in it, declared in it are the names of the sls files (nginx, php, conf-php). The sls files are in the appserver directory (/srv/salt/appserver/) and that's about it :c
20:38 druonysuse joined #salt
20:38 druonysuse joined #salt
20:38 Joseph nickman can you show use the file_roots definition in your /etc/salt/master?
20:38 Joseph us
20:38 Nickmman agronholm: One of the errors: No matching sls found for 'nginx' in env 'appserver'
20:38 agronholm Nickmman: they are supposed to be in the same directory
20:38 agronholm well
20:38 Nickmman Sure Joseph, one second.
20:39 agronholm Nickmman: what changed then
20:39 ZombieFeynman joined #salt
20:39 Nickmman agronholm: I'm all mixed up lol, let me spin up another privatepaste like the one I did before.
20:40 UtahDave back in a bit
20:40 agronholm jcockhren: the same command works from the shell but not from salt
20:40 agronholm tried salt testbox pip.install manually
20:41 Nickmman agronholm, Joseph: http://privatepaste.com/1c58128e4c
20:42 MTecknology joehh: Thanks for the suggestion! I didn't know that was possible. I'll still use -i because I make sure my version is between the two point releases (current and current+1)  so if you released 2014.1.5, I'd then upgrade to that one.
20:43 agronholm Nickmman: are you running master as root?
20:43 ajolo joined #salt
20:44 agronholm Nickmman: you don't have a conf-php.sls in appserver/ so that error is reasonable
20:44 Nickmman agronholm: Yes, well, I suppose, it was working before I broke it off into appserver. Remember that this is a vagrant test environment, so I do vagrant destroy and vagrant up every now and then
20:44 mortis how is this again? am i allowed to promote other irc-channels salt-related here? :P
20:44 Nickmman agronholm: Yeah, I just saw that, just fixed it... I think I need more coffee XD
20:44 agronholm Nickmman: did that remove the error too?
20:45 Nickmman agronholm: I'm running provision as I type, we'll find out D:
20:45 Nickmman I sure hope so though.
20:45 felskrone joined #salt
20:45 Nickmman Else, I'm going to begin to pull my hairs out lol
20:45 mortis Nickmman: you got hair???
20:46 Nickmman mortis: Yes :( It's very common in teens D:
20:46 stanchan joined #salt
20:46 mortis :\
20:47 smcquay joined #salt
20:47 Nickmman agronholm: Most of the errors have gone away, though the nginx one persists.. Which is odd, because I've went over the name of the file and it's correct..
20:47 agronholm Nickmman: try to add a new dummy sls there, see how that goes
20:47 XenophonF left #salt
20:48 gq45uaethdj26jw6 left #salt
20:48 Nickmman agronholm: Can it be an empty file?
20:48 agronholm I thinks so
20:48 agronholm -s
20:48 stanchan_ joined #salt
20:48 Nickmman Alright, let's see
20:50 Heartsbane terminalmage: I see that fixed the "salt: error: Failed to load configuration: [Errno 21] Is a directory" bug and since it sounds like you are doing the EPEL builds. When does 1.5 roll out feel free to blame whiteinge at any point for this
20:50 Nickmman agronholm: It still says it can't find the nginx sls... I'll try removing the dummy and the nginx.sls file and creating it again I guess
20:50 bVector ok I found my issue
20:50 agronholm Nickmman: but it didn't complain about the dummy?
20:50 terminalmage Heartsbane: we'll be doing a .5 in the next couple weeks I think
20:50 bVector the salt repo wasnt getting added properly
20:50 bVector I got a super old version of salt-minion
20:51 frasergraham joined #salt
20:51 Nickmman agronholm: Whoops, forgot to add it to top.sls, *tests again*
20:51 * Heartsbane blames UtahDave.
20:53 Nickmman agronholm: Affirmative, doesn't complain about the dummy but it does complain about nginx
20:53 agronholm ok, do what you said you'd do
20:54 Nickmman agronholm: Just to be sure.. I can have an include: line that references something inside my "base", right?
20:54 basepi Heartsbane: sorry, was in a meeting.  Still need help?
20:54 agronholm Nickmman: dunno
20:55 Heartsbane basepi: no got it... but tell UtahDave This is somehow your fault
20:55 basepi His fault, or mine?  =P
20:55 basepi I blame UtahDave.
20:55 Heartsbane His
20:56 * Heartsbane kicks the ground and mumbles something about 1.4 and windows machines.
20:57 basepi Haha, didn't he get packages out finally?  Something wrong with 2014.1.4 on windows?
20:57 schmutz_ joined #salt
20:57 Heartsbane Yes he did
20:57 harobed joined #salt
20:59 untamo13 joined #salt
20:59 Nickmman agronholm: It was that magical "include:" line that screwed everything up.. Which is weird as to why I put it there in the first place, because I already have "require:" lines...
20:59 Nickmman agronholm: Thanks for all your help :3 Much appreciated :D
21:00 agronholm Nickmman: it was stranger that it complained like the file didn't exist at all
21:00 agronholm rather than complaining about the include
21:00 Heartsbane Basepi: Basically I got the patches I requested but 1.4 has the "salt: error: Failed to load configuration: [Errno 21] Is a directory" bug which means client_acls are broken
21:00 Nickmman agronholm: True, though the "include" was referencing something inside "base" and not it's own environment.. But weird anyways :c
21:01 it_dude joined #salt
21:01 basepi Heartsbane: ah, crap.  issue filed?
21:04 Heartsbane basepi: I will, as soon as I get this other thing taken care of
21:04 basepi Heartsbane: thanks.
21:04 Nickmman Anyways agronholm, thanks :)
21:04 agronholm np!
21:06 saravanans joined #salt
21:07 jgarr anyone have a good jinja2 syntax checker?
21:07 ggoZ joined #salt
21:08 tedski 404 on current docs?
21:08 tedski http://salt.readthedocs.org/en/v2014.1.4/
21:08 tedski is that a known issue?
21:08 MatthewsFace joined #salt
21:09 MatthewsFace What am I missing? Why am I seeing this when I boot up one of my CentOS 5 minions? "cannot remove /var/run/salt/minion is a directory"
21:11 elfixit joined #salt
21:11 tedski basepi: is it a known issue that docs for current release are 404 on rtfd?
21:12 agronholm jcockhren: finally figured out what was causing my problem
21:12 agronholm permission denied
21:12 agronholm the user I was installing doesn't have access to the minion cache
21:12 agronholm *installing as
21:12 agronholm so, looking for new solutions now :)
21:13 agronholm really, a commong thing like installing packages from the master should not be this hard
21:13 agronholm -g
21:13 ZombieFeynman joined #salt
21:14 JasonSwindle left #salt
21:18 jcockhren agronholm: AH
21:19 saravanans joined #salt
21:20 agronholm I could just copy the directory to /tmp every time but that feels dirty
21:20 jcockhren agronholm: you can use the 'runas' setting for changing the user who's doing the 'work'
21:20 saravanans joined #salt
21:20 agronholm jcockhren: I know
21:20 agronholm but I'm not sure I want to be installing as root
21:20 rojem joined #salt
21:20 agronholm although now that I think about it
21:21 agronholm I could just install to /usr/local
21:21 agronholm not sure what everyone else does
21:22 jcockhren a lot of pip installs that have executables install in /usr/local
21:22 cpowell joined #salt
21:23 jcockhren so it works
21:23 agronholm yeah but a virtualenv directly under /usr/local is not something I've ever seen
21:23 agronholm well
21:23 agronholm not directly
21:24 jcockhren there's always, ~/.local
21:24 jcockhren just add it to the path at user setup
21:24 agronholm but it's ugly if I install there as root
21:24 agronholm files under the user's home dir should be owned by that user
21:24 jcockhren then you won't have to bother installing as root
21:25 agronholm jcockhren: but I have to install as root or I won't be able to access the cache.
21:25 agronholm and installing as root is not such a bad idea
21:25 agronholm as long as I don't *run* it as root
21:25 jcockhren gotcha
21:25 agronholm so it's strictly a question of best practices now
21:25 agronholm I don't want to adopt strange practices
21:26 jcockhren everything is strange.
21:26 agronholm when people look at my setup, I want them to say "this makes sense"
21:26 jcockhren ask github
21:26 taion809 hi, is there a community contributed set of modules (in similarity to community.opscode.com)
21:26 mortis any idea who from saltstack that will come to the training in london?
21:26 agronholm jcockhren: not sure what asking github means
21:27 manfred taion809: http://github.com/saltstack-formulas
21:27 manfred taion809: there aren't modules, but there are formulas
21:27 taion809 ah thanks
21:27 jcockhren just making a general statement that ops is hard and 'best practice' isn't an isolated concept
21:27 taion809 manfred, yeah sorry my terminology was off.. couldn't think of formula for some reason
21:27 jcockhren shipping is probably #1
21:28 jcockhren #2 security, #3 maintainability, etc
21:28 mortis jcockhren: according to our HR department, ops is VERY easy, we are generally just "pushing the button" to release the software from our devs :)
21:28 jcockhren which are all factors any 3rd party will consider when looking at what you do
21:29 jcockhren 'best practices' really stem from solutions to a specific problem. whose implementation varies off the above factors
21:29 jcockhren but whatevs. sorry to be off topic
21:30 mortis meh, i think that was well put
21:31 jcockhren not exactly sure why I did all that. I probably should be coding
21:31 jcockhren heh
21:31 UtahDave joined #salt
21:32 mr_chris joined #salt
21:33 rglen joined #salt
21:38 CeBe1 joined #salt
21:41 meteorfox joined #salt
21:41 Nickmman Hrm...
21:41 Nickmman agronholm: Still around?
21:41 agronholm Nickmman: yep
21:41 agronholm jcockhren: works quite well now, thanks for the support!
21:42 jcockhren agronholm: nice!
21:42 jcockhren np
21:42 mpanetta Hmm, question.  Is it possible to run salt states on a syndic master directly, or do you have to go through the main master?
21:43 Nickmman agronholm: Is there any way that I can add some sort of requirement inside a module in a different environment that references the "base" environment? As in, make sure base runs first and require packages in base?
21:44 rgbkrk joined #salt
21:44 agronholm Nickmman: I would probably use symlinks :)
21:45 Nickmman agronholm: Come again? D:
21:45 agronholm Nickmman: did you disapprove?
21:46 Nickmman agronholm: No, just didn't really understand how to implement symlinks, as in.. What? XD
21:46 agronholm Nickmman: what, you've never used symbolic links?
21:46 agronholm ln -s?
21:46 Nickmman agronholm: Yes I have, but I just don't know how I could implement symlinks to achieve what I'm looking to accomplish, is all.
21:46 miles32 joined #salt
21:46 it_dude joined #salt
21:47 basepi tedski: error, and I think whiteinge is on it.
21:47 Nickmman agronholm: Bear with me, I'm in the last moments of work, been a long day XD
21:47 krow joined #salt
21:47 agronholm Nickmman: create symlinks in your specific environments to the base environment's files
21:47 miles32 hey, I was wondering if it's possible to have salt-cloud tag an ec2 instance during the creation phase. (haven't found a clear answer online)
21:49 Nickmman agronholm: I'm still a little slow, don't fully understand... Can you provide an example or lay it out smoother for me? :(
21:49 agronholm Nickmman: you have some sls file in /srv/salt that you want to reference from your appserver environment, right?
21:50 Nickmman agronholm: Correct, basically I want base to "run" first and have available those sls' to "require" upon
21:51 agronholm Nickmman: I don't know if you can require stuff from outside the current sls
21:51 Nickmman agronholm: Well, maybe it doesn't HAVE to be an sls, but it still has to be something from base :/
21:52 agronholm Nickmman: the whole concept of environments is still a little hazy to me
21:52 agronholm like, how do you even select the enviroment, or how does it work in the first place
21:52 agronholm so I'm probably not the right person to ask advice on that
21:53 Nickmman agronholm: I still don't even know how they work or what they're for either XD I just thought I could use them to separate files/setups for like db servers, web servers, etc
21:54 agronholm Nickmman: that's not what they're for AFAIK
21:54 agronholm examples of environments are like, production and development
21:54 agronholm you can target different node types with grain selectors
21:54 dirtyzero joined #salt
21:55 Nickmman agronholm: Well I was also told to do it this way (environments) so I could organize the different setups and put them in folders all "neat-like"..
21:55 Nickmman :/
21:55 agronholm Nickmman: this won't stop you from organizing them into folders
21:56 Nickmman Oh. Well, I feel that what you say is moderately easier than what I'm trying to accomplish XD
21:56 rawtaz joined #salt
21:56 agronholm were you specifically told to use the environments like this
21:57 agronholm or just to organize your folders neatly?
21:57 Nickmman agronholm: A mix of both, basically we want to organize things in such a way that some minions don't load unneccesary stuff (like a db minion loading web minion's stuff)
21:57 dirtyzero hi, I am trying to use the apache salt formula I am getting the fallowing error http://pastebin.com/GAHHppNn any help would be appreciated
21:57 Nickmman And separate them in that fashion
21:58 agronholm Nickmman: no need for separate environments for that
21:58 agronholm as I said, you can just use grain selectors for that
21:59 tyler-baker joined #salt
21:59 bhosmer joined #salt
22:00 Nickmman agronholm: Interesting... My boss also says that wouldn't doing it by environments it would be easier to "identify stuff" if it was put into a git repo, for example?
22:00 bhosmer_ joined #salt
22:00 agronholm Nickmman: that's not what environments are for as far as I understand
22:01 agronholm but some more experienced salt users should probably chime in at this point
22:02 Nickmman agronholm: I see.. Well, I guess I'll be looking at grain selectors tomorrow XD
22:02 pdayton joined #salt
22:02 agronholm Nickmman: you can "tag" nodes by adding grains like node_type: dbserver
22:02 agronholm and then picking them in the config with the corresponding selector
22:03 supplicant Nickmman: you should use environments for what they're documented for: http://docs.saltstack.com/en/latest/ref/states/top.html
22:03 kermit joined #salt
22:04 Nickmman agronholm: How would this affect my top.sls?
22:04 Nickmman supplicant: I see, I guess tomorrow I'll be rewriting a bunch of stuff XD
22:05 agronholm Nickmman: that's where you would use the grain selectors
22:05 supplicant Nickmman: http://docs.saltstack.com/en/latest/ref/states/top.html#other-ways-of-targeting-minions
22:06 dirtyzero any help would be appreciated  http://serverfault.com/questions/595191/why-does-my-use-of-the-saltstack-apache-formula-fail-to-set-the-id-variable?noredirect=1#comment705916_595191
22:06 bhosmer joined #salt
22:06 agronholm are dots allowed in minion ids?
22:07 krow joined #salt
22:07 rojem joined #salt
22:07 jcockhren agronholm: yes
22:07 Nickmman Alright then, I think I have all the tools I need to rewrite stuff tomorrow XD
22:08 Nickmman Many thanks agronholm and supplicant  :)
22:09 Nickmman Thanks again guys, gotta go!
22:10 MatthewsFace joined #salt
22:11 TyrfingMjolnir joined #salt
22:13 meteorfox joined #salt
22:14 ange hi
22:14 dirtyzero hi
22:15 ange anyone got experience with pkgrepo.managed ? trying to add one for datadog-agent ppa
22:15 ange but I get the following error :
22:15 ange Failed to confirm config of repo 'deb http://apt.datadoghq.com/ unstable main': repo 'deb http://apt.datadoghq.com unstable main' was not found
22:16 oz_akan_ joined #salt
22:21 dsolsona joined #salt
22:22 cewood joined #salt
22:24 bhosmer joined #salt
22:24 bhosmer_ joined #salt
22:24 krow joined #salt
22:25 dirtyzero having trouble with the apache saltformula any help would be appreciated http://serverfault.com/questions/595191/why-does-my-use-of-the-saltstack-apache-formula-fail-to-set-the-id-variable?noredirect=1#comment705916_595191
22:25 thunderbolt joined #salt
22:25 john3213 joined #salt
22:26 bhosmer joined #salt
22:28 jerrcs_ joined #salt
22:28 ninjabox2 joined #salt
22:28 eculver_ joined #salt
22:28 londo_ joined #salt
22:29 schimmy1 joined #salt
22:29 eqe joined #salt
22:29 Valda joined #salt
22:29 scalability-junk joined #salt
22:30 bdf_ joined #salt
22:30 john3213 left #salt
22:30 freelock joined #salt
22:30 uzomg_ joined #salt
22:30 insatsu_ joined #salt
22:31 Zuru_ joined #salt
22:31 pfallenop joined #salt
22:31 Vye_ joined #salt
22:31 stotch_ joined #salt
22:31 mikkn_ joined #salt
22:31 Eugene joined #salt
22:31 DenkBret1l joined #salt
22:31 jcristau_ joined #salt
22:31 alunduil joined #salt
22:32 dfinn1 joined #salt
22:32 bmcorser_ joined #salt
22:32 jpaetzel_ joined #salt
22:33 dfinn1 i think salt is causing my RH systems to piss off RHN because they are checking in too often.  anyone else run into this?
22:33 mschiff_ joined #salt
22:33 mschiff_ joined #salt
22:33 jgarr joined #salt
22:33 rockey joined #salt
22:34 toddnni_ joined #salt
22:34 AlcariTheMad joined #salt
22:34 seblu42 joined #salt
22:34 cb_ joined #salt
22:35 jgelens_ joined #salt
22:35 jeremyBass1 joined #salt
22:35 tempspace joined #salt
22:35 etw_ joined #salt
22:35 goodwill joined #salt
22:35 drags joined #salt
22:35 Jarus joined #salt
22:36 ampex joined #salt
22:36 shalicke joined #salt
22:36 zekoZeko joined #salt
22:36 majoh joined #salt
22:36 ksk joined #salt
22:36 trevorjay joined #salt
22:36 rgbkrk joined #salt
22:36 AlexM850 joined #salt
22:37 hhenkel_ joined #salt
22:37 aarontc joined #salt
22:37 pdayton joined #salt
22:37 linjan_ joined #salt
22:37 `ph8 joined #salt
22:38 kedo39 joined #salt
22:38 combusean joined #salt
22:38 beardo joined #salt
22:39 __alex joined #salt
22:39 combusean does anyone know why ~ would expand to /root under salt cmd.run, even when whoami returns a different user entirely?
22:40 Nazzy joined #salt
22:40 Nazzy joined #salt
22:41 agronholm combusean: difference between real vs effective UID
22:41 combusean i made an image of another box and this started to pop up on the copy
22:41 combusean very confusing.
22:43 xmj joined #salt
22:47 lilmatt_ joined #salt
22:47 rawtaz_ joined #salt
22:47 che-arne_afk joined #salt
22:49 happytux joined #salt
22:49 stanchan joined #salt
22:49 tedski basepi: cool, thanks
22:52 thehaven_ joined #salt
22:52 dirtyzero having trouble with the apache saltformula any help would be appreciated http://serverfault.com/questions/595191/why-does-my-use-of-the-saltstack-apache-formula-fail-to-set-the-id-variable?noredirect=1#comment705916_595191
22:55 stevednd joined #salt
22:55 renoirb joined #salt
22:55 grantbow joined #salt
22:56 Chrisje joined #salt
22:57 ahammond joined #salt
22:57 anteaya joined #salt
22:57 rgbkrk joined #salt
22:57 whiteinge dirtyzero: that jinja varialbe is not defined in your pillar file
22:57 whiteinge it's not clear from the documentation there but that file isn't intended to be a copy-and-paste but rather to serve as an example
22:58 whiteinge it needs to be fixed
22:58 ashw7n_ joined #salt
22:59 ZombieFeynman joined #salt
23:00 MTecknology joined #salt
23:00 jforest joined #salt
23:03 fllr joined #salt
23:03 Theo-SLC joined #salt
23:03 miles32 speaking of documentation...
23:03 Theo-SLC joined #salt
23:04 forrest joined #salt
23:04 Theo-SLC Greetings-
23:05 Theo-SLC Wanted to know if I could add/modify the schedule of a minion using a salt state?
23:05 Theo-SLC (other than file.manage /etc/salt/minion)
23:06 krow joined #salt
23:06 combusean agronholm, it works fine when i'm logged in through ssh, is there any way to force the effective uid through salt?  it should be running as the user anyways according to /etc/salt/minion
23:07 agronholm combusean: sorry, I dunno
23:09 crashmag joined #salt
23:11 hobakill joined #salt
23:12 jcsp joined #salt
23:12 wendall911 joined #salt
23:12 ipalreadytaken joined #salt
23:13 ilako joined #salt
23:13 chrisjones joined #salt
23:13 ghartz joined #salt
23:19 Nazca joined #salt
23:19 Nazca joined #salt
23:20 vbabiy joined #salt
23:23 miles32 is there a way to skip the [N/y] prompt in salt-cloud -a set_tags ?
23:23 miles32 (while still answering in the affirmative)
23:26 krow joined #salt
23:27 ashw7n joined #salt
23:28 garthk joined #salt
23:40 jgarr is there a way to control the salt master from a laptop without remoting into the master?
23:41 jgarr I think similar to chef knife (although I'm not really sure how that works)
23:43 whiteinge jgarr: the best way to do that at the moment is to use Salt's REST API. there's a small script called pepper that you can use via the CLI. it's a work in progress but you can do most things with it if you can tolerate a little ugly
23:43 whiteinge https://github.com/saltstack/pepper
23:44 jgarr whiteinge: OK thanks, I'll have a look
23:44 whiteinge knife works (afaik) by wrapping ssh calls, so you could also so something similar with salt with a wrapper script that sshes into the box, runs a salt command, then disconnects
23:45 bVector so I cant for the life of me get 2014.1.4 to install from the saltstack ppk
23:46 whiteinge er. wait, knife wraps calls to an API not ssh.
23:46 whiteinge bVector: what are you seeing?
23:46 jgarr whiteinge: so, pretty much the same as pepper (in architecture)
23:46 jgarr or I guess protocol
23:47 bVector whiteinge: sec I'll pastebin
23:48 frasergr_ joined #salt
23:48 bVector whiteinge: http://pastebin.com/raw.php?i=br2z91xH
23:49 bVector uninstall/reinstall is the same story
23:49 miles32 maybe a silent mode would be useful
23:49 miles32 left #salt
23:49 ipalreadytaken joined #salt
23:50 whiteinge jgarr: similar, yes. i *think* knife connects via TLS. pepper just uses SSL
23:50 whiteinge bVector: how was 0.17.5 installed originally?
23:51 bVector through the ppk, but for raring
23:51 bVector I forced it to pick up lucid version
23:51 bhosmer joined #salt
23:54 whiteinge bVector: i'd suggest purging the package then doing a  find / -name 'salt*'  to see if there's any straggler files
23:56 schimmy joined #salt
23:58 meteorfo_ joined #salt
23:58 schimmy1 joined #salt

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