Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-08-14

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

All times shown according to UTC.

Time Nick Message
00:00 sectionme joined #salt
00:00 forrest mosen, there are different schools of thought on that. Every item you add to pillar makes it take longer to render
00:00 forrest some people like to do logic based on grains, some people like to use pillar anyways, some people create a secondary 'map' file with all of their settings
00:00 aparsons joined #salt
00:01 mosen I see, so sometimes a formula is provided with the intention of modifying the states anyway?
00:01 geekmush joined #salt
00:03 forrest mosen, yep. Formulas should just be a 'basic' version which you can download and run. The goal is to always add, and never have to subtract. They're usually the bare minimum required.
00:03 mosen I see
00:04 napper joined #salt
00:05 aparsons joined #salt
00:06 aparsons joined #salt
00:06 skyler forrest: Thank you very much for the help and info!
00:07 forrest skyler, yea np, if you come up with a good way to handle that you should create a blog post or something, might be a good example to other users!
00:11 skyler forrest: For sure, I will be learning a lot about Salt in the coming weeks, as I just convinced my team to start using it. So I will be around, and perhaps I will even learn enough to help out others.
00:12 to_json joined #salt
00:12 forrest skyler, cool, if you find stuff missing in the documentation, or things that are not clear please create issues so we can improve that aspect.
00:12 aparsons joined #salt
00:12 mosen me too skyler
00:13 mosen the one part of the docs i found confusing, and let me verify that the structure is actually like this. There's an introduction to salt and theres a tutorial
00:13 badon_ joined #salt
00:16 forrest mosen, yeah there are two things right now running in parallel, whiteinge (primarily) and I have been working on trying to improve things, but that's one area we haven't touched on too much, as it requires a lot of owrk
00:16 forrest *work
00:16 forrest If you guys want you can review chapter 1/2 here: https://github.com/gravyboat/salt-book/tree/master/en
00:16 forrest they're mostly done
00:16 forrest but obviously have not been edited/reviewed
00:17 toddejohnson joined #salt
00:18 mosen oh right, I didn't realise but it makes sense
00:18 snuffeluffegus joined #salt
00:18 forrest mosen, yea, I really want to get the tutorial polished up, but I make more tickets than I resolve it seems like!
00:18 mosen and also the manual is huge, but nothing you can do about that, since the scope is so broad :)
00:19 forrest right
00:19 forrest that's what I'm hoping to cut down on a bit with the book
00:19 forrest try to go from nothing -> working clustered system and that's it
00:19 jcockhren forrest++
00:20 forrest people can dive in deeper from there
00:21 vbabiy joined #salt
00:24 renoirb joined #salt
00:25 fxhp So when I run highstate I get "ID: states\n     Function: no.None\n      Result: False\n     Comment: Unknown yaml render error" but I'm able to tether every state this server has together successfully in state.sls all,of,the,required,states
00:25 fxhp Salt 2014.1.10
00:25 forrest fxhp, did you already run through with -l debug?
00:25 fxhp No
00:25 forrest and are you sure it isn't the top.sls that is a problem if all the states work? :P
00:26 fxhp I really don't think its my top file.
00:27 mosen I think the project might be more approachable if the tutorial was even detached from the huge manual
00:27 fxhp But I suppose I can create a really dumbed down one to test
00:27 forrest mosen, yeah that could work
00:27 forrest fxhp, it's worth a shot, try to create a top that only includes one state
00:27 forrest and see if that works
00:27 mosen just to escape the perception of extreme complexity by looking at the TOC hehe
00:27 forrest heh
00:28 lwh joined #salt
00:28 mosen disclaimer: not trying to attack your work
00:29 mosen doco is hard
00:29 forrest mosen, I don't care
00:29 forrest mosen, All I care about is that the docs are the best they can be, and updates that are incorrect/confusing/misleading don't go into the docs
00:30 forrest I've gotta head out, good luck fxhp
00:32 aparsons joined #salt
00:39 * robawt highfives fxhp
00:39 jubei__ joined #salt
00:40 * fxhp highfives robawt
00:40 fxhp NO! forrest!
00:40 fxhp so um is base no longer the "top" of the top file?
00:40 fxhp I'm getting a different error now
00:42 badon_ joined #salt
00:42 capitalfellow joined #salt
00:43 aparsons joined #salt
00:43 robawt base is just an environment homie
00:43 vbabiy joined #salt
00:44 fxhp yeah but is base no longer the default or whatever?
00:45 robawt fxhp: have you tried passing the environment explicitly?
00:45 robawt base is default (or so I am lead to believe)
00:45 vbabiy joined #salt
00:45 fxhp I've never needed to mess with envs before
00:46 fxhp how do I pass it?
00:48 fxhp Ok, I guess it was user error, my top file had a syntax error, (I was missing a :) but the error message was not helpful at all.
00:48 robawt checking now
00:48 robawt blah
00:48 fxhp No worries, robawt
00:48 fxhp It was my fault.
00:49 bezeee joined #salt
00:54 aquinas joined #salt
00:54 david_a joined #salt
00:56 ajolo joined #salt
00:58 TheThing joined #salt
00:58 Outlander joined #salt
01:01 sectionme joined #salt
01:11 vbabiy joined #salt
01:12 dvestal joined #salt
01:15 toddejohnson joined #salt
01:16 vbabiy joined #salt
01:17 dvestal joined #salt
01:18 to_json joined #salt
01:19 FarrisG joined #salt
01:25 adsisco_ joined #salt
01:26 adsisco_ sudo salt '*' states.{???} openjdk-7-jdk, what should i replace ??? with?
01:29 adsisco_ k its state.highstate
01:30 dvestal_ joined #salt
01:38 alekibango joined #salt
01:40 yetAnotherZero joined #salt
01:40 yetAnotherZero joined #salt
01:41 bhosmer joined #salt
01:45 dude051 joined #salt
01:49 alekibango joined #salt
01:52 badon_ joined #salt
02:02 sectionme joined #salt
02:03 dvestal_ joined #salt
02:03 pass_by_value joined #salt
02:10 bhosmer joined #salt
02:20 ramishra joined #salt
02:21 pengyao joined #salt
02:23 Luke joined #salt
02:24 Luke joined #salt
02:28 pengyao joined #salt
02:34 ingwaem joined #salt
02:43 otter768 joined #salt
02:56 icebourg joined #salt
02:56 possibilities joined #salt
03:00 workingcats joined #salt
03:01 ramishra joined #salt
03:02 sectionme joined #salt
03:05 thayne joined #salt
03:07 gldnspud_ joined #salt
03:07 goki joined #salt
03:07 whiteinge joined #salt
03:08 akitada joined #salt
03:14 valentinbud joined #salt
03:17 napper joined #salt
03:24 aparsons joined #salt
03:27 badon joined #salt
03:29 capitalfellow joined #salt
03:30 bhosmer joined #salt
03:31 active8 joined #salt
03:32 jaimed joined #salt
03:33 mosen joined #salt
03:36 dvestal_ joined #salt
03:41 dvestal_ joined #salt
03:47 Shish_ joined #salt
03:47 _r00k_ joined #salt
03:47 thayne joined #salt
03:48 _david_a joined #salt
03:48 geekmush2 joined #salt
03:48 rawzone^ joined #salt
03:48 toddnni_ joined #salt
03:48 ella joined #salt
03:48 xmj_ joined #salt
03:48 EWDurbin_ joined #salt
03:49 jpaetzel_ joined #salt
03:50 codekobe__ joined #salt
03:50 fxdgear_ joined #salt
03:50 akitada_ joined #salt
03:51 _Flusher joined #salt
03:51 patrek_ joined #salt
03:51 bigmston1 joined #salt
03:51 Ahlee joined #salt
03:51 ksalman_ joined #salt
03:51 wangofet1 joined #salt
03:51 linjan joined #salt
03:52 cyberjam3s joined #salt
03:52 eliasp_ joined #salt
03:52 eofs_ joined #salt
03:52 jcristau_ joined #salt
03:52 keekz_ joined #salt
03:52 Heartsbane_ joined #salt
03:52 twobitsp1ite joined #salt
03:52 avn joined #salt
03:52 bezeee joined #salt
03:53 unknown007 joined #salt
03:53 mapet joined #salt
03:53 _monokrome joined #salt
03:53 philipsd6 joined #salt
03:53 Linuturk joined #salt
03:53 nlb joined #salt
03:53 vividloop joined #salt
03:53 vividloop joined #salt
03:55 ilbot3 joined #salt
03:55 Topic for #salt is now Welcome to #salt | 2014.1.7 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
03:56 ml_1 joined #salt
03:57 aarontc joined #salt
03:58 jalbretsen joined #salt
04:10 ilbot3 joined #salt
04:10 Topic for #salt is now Welcome to #salt | 2014.1.7 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
04:15 mosen oh dancat
04:16 mosen looks like the include is relative to the directory of the current sls
04:16 mosen instead of specifying the full name
04:17 oz_akan_ joined #salt
04:23 oz_akan joined #salt
04:29 valentinbud joined #salt
04:35 TyrfingMjolnir joined #salt
04:40 TyrfingMjolnir joined #salt
04:43 HenryThe7th joined #salt
04:45 felskrone joined #salt
04:46 felskrone joined #salt
04:50 dancat mosen: thanks
04:53 Ryan_Lane joined #salt
04:58 tkharju joined #salt
04:59 nnion joined #salt
05:04 sectionme joined #salt
05:09 Kelsar_ joined #salt
05:09 londo joined #salt
05:09 DaveQB_ joined #salt
05:09 rglen_ joined #salt
05:09 kermit joined #salt
05:09 valentinbud joined #salt
05:09 patrek joined #salt
05:10 trevorjay joined #salt
05:10 eofs joined #salt
05:10 ronc_ joined #salt
05:10 imil_ joined #salt
05:10 BogdanR joined #salt
05:10 mschiff joined #salt
05:10 mschiff joined #salt
05:10 darrend_ joined #salt
05:10 Sacro_ joined #salt
05:10 Hipikat_ joined #salt
05:11 phx joined #salt
05:11 ntropy joined #salt
05:11 Hazelesque joined #salt
05:11 z3uS joined #salt
05:13 schimmy joined #salt
05:16 schimmy1 joined #salt
05:18 melinath joined #salt
05:19 tkharju joined #salt
05:19 bhosmer joined #salt
05:22 ramteid joined #salt
05:24 badon_ joined #salt
05:26 melinath joined #salt
05:28 tkharju joined #salt
05:33 tkharju joined #salt
05:35 ecdhe joined #salt
05:36 tkharju joined #salt
05:37 nnion joined #salt
05:45 andrej joined #salt
05:50 Sauvin joined #salt
05:58 colttt joined #salt
05:59 orion_ joined #salt
06:00 tkharju joined #salt
06:03 Sauvin joined #salt
06:05 sectionme joined #salt
06:05 tkharju joined #salt
06:06 badon_ joined #salt
06:09 ecdhe joined #salt
06:14 ramishra joined #salt
06:17 pastacino joined #salt
06:29 beneggett joined #salt
06:30 AirOnSkin With salt, is there something in state configuration with which you can achieve a process like: copy an archive to the client, extract it, execute a command and after completion delete the archive and the extracted files ?
06:30 AirOnSkin I know you can do all these single steps, but I'm not sure what happens if you delete the archive afterwards when at the beginning there is a 'file exists' statement...
06:30 pengyao joined #salt
06:37 ecdhe joined #salt
06:42 iMil joined #salt
06:43 azieger joined #salt
06:47 thayne joined #salt
06:52 badon joined #salt
06:54 ecdhe joined #salt
06:56 ml_1 joined #salt
06:58 slav0nic_ joined #salt
07:05 sectionme joined #salt
07:07 bhosmer joined #salt
07:08 ecdhe joined #salt
07:12 oz_akan joined #salt
07:17 badon joined #salt
07:18 alanpearce joined #salt
07:18 laxity joined #salt
07:19 linjan joined #salt
07:24 oz_akan joined #salt
07:24 occup4nt joined #salt
07:25 badon joined #salt
07:26 jhauser joined #salt
07:28 occupwnt joined #salt
07:31 matthiaswahl joined #salt
07:32 occupant joined #salt
07:34 bhosmer joined #salt
07:42 albertid joined #salt
07:43 albertid Hi, is there a quick way to retrieve the running time of each sls so that I can identify the most time-consuming ones?
07:44 oz_akan joined #salt
07:46 occup4nt joined #salt
07:49 darkelda joined #salt
07:49 occupwnt joined #salt
07:51 che-arne joined #salt
07:54 xmj joined #salt
07:56 occupant joined #salt
08:00 occup4nt joined #salt
08:01 occupwnt joined #salt
08:04 azieger Hey there! Anyone present currently?
08:06 sectionme joined #salt
08:07 ecdhe joined #salt
08:19 sectionme joined #salt
08:22 matthiaswahl joined #salt
08:23 matthia__ joined #salt
08:23 smartpremier joined #salt
08:24 aberdine joined #salt
08:24 smartpremier left #salt
08:25 martoss joined #salt
08:25 Lomithrani joined #salt
08:40 duncanmv joined #salt
08:41 giantlock joined #salt
08:42 zz_Cidan joined #salt
08:44 oz_akan joined #salt
08:48 xmj no.
08:49 duncanmv joined #salt
08:50 babilen albertid: I'm not aware of one, but you could probably watch the incoming events and draw data from that. I would argue that this is functionality that would help a bit and you might want to consider raising an issue if nobody can think of a solution. (also write to the ML please, this would be good to have IMHO)
08:51 dariusjs joined #salt
08:56 bhosmer joined #salt
08:59 kivihtin joined #salt
09:01 albertid babilen, Ok, thanks
09:01 aquinas joined #salt
09:01 badon joined #salt
09:15 martoss joined #salt
09:17 thayne joined #salt
09:22 davidone joined #salt
09:24 TheThing joined #salt
09:24 _2_beautifulgirl joined #salt
09:26 cym3try joined #salt
09:28 greyhatpython joined #salt
09:43 pressureman joined #salt
09:45 ramishra joined #salt
09:45 oz_akan joined #salt
10:03 Outlander joined #salt
10:04 aberdine left #salt
10:10 mami_ joined #salt
10:18 Outlander joined #salt
10:21 ramishra joined #salt
10:26 TyrfingMjolnir joined #salt
10:26 TheThing joined #salt
10:28 intellix joined #salt
10:31 ramishra joined #salt
10:36 vbabiy joined #salt
10:45 bhosmer joined #salt
10:46 oz_akan joined #salt
10:48 oz_akan_ joined #salt
10:55 _mel_ joined #salt
10:55 TyrfingMjolnir joined #salt
11:09 david_a joined #salt
11:18 ramishra_ joined #salt
11:19 capitalfellow joined #salt
11:25 Hell_Fire joined #salt
11:26 dvestal joined #salt
11:33 philipsd6 joined #salt
11:35 ramishra_ joined #salt
11:37 Nazzy joined #salt
11:37 johtso joined #salt
11:38 logix812 joined #salt
11:42 cowyn joined #salt
11:43 martoss joined #salt
11:43 giantlock joined #salt
11:50 hobakill joined #salt
12:05 ggoZ joined #salt
12:06 catpig joined #salt
12:10 bhosmer joined #salt
12:17 CatPlusPlus joined #salt
12:20 diegows joined #salt
12:23 jas- joined #salt
12:24 brandon joined #salt
12:32 kalessin joined #salt
12:34 bhosmer_ joined #salt
12:43 bhosmer joined #salt
12:44 babilen I am currently working on configuring some of the memcached setups differently. For certain states I require a list of memcached servers. I currently maintain that list manually in pillar, but would like to automagically generate it.
12:45 sectionme joined #salt
12:46 babilen I'm not entirely sure what the best approach is here. I could, for example, maintain a "memcached" grain (either populated automatically by "is memcached installed" or manually set on the minions) and then use salt['test.ping'](...) with a suitable targeting expression or I could probably maintain that data in the salt mine.
12:46 hobakill not trying to hijack your question babilen but i'd like to get started with pillars. everything i do is grain-based. any tips or handy tutorials?
12:46 babilen There might even be a plethora of other approaches and i'd like some input on this.
12:47 babilen hobakill: http://docs.saltstack.com/en/latest/topics/tutorials/pillar.html + http://docs.saltstack.com/en/latest/topics/pillar/index.html + http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
12:47 hobakill babilen: thanks.
12:53 DaveQB joined #salt
12:58 bhosmer joined #salt
13:02 oz_akan joined #salt
13:05 albertid_ joined #salt
13:06 mpanetta joined #salt
13:07 pass_by_value joined #salt
13:07 babilen hobakill: If there is anything specific you'd like to know just drop me a line, but those bits in the documentation should give you a good idea.
13:09 logix812 joined #salt
13:09 hobakill babilen: thanks again. i feel like i'm doing this wrong. but things work.... so i'm not sure what to ask just yet. thanks for the offer.
13:11 babilen heh, okay
13:13 rojem joined #salt
13:18 cpowell joined #salt
13:18 jeddi joined #salt
13:20 DaveQB joined #salt
13:23 jaimed joined #salt
13:25 pastacino joined #salt
13:26 to_json joined #salt
13:27 racooper joined #salt
13:28 adsisco joined #salt
13:28 adsisco what is the
13:28 adsisco "salt way" to wget/curl files
13:29 babilen adsisco: file.managed + source: salt:// -- but it really depends on what you actually want to do
13:31 adsisco i want to setup lein for clojure, http://leiningen.org
13:33 mapu joined #salt
13:33 toastedpenguin joined #salt
13:38 babilen adsisco: Oh, lovely. I love Clojure (and should finally package the new version of Leiningen for Debian)
13:40 adsisco babilen: you should! =D
13:43 babilen adsisco: Yeah, upstream went crazy with dependencies, but I promise that I'll have it ready for jessie
13:43 babilen bbl
13:43 SheetiS joined #salt
13:45 adsisco install-clojure:
13:45 adsisco /bin/lein:
13:45 adsisco file.managed:
13:45 adsisco - source: salt://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
13:45 adsisco - mode: 777
13:45 adsisco does this make sense? haha
13:46 babilen You probably want https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein there
13:46 racooper adsisco,  please use a pastebin or gist for multi-line pastes.
13:46 babilen salt:// references file you have in salt already
13:46 adsisco im using emacs irc haha, sorry
13:46 babilen http://refheap.com and http://paste.debian.net are nice
13:47 adsisco The state "install-clojure" in sls clojure is not formed as a list
13:47 adsisco i got this error though
13:49 orion__ joined #salt
13:51 babilen yeah
13:51 babilen install-clojure: \n file.managed: \n - name: /bin/lein
13:52 kt766 joined #salt
13:53 adsisco Unable to determine upstream hash of source file https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
13:53 adsisco now i get this haha
13:54 adsisco seems like i need a source hash
13:55 kt76 joined #salt
14:01 icebourg joined #salt
14:01 linjan joined #salt
14:02 icebourg joined #salt
14:02 pass_by_value joined #salt
14:02 adsisco got it working! thanks =)
14:04 aquinas joined #salt
14:07 _chrish_ joined #salt
14:10 _chrish_ Hi! Salt newbie here with a question. I am working on a RHEL6 system with Salt, and I would like to ensure that the kernel-devel package is installed for all versions of the kernel package. The command "rpm -q kernel|sed -e 's/kernel-/kernel-devel-/'" outputs all packages that should be installed, but I don't know how to capture that output and feed it to a "pkg.installed" stanza. Any ideas?
14:13 SheetiS I think you could capture the stdout of a cmd.run like this: {% set variable = salt['cmd.run']('rpm -q kernel|sed -e "s/kernel-/kernel-devel-/"') %}
14:13 SheetiS Then work with it as needed.
14:14 nahamu my coworker suggests creating a custom grain that returns an array of all kernel versions installed
14:14 nahamu then you can reference that grain in your state.
14:14 nahamu in a jinja for loop I assume
14:19 ajprog_laptop joined #salt
14:21 Ozack joined #salt
14:25 P0bailey joined #salt
14:25 FarrisG joined #salt
14:30 bezeee joined #salt
14:33 Lomithrani babilen , nahamu , and the community in general , internship is over I'm off to holiday but I wanted to give you a special thanks for all the help. I will probably use salt for my own project now whenever it's possible so I'll probable come and ask stupid question again :) bye!
14:34 rallytime joined #salt
14:34 nahamu Lomithrani: enjoy your holiday!
14:34 shorty_mu joined #salt
14:34 babilen Lomithrani: Thanks and all the best! It's been a please and enjoy your time :)
14:35 babilen *pleasure
14:35 babilen *sigh*
14:36 ipmb joined #salt
14:38 shorty_mu Hi all, I added a new state for one minion in the top.sls, but it won't execute on the minion when I run a state.highstate. How can I debug this? I also added pillars belonging to that state and they show up.
14:38 babilen shorty_mu: What happens if you execute it?
14:40 shorty_mu I did not try this, since I wanted to find out what is wrong. I'd like to fix this thing or find my mistake and not work around it. Gimme a sec...
14:40 DoctorLol left #salt
14:42 gothix joined #salt
14:43 shorty_mu Running it manually via "salt-call state.sls global.statsd test=true" show me that I made a mistake. I forgot to add another state as a pre-condition.  But why didn't this show up in highstate? I mean, the state didn't even run.
14:45 SheetiS shorty_mu: I would think that it is a problem with the top.sls if it didn't get called in a highstate.
14:45 shorty_mu SheetIS: What problem can that be? How to find the issue?
14:46 SheetiS If you wanted to share a sanitized (if needed) pastebin or gist of the top.sls, I could at least eyeball it.
14:46 dccc joined #salt
14:48 dude051 joined #salt
14:50 dude051 joined #salt
14:52 shorty_mu @top.sls: I just added a line with the states name: - global.statsd
14:56 cpowell joined #salt
14:56 SheetiS Well that is definitely how you would apply another state in a config.  The question would be how it is mapped (like under what environment, how is the host matched before you apply that state, etc)
14:57 shorty_mu @hostmatch: fqdn and in this case only one  environment.
14:57 cpowell_ joined #salt
14:57 babilen shorty_mu: There is simply nothing we can say without further information. If you can even try running it (test=True?) then how do you know that it won't execute?
14:57 cpowell joined #salt
14:58 masterkorp Parame
14:58 masterkorp https://groups.google.com/forum/#!topic/salt-users/IOVX_x5hI4o
14:58 babilen So, feel free to paste what you have and you could try both both master and minion with "-ldebug"
14:58 masterkorp shameless relink :)
14:59 shorty_mu Sry, I might have found something. Still fiddling....
15:00 babilen masterkorp: I don't quite follow ... do you mean to ask us that question?
15:00 babilen (/me is also missing a question in that mail)
15:01 SheetiS masterkorp: Under here http://docs.saltstack.com/en/latest/topics/best_practices.html, you should see how the map.jinja exists in the example and the option to merge pillar data in it.  I _think_ that helps answer what you want to do.  Please elaborate if you need something else :)
15:01 masterkorp SheetiS: thank you
15:02 conan_the_destro joined #salt
15:02 scbunn joined #salt
15:03 napper joined #salt
15:06 kballou joined #salt
15:06 masterkorp ok i went to }, merge=salt['pillar.get']('mysql:lookup')) %}
15:06 masterkorp err i mean https://github.com/saltstack-formulas/mysql-formula/blob/master/mysql/map.jinja
15:07 masterkorp and saw that }, merge=salt['pillar.get']('mysql:lookup')) %}
15:07 masterkorp what the heck does that do ?
15:07 shorty_mu babilen: I ran highstate with test=true and that's how I know that the state doesn't get executed.
15:08 babilen It merges the values of mysql:lookup into defined pillars
15:09 bezeee joined #salt
15:10 thayne joined #salt
15:10 Gareth morning
15:10 masterkorp so the pillar data on lookup takes precedence but if something does not exist it goes it uses the set on map values right ?
15:12 masterkorp http://makina-corpus.com/blog/metier/2014/saltstack-merge-dictionaries-of-settings-with-grains-filter_by
15:12 masterkorp hmm this starts to make sense
15:17 shorty_mu Hmm, when I run highstate w. test in debug mode I get two "rendered top.sls files". /var/cache/salt/minion/files/23547-statsd/top.sls has the old data and /var/cache/salt/minion/files/base/top.sls has the new defintions with my added state. It seems to use the one with the old data.
15:19 shorty_mu Also it says:
15:19 shorty_mu [INFO    ] Fetching file from saltenv '23547-statsd', ** skipped ** latest already in cache 'salt://top.sls'
15:19 shorty_mu I have no clue what this is?
15:20 rojem joined #salt
15:21 alanpearce joined #salt
15:21 shorty_mu Is it possible that there is cache corruption? Should I clean it and when how?
15:21 _chrish_ SheetiS, nahamu: Thanks for the suggestions! I'm give the "capture the stdout of a cmd.run" one a try. I didn't know one could do that... is it in the documentation? Anyways, thanks!
15:22 smcquay joined #salt
15:23 shorty_mu Damn, those are  Git branches! Doesn't Salt use automatically the master branch?
15:23 davet joined #salt
15:24 davet1 joined #salt
15:25 shorty_mu How can I find out which Git Branch from gitfs_remotes is used?
15:26 SheetiS shorty_mu: it will map master to base by default and every other branch will map as an environment matching the branch name.
15:27 shorty_mu SheetiS: Ok, so for every branch there is an environment with the same name?
15:28 SheetiS http://docs.saltstack.com/en/latest/topics/tutorials/gitfs.html#branches-environments-and-top-files talks about it in detail.
15:28 possibilities joined #salt
15:29 stevebrownlee joined #salt
15:29 stevebrownlee left #salt
15:30 shorty_mu This explains that: [root@server /var/cache/salt/minion/files]# ls
15:30 shorty_mu 23547-statsd  base  rz23547-graphite
15:30 msil joined #salt
15:31 hobakilllll joined #salt
15:31 rypeck joined #salt
15:32 icebourg joined #salt
15:32 cowyn_ joined #salt
15:33 wendall911 joined #salt
15:33 shorty_mu Is there a way to figure out which branch a minion is using?
15:33 shorty_mu branch aka environment
15:34 _gothix_ joined #salt
15:37 SheetiS How were you calling the highstate?
15:38 SheetiS base is default.
15:38 shorty_mu SheetiS: salt-call state.highstate test=True
15:39 xerxas joined #salt
15:40 SheetiS ahh, from the minion.
15:40 shorty_mu yup
15:41 transmutated joined #salt
15:41 catpig joined #salt
15:42 rojem joined #salt
15:42 Twiglet_ joined #salt
15:43 kivihtin joined #salt
15:43 SheetiS Does it do the same thing if you try from the master? (e.g. salt '<minion_id>' state.highstate test=True)
15:44 shorty_mu Hang on. I just ran a "state.show_sls global.statsd" from the master and the state showed up(if that means anything...). I'll give it a try.
15:44 SheetiS I don't see why it'd make a difference, but just curious.
15:45 KaaK joined #salt
15:45 xerxas left #salt
15:45 shorty_mu Damn, [INFO    ] jid 20140814174454984612 minions set(['server']) did not return in time. I hate that.
15:46 SheetiS salt-run jobs.lookup_jid <jid>
15:46 shorty_mu Jap, nothing. The jobs is no longer active. DOH!
15:47 SheetiS I still think the top.sls has to be at fault in some way, and without seeing it completely (well sanitized and mostly complete), I don't know that I could be of much help.
15:49 shorty_mu This thing is too big to sanitize everything. Also we only have one environment "base".
15:52 shorty_mu I found a broken checkout in the masters log. I try to fix that first.
15:54 SheetiS Have you tried the simplest way of matching it and do an exact-match glob for the minion_id? soomething like this? http://www.bpaste.net/show/DQLMo9viPlyjmeeKRDRb/
15:55 tligda joined #salt
15:58 shorty_mu I think I got it. I removed the branch from Pillars Git(whose update did crash on the master),  did a "salt-run fileserver.update", removed the branch from the minions cache directory, restarted the minion and et voilà all works fine. The new states show up in a highstate. ????
15:58 ldlework left #salt
15:59 SheetiS Ahhh
15:59 SheetiS Glad you got it.
15:59 shorty_mu Yes...? You know what that was? You can explain this?
16:00 shorty_mu "Ahhh" sounds like you heard that before ;)
16:01 shorty_mu OK, I've got enough for today. SheetiS: Thank you very much for your help. I'm a difficult patient, I know ;) Peace
16:02 pjs joined #salt
16:02 KaaK joined #salt
16:02 cedwards joined #salt
16:02 SheetiS Take care.
16:02 shorty_mu left #salt
16:03 p2_ joined #salt
16:08 AviMarcus joined #salt
16:08 thayne joined #salt
16:10 KaaK_ joined #salt
16:11 TheThing joined #salt
16:14 Lomithrani left #salt
16:14 beneggett joined #salt
16:14 kelseelynn joined #salt
16:17 melinath joined #salt
16:19 KyleG joined #salt
16:19 KyleG joined #salt
16:20 pentabular joined #salt
16:21 geekmush joined #salt
16:21 smcquay joined #salt
16:24 ollins joined #salt
16:25 aparsons joined #salt
16:28 napper joined #salt
16:30 forrest joined #salt
16:30 aparsons joined #salt
16:31 ninkotech__ joined #salt
16:34 jaimed joined #salt
16:35 djaime joined #salt
16:37 ramishra joined #salt
16:37 bezeee joined #salt
16:39 kaptk2 joined #salt
16:40 sectionm1 joined #salt
16:44 ajolo joined #salt
16:44 KaaK joined #salt
16:46 rap424 joined #salt
16:46 jalbretsen joined #salt
16:48 TheThing joined #salt
16:48 aparsons_ joined #salt
16:49 ericof joined #salt
16:51 metaphore joined #salt
16:55 schimmy joined #salt
16:56 schimmy1 joined #salt
16:57 masterkorp Hello
16:57 forrest hi
16:57 masterkorp http://pastie.org/private/5vfxuqj4iqhzucttu5alq
16:57 masterkorp i am trying to set some defaults and merge pillar data with it
16:57 masterkorp like this
16:58 felskrone joined #salt
16:58 gothix joined #salt
16:58 masterkorp Rendering SLS "base:influxdb" failed: Jinja syntax error: expected token 'end of statement block', got '='
16:58 masterkorp but i got
16:59 bezeee joined #salt
17:00 bezeee joined #salt
17:01 helderco joined #salt
17:02 masterkorp any ideas ??
17:02 forrest masterkorp, missing comma, line 19?
17:03 masterkorp hmm, do i need a commma on the end ?
17:03 forrest for line 19 you do
17:03 forrest or I think so at least
17:04 masterkorp it does not make sense to add a comma on the last element of an array, anyways tried it, same error
17:05 forrest masterkorp, I'm just looking at other map.jinja files *shrug*
17:06 forrest masterkorp, the nginx one uses a style similar to yours: https://github.com/saltstack-formulas/nginx-formula/blob/master/nginx/map.jinja
17:07 hobakilllll joined #salt
17:09 Ryan_Lane joined #salt
17:11 toastedpenguin1 joined #salt
17:11 stolitablrrr joined #salt
17:11 icebourg joined #salt
17:12 icebourg joined #salt
17:14 aw110f joined #salt
17:14 jhulten joined #salt
17:15 perfectsine joined #salt
17:16 masterkorp https://github.com/saltstack-formulas/nginx-formula/blob/master/nginx/map.jinja
17:16 masterkorp yeah this is while getting grain data
17:16 masterkorp and that map isn't grains
17:17 masterkorp just default settings to not force you to set pillar data to have a usable formula
17:17 rojem joined #salt
17:21 Gareth /w 5
17:21 Gareth erm
17:21 cowyn__ joined #salt
17:21 forrest hey Gareth
17:22 Gareth Hey forrest, hows it going?
17:22 forrest Gareth, Pretty good, yourself?
17:22 Gareth NOt bad.
17:22 forrest no on-call this week?
17:23 * robawt highfives both forrest and Gareth
17:23 Gareth Not this week :)
17:23 forrest hey robawt
17:23 forrest Gareth, nice.
17:23 Gareth rojem: howdy
17:23 Gareth er
17:23 forrest lol
17:23 Gareth robawt: howdy
17:24 forrest Gareth, my buddy spoke to the SeaGL guys this week, they're hoping to have talks selected in the next few weeks
17:24 quantumriff joined #salt
17:24 melinath joined #salt
17:24 Gareth forrest: Okay cool.  I asked them last week and they said this week but I figured it would be later than that.
17:24 quantumriff to rename a minion (say, vmware cloning) can I just update /etc/salt/minion_id and restart? or do I need to clear keys, to reset everything?
17:25 forrest Gareth, yea they extended the deadline to August 3rd a couple weeks ago
17:25 forrest quantumriff, you need to clear everything, and make sure to update the data that getfqdn() sees
17:25 forrest so usually the hostname and such
17:25 possibilities joined #salt
17:25 quantumriff right.. I got hostname.. what should I clear then to do "everything" isn't there a cache directory that has all of that?
17:26 forrest /var/cache/salt/pki
17:26 quantumriff forrest: thanks!
17:27 forrest np I think that should do it, been a while since I cloned a vm and had to re-add it
17:27 cpowell joined #salt
17:30 kelseelynn left #salt
17:31 felskrone joined #salt
17:31 tcotav I clear cache too, but not sure if that's necessary
17:31 tcotav here's my gist: https://gist.github.com/tcotav/a42d6b530e8bfda9f5cc
17:31 tcotav seems to work
17:31 forrest quantumriff, ^
17:31 forrest tcotav, good idea, I can't remember if you need to trash the cache, but it can't hurt
17:34 alanpearce joined #salt
17:35 quantumriff tcotav: thanks!
17:35 vejdmn joined #salt
17:35 tcotav quantumriff: np
17:35 helderco joined #salt
17:36 n8n joined #salt
17:37 n8n joined #salt
17:37 ramishra joined #salt
17:38 skullone forrest: i figured out my environment issues, now its full steam ahead with salt
17:39 forrest skullone, Nice, what was the issue again? I can't remember.
17:39 bhosmer_ joined #salt
17:39 scbunn joined #salt
17:43 SheetiS joined #salt
17:44 vejdmn joined #salt
17:46 SheetiS masterkorp:  did someone get you squared away?  I stepped away for a few minutes.
17:46 rojem joined #salt
17:48 helderco joined #salt
17:48 chrisjones joined #salt
17:49 taterbase joined #salt
17:51 notpeter_ joined #salt
17:55 gfa joined #salt
17:55 skullone forrest: i had my top.sls outside of the defined base directory
17:55 skullone ;(
17:55 forrest skullone, lol
17:56 skullone yah, no kidding
17:56 skullone hehe
17:59 ckao joined #salt
18:04 patarr is there good virtual support for salt? Like bootstrapping a kvm machine. Adding all the bridge interfaces. Adding VMs, etc?
18:05 forrest patarr, http://docs.saltstack.com/en/latest/topics/tutorials/cloud_controller.html
18:08 patarr uugggh I love salt so much!!
18:08 forrest lol
18:09 patarr But there's a little bug that's been driving me crazy. I have a state like "users" inside a folder named "systemconfig"
18:09 patarr If I have a init.sls with "-include users" in "systemconfig/init.sls", it breaks.
18:09 forrest patarr, right, you need to use systemconfig.users
18:10 forrest Salt doesn't understand the file context when you're referring to something like that. It would think you want users/init.sls
18:10 druonysus joined #salt
18:10 druonysus joined #salt
18:11 capitalf_ joined #salt
18:13 beneggett joined #salt
18:13 patarr forrest: still doesn't work.
18:14 patarr i may have spoken too soon
18:15 thayne joined #salt
18:15 rojem joined #salt
18:15 patarr forrest: No matching sls found for 'systemconfigs' in env 'base'
18:15 forrest I thought you said it was systemconfig
18:15 aparsons joined #salt
18:16 patarr I missed the s.
18:16 scbunn joined #salt
18:16 kivihtin joined #salt
18:17 forrest patarr, can you gist the state with the include statement, and the directory structure?
18:18 [vaelen] joined #salt
18:19 canci joined #salt
18:23 patarr sure forrest. let me work on that
18:25 kivihtin joined #salt
18:27 toddejohnson_ joined #salt
18:27 kivihtin joined #salt
18:28 dude051 joined #salt
18:31 kelseelynn joined #salt
18:32 kelseelynn left #salt
18:33 m1crofarmer joined #salt
18:33 tkharju1 joined #salt
18:36 RobertoDocampo joined #salt
18:36 snuffeluffegus joined #salt
18:38 RobertoDocampo Hi, anybody knows how to retrieve the dictionary returned by a saltstack module?
18:38 ramishra joined #salt
18:39 vejdmn joined #salt
18:39 kermit joined #salt
18:42 rallytime joined #salt
18:44 tkharju joined #salt
18:45 tkharju joined #salt
18:46 Ahlee anybody know what the upper limit on number of packages you can specify with pkg.installed is?
18:46 Ahlee i currently have 94 packages specified, and Too many functions declared in state "pkg" in sls node
18:47 forrest Ahlee, I don't see why there would be a limit within salt
18:47 MatthewsFace joined #salt
18:47 forrest Ahlee, Are they all under one ID with using - pkgs: ?
18:47 Ahlee yeah, hold for git
18:48 Ahlee gist
18:48 bmatt Ahlee: that error doesn't mean what you think it means
18:48 Ahlee oh?
18:48 bmatt you likely have two pkg states defined with the same name
18:48 bmatt i.e. a pkg.installed and a pkg.latest
18:48 bmatt er, e.g.
18:49 pass_by_value https://github.com/saltstack/salt/blob/develop/salt/state.py#L421-L425
18:49 Sylphid|home joined #salt
18:49 bmatt ^
18:50 tkharju joined #salt
18:50 bmatt you can have two state IDs with different functions (e.g. "foo" can be pkg.installed and service.running)
18:50 bmatt but not two of the same type (like file.managed and file.exists)
18:51 Ahlee indention issue, i had - pkgs: and - pkg1 on same indention level
18:51 Ahlee stupid yaml
18:51 Ahlee stupd me
18:51 denstark Say I want to do a one-off of putting a file on a set of minions, would that be salt state.highstate? or state.high? and would I include the yml on the cli or just slap it in a file?
18:51 forrest Ahlee, lol
18:52 forrest bmatt, Ahlee I do wish that error was a bit more clear
18:52 forrest but I don't really feel like creating an issue called 'make all the errors more clear, or make more error messages' :P
18:52 forrest denstark, if it's a static file without any jinja, you could use salt-cp http://docs.saltstack.com/en/latest/ref/cli/salt-cp.html
18:52 alanpearce joined #salt
18:53 denstark forrest: cool, I'll take a look
18:53 repl1cant joined #salt
18:53 bhosmer_ joined #salt
18:53 denstark oh hey, isn't that nice
18:53 denstark :)
18:55 patarr is there a salt state for limits?
18:55 patarr unix limits*
18:57 thayne joined #salt
18:57 jalaziz joined #salt
18:59 manfred patarr: wouldn't you just do that with a file.managed on the limits.conf?
19:00 rojem joined #salt
19:01 Eugene salt-ssh. How well does it work? A bit slow, sure, but overall decent?
19:01 manfred Eugene: yes
19:01 Eugene Prospective environment of a few dozen minions, and no sane VPN setup between them all(yet)
19:01 Eugene I have the joy of managing them all from several dozen undocumented and largely random SSH port-forwards
19:02 dimeshake Eugene: i take it you can't open 2 ports to your master?
19:03 Eugene I know better than to run Salt over the open internet
19:03 Eugene Eventually I'll get some site-to-site openvpn going and install minions properly
19:06 mechanicalduck joined #salt
19:06 tcotav is there a way with jinja to have something like this in an sls file: for f in os.listdir(installdir): <regular symlink code here>
19:08 n8n_ joined #salt
19:10 tcotav http://pastebin.com/fgf3taM1    # that's what I'm trying to do, but using python sls
19:12 Sylphid|home hey all, im trying to utilize the master_tops mechanism (specifically the cobbler tops module) but it doesnt appear to be calling cobbler.top from what i can tell, any advise?
19:14 biteme joined #salt
19:16 aparsons joined #salt
19:16 patarr forrest: http://pastie.org/private/cdofu7jdwsgwylgztlokhg
19:16 patarr That's the directory structure of when the bug happens
19:17 peters-tx joined #salt
19:17 bhosmer_ joined #salt
19:19 Eugene Does salt-ssh have an invocation that will grant me a shell on said box? Or just use normal `ssh` for that?
19:21 manfred Eugene: it uses ssh
19:21 tkharju joined #salt
19:21 manfred Eugene: https://github.com/saltstack/salt/blob/develop/salt/client/ssh/__init__.py#L160
19:21 Eugene As in `ssh` or a python ssh module?
19:22 Eugene Ah see
19:22 Nyekon joined #salt
19:23 Eugene That looks like via python?
19:23 manfred Eugene: nope, straight ssh https://github.com/saltstack/salt/blob/develop/salt/client/ssh/shell.py#L173
19:23 Eugene Aha
19:23 manfred Eugene: through subprocess.Popen https://github.com/saltstack/salt/blob/develop/salt/client/ssh/shell.py#L207
19:24 Eugene So I'll need to enumerate everything in my ssh_config
19:24 Eugene Cool, at least it'll be an easy copy-paste job
19:24 thayne joined #salt
19:24 patarr anyone have any ideas on this bug? http://pastie.org/private/ficfklyl52eilioxll2ww
19:25 manfred patarr: you don't have a systemconfigs.users
19:25 manfred you have  users
19:26 aparsons joined #salt
19:26 forrest sorry patarr got pulled into some other stuff
19:26 forrest but yea, your users dir is top level, didn't you say before you were doing include: - users?
19:26 aparsons joined #salt
19:28 Nyekon If anyone has a sec, I'm getting an error using winrepo.genrepo when following documentation verbatim > http://pastie.org/pastes/9473997
19:29 DrQuest joined #salt
19:30 DrQuest hey, when you're producing formulas to manage an active product, how do you guys put those formulas through a dev/qa/prod cycle.  So that a change in say the apache formula doesn't take down the product
19:31 forrest DrQuest, multiple branches within a git repo
19:32 DrQuest mm, and then how do you go about testing them? multiple salt masters with their own environments?
19:33 Eugene I've done it two ways, dev/prod separation being one
19:33 patarr forrest: yeah I was trying that. But obviously that would be wrong. But I'm curious as to why the set up i have in that paste doesn't work. It should..?
19:33 Eugene The other is to have Prod with lots of redundancy(eg, 3+ web servers). Take one out of rotation, deploy to it, verify, then back into rotation. Repeat o nthe rest.
19:33 patarr manfred: but I have my systemconfigs state. Which has an init that includes users.
19:33 forrest patarr, I'm honestly not sure :\
19:34 manfred patarr: it includes systemconfigs.users
19:34 manfred users isn't inside systemconfigs?
19:34 pass_by_value Sylphid|home: I have little experience with master_tops but I can try to help
19:34 Sylphid|home pass_by_value, i think i found my issue....
19:34 pass_by_value cool
19:34 pass_by_value :)
19:34 nickg manfred: i came up with a need for the timed delay in batch mode.  load balancers.. they need time to recognize the service is back online.
19:34 forrest manfred, he was doing just an include on users before. I asked him to switch it because I thought it was under systemconfigs, I was confused.
19:34 Sylphid|home pass_by_value, hitting a but thats in 2014.1.5
19:34 n8n joined #salt
19:35 manfred forrest: ahh
19:35 pass_by_value I see
19:35 Sylphid|home pass_by_value, upgrading to .7 now to see if that fixes it
19:35 pass_by_value cool, let me know if you need my help!
19:35 Sylphid|home pass_by_value, https://github.com/saltstack/salt/issues/13673
19:35 manfred nickg: i don't think you need it there either, not if you have just a sleep in the waiting on the service to come back up
19:35 Sylphid|home pass_by_value, will do thanks
19:35 patarr manfred: but users is inside systemconfigs.
19:36 pass_by_value Sylphid|home: thanks!
19:36 nickg manfred: well the service will be up and running on the machine.. but the LB may not recognize its back online for X seconds.  So I'd prefer to not move onto the next one until that happens
19:36 manfred patarr: then you should indent the users in your paste, cause it looks like it is on the same level
19:36 patarr oh whoops my bad. You're right.
19:36 manfred nickg: that is where a check loop comes in
19:36 manfred nickg: you should have a function that can check with the laod balancer for if the service is back online with it, and when it is, continue on and finish your states
19:36 patarr so it may be a bug no?
19:37 nickg you want me to integrate salt with some ghetto load balancer's UI?
19:37 manfred patarr: shouldn't be
19:38 manfred nickg: i would rather it be done the correct way, even with the check function, you could just throw a 30 second sleep in there and would have the same result
19:39 ramishra joined #salt
19:39 * patarr pulls hair out
19:39 marco_en_voyage joined #salt
19:40 manfred patarr: can you give me the url from      tree /srv/salt | curl -F 'f:1=<-' ix.io
19:40 miqui joined #salt
19:40 nickg manfred: i can't thnk of a way to log into a load balancer UI and check to see if that exact server is back online
19:40 manfred nickg: if your ui couldn't do it, you would just include your sleep there.
19:42 dumol joined #salt
19:42 MTecknology manfred: were you blinded?
19:43 manfred MTecknology: what?
19:43 thayne joined #salt
19:43 MTecknology manfred: are you revved up like deuce?
19:43 MTecknology a*
19:43 manfred heh
19:44 MTecknology Every time I see your nick, that song gets stuck in my head
19:44 dumol hi all! what's the magic expression for specifying in a single line in top.sls minions that start with linux or lnx?
19:45 SheetiS could use a compound match.
19:46 SheetiS http://docs.saltstack.com/en/latest/ref/states/top.html something like this:
19:46 SheetiS 'linux* or lnx*':
19:46 SheetiS -match: compound
19:46 manfred MTecknology: :)
19:46 manfred !matching
19:47 manfred meh
19:47 manfred dumol: http://docs.saltstack.com/en/latest/topics/targeting/compound.html
19:47 dumol thanks, i'm reading it
19:48 napper joined #salt
19:48 marco_en_voyage left #salt
19:48 MTecknology !targeting
19:48 wm-bot4 http://docs.saltstack.com/en/latest/topics/targeting/index.html
19:53 dumol nailed it… :) thank you all!
19:53 manfred np
19:54 to_json joined #salt
19:56 manfred patarr: ok, I am getting the same error
19:57 patarr yaay i think i found my first bug :D
19:58 manfred i am not sure if it is a bug, or the intended behavior
19:59 Linuturk when I setup a require: pkg: blah, but I install that package using a list from pillar, the require never really works.
19:59 Linuturk it just fails
20:00 manfred Linuturk: you are requiring the state-id or the stuff in the name?
20:01 Linuturk https://github.com/Linuturk/saltstates/blob/79f591832b4fd0d1e681b8da0d6318afc36e8f5b/drone/init.sls#L5 << something like that
20:01 Linuturk where python-pip is defined in pillar
20:01 manfred patarr: can you open up a bug and tag @basepi
20:01 Linuturk manfred: ^^
20:01 manfred Linuturk: the name of that state is drone-deps
20:01 Linuturk so, just do require sls: drone-deps
20:02 manfred no
20:02 manfred do a require: pkg: dron-deps
20:02 Deevolution How do I specify a "require:" section to have multiple requirements?  Doing it as a list gives a  Illegal requisite "['b', 'a']" error.
20:02 manfred Linuturk: pkgs is a special variable, the only thing you can put into requires are the name or the stateid, and pkgs is neither
20:03 manfred Linuturk: if you did the following
20:03 manfred 1 drone-deps:
20:03 manfred 2   pkg.installed:
20:03 manfred 3     - name: python-pip
20:03 manfred 4     - pkgs: {{ pillar['drone']['packages'] }}
20:03 manfred your current one would work, and have the same behavior of installing everything in that list
20:03 Linuturk ah
20:03 Linuturk okie day
20:03 manfred because it has a name: , without the name: ... the actual name is the state-id which is drone-deps
20:03 Linuturk that makes sense now
20:03 manfred Linuturk: or alternatively, you could do names: {{ pilla....
20:04 manfred Linuturk: but then you run one yum/apt-get on each thing in your list, but you would expand out to have one state per item in the list
20:04 patarr manfred: github issue? And what is @basepi?
20:05 manfred patarr: yes github, and @basepi is the dude that works on a lot of the state system stuff and might know why this broke, or if it was ever intended to work
20:05 rap424 joined #salt
20:05 possibilities joined #salt
20:05 basepi erm, I'm not super great with the state system stuff.... but happy to take a look.  =)
20:06 manfred basepi: techhat said to tell you to look :P
20:06 robawt basepi: yo!
20:07 manfred basepi: basically this http://ix.io/dTP
20:07 manfred basepi: did nested states ever work?
20:07 basepi you should never trust techhat.
20:07 basepi ;)
20:07 manfred true story
20:08 dumol left #salt
20:08 basepi where is test supposed to be coming from?  common.test?
20:08 basepi I don't see a test.sls
20:08 aparsons joined #salt
20:09 manfred there is a test directory with init.sls... oh
20:09 manfred i messed it up didn't i
20:09 basepi test instead of this?
20:09 manfred yup
20:09 manfred nm it works
20:09 GnuLxUsr joined #salt
20:09 beneggett joined #salt
20:10 basepi i was going to say, that seems like it should work.
20:10 robawt wuddup basepi
20:10 manfred patarr: it works here http://ix.io/dTR
20:12 n8n joined #salt
20:12 patarr manfred: throw the "users" salt-formula into test.
20:12 patarr https://github.com/saltstack-formulas/users-formula
20:13 patarr you just need to modify the path of the map.jinja files in the sls files and it should be good to go.
20:13 metaphore joined #salt
20:14 manfred patarr: it works here, granted there is an error since I don't have any pillars, but it finds the state
20:16 vbabiy joined #salt
20:17 rihannon joined #salt
20:17 metaphore joined #salt
20:18 patarr aagh.
20:22 n8n joined #salt
20:23 aquinas joined #salt
20:24 markizano joined #salt
20:28 aquinas joined #salt
20:31 n8n joined #salt
20:32 srage joined #salt
20:32 Ryan_Lane joined #salt
20:33 scbunn joined #salt
20:34 Ozack joined #salt
20:35 pentabular joined #salt
20:36 MatthewsFace joined #salt
20:39 pentabular joined #salt
20:40 ramishra joined #salt
20:43 n8n joined #salt
20:43 otter768 joined #salt
20:45 beneggett joined #salt
20:52 calle joined #salt
20:52 srage joined #salt
20:52 riftman joined #salt
20:59 jhauser joined #salt
21:00 orion_ joined #salt
21:01 jhulten joined #salt
21:04 aparsons_ joined #salt
21:05 aparsons joined #salt
21:10 orion_ joined #salt
21:10 kermit joined #salt
21:10 kermit joined #salt
21:10 vejdmn joined #salt
21:15 jhauser joined #salt
21:23 pass_by_value1 joined #salt
21:24 capitalfellow joined #salt
21:24 ixokai_ joined #salt
21:25 capitalfellow joined #salt
21:26 Outlander joined #salt
21:26 conan_the_destro joined #salt
21:26 forrest manfred, are you around?
21:26 ixokai_ joined #salt
21:30 beneggett joined #salt
21:30 Ozack joined #salt
21:34 UtahDave joined #salt
21:35 forrest Does anyone remember how to use the npm state, but NOT have it install globally?
21:36 srage joined #salt
21:38 UtahDave forrest: specify the "dir" option
21:38 forrest UtahDave, oh that forces it to not use global? Hmm ok
21:39 forrest thans
21:39 forrest *thanks
21:44 forrest UtahDave, Can you remember off hand if you just leave dir blank, will it just drop global?
21:44 possibilities joined #salt
21:44 UtahDave forrest: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.npm.html#salt.states.npm.installed  Docs seem to indicate setting a path to a directory to install is required to not have global.
21:45 bhosmer joined #salt
21:45 UtahDave I'm pretty sure that's how npm works.  Either install to a certain directory, or global.
21:45 forrest UtahDave, yea that's what I'm looking at as well
21:45 forrest uhh actually you don't have to with npm
21:45 forrest if you run npm install grunt-cli
21:45 forrest it will install to the local /home/user/.npm dir
21:45 forrest it's dumb
21:49 UtahDave ah, ok. I'm not terribly familiar with npm. Just some light usage.
21:49 forrest yea neither am I, that's why I was asking
21:51 beneggett joined #salt
21:54 ramishra joined #salt
21:55 duncanmv joined #salt
21:57 Nazca joined #salt
21:57 jergerber joined #salt
21:59 srage joined #salt
22:00 duncanmv how does the 0.11,0.12 versioning correspond to the 2014.x.y versioning?
22:01 forrest Dinde, after the 0.17 release it was decided to switch to a year style scheme
22:04 forrest duncanmv, ^
22:04 forrest sorry, tagged the wrong user
22:04 srage joined #salt
22:04 bhosmer joined #salt
22:06 duncanmv ahhh ok
22:06 srage joined #salt
22:07 bezeee joined #salt
22:08 aparsons joined #salt
22:18 eightyeight with '-b|--batch-size', how is the list of hosts determined?
22:19 eightyeight are they alphabetical as found in 'salt-key -L'? or why responds via 0mq? something else?
22:20 eightyeight http://docs.saltstack.com/en/latest/topics/targeting/batch.html
22:23 Ryan_Lane eightyeight: I believe it pings all the nodes, then iteratively runs against the found nodes in a batched way
22:24 eightyeight so, first pong, first serve?
22:24 Ryan_Lane yep
22:24 Ryan_Lane assuming you use batch 1
22:24 Ryan_Lane if you use batch 20, then whichever of the first 20 pick up the message
22:24 eightyeight hmm. i don't like that much
22:25 eightyeight i would prefer to have some control over the list
22:25 Ryan_Lane you can write a runner for this
22:25 eightyeight such as '--randomize' or some such, where the list is uniformly distributed
22:25 Ryan_Lane that basically does what batch mode does
22:25 eightyeight that's true
22:28 DaveQB joined #salt
22:29 chrisjones joined #salt
22:31 Luke joined #salt
22:33 DaveQB joined #salt
22:34 zz_Cidan question, when I do salt 'blah-*' state.sls some.state, it always looks at base
22:34 zz_Cidan and never my prod states
22:34 zz_Cidan is there a way I can make it look at a particular env?
22:36 aparsons joined #salt
22:36 zz_Cidan oic
22:39 zz_Cidan nevermind, got it :D
22:39 Luke_ joined #salt
22:40 possibilities joined #salt
22:42 DrQuest how do I get a list of all states available ?
22:43 rojem joined #salt
22:43 aparsons joined #salt
22:44 aparsons joined #salt
22:44 rojem joined #salt
22:45 aparsons joined #salt
22:47 Gareth DrQuest: which version of salt are you running?
22:48 DrQuest Hydrogen
22:51 kelseelynn joined #salt
22:51 Gareth hrm not sure about that.  2014.7 has sys.state_doc.
22:51 Outlander joined #salt
22:52 forrest Gareth, DrQuest looks like it's in release 2014.7.0: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.sysmod.html#salt.modules.sysmod.state_doc
22:52 DrQuest awesome
22:52 DrQuest thanks
22:52 forrest doesn't seem to exist in the older releases :\
22:53 Gareth forrest: yeah. I added it in 2014.7.0 :)
22:53 forrest lol
22:53 forrest Gareth, awesome
22:53 Ryan_Lane we need to get better about adding "added in version
22:53 forrest There's been a need for something like that for a while that's for sure
22:53 Ryan_Lane "
22:53 Gareth but 2014.1 I dont think there is an easy way.
22:53 forrest Ryan_Lane, people have gotten a lot better about it
22:53 Ryan_Lane seems it's on that function :)
22:53 forrest Ryan_Lane, I actually just made a commit adding one to a doc that was missing it
22:53 forrest Ryan_Lane, yea it is
22:53 Ryan_Lane heh. cool
22:53 forrest Gareth, no I don't think there is
22:54 forrest Ryan_Lane, it's been at least 3 days since someone came in and asked about something missing (and I fixed that one when I went home)
22:54 Gareth hm. anyone know where avaiable returners for the scheduler are specified.
22:55 ramishra joined #salt
22:55 Gareth nm. typo.
22:59 DrQuest since I've started working with salt, 4-5 months now? the error messages are at least starting to return useful information
22:59 DrQuest but the documentation still drives me a little nutso
22:59 forrest DrQuest, in what way? Just trying to find stuff?
22:59 DrQuest instead of "composer.install" is not available .
22:59 DrQuest it's composer.install is not available could not find composer
23:00 DrQuest well the even system is my main gripe right now, what events get returned when, what actual data do they return etc.  That documentation has improved but it's not great
23:01 forrest DrQuest, yea there are a lot of places where the docs are still lacking. Tons of cool features get added, but sometimes the docs aren't fleshed out, or just aren't clear
23:02 Luke joined #salt
23:02 beneggett joined #salt
23:03 Luke joined #salt
23:04 Luke joined #salt
23:05 Luke joined #salt
23:06 Luke joined #salt
23:07 drawks joined #salt
23:07 drawks hey hey hey
23:07 Hell_Fire joined #salt
23:08 SheetiS joined #salt
23:08 toastedpenguin joined #salt
23:08 drawks I'm just poking around at salt-minion in masterless mode. I don't see anything in the docs about pillars in masterless, is that just not a thing?
23:08 Ryan_Lane drawks: it works
23:08 Ryan_Lane external pillars work too
23:09 Ryan_Lane when using masterless I tend to set my paths explicitly in the config file
23:09 Ryan_Lane rather than using the defaults
23:09 Ryan_Lane http://docs.saltstack.com/en/latest/ref/configuration/minion.html#pillar-roots
23:10 drawks cool, thanks
23:10 Ryan_Lane yw
23:10 basepi robawt: So I have to apologize that I never answered your "yo!" earlier -- since it was in with the rest of those mentions I misread and thought it was patarr mentioning me.  =)
23:11 * Gareth shakes his head in basepi's direction
23:11 * basepi shakes fist at Gareth
23:12 * Gareth shakes a large trout at basepi in a threatening manner
23:12 * basepi fries up the trout and eats it
23:12 basepi mmmmm trout
23:12 forrest fried with some hush puppies please
23:12 basepi Mostly I'm just missing normal food.  Soylent is good, but it's no cheeseburger.
23:12 forrest lol
23:13 Gareth basepi: hows the taste?  I've heard it takes some getting used to.
23:13 forrest Gareth, basepi is making a full documented day by day report of his experience, right? :P
23:13 basepi Gareth: pretty good, but that was my experience as well.  I wasn't so sure about it day 1, but a couple days in and it's a fair bit better.
23:13 basepi forrest: nope, I'm a slacker.  =P
23:13 Gareth forrest: I assume so.
23:14 basepi Today I tried adding some cocoa powder, it's pretty good but I didn't add enough
23:14 mosen joined #salt
23:14 basepi Couple days ago I added blueberries, that was pretty good
23:14 Gareth so you're strictly on soylent?
23:15 forrest I'd want to add protein powder :P
23:15 drawks hrm.... if i run salt-minion with only a single config line "file_client: local" it just spams the logfile
23:15 drawks "The Salt Master has cached the public key for this node...."
23:15 Ryan_Lane drawks: salt-call defaults to log-level info
23:16 Ryan_Lane if you don't want to see the spam, use --log-level critical
23:16 aquinas joined #salt
23:16 drawks but what does that log line even mean in the context of masterless?
23:16 Ryan_Lane basically nothing
23:16 drawks it is coming at the error loglevel
23:17 forrest there are several things like that drawks
23:17 Ryan_Lane it still caches a lot of stuff, though, including the minion_id
23:17 forrest I usually just ignore them in masterless
23:17 Ryan_Lane the minion_id defaults to the fqdn
23:17 n8n joined #salt
23:18 drawks so it is normal in masterless to generate a logline every 10 seconds that indicates an error but really means nothing?
23:18 Ryan_Lane forrest: the minion_id cache thing is especially annoying if you're using masterless as non-root
23:18 Ryan_Lane drawks: ah, you're running the minion daemon?
23:18 drawks yeah i thought that was how this is meant to work, no?
23:18 forrest Ryan_Lane, oh yea I never run masterless as a user that doesn't have sudo
23:18 Ryan_Lane you actually don't need to run the daemon when doing masterless
23:19 Ryan_Lane only if you want to fire/catch local events and/or use the minion scheduler
23:19 drawks i do want those things :)
23:19 Ryan_Lane ah, ok
23:19 Ryan_Lane then yeah, it's normal for it to put that into the log
23:19 Ryan_Lane it clears its cache every so often
23:20 drawks can i manually clear it?
23:20 Ryan_Lane yes
23:20 Ryan_Lane drawks: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.clear_cache
23:20 scbunn joined #salt
23:20 Ryan_Lane assuming you're using 2014.7, which is currently a release candidate
23:20 ajprog_laptop joined #salt
23:21 Ryan_Lane so maybe a few weeks from now you'll be able to run that ;)
23:21 drawks ha! so I should expect after some indeterminate time that i should stop seeing those log lines?
23:22 drawks as the cache will clear?
23:22 Ryan_Lane oh. wait. are you running both a master and a minion process?
23:22 drawks just a minion
23:22 Ryan_Lane I just realized that line is odd
23:23 rihannon left #salt
23:23 Ryan_Lane I'm not sure you'll stop seeing those logs. I'm also not sure why you're seeing them
23:24 Ryan_Lane drawks: are you running on ec2 or some other cloud?
23:24 drawks the minion quickstart seems to indicate that i can just run salt-minion with just the file_client configured as local
23:24 drawks nope
23:24 drawks just a random debian box
23:24 Ryan_Lane ok
23:27 bhosmer joined #salt
23:28 possibilities joined #salt
23:32 Gareth hrm. think I may have just found a bug with returners and the scheduler.
23:34 drawks Ryan_Lane: yeah i just completely wiped the cache, pki, minon_id and config and confirmed only having the single config call out and running salt-minion just spams that cached key message every 10 seconds
23:36 Whissi joined #salt
23:40 DanGarthwaite joined #salt
23:41 DanGarthwaite Congratulations!  Now update the IRC banner.
23:45 Singularo joined #salt
23:49 yomilk joined #salt
23:50 Topic for #salt is now Welcome to #salt | 2014.1.10 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
23:50 kelseelynn joined #salt
23:51 Luke joined #salt
23:52 yomilk joined #salt
23:52 bezeee joined #salt
23:53 beneggett joined #salt
23:55 pssblts joined #salt
23:56 ramishra joined #salt
23:57 possibil_ joined #salt
23:58 DanGarthwaite Huzzah!

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