Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-10-01

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

All times shown according to UTC.

Time Nick Message
00:12 cloud_noob joined #salt
00:12 cloud_neofight joined #salt
00:20 faldridge joined #salt
00:23 cloud_noob left #salt
00:23 cloud_neofight left #salt
00:31 RoboTeddy hmm. `salt myhost pillar.items` works; `salt myhost state.highstate` fails with "Pillar failed to render" (UndefinedError: 'dict object' has no attribute 'repository_revision') where repository_revision is data from a custom grain
00:32 rgbkrk joined #salt
00:33 RoboTeddy does state.highstate attempt to render pillar data by method other than what's done in pillar.items?
00:34 RoboTeddy (or does it access some other cache, perhaps?)
00:37 EntropyWorks so has there been any work on built in syntax checking for states and pillars?
00:38 cloud_neofight joined #salt
00:44 mianos joined #salt
00:51 jesusaurus RoboTeddy: do you see 'repository_revision' in the output from pillar.items?
00:51 RoboTeddy jesusaurus: yep
00:51 redbeard2 joined #salt
00:52 RoboTeddy (and in grains.items, which I'm guessing is what you meant -- I happen to have it in both though)
00:52 jesusaurus EntropyWorks: not really. its fairly complex because of the way pillars are compiled for a specific minion, but the states themselves are compiled *on the minions*
00:53 jesusaurus RoboTeddy: oh, thats a grain you are access in the pillar?
00:53 RoboTeddy jesusaurus: righto, a custom grain (_grains)
00:54 RoboTeddy pillar.items gets the correct custom grain data, but when state.highstate is attempting to render pillar, the custom grain isn't there
00:54 jesusaurus it should be compiling in the same way for both, but I don't have much experience accessing grains from within the pillar
00:54 EntropyWorks that really stinks. since ansible has -syntax-check
00:54 jesusaurus yeah, and puppet and puppet-lint (and --noop, which is also really useful)
00:55 jesusaurus EntropyWorks: Ive been trying to hack something together. https://github.com/jesusaurus/salt-shaker *almost* works
00:56 jesusaurus (but not well enough)
00:56 josephho_ joined #salt
00:57 a1j joined #salt
00:58 carmony joined #salt
00:58 zz_dane joined #salt
00:58 __number5__ Q: If I trying to fix a bug in Salt, should I based my fork on the develop or specific version branch like 0.17?
00:58 UtahDave __number5__: always fork develop
00:59 __number5__ UtahDave: thanks
00:59 EntropyWorks jesusaurus O
01:00 EntropyWorks i should play with that some then. tired of catching stupid errors in my salt-openstack
01:10 malinoff joined #salt
01:10 malinoff Hi all
01:12 robbyt joined #salt
01:16 piffio joined #salt
01:17 ifnull__ Can someone provide an example of setting an environment in the top.sls. I have been following the instructions at https://salt.readthedocs.org/en/latest/ref/states/top.html
01:17 ifnull__ I'm trying to tell my vagrant box to use the gitfs develop branch
01:20 mianos joined #salt
01:27 mwillhite joined #salt
01:28 jslatts joined #salt
01:34 lineman60 joined #salt
01:37 Lue_4911 joined #salt
01:49 CheKoLyN joined #salt
01:52 blee_ joined #salt
01:53 imaginarysteve joined #salt
01:54 mianos backspace rebooted one of my machines during an outage, I'm flabagasted
01:56 mannyt joined #salt
02:04 ipmb joined #salt
02:05 sixninetynine joined #salt
02:06 jacksontj joined #salt
02:09 faldridge joined #salt
02:10 UtahDave joined #salt
02:10 jacksontj questions about environments-- i want to set up my modules so they sync out to a subset of hosts (while i test them)
02:11 jacksontj environments seem to be the way to do that-- but how will that interact with the state tree?
02:11 jacksontj i'd like to (for example) have v1 of module A in prod and have v2 of that same module in stg
02:12 xuru joined #salt
02:14 kenbolton joined #salt
02:14 jacksontj it looks like if i have the same host in multiple environments it syncs down both sets of modules?
02:28 cachedout_home joined #salt
02:43 malinoff jacksontj: You can do that with just one environment. top.sls might be something like this: http://pastebin.com/JLp4RsEz
02:51 lineman60 joined #salt
03:05 jalbretsen joined #salt
03:06 mwillhite joined #salt
03:13 cshuman joined #salt
03:13 jacksontj joined #salt
03:21 dthom91 joined #salt
03:22 jaequery joined #salt
03:26 JaredR joined #salt
03:28 lemao joined #salt
03:29 mianos joined #salt
03:32 forrest_ joined #salt
03:39 dthom91 joined #salt
03:55 cshuman joined #salt
03:55 shinylasers joined #salt
04:01 jaequery joined #salt
04:01 emocakes joined #salt
04:05 mwillhite joined #salt
04:14 copelco joined #salt
04:17 jaequery joined #salt
04:18 dthom91 joined #salt
04:19 joehh UtahDave: hey are you able to answer some qs about salt-ssh
04:19 UtahDave sure
04:23 mwillhite joined #salt
04:26 mwillhite joined #salt
04:34 Lue_4911 joined #salt
04:36 Furao joined #salt
04:40 Katafalkas joined #salt
04:55 josephholsten joined #salt
05:03 josephho_ joined #salt
05:05 HD joined #salt
05:05 druonysuse joined #salt
05:07 josephholsten joined #salt
05:08 Ryan_Lane joined #salt
05:36 mianos joined #salt
05:36 mwillhite joined #salt
05:39 Ryan_Lane joined #salt
05:44 josephho_ joined #salt
05:46 pmrowla joined #salt
05:53 ifnull__ joined #salt
05:54 pjs joined #salt
05:57 zakm_ joined #salt
06:00 yota joined #salt
06:06 rmt Question #1: How would you sensibly version your states such that you could easily have two releases/tags of the same application's SLS files installing simultaneously?
06:07 rmt Question #2: How would you allow an arbitrary number of (untrusted)user-managed states, each with multiple versions, to be made available on the salt master?
06:09 rmt Question #3: Assuming the above is possible, How could I use an external data source to instruct a minion to install version X or application Y in a secure way, such that it cannot install any other application or version (the file server should also restrict access)
06:11 forrest_ rmt, question #1 would probably be http://docs.saltstack.com/ref/file_server/file_roots.html
06:11 forrest_ Question #2: I would say http://docs.saltstack.com/topics/tutorials/gitfs.html
06:12 rmt forrest_, that looks like you have to modify a configuration file to allow different versions... Puppet, for example, supports the $environment variable in its modulepath.  And the environment can be enforced by the ENC (although the file server isn't secure)
06:13 forrest_ rmt, in that case you could easily create a custom grain for the minion regarding the environment if you aren't basing it off the hostname, then use that value to determine (via pillar lookups) which variables are applied within certain states.
06:13 forrest_ file server security I'm not sure about, never investigated it.
06:14 rmt Whoa! Letting the minion decide what environment to use?
06:15 rmt Did I mention that my use case is hundreds of untrusted applications.. that would mean separate repositories for every application..
06:15 forrest_ I don't know if you can do that for the file_roots, but you could easily do something like:https://github.com/gravyboat/fail2ban-formula
06:16 forrest_ yeaaaaaaaaa that I'm not sure about.
06:17 rmt I'd ideally also like to have all tags be permanent ... git allows retagging.. It'd have to be done by commit id.. but that's not very user-friendly.
06:17 rmt As I said, I deal with this in puppet using an ENC and lots of environment directories.
06:19 forrest_ I don't know if there's an equivalent in saltstack that will allow you to group states based on the machine where it's a lookup like that. Usually that data is just defined in the top file
06:19 forrest_ where you group file roots/states based on a grain (or custom grain that you build)
06:19 matanya joined #salt
06:21 forrest_ Like this for exampel: http://docs.saltstack.com/ref/states/top.html#other-ways-of-targeting-minions
06:21 forrest_ *example
06:23 rmt I really don't trust the minions... access should be enforced server-side... how it's done after that (eg. using pillars or grains), I don't care.
06:25 rmt bbk
06:29 forrest_ rmt, I see this issue: https://github.com/saltstack/salt/issues/355 , and http://docs.saltstack.com/ref/tops/all/salt.tops.ext_nodes.html?highlight=external%20node%20classification
06:30 forrest_ I've gotta head to bed, let me know if you find a better solution.
06:35 ml_1 joined #salt
06:39 Ryan_Lane joined #salt
06:40 shinylasers joined #salt
06:46 malinoff rmt: I was thinking about it. If you can't trust on minion's grains, the only thing you can do is to target minions by their id. If a minion changes its id, he must be re-authenticated on the master.
06:47 rmt malinoff, correct.  The trusted key's ID is the only way.
06:50 malinoff rmt: Well, you can set up a significant minion ID before the first auth, and use globs... But anyway there is a lot of hemorrhoids
06:54 rmt malinoff, I attach metadata to the infrastructure layer, so I know ahead of time what a node will be.  So we can confirm nodes before auto-accepting/signing their certs (with only a small vector for attack)
06:56 troyready joined #salt
06:56 rmt Worktime.. ciao. :)
06:56 malinoff rmt: Nice solution :) Bye
07:01 zakm joined #salt
07:06 Lue_4911 joined #salt
07:14 ggoZ joined #salt
07:14 linjan_ joined #salt
07:15 [M7] joined #salt
07:18 TheCodeAssassin joined #salt
07:23 shinylasers joined #salt
07:25 gildegoma joined #salt
07:25 balboah joined #salt
07:28 CansaSCity joined #salt
07:40 Ryan_Lane joined #salt
07:49 lacrymology can someone explain module.wait usage to me, by any chance? I've been looking all over the internet for an example, but I can't find any
07:55 druonysuse joined #salt
08:02 ronc joined #salt
08:02 ollins joined #salt
08:04 ml_1 joined #salt
08:07 multani is there a way to trigger another state (a cmd.wait for example) during a highstate if the value of a pillar has changed?
08:08 zakm joined #salt
08:09 multani lacrymology: you need to add a "watch" to module.wait so it gets triggered if another state changes
08:09 multani (or a "watch_in" towards your module.wait if you want to do it the other way around)
08:11 rjc joined #salt
08:13 mirko joined #salt
08:14 gildegoma joined #salt
08:15 malinoff joined #salt
08:16 ggoZ joined #salt
08:16 aleszoulek joined #salt
08:20 ricicle joined #salt
08:24 madduck joined #salt
08:24 madduck joined #salt
08:26 zakm joined #salt
08:33 AviMarcus joined #salt
08:40 Ryan_Lane joined #salt
08:41 zooz joined #salt
08:57 p3rror joined #salt
08:57 zooz joined #salt
09:10 Ryan_Lane joined #salt
09:15 rfgtid joined #salt
09:20 NC joined #salt
09:21 ricicle joined #salt
09:23 zooz joined #salt
09:37 graingert joined #salt
09:39 middleman_ joined #salt
09:45 Guest11736 joined #salt
09:53 s1acky left #salt
10:00 ricicle left #salt
10:06 [M7] joined #salt
10:08 p3rror joined #salt
10:11 Ryan_Lane joined #salt
10:14 linuxnewbie joined #salt
10:18 emocakes joined #salt
10:25 dthom91 joined #salt
10:31 CansaSCity hi, does require only work when the required pkg is allready included?
10:32 honestly there must be a state that installs the package
10:32 honestly salt will automatically resolve your states so the package state is executed before the state that requires the package
10:32 CansaSCity because I have multiple files and the required package (installation state) is in one file, which isn't yet included, but the package is required
10:34 CansaSCity so I have one directory with roles and in there a state which requires the package "ant"
10:34 CansaSCity and i have a package folder with an ant.sls where it is defined how to install ant
10:35 CansaSCity when I do "salt-call state.sls role.myrole" it is printing that  The following requisites were not found
10:37 adepasquale joined #salt
10:38 ggoZ joined #salt
10:38 CansaSCity with an include statement it seems to work
10:39 honestly you need the include statement
10:39 CansaSCity ok thanks
10:39 honestly the require is just for dependency resolution
10:40 giantlock joined #salt
10:41 Ryan_Lane joined #salt
10:46 xet7 joined #salt
11:01 TheCodeAssassin joined #salt
11:03 felixhummel joined #salt
11:09 TheCodeAssassin joined #salt
11:09 CansaSCity joined #salt
11:13 CansaSCity1 joined #salt
11:17 kiorky s0undt3ch: exec module for docker is 99.9% complete, :), will begin the state one this afternoon :D
11:17 s0undt3ch kiorky: nice!
11:18 kiorky s0undt3ch: https://github.com/makinacorpus/salt/blob/docker/salt/modules/lxcdocker.py
11:19 blee_ joined #salt
11:19 s0undt3ch kiorky: can I comment on your code(right in github)?
11:20 s0undt3ch kiorky: neverminf
11:20 s0undt3ch kiorky: nevermind
11:20 kiorky s0undt3ch: yep, as you want
11:20 s0undt3ch kiorky: `get_client` thats supposed to be used internally?
11:20 jslatts joined #salt
11:20 kiorky s0undt3ch: may i rename to _ those internally functions if that is the question ?
11:21 s0undt3ch kiorky: yep, that's the question or salt will list them as available functions
11:21 s0undt3ch kiorky: once you're done, please also add the 'CLI Example' lines with examples
11:21 s0undt3ch or unit tests will fail
11:22 s0undt3ch kiorky: for now, that's about it. Some minor formatting stuff but that won't block your PR from being accepted
11:23 kiorky s0undt3ch: uhm, i did not add any test
11:23 kiorky s0undt3ch: what test are you speaking about ?
11:23 s0undt3ch kiorky: salt tests function documentation for proper CLI examples
11:23 s0undt3ch in it's unit tests
11:24 kiorky ok
11:24 s0undt3ch kiorky: but focus on that afterwards, keep up that great work
11:25 kiorky s0undt3ch: function renaming over.
11:26 kiorky (and pushed)
11:26 kiorky s0undt3ch: i think techat and micha will do the docstring stuff
11:27 s0undt3ch kiorky: k, no worries. As I said, focus on the really important pieces now ;)
11:28 kiorky s0undt3ch: do you saw the _script and _run wrapper at the end
11:28 kiorky s0undt3ch: i think this is one of the great feature this module grabs
11:29 s0undt3ch kiorky: I might get to use this module ;)
11:34 az87c joined #salt
11:34 az87c_ joined #salt
11:41 Ryan_Lane joined #salt
11:41 Ryan_Lane joined #salt
11:46 ggoZ joined #salt
11:49 bhosmer joined #salt
11:55 blee_ joined #salt
11:58 [M7] joined #salt
12:08 gamingrobot joined #salt
12:11 dthom91 joined #salt
12:11 akitada joined #salt
12:12 Ryan_Lane joined #salt
12:17 Thiggy joined #salt
12:19 piffio joined #salt
12:19 kenbolton joined #salt
12:21 blee_ joined #salt
12:23 MrTango joined #salt
12:24 diegows joined #salt
12:29 blee_ annnnnnnd my vacation.
12:29 blee_ http://www.foxnews.com/politics/2013/10/01/tourists-would-be-shut-out-from-national-parks-monuments-if-government-shuts/
12:30 packeteer are they gonna fence them off?
12:32 blee_ well they are going to block roads and force people out
12:32 blee_ i was planning on going to shenandoah this weekend, heh
12:42 CansaSCity joined #salt
12:43 Ryan_Lane joined #salt
12:43 imaginarysteve joined #salt
12:44 faldridge joined #salt
12:46 tyler-baker joined #salt
12:46 tyler-baker joined #salt
12:46 ipmb joined #salt
12:52 krissaxton joined #salt
12:52 middleman_ joined #salt
13:03 zooz joined #salt
13:04 anteaya joined #salt
13:06 goki joined #salt
13:07 Gifflen joined #salt
13:08 timoguin joined #salt
13:10 juicer2 joined #salt
13:10 pdayton joined #salt
13:13 mwillhite joined #salt
13:13 Ryan_Lane joined #salt
13:18 brianhicks joined #salt
13:22 oz_akan_ joined #salt
13:23 oz_akan_ hi all, is there anyone using gitfs?
13:25 Thiggy @oz_akan_ sort of? I'm actually in the process of stripping out our usage of gitfs to see if it resolves some show-stopping bugs we encountered
13:27 Khollowa_ joined #salt
13:28 renoirb left #salt
13:28 geak joined #salt
13:28 renoirb joined #salt
13:28 colinbits joined #salt
13:28 Thiggy aaand it does resolve our issues.
13:29 oz_akan_ Thiggy: so are you using branches to identify environments?
13:29 Thiggy we were
13:29 oz_akan_ bugs like overstate? or other bugs?
13:30 oz_akan_ Thiggy: ^^
13:30 oz_akan_ brb
13:30 Thiggy bugs like highstate would fail spectacularly with zeromq errors after the cp module failed to cache files that very much exist
13:31 martoss joined #salt
13:33 Thiggy oz_akan_: More info here: https://github.com/saltstack/salt/issues/7493
13:36 martoss Hey folks, is there a simple way to disallow remote execution on a specific client? I would basically be able to use salt-call on a minion using the masters file root but disallow an (accidental) salt '*' state.highstate on the master.
13:38 cnelsonsic joined #salt
13:39 micah_chatt joined #salt
13:41 mgw joined #salt
13:41 oz_akan_ Thiggy: thanks, I am checking the url
13:42 cnelsonsic left #salt
13:42 Thiggy oz_akan_ aside from the brokenness, it was sort of awesome while it worked and I think I kind of understand how the branching/environment stuff works if you have any questions
13:43 oz_akan_ I was at the verge of trying gitfs but had questions on how to effectively manage environments which seems complicated with gitfs as multiple git repos can't be used for an environment unless they all have all the branches required
13:44 Ryan_Lane joined #salt
13:44 oz_akan_ at the moment I have something like this, prod -> /base. /prod, dev -> /base, /dev
13:44 MTecknology FRICK! Trying to move a server into salt management is so much more of a pain in the ass than starting out that way!
13:44 [M7] joined #salt
13:45 kula oz_akan_: what do you mean by "multiple git repos can't be used for an environment unless they all have all the branches required"?
13:45 kula i stared quite a bit at the gitfs code last night, and i'm not sure what you're saying is true, but i'm not quite clear on what you're saying.
13:45 [M7] joined #salt
13:45 oz_akan_ ok, let me paste it somewhere a sec
13:47 Thiggy oz_akan_ "prod -> /base. /prod, dev -> /base, /dev" <-- is that what you have using the plain fileserver
13:47 Thiggy oz_akan_ cuz that should map pretty nicely to gitfs
13:47 oz_akan_ Thiggy: kula http://paste.openstack.org/show/47761/
13:48 oz_akan_ this is kind of what I have
13:48 m_george|away joined #salt
13:49 Thiggy do you need my-preview to include the base environment? Can you instead reference files *in* the base environment from my-preview?
13:50 pdayton joined #salt
13:51 oz_akan_ Thiggy: preview overwrites files in my-base
13:51 oz_akan_ I use similar method in all environments
13:51 Thiggy ah gotcha
13:51 oz_akan_ so I have my-base, where lets say I have mongodb installation, but it differs a bit in preview or in prod
13:52 Thiggy the way we did it was to have 3 branches, master (maps to base), production, and staging. There was no file overlap between them. There were only like 2-3 files in the base environment. Anything that varied between environments, we varied via pillar (a staging pillar and production pillar)
13:52 oz_akan_ if I use gitfs and make a change in master branch then I would have to merge it to all branches
13:52 balboah how can you set a new default returner? I use startup_states: highstate in minions and would like it to log the progress to somewhere as it's ran non-interactive. How would I accomplish that?
13:52 Thiggy I know that's not how you're using it, and not suggesting you do it that way
13:53 oz_akan_ I see
13:53 oz_akan_ sometimes it is not only data that differs in environments
13:53 oz_akan_ but structural things
13:53 oz_akan_ so pillar does help little
13:53 oz_akan_ or formulas has to have lots of if-else to cover each case
13:54 Thiggy understood, our goal was to make our environments as identical as possible, so we were operating under slightly different constraints
13:55 oz_akan_ for test, we usually have outstanding differences
13:55 oz_akan_ it is much easier to try one off thing, and if it works, we move to base
13:55 oz_akan_ so it is then available for all environments
13:56 oz_akan_ Thiggy: anyway, I understand that, current bugs won't let gitfs to be usable, right?
13:56 Thiggy oz_akan_ A lot of people *are* using it, it just explodes violently for me and apparently one other guy on the internet. :/
13:57 Thiggy so, #ymmv
13:57 oz_akan_ what I don't want is to loose more time on bugs
13:57 oz_akan_ I have lost enough initially :)
13:58 oz_akan_ so I am dead scared to try it :)
13:58 Thiggy It was a pretty big time investment getting everything switched over to it, I'm kind bummed that we're probably gonna stop using it.
13:59 oz_akan_ I see, I am sure salt guys will fix it
13:59 oz_akan_ need some pressure to make it happen quickly ;)
13:59 oz_akan_ I was hoping to use it in multi-master setup
13:59 Thiggy it seems ideal for that
13:59 oz_akan_ so masters would be in sync all the time
13:59 middleman_ joined #salt
14:00 Thiggy I wish I knew more salty things, I'd love to dig into why it was happening
14:00 oz_akan_ do you guys have a public git repo with some formulas?
14:01 Thiggy no I've been wanting to expose some of our stuff and blog about it a little
14:01 Thiggy but it has not happened
14:01 msrivas joined #salt
14:02 opapo joined #salt
14:02 Brew joined #salt
14:03 mgw joined #salt
14:05 msrivas It seems like salt 0.17.0 has been released. I was wondering what would be the easiest way to upgrade this version on ubuntu 11.10
14:05 TheCodeAssassin joined #salt
14:08 lineman60 joined #salt
14:09 redbeard2 joined #salt
14:11 kaptk2 joined #salt
14:15 bhosmer_ joined #salt
14:22 kermit joined #salt
14:26 mgw joined #salt
14:28 elfixit joined #salt
14:28 elfixit left #salt
14:28 elfixit joined #salt
14:30 pdayton joined #salt
14:30 pkimber joined #salt
14:31 renoirb pillar and grains question
14:31 renoirb {% if grain['id'].startswith('dev') %}
14:31 renoirb is this kind of thing be done with pillars too?
14:31 wilkystyle joined #salt
14:32 wilkystyle left #salt
14:33 TheCodeAssassin2 joined #salt
14:35 TheCodeAssassin joined #salt
14:38 hunter joined #salt
14:39 Thiggy joined #salt
14:41 ggherdov joined #salt
14:45 Ryan_Lane joined #salt
14:45 L0j1k joined #salt
14:46 matanya joined #salt
14:46 mwillhite joined #salt
14:51 deedubs joined #salt
14:54 andredublin joined #salt
14:57 tomeff joined #salt
14:57 jaequery joined #salt
15:08 forrest joined #salt
15:09 mgw joined #salt
15:10 cshuman joined #salt
15:11 forrest rmt, were you able to discover a solution to your external node classifier question?
15:14 TheCodeAssassin joined #salt
15:14 TheCodeAssassin2 joined #salt
15:14 hunter joined #salt
15:15 TheCodeAssassin joined #salt
15:15 StDiluted joined #salt
15:15 MTecknology renoirb: yup, I do that a lot
15:16 Ryan_Lane joined #salt
15:16 JaredR joined #salt
15:16 MTecknology file.recurse seems to take much longer than it should...
15:16 renoirb I assume the syntax is the same MTecknology ?
15:17 MTecknology renoirb: yup, they're both yaml; the state stuff is for states and needs to be structured for the states/modules being used; the pillar lets you structure data however you want
15:17 renoirb Sadly enough MTecknology I spent time reading all Jinja docs to find simiar functionality and I only got to see how to use RegExes
15:17 renoirb Glad I stumbled on that :/
15:18 curtisz joined #salt
15:18 Ixan joined #salt
15:19 MTecknology {% if grains.get('id').startswith('boothost') %}  <-- I think you can do things like this too
15:19 shinylasers joined #salt
15:21 MTecknology renoirb: ya... what I just did works perfect
15:21 renoirb Thanks :)
15:23 larstr joined #salt
15:24 Ryan_Lane joined #salt
15:26 ggoZ joined #salt
15:29 Kraln joined #salt
15:32 CheKoLyN joined #salt
15:33 krissaxton joined #salt
15:37 jrgifford joined #salt
15:37 mohae joined #salt
15:41 SpX joined #salt
15:42 jalbretsen joined #salt
15:48 octarine joined #salt
15:50 jslatts joined #salt
15:52 pdayton joined #salt
15:52 krissaxton joined #salt
15:55 eX4n1m0 joined #salt
15:57 Jason-AVST joined #salt
15:57 cshuman joined #salt
15:57 krissaxton left #salt
15:58 faldridge joined #salt
16:01 piffio question: how is the reactor system supposed to deal with gitfs? To be more precise, can I define reactor SLS in my gitfs repository? If so, how should I reference them in the master config file?
16:01 pipps joined #salt
16:01 piffio or, like overstate.sls, reactors are not supposed (yet) to be handled through gitfs?
16:05 Lue_4911 joined #salt
16:08 georgj05 joined #salt
16:08 scalability-junk joined #salt
16:09 BRYANT__ joined #salt
16:09 pipps2 joined #salt
16:09 jdenning joined #salt
16:13 gamingrobot joined #salt
16:13 seanz Newbie question on transmitting passwords: What is the "best practice" for relaying a password to a server when a service requires it? For example, I need to provide a password to svn if I want to do a local checkout on a remote server.
16:13 KyleG joined #salt
16:13 KyleG joined #salt
16:14 rachbelaid joined #salt
16:14 copelco seanz: pillar
16:15 akitada joined #salt
16:15 ipmb joined #salt
16:16 forrest yep pillar
16:16 shennyg joined #salt
16:17 andrewclegg_ joined #salt
16:17 aparashar joined #salt
16:17 bcc2 joined #salt
16:17 xerxas joined #salt
16:18 neilf joined #salt
16:22 cshuman joined #salt
16:23 hunter joined #salt
16:25 goki joined #salt
16:25 bcc2 joined #salt
16:34 bcc2 joined #salt
16:35 bcc2 left #salt
16:36 mgw joined #salt
16:37 shinylasers joined #salt
16:38 mwillhite joined #salt
16:42 mgw joined #salt
16:45 jeffasinger joined #salt
16:45 pentabular joined #salt
16:48 jeffasinger Anyone here use salty-vagrant?
16:52 ldlework Does anyone here know how to apply grains with salt-cloud?
16:52 pdayton joined #salt
16:54 jeffasinger I think there's a grain attribute for each profile
16:59 pipps joined #salt
17:00 elfixit joined #salt
17:02 swa_work joined #salt
17:03 L0j1k left #salt
17:05 cshuman joined #salt
17:06 pdayton1 joined #salt
17:06 linuxnewbie joined #salt
17:06 linuxnewbie joined #salt
17:08 bhosmer joined #salt
17:09 jacksontj joined #salt
17:10 toastedpenguin joined #salt
17:11 matanya joined #salt
17:12 morty_ joined #salt
17:14 teebes joined #salt
17:16 renoirb What is that ?  {{ salt['publish.publish']('role:role_name', 'grains.item', 'id', 'grain').keys() }}
17:16 renoirb I wasn't aware of this feature
17:16 renoirb salt['publish.publish']
17:17 mesmer joined #salt
17:17 xuru joined #salt
17:18 jdenning joined #salt
17:18 renoirb I only see CLI samples, but nothing about states (http://docs.saltstack.com/ref/modules/all/salt.modules.publish.html)
17:19 pdayton joined #salt
17:19 cshuman joined #salt
17:21 xuru salt is complaining about this merge statement in this jinja template:  https://github.com/saltstack-formulas/mysql-formula/blob/master/mysql/map.jinja
17:22 xuru I'm using stable 0.16.4.  Did that syntax get added after?
17:22 lacrymology do I need to do something special to reload pillars? I just added something to my top pillar, but it doesn't appear in pillar.data (I ran saltutil.sync_all
17:23 pipps1 joined #salt
17:23 xinkeT xuru: I believe so.. according to http://docs.saltstack.com/topics/conventions/formulas.html formulas are only properly supported on 0.17
17:23 lacrymology ah, nevermind. It doesn't get namespaced automatically
17:23 xuru ah, my bad
17:25 xuru lacrymology: There is also salt '*' saltutil.refresh_pillar
17:26 lacrymology xuru: it was there, but I thought it'd get namespaced automatically
17:27 patrek on centos 6.4, 'pkg.install httpd' does not create the users, but the native command yum install httpd does. Is this normal?
17:28 lacrymology how can I test watch clauses
17:28 lacrymology ?
17:29 pentabular joined #salt
17:30 druonysuse joined #salt
17:30 ldlework Is there anyway we can add some commandline options to salt-cloud to say, specify the minion ID?
17:33 timoguin ldlework, that's one of the main command line options already
17:33 ldlework what
17:34 timoguin one sec. looking at docs. it's been a couple months...
17:35 ldlework oh I see
17:35 ldlework I should have used man instead of -h
17:36 timoguin is it in the man page for salt-cloud? never looked at it
17:38 timoguin no good examples in the salt-cloud docs.
17:38 timoguin but: salt-cloud -p rhel6_aws_micro minionname1 minionname2
17:40 m_george left #salt
17:42 blee joined #salt
17:43 ifnull_ joined #salt
17:44 blee yay health insurance
17:44 blee mt
17:44 ipmb joined #salt
17:44 boite joined #salt
17:49 toastedpenguin using salt as I am and wanting to build my open private cloud, out of openstack, cloudstack, openNebula, eucalyptus & ... any recommendations on which to use with salt from those using salt?
17:53 timoguin toastedpenguin, i haven't used it yet, but salt has pretty good openstack integration already.
17:54 timoguin https://github.com/saltstack-formulas/openstack-standalone-formula
17:54 timoguin and it's built into salt-cloud as well
17:54 pdayton joined #salt
18:03 faldridge_ joined #salt
18:05 robbyt joined #salt
18:07 ml_1 joined #salt
18:07 ml_11 joined #salt
18:09 shinylasers joined #salt
18:10 giantlock joined #salt
18:11 ldlework s0undt3ch: what would be really cool is support for multiple credential sets
18:11 ldlework in salt-cloud
18:11 ldlework We use a single master to manage the servers of multiple cloud-provider accounts
18:14 jacksontj joined #salt
18:16 micah_chatt joined #salt
18:16 pipps2 joined #salt
18:19 hunter joined #salt
18:19 ldlework Does this apply to the pillar top.sls? http://docs.saltstack.com/topics/targeting/compound.html
18:20 ldlework IE, can you use compound targetting in your pillar's top.sls
18:24 ldlework hmm
18:25 ldlework http://hastebin.com/raw/cironalaxi
18:26 jeffasinger Anyone have any suggestions on ways to handle database migrations with salt?
18:26 Brew joined #salt
18:32 ldlework I am getting the following error when applying my highstate. I have grepped both my pillar and salt top files and there are *no* tab characters in them: http://hastebin.com/raw/cironalaxi
18:34 ldlework I just don't understand
18:34 ldlework I've removed all match lines from my states
18:34 ldlework and I get the same error
18:34 ldlework is the salt-master caching things?!
18:34 nahamu joined #salt
18:36 ldlework :(
18:38 ldlework this is madness
18:38 c0bra left #salt
18:38 c0bra joined #salt
18:39 cachedout joined #salt
18:39 Ryan_Lane joined #salt
18:41 jacksontj joined #salt
18:41 qba73 joined #salt
18:41 ldlework Can anyone help figure out why this is reporting tab-character errors? http://hastebin.com/raw/sotikolowe
18:42 pdayton1 joined #salt
18:43 ldlework I literally delete all lines from the pillar data
18:43 ldlework and I still get errors about lines in the pillar data
18:43 * ldlework is blocked.
18:43 freelock toastedpenguin: we just started using salt-cloud with a variety of services...
18:43 jcockhren ldlework: nah
18:43 ldlework nah?
18:43 freelock downside of openstack driver is it doesn't show existing machines there
18:44 jcockhren ldlework: I see you. give me a sec.
18:44 freelock for us, "salt-cloud -Q" shows our EC2 instances and our Digital Ocean instances, but not Rackspace.
18:47 juicer2 joined #salt
18:49 bigmstone joined #salt
18:55 jcockhren ldlework: is the quotes around compound shouldn't be there. line 6
18:55 jdenning joined #salt
18:56 jcockhren that just at a glance
18:56 ldlework jcockhren: that doesn't fix it
18:56 ldlework and is an artifact of me trying *everything*
18:56 ldlework jcockhren: furthermore, I can delete everything in the file
18:57 ldlework and the master still complains about this line
18:57 jcockhren ldlework: know of saltuil?
18:57 jcockhren saltutil
18:57 ldlework no
18:57 SunSparc joined #salt
18:57 jcockhren saltutil.refresh_pillar
18:58 ldlework that may have worked..
18:58 jacksontj questions about environments-- i want to set up my modules so they sync out to a subset of hosts (while i test them), it looks like environments might be the way to go?
18:58 jacksontj my basic goal is so i can commit a module to go to "stg" and then a seperate version to "prod" environment
18:58 mwillhite joined #salt
18:59 jcockhren not to be all rtfm, but -> http://docs.saltstack.com/ref/modules/all/salt.modules.saltutil.html#module-salt.modules.saltutil
18:59 jcockhren I happened upon that by chance a couple months ago
18:59 ggoZ jacksontj: yes, environtments may be used in that case
19:00 lahwran joined #salt
19:00 jcockhren ldlework: now, if you're using git backed pillars, auto refresh is broken
19:00 jacksontj ok, so i guess my top file is wrong? i have a host that i have put into a "test" environment and i have a module foo that returns the environment name (base or test)
19:00 SunSparc left #salt
19:00 jacksontj i always get base even though its in test
19:01 jcockhren ldlework: let me know if that helps. Also, I use salt-cloud as well
19:01 jacksontj i set it up locally, ihave a stop file with base * and test: myhostname
19:02 jacksontj then i do a module sync and then run salt-call foo.test
19:02 jacksontj and it always prints "base"
19:02 jacksontj not "test" any idea what i'm doing wrong?
19:02 ldlework jcockhren: you mean.. if I have my pillar data in a git repo, that auto refresh doesn't work?
19:03 jcockhren no. so what refresh_pillar does is refersh pillar data on the minions. That'll work fine
19:03 ggoZ `saltutil.sync_modules` takes modules from base env by default
19:03 ggoZ so you have to specify from which env to sync modules :)
19:03 jacksontj ggoZ: i checked the code and it looks like it pulls them for all envionments you are part of
19:03 jacksontj i see it syncing them down for both
19:03 pjs joined #salt
19:04 jacksontj so, do i need to change my sync thing to pass down env instead?
19:04 Katafalkas joined #salt
19:04 ggoZ if you use `saltutil.sync_modules`, it takes from base, if there is no env specified
19:05 jcockhren ldlework: however, the pillar_gitfs refresh isn't working. So it won't fetch updates and properly update the master. so, the minions won't get the updated pillar is git b/c it's not on the master
19:05 jacksontj ggoZ: in the minion log i see it caching both "test" and "base"
19:05 jacksontj so, is the problem that base modules always win?
19:05 jcockhren that's a separate issue
19:05 jcockhren ldlework: ^
19:06 ggoZ jacksontj: not always, just pass `env` arg to sync_modules
19:06 ggoZ like `saltutil.sync_modules env=test`
19:06 ldlework jcockhren: thanks
19:06 toastedpenguin timoguin: is there any other private cloud salt intergations?
19:06 jacksontj k, i'll have to change my module sync stuff :/
19:06 Khazix joined #salt
19:07 jacksontj thats okay i guess, i thought it would figure it out on its own ;)
19:07 jacksontj since its parsing the top file and all
19:07 ggoZ now how does state.highstate differentiate between modules with the same name from different envs
19:07 ggoZ i dont know
19:07 timoguin toastedpenguin, yea there are a bunch: rackspace, aws, linode, digitalocean, etc. http://salt-cloud.readthedocs.org/en/latest/topics/config.html#cloud-configurations
19:07 jacksontj oh really?
19:07 jacksontj so highstate will use the module frmo the env its running in?
19:07 jacksontj that is awesome :)
19:08 jacksontj so the problem is most likely that when i run salt-call there isn't an env associated
19:08 ggoZ That is not what I meant.
19:08 jacksontj so base is picked
19:08 jacksontj oh
19:08 ggoZ wait, missread
19:08 ggoZ (10:07:56 PM) jacksontj: so highstate will use the module frmo the env its running in?
19:08 ggoZ afaik the docs say it should be so
19:09 jacksontj ok
19:09 ggoZ maybe you have the same host targeted from both environments?
19:09 toastedpenguin timoguin: ah ok, openstack was top of my initial investigation list, but heard it was not a trivial install, someone recommended openNebula but I dont see that on this list
19:10 jacksontj ggoZ: that is accurate
19:10 jacksontj ah, so if any overlap base always wins
19:10 jacksontj for module sync at least
19:10 ggoZ might very be so
19:11 jacksontj that looks to be the case
19:11 jacksontj so, for what i want i'll have to make my module sync script get the env-- pick one then do the module_sync with a specific env
19:12 mgw joined #salt
19:12 ggoZ Or, it might be as follows -> salt first searches base env, and then the others. From whichever one hits first - wins.
19:12 jacksontj ah, that could be it
19:12 jacksontj let me try that real quick...'
19:13 jacksontj yea, looks like thats the winner
19:13 jcockhren hmmm. a "state file syntax checker" would be cool
19:13 jacksontj so, if you are running salt-call it checks base first
19:13 xinkeT Is anyone here using salt on solaris or smartos, and if so, is the smf service support working for you?
19:13 timoguin toastedpenguin, adding support for new cloud providers is a matter of writing a module, fyi: http://salt-cloud.readthedocs.org/en/latest/topics/cloud.html
19:14 ggoZ jacksontj: I wonder if ordering of the environments in the master config file matters.
19:14 EntropyWorks so I have been using this jinja to get the IP of one of my interfaces in a templte. {{ salt['network.interfaces']()['bond0']['inet'][0]['address'] }} can I replace bond0 with more jinja that could be set in a pillar?
19:15 EntropyWorks or do it another way?
19:15 jacksontj ggoZ: doesn't look like it :(
19:15 jacksontj i get the same results with the order flipped
19:16 ldlework seriously, the whole, you can't do multiple file operations in a single state is ... annoying
19:16 ldlework I mean what's the point of this limitation?
19:18 Micromus1 joined #salt
19:18 ggoZ jacksontj: I see. In any way, if you have same host targeted in multiple envs, a highstate will be produced from aggregate of the envs. And the same with the _modules directory. Hence, having overlapping stuff.sls/py introduces uncertainty.
19:19 chuffpdx_ joined #salt
19:19 crazysim_ joined #salt
19:19 Tekni joined #salt
19:19 jacksontj yea
19:19 ggoZ It is not css ;
19:19 ggoZ which would be cool ;)
19:19 jacksontj what i'm trying to do is scope deployment of modules
19:19 jacksontj so when someone writes one we can deploy to a single env instead of all of them
19:19 jacksontj sounds like the way to do that is to force the env when you sync
19:19 ggoZ well, you may separate states into multiple .top files
19:20 ggoZ dev.top and prod.top. and target minions separately
19:20 jacksontj but that won't change out the module syncing right?
19:20 ggoZ it should
19:20 kenbolton joined #salt
19:20 ggoZ in dev.top you target minions only from dev environment
19:20 ggoZ in prod.top you target minions only from production env
19:21 jacksontj ah, but if there is any overlap it will *break* it
19:21 ggoZ then run `state.top dev.top` and vualia
19:21 ggoZ well, you cant have multiple files, in the same directory with the same filename, can you ;)
19:22 jgelens_ joined #salt
19:22 minaguib_ joined #salt
19:22 pt|Zool_ joined #salt
19:22 Ahlee_ joined #salt
19:22 supplica1t joined #salt
19:22 jeblair_ joined #salt
19:22 durnik_ joined #salt
19:22 denstark_ joined #salt
19:22 ggoZ and salt minion only has one cache for files, afaik.
19:22 djinni`_ joined #salt
19:22 pmcg_ joined #salt
19:22 ange_ joined #salt
19:22 jcristau_ joined #salt
19:22 ggoZ what I mean, is that the `active` version of module, at any given time, will be one.
19:22 echos_ joined #salt
19:22 drogoh_ joined #salt
19:23 Corey_ joined #salt
19:23 jhujhiti_ joined #salt
19:23 xinkeT heh, it's a one line fix.. smf.py doesn't enable SmartOS in the set.
19:23 cedwards1 joined #salt
19:23 ggoZ so after you run dev.top, that minion will be loaded with dev version of the module
19:23 cwright_ joined #salt
19:24 tempspace_ joined #salt
19:24 ldleworker joined #salt
19:24 that_guy_ joined #salt
19:25 ggoZ or am I spraying blasphemy here? :D
19:25 ggoZ if I am wrong, please, someone correct me
19:25 cedwards joined #salt
19:26 lyddonb_ joined #salt
19:26 MulX joined #salt
19:26 bashcode` joined #salt
19:26 drags1 joined #salt
19:26 tonthon_ joined #salt
19:26 melinath_ joined #salt
19:26 cetex_ joined #salt
19:27 EntropyWorks could you just set a grain then match on that instead of an environment?
19:27 mackstick joined #salt
19:28 Martinez joined #salt
19:28 axiom joined #salt
19:29 beardo__ joined #salt
19:31 kenbolton joined #salt
19:31 tyler-baker joined #salt
19:31 tyler-baker joined #salt
19:32 Kyle_ joined #salt
19:34 pdayton joined #salt
19:38 ktenney joined #salt
19:39 yano joined #salt
19:39 matanya joined #salt
19:40 kenbolton joined #salt
19:42 zooz joined #salt
19:43 gildegoma joined #salt
19:46 luminous joined #salt
19:46 oz_akan_ anyone?
19:47 * LarsN wonders where UtahDave is :(
19:48 Thiggy joined #salt
19:48 forrest what's up?
19:49 jhermann joined #salt
19:49 forrest UtahDave was on REALLY late last night
19:49 forrest like 1 AM his time, which was very odd.
19:50 LarsN It was going to be a co-worker & I, however now it's just my co-worker, are going to give a presentation/demo of Salt with Salt-Cloud @ the Austin, TX LOPSA meeting at the end of October.
19:51 LarsN I was hoping we could acquire some stickers, or whatever to hand out to the group.
19:51 forrest Oh that reminds me, is anyone going to the devopsdays in atlanta?
19:51 timoguin SHOES!
19:51 timoguin We need salt shoes
19:51 forrest when is it LarsN?
19:52 timoguin I would also like some salt-branded brass knuckles
19:52 LarsN and I THINK he's (UtahDave) supposed to be providing me a couple of example state files.
19:52 LarsN forrest: Oct. 28 @ 7pm
19:52 LarsN <--- likes to plan ahead.
19:52 forrest I've got 7 stickers I can mail you
19:52 forrest if UtahDave can't
19:52 forrest mostly the big giant ones
19:52 forrest a couple of the small transparent ones
19:52 LarsN I've got a few days, and will just hang out until he pops in.
19:52 forrest ok
19:53 forrest what sort of state files are you looking for?
19:53 forrest a bunch of the ones on saltstack-formulas got updated so they fit into the new format now
19:53 LarsN during Texas Linux Fest, Dave had a "deploy AMP on apache"  and then "Deploy Wordpress from Apt"  and finally Deploy Wordpress from the official git sources"
19:54 forrest oh nice
19:54 LarsN The setup of the wordpress part & the MySQL configuration bits I've not really spent time looking into
19:54 forrest While not identical
19:54 forrest https://github.com/terminalmage/djangocon2013-sls
19:54 LarsN and if he had those handy (he was going to work on it over the weekend) I was going to shortcut the process of learning ;)
19:54 forrest that uses django and a mysql database backend
19:55 LarsN that's a good starting point
19:55 LarsN I suspect I can parse out how to get the wordpress bits working.
19:56 * LarsN was going to be lazy and let someone else figure it out :)
19:57 kula i would love to see the whole "deploy wordpress from the official git sources"
19:57 LarsN kula: it was pretty awesome actually
19:57 mwillhite joined #salt
19:58 LarsN kula: the state file wasn't even that crazy.  I just didn't grab a copy while he was presenting.  Got side tracked with a minor disaster at the office. :)
19:58 forrest Well, UtahDave should have that up somewhere
19:58 kula since wordpress is a giant pain in my butt right now
19:58 forrest any time there's an actual project as an example, that's awesome
19:58 forrest because it's very rare to find with config management tools it seems.
19:59 forrest I'll try to ask him to upload it to his github if he doesn't show up before you leave LarsN
19:59 forrest unless you don't leave, then you can just do it.
19:59 LarsN I'm always here....  logging, if I'm not "actually" here :)
19:59 forrest heh
19:59 jcockhren lurking
20:01 LarsN My first project with salt was to automate deploying software, keys, and other associated magic on my laptop
20:01 LarsN which cuts ~ 2 hours off the time it takes to re-image my work laptop. :)
20:01 robawt joined #salt
20:01 LarsN now I need to adjust the packages bit to properly handle kvm with spice on Ubuntu 12.04, which is less easy than it is on say 13.04+
20:01 Tekni joined #salt
20:02 robawt joined #salt
20:02 LarsN osfinger: Ubuntu-12.04
20:02 LarsN is going to be my trigger from grains.
20:02 juicer2 joined #salt
20:05 Jarus joined #salt
20:05 sashka_ua joined #salt
20:05 kchr joined #salt
20:05 ClausA joined #salt
20:05 xuru The virtualenv state is in 0.16.4 isn't it?  I'm getting: "CommandNotFoundError: virtualenv"
20:05 Tekni joined #salt
20:06 forrest xuru, you're using virtualenv.managed?
20:06 xuru yes
20:06 forrest what does your sls look like?
20:07 Ahlee_ if i've distroed a custom grain from _grains, sync_all'd it over to a minion, i restarted the minion but still don't see my grain in grains.items
20:07 Ahlee_ oh. nevermind. this one is stupd.
20:07 Ahlee_ on my part
20:08 djn joined #salt
20:08 EugeneKay joined #salt
20:08 pjs joined #salt
20:08 kallek joined #salt
20:11 xuru forrest: https://gist.github.com/xuru/6784347
20:12 forrest can you try to add #!jinja|yaml at the top?
20:13 xuru same output
20:13 forrest ok, what does a debug run show?
20:15 xuru Nothing extra
20:15 forrest Hmm
20:16 z3uS joined #salt
20:16 ronc joined #salt
20:16 xuru forrest: hold on...
20:16 renoirb Hey all, what is the name of the command to [reload|refresh] state data on master when we changed the master configuration by adding/removing to file_roots config?
20:17 forrest can you fix line 19?>
20:17 forrest so it says 'name' instead of 'names'
20:19 forrest renoirb, I can't remember.
20:19 forrest I'm sure you could trash the cache file
20:19 forrest and restart the service, but I don't remember a more elegant way to do it
20:19 renoirb Or use service reload command (that's what i'm currently searching the syntax for)(
20:20 forrest yea, I thought that was supposed to be picked up automatically
20:21 renoirb Hahahaha, I salt 'nodename*' service stop salt-minion is the equivalent of jailing yourself out with a firewall
20:21 renoirb funny
20:22 forrest any luck xuru? Did you change line19?
20:24 xuru It is name:  I'm rebuilding my vagrant vm right now
20:24 forrest awww yea
20:24 forrest syntax errors gooooooooooooo
20:24 forrest I wish that error was a bit better though, jeez
20:24 swa_work joined #salt
20:25 xuru but it wasn't even getting to that point yet
20:25 forrest *shrug* yea who knows
20:25 forrest 0.16.4 has virtualenv, I use it on one of my VMs
20:27 xuru we'll see here in a sec….
20:28 xuru yeah, still get that error :(
20:29 xuru The only other thing I see is:
20:29 xuru [INFO    ] Executing state virtualenv.managed for portal_env
20:29 xuru [ERROR   ] No changes made for portal_env
20:31 xuru ah, shit
20:31 xuru I know what it is…  I'm missing some pillar data
20:33 xuru forrest: sorry to waste your time!  :/
20:34 forrest all good!
20:37 cowmix joined #salt
20:38 Ryan_Lane joined #salt
20:43 mwillhite joined #salt
20:51 jslatts joined #salt
20:58 juicer2 joined #salt
20:58 redondos joined #salt
20:59 lemao joined #salt
21:00 elfixit joined #salt
21:10 nocturn joined #salt
21:14 Ahlee_ __salt__['core.get_master'] is a function - how do I get the value?
21:14 xuru forrest: I feel like an idiot…  I didn't have python-virtualenv installed :/
21:15 forrest lol
21:15 forrest ok so the error makes sense then
21:15 forrest excellent
21:15 xuru yeah :S
21:16 xuru In my own defense, I have a cold, and I more blonde then I already am when I have a cold ;)
21:16 forrest hah
21:16 forrest I hope you aren't infecting your coworkers then
21:17 xuru nah
21:19 mannyt joined #salt
21:25 josephholsten joined #salt
21:26 higgs001 joined #salt
21:26 JaredR joined #salt
21:27 madduck_ joined #salt
21:27 madduck_ joined #salt
21:28 woebtz joined #salt
21:31 ronc joined #salt
21:41 pdayton joined #salt
21:46 alunduil joined #salt
21:51 pipps joined #salt
21:52 pentabular joined #salt
21:55 pentabular1 joined #salt
21:55 kermit joined #salt
22:00 isomorphic joined #salt
22:04 renoirb Hey people
22:05 renoirb I am trying to understand something about the publish.publish feature
22:07 felixhummel joined #salt
22:07 renoirb How this pydsl gets translated into? __salt__['publish.publish']('role:logstash.elasticsearch', 'grains.item', 'id', 'grain', TIMEOUT).keys()
22:16 pipps1 joined #salt
22:17 shinylasers joined #salt
22:19 oz_akan_ joined #salt
22:20 woebtz left #salt
22:29 andredublin joined #salt
22:30 cachedout left #salt
22:33 mianos joined #salt
22:34 msheiny joined #salt
22:37 faldridge joined #salt
22:49 xuru joined #salt
23:00 paluh joined #salt
23:02 jacksontj joined #salt
23:02 austin987 howdy, I've been looking through the docs, but can't seem to find what I'm looking for. Is it possible to get the exit code of a process that was executed on a minion from the master? currently using the salt LocalClient API
23:03 austin987 ideally I'd like to execute a command on several minions (potentially using a glob), then if the command fails on any hosts, write those hosts to a file/stdout/something
23:05 Thiggy Will pillar.item throw an exception if the pillar item doesn't exist and cause a state to fail?
23:06 xuru austin987: I think, but don't quote me, you can do something like:  salt '*' run.cmd "echo hello"
23:07 xuru Thiggy: yes
23:07 kenbolton joined #salt
23:07 Thiggy @xuru awesome
23:07 Thiggy @austin987 http://docs.saltstack.com/ref/modules/all/salt.modules.cmdmod.html#salt.modules.cmdmod.retcode <-- I think what you want
23:08 xuru ah, nice!
23:09 austin987 Thiggy, thanks!
23:12 austin987 Thiggy / xuru: that's close, but if there's nothing printed to stdout, it fails (may be a bug).. http://pastebin.com/pnd8rSED
23:13 Thiggy @austin987 something wacky is hapening with the value true, specify the full path: cmd.retcode '/usr/bin/true'
23:14 Thiggy oops, I lied, /bin/true
23:14 austin987 I'm guessing it doesn't like shell builtins
23:15 Thiggy I think it's less the shell builtin and more "true" being a boolean value and it eagerly making it into one of those before it passes the string "true" to the method
23:15 Thiggy the shell builtin 'help' works fine.
23:15 austin987 ahh
23:21 kenbolton joined #salt
23:23 logix812 joined #salt
23:23 scristian joined #salt
23:27 jslatts joined #salt
23:30 oz_akan_ joined #salt
23:32 frogsiren joined #salt
23:32 kenbolton joined #salt
23:32 frogsiren greetings
23:32 frogsiren I'm afraid I have a deep misunderstanding of the watch functio
23:32 frogsiren rather, watch directive
23:33 frogsiren I want to create a symlink if it doesn't exist but don't touch it otherwise
23:33 frogsiren so I try watching the directory that should be the default it points to
23:33 redbeard2 joined #salt
23:33 frogsiren but it creates the symlink regardless of weather or not the state I'm watching changes or stays the same
23:36 dthom91 joined #salt
23:36 pipps joined #salt
23:37 jacksontj joined #salt
23:41 mianos joined #salt
23:43 frogsiren can unless be used with files?
23:43 josephholsten joined #salt
23:45 frogsiren apparantly not
23:45 xuru Anyone know what "State mysql_user.present found in sls ncl.mysql is unavailable" mean in a mysql_user.present state?
23:45 xuru frogsiren: sorry, I don't know
23:47 frogsiren I've found that that particular message can mean quite a lot
23:47 frogsiren for me though it was that mysql or mysql client wasn't installed
23:47 frogsiren Hope that works
23:57 atealtha_ joined #salt
23:58 atealtha_ hi all. does salt.states.service utilize upstart scripts if they are available?
23:59 honestly need to check if upstart is a supported service provider

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