Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-08-22

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

All times shown according to UTC.

Time Nick Message
00:01 KyleG joined #salt
00:01 KyleG joined #salt
00:01 mosen joined #salt
00:03 philipsd6 joined #salt
00:05 aquinas_ joined #salt
00:06 davet joined #salt
00:07 fllr joined #salt
00:07 manfred elaborate on spool up?
00:08 claytron joined #salt
00:11 dccc joined #salt
00:13 Hell_Lap joined #salt
00:15 skyler Hey manfred, could you take a look at the pull request I made for the postfix formula when you get a chance? https://github.com/saltstack-formulas/postfix-formula/pull/3
00:17 manfred yeah
00:17 possibilities joined #salt
00:19 MatthewsFace joined #salt
00:19 jeffG_ joined #salt
00:19 jeffG_ anyone know when 2014.7 will officially be released
00:19 manfred no
00:20 manfred still has to make it through at least another release candidate
00:20 Urit Soon (tm)?
00:20 dsolsona joined #salt
00:20 jeffG_ any silly wild ass guesses?
00:20 jeffG_ a month?  six?
00:20 manfred when it is ready
00:20 manfred less than six
00:21 manfred probably a month or two, 2014.1 released on on february 24th http://docs.saltstack.com/en/latest/topics/releases/2014.1.0.html
00:22 manfred and was tagged on january second
00:22 manfred so ... 55 days
00:22 manfred ?
00:22 manfred something
00:22 manfred err, wrong direction
00:22 manfred 53 days about
00:23 manfred 2014.7 was tagged on july 15th, but was only made rc1 10 days ago
00:23 manfred so ... the last one was in release canididate for 53 days... 43 more days
00:23 jeffG_ cool... would you say it is fairly stable at this point?  we are developing some stuff in aws and if it is pretty close I might start using it for the boto integration
00:24 icebourg joined #salt
00:24 manfred ¯\(°_o)/¯
00:24 __number5__ very soon unless  serious bugs found and they are hard to fix
00:24 manfred Ryan_Lane is currently using it afaik
00:24 icebourg joined #salt
00:25 __number5__ previous version already have several boto_* modules
00:25 Ryan_Lane I'm using the boto stuff extensively
00:25 Ryan_Lane including for vpc
00:25 Ryan_Lane (i also wrote the boto stuff, so your mileage may vary)
00:25 jeffG_ we need route53 at the moment
00:26 melinath joined #salt
00:27 Ryan_Lane yeah. I'm using that
00:27 Ryan_Lane the ELB states also support managing route53 as well
00:28 jeffG_ alright, i think I will give .7 a whirl
00:32 skyler manfred: thanks
00:33 g3cko joined #salt
00:33 manfred np
00:33 philipsd6 joined #salt
00:33 avi__ joined #salt
00:35 irctc402 joined #salt
00:40 arthabaska joined #salt
00:44 jsm joined #salt
00:45 TheThing joined #salt
00:45 vmdsch1 joined #salt
00:52 yomilk joined #salt
00:53 g3cko joined #salt
00:55 n8n joined #salt
00:58 Katafalkas joined #salt
01:03 jalbretsen joined #salt
01:06 Ryan_Lane joined #salt
01:08 geekmush1 joined #salt
01:11 Ryan_Lane joined #salt
01:15 jhauser_ joined #salt
01:16 melinath joined #salt
01:16 jinlin_gan joined #salt
01:20 n8n joined #salt
01:22 mgw joined #salt
01:22 bhosmer joined #salt
01:23 dalexand_ joined #salt
01:24 jsm joined #salt
01:25 jaimed joined #salt
01:26 rojem joined #salt
01:31 dancat joined #salt
01:40 pentabular joined #salt
01:41 NV joined #salt
01:42 jsm joined #salt
01:48 aparsons joined #salt
01:50 rostam joined #salt
01:54 jsm joined #salt
01:56 Katafalkas joined #salt
01:56 CeBe joined #salt
01:59 jsm joined #salt
02:02 MatthewsFace joined #salt
02:08 oz_akan joined #salt
02:32 chrisjones joined #salt
02:37 jaimed joined #salt
02:48 aparsons joined #salt
02:51 aparsons_ joined #salt
03:01 rannick joined #salt
03:11 bhosmer joined #salt
03:16 troyready joined #salt
03:32 kelseelynn joined #salt
03:37 tkharju joined #salt
03:39 tkharju joined #salt
03:40 pengyao joined #salt
03:42 Singularo joined #salt
03:44 tkharju joined #salt
03:47 tmh1999 joined #salt
03:49 oz_akan joined #salt
03:58 Outlander joined #salt
04:02 tkharju joined #salt
04:03 bezeee joined #salt
04:09 dalexander joined #salt
04:14 schimmy joined #salt
04:16 joehoyle joined #salt
04:16 miles32 left #salt
04:17 jcockhren newer salt versions (> 0.17+) are on ubuntu multiverse repos? I just booted an aws 14.04 LTS and it didn't get the latest package via apt
04:18 hvn joined #salt
04:18 jcockhren nah. that didn't work either
04:18 jcockhren man... I swear I was just doing this a couple weeks ago
04:18 hvn hi all, is it valid to include Y in X, then do include X in Y? I see it worked but it seems a bug?
04:19 schimmy1 joined #salt
04:20 active8 joined #salt
04:22 Ryan_Lane joined #salt
04:23 jcockhren hmm nm
04:24 dsolsona joined #salt
04:26 aquinas_ joined #salt
04:29 jinlin_gan joined #salt
04:30 malinoff joined #salt
04:35 tkharju joined #salt
04:36 tmh1999 joined #salt
04:41 mosen joined #salt
04:44 joehh jcockhren: 0.17.5 is in trusty
04:44 joehh for newer than that you need the saltstack ppa
04:47 jcockhren joehh: yeah. I just went with the bootstrap
04:47 jcockhren I wish the bootstrap script allowed pip install regardless of distro
04:48 * jcockhren goes to file issue
04:49 ramteid joined #salt
04:49 oz_akan joined #salt
04:51 delinquentme joined #salt
04:52 cedwards joined #salt
04:55 cedwards joined #salt
04:56 jcockhren https://github.com/saltstack/salt-bootstrap/issues/451
05:00 bhosmer joined #salt
05:05 ajolo joined #salt
05:08 ml_1 joined #salt
05:08 oz_akan joined #salt
05:23 dccc_ joined #salt
05:26 stephanbuys joined #salt
05:28 stephanbuys hi all, when trying to use salt-cloud I get a complaint from libcloud that I need to be more specific and specify a Network ID. Is there some documentation on how to do that for a profile? I've tried multiple iterations but no luck
05:30 MrTango joined #salt
05:44 Sauvin joined #salt
05:50 fivethreeo joined #salt
05:58 calvinh joined #salt
05:58 colttt joined #salt
05:59 orion_ joined #salt
06:00 felskrone joined #salt
06:09 oz_akan joined #salt
06:11 Nexpro joined #salt
06:12 roolo joined #salt
06:15 jaimed joined #salt
06:16 jeffrey4l joined #salt
06:18 packeteer joined #salt
06:18 kermit joined #salt
06:21 stephanbuys1 joined #salt
06:25 aparsons joined #salt
06:29 vmdsch1 left #salt
06:38 mariusv joined #salt
06:38 mariusv joined #salt
06:38 mapet is it a known problem, that the at.at module on FreeBSD gives errors but works ok?
06:40 mapet This is what i get back from the minions: http://pastebin.com/w9iB0jYN
06:41 mapet adm0
06:48 catpigger joined #salt
06:49 bhosmer joined #salt
06:49 che-arne joined #salt
06:52 lcavassa joined #salt
06:55 xintron I'm using grains to specify roles for servers (most have the same setup but one or two have extra responsebility which is defined as a grain)
06:55 xintron Would it make sense to put the if-statement in the top.sls file to include other states if the grain matches or is it better to have that logic in the included sls?
06:56 xintron so the whole state file is wrapped in {% if "foo" in grains["get"]("roles", []) %}
06:59 Outlander left #salt
07:02 pled76 joined #salt
07:09 jeffrey4l joined #salt
07:10 oz_akan joined #salt
07:12 aberdine joined #salt
07:15 ndrei joined #salt
07:30 muzammilr joined #salt
07:31 muzammilr If I use file.get_managed,  will have to then take of copying the fail from the tmp dir on minions and move it to the correct location ? or is there any way i can make file.get_managed to copy the file to the correct location
07:32 muzammilr $ salt minion1 file.get_managed /instances/test/bin/server.initd jinja salt://memcached-initd.sls '{hash_type: 'salt', 'hsum': <md5sum>}' test test 755 base None None port=12345 memory=9999 max_connections=1 clusertname=rehman
07:32 sectionme joined #salt
07:33 vnico left #salt
07:33 masm joined #salt
07:33 muzammilr id app
07:33 muzammilr sorry for the last msg
07:34 cym3try joined #salt
07:35 intellix joined #salt
07:37 tmh1999 joined #salt
07:38 g3cko joined #salt
07:40 andebe left #salt
07:43 jdmf joined #salt
07:47 tmh1999 joined #salt
07:59 joehoyle joined #salt
07:59 bhosmer joined #salt
08:02 pled76 joined #salt
08:05 ggoZ joined #salt
08:05 greyhatpython joined #salt
08:05 greyhatpython joined #salt
08:07 pled76 joined #salt
08:13 ml_1 joined #salt
08:17 CeBe joined #salt
08:20 ghartz joined #salt
08:20 g3cko joined #salt
08:22 ajw0100 joined #salt
08:25 oz_akan joined #salt
08:25 snuffeluffegus joined #salt
08:28 che-arne|2 joined #salt
08:29 ggoZ joined #salt
08:33 gildegoma joined #salt
08:35 Katafalkas joined #salt
08:37 Jin__ joined #salt
08:37 bhosmer joined #salt
08:38 ckao joined #salt
08:46 capitalfellow joined #salt
08:47 darkelda joined #salt
08:47 darkelda joined #salt
08:47 bchung joined #salt
08:52 MK_FG joined #salt
08:52 yomilk joined #salt
09:02 N-Mi joined #salt
09:02 N-Mi joined #salt
09:04 tmh1999 joined #salt
09:11 pled76 joined #salt
09:13 jinlin_gan joined #salt
09:13 dsolsona joined #salt
09:14 alanpearce joined #salt
09:26 oz_akan joined #salt
09:26 sectionme joined #salt
09:28 rjc hi all
09:32 rjc I have a minion, I have accepted its key, I need to rebuild the minion
09:32 rjc it needs to retain it's hostname and, hence, ID
09:33 Nexpro2 joined #salt
09:33 rjc what is the best way to go about doing so (saving the old key is not an option)
09:34 rjc I have actually rebuild the machine already and, since it has the same ID, I don't get a new key to accept
09:34 Sp00n delete the old key?
09:34 rjc Sp00n: sure, what I'm after is getting informed about an ID being reused
09:35 rjc I will be rebuilding multiple minions
09:35 rjc so that I can "overwrite" an already existing key of the same ID
09:35 ajacoutot_ joined #salt
09:35 ajacoutot_ hi
09:36 BGD joined #salt
09:36 ggoZ joined #salt
09:36 rjc some sort of info about potential security breach (since two different keys - accepted and the new one -  have the same id would be better than nothing
09:36 twuppo joined #salt
09:37 dsolsona joined #salt
09:38 rjc obviously that is in the logs, but what I had in mind was getting the same info by using 'salt-key -L'
09:40 TyrfingMjolnir joined #salt
09:40 linjan joined #salt
09:45 MKFG joined #salt
09:45 MKFG joined #salt
09:47 _mel_ is pkg.installed -> refresh globaly activated? If yes, can i disable it?
09:48 tmh1999 joined #salt
09:51 darknorth joined #salt
09:52 darknorth left #salt
09:53 darknorth joined #salt
09:54 darknorth left #salt
09:59 martoss joined #salt
10:00 thayne joined #salt
10:04 calvinh joined #salt
10:05 ajacoutot_ hi; I modified "enable" in the openbsdservice module so that it takes **kwargs (i.e. "def enable(name, **kwargs):")
10:05 ajacoutot_ but calling the function with "salt '*' service.enable foo=bar" I always end up with enable() got an unexpected keyword argument 'foo'
10:07 lietu joined #salt
10:09 badon joined #salt
10:10 intellix joined #salt
10:13 sectionme joined #salt
10:15 peters-tx joined #salt
10:19 diegows joined #salt
10:20 intr1nsic joined #salt
10:22 ramishra joined #salt
10:26 TheThing joined #salt
10:26 bhosmer joined #salt
10:26 oz_akan joined #salt
10:27 halfss joined #salt
10:27 pled76 joined #salt
10:34 sectionme joined #salt
10:35 pled76 joined #salt
10:38 mariusv joined #salt
10:38 mariusv joined #salt
10:40 calvinh_ joined #salt
10:40 mosen_ joined #salt
10:45 babilen whiteinge: Thanks a lot for #12827, #12761 and comments on the mailing list that lead up to #12511. Really much appreciated.
10:46 * viq waves to ajacoutot_
10:46 pled76 joined #salt
10:49 lietu joined #salt
10:52 hvn_ joined #salt
11:00 pled76 joined #salt
11:04 TheThing joined #salt
11:05 bhosmer joined #salt
11:06 jmccree joined #salt
11:07 pled76_ joined #salt
11:08 uzomg joined #salt
11:11 lietu joined #salt
11:18 TheThing joined #salt
11:23 cyberjames joined #salt
11:29 pled76 joined #salt
11:34 martoss joined #salt
11:35 lietu joined #salt
11:36 tmh1999 joined #salt
11:38 bhosmer joined #salt
11:38 badon_ joined #salt
11:39 pled76_ joined #salt
11:41 pled76 joined #salt
11:48 halfss joined #salt
11:55 badon joined #salt
11:57 TheThing joined #salt
12:02 darkelda joined #salt
12:03 pled76_ joined #salt
12:05 ramishra joined #salt
12:10 alanpear_ joined #salt
12:15 bhosmer joined #salt
12:16 pled76 joined #salt
12:18 alanpearce joined #salt
12:23 sectionme joined #salt
12:24 lcavassa joined #salt
12:24 _mel_ joined #salt
12:25 _mel_ can i use a state to format a lvm volume with ext4?
12:27 ajacoutot_ left #salt
12:27 jas- joined #salt
12:30 viq _mel_: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.blockdev.html#salt.states.blockdev.formatted  ?
12:30 XenophonF joined #salt
12:32 mechanicalduck_ joined #salt
12:32 jeffrubic joined #salt
12:35 jas-__ joined #salt
12:36 mapu joined #salt
12:36 _mel_ viq: are there any examples to use it with require and so on?
12:37 pled76 joined #salt
12:40 sectionme joined #salt
12:40 viq _mel_: no idea, I just looked through documentation. But, well, requires should work the same way as everywhere else, so if you set up LVM with a state, you could require it in this state
12:42 vejdmn joined #salt
12:42 che-arne joined #salt
12:43 _mel_ my salt-minion seams to be to old, i got: State blockdev.formatted found in sls ganeti is unavailable
12:43 pow joined #salt
12:43 pow howdy
12:43 pow I have a question on salt-cloud
12:43 pow on aws
12:44 pow does salt-cloud support generating spot instances
12:44 pow ?
12:45 pled76 joined #salt
12:45 malinoff pow, http://bit.ly/1qwuVhq
12:45 viq _mel_: what's your version?
12:48 _mel_ 2014.1.10+ds-1~bpo7
12:49 Corey Whee, backports.
12:49 _mel_ from wheezy-saltstak repo
12:49 _mel_ too old=
12:50 martoss joined #salt
12:50 viq Oh, the module docs don't say it, looks like that module will be available when 2014.7 comes out
12:51 _mel_ this is my config so far, but it looks pretty ugly i think
12:51 _mel_ http://pastebin.com/mu6sUnVX
12:51 jaimed joined #salt
12:52 viq Why explicit order?
12:52 _mel_ i'm not sure about the require statements. i'm a newbe at ganeti
12:53 viq Also, you can require: - cmd: format-gnt-export
12:53 _mel_ salt i mean ..
12:54 _mel_ and witch require would be in the mount section?
12:55 pled76_ joined #salt
12:57 sectionme joined #salt
12:58 Kakwa joined #salt
12:59 mpanetta joined #salt
13:00 bhosmer joined #salt
13:02 mpanetta_ joined #salt
13:04 pled76 joined #salt
13:04 hobakill joined #salt
13:04 blarghmatey joined #salt
13:06 powz joined #salt
13:07 FeatherKing joined #salt
13:14 blarghmatey joined #salt
13:18 dccc_ joined #salt
13:22 micko joined #salt
13:22 rawkode joined #salt
13:23 rawkode Has anybody had a luck getting a sync_grains to run before highstate?
13:23 cpowell joined #salt
13:25 marnom rawkode: I don't have any experience with it myself, but I read on http://docs.saltstack.com/en/latest/topics/reactor/ a possiblity to do this using the reactor, maybe this is of use to you
13:25 marnom rawkode: see chapter 6.8 on that page
13:25 rawkode marnom: Yeah - I've tried that. The problem is, the highstate is called before the sync finishes
13:25 marnom rawkode: oh oke, sorry then I don't know anything else about that subject
13:25 rawkode marnom: No problem - thanks :)
13:26 marnom rawkode: maybe report it as an issue? Because the documentation specifically mentions: "This will cause the master to instruct each minion to sync its custom grains when it starts, making these grains available when the initial highstate is executed."
13:27 rawkode marnom: I believe it's referring to a manual highstate, as it doesn't highstate by default. Which is does do correctly. When you attempt to automate the highstate though, we get the race condition
13:29 ramishra joined #salt
13:29 marnom rawkode: we're automating deployments as well and I'd say that
13:29 marnom rawkode: *oops. I'd say that's a major use case for Salt Stack.. it should support such things
13:30 elfixit joined #salt
13:30 marnom rawkode: doesn't the salt bootstrap script sync all these things by default though, before calling highstate?
13:30 marnom we're using Vagrant icm. Salt Stack atm so perhaps your setup differs
13:31 marnom *in combination with
13:31 masterkorp https://github.com/saltstack-formulas/redis-formula/pull/19
13:32 masterkorp yay
13:32 rawkode I had to write my own bootstrap script, as I had nothing but problems with salt-bootstrap (2014.7)
13:33 rawkode Such is life on the develop branch, eh
13:33 marnom rawkode: true true... maybe try to get these bootstrap issues fixed, so your grains issue is then also fixed :P
13:33 rawkode marnom: Yeah - time to dive into some logs I think
13:34 capitalfellow joined #salt
13:35 pled76 joined #salt
13:36 pled76_ joined #salt
13:37 geekmush joined #salt
13:38 rjc joined #salt
13:42 jinlin_gan joined #salt
13:43 schimmy1 joined #salt
13:44 mhubbard joined #salt
13:45 rojem joined #salt
13:47 JasonSwindle joined #salt
13:50 ndrei joined #salt
13:52 Corey UTAH I AM OVER YOU
13:52 ramishra joined #salt
13:53 tk75 joined #salt
13:53 nahamu Corey: are you in a plane?
13:53 Corey nahamu: I am indeed.
13:54 nahamu With decent internet access... which airline?
13:54 Corey nahamu: United. I always fly United. :-)
13:54 nahamu can you see any salt flats?
13:54 Corey nahamu: Clouds and hills at the moment.
13:55 Corey nahamu: http://www.theonion.com/video/salt-lake-city-hoping-to-boost-tourism-by-remindin,36744/ applies.
13:55 kt76 joined #salt
13:55 nahamu heh
13:56 masterkorp yay, the PR is already merged
13:57 babilen Are you aware of a basic sphinx setup that I could base my own salt documentation on or should I steal the one that comes with salt itself?
13:57 babilen It's getting a bit large and I need something better than "outdated wiki" :)
13:58 babilen Worked with sphinxs before in the context of various Python projects, but dread the "setup from scratch" now. Also not quite sure how to do the building and guess that I'll have to setup a jenkins or somesuch
13:59 orion_ joined #salt
14:00 babilen Also: How do you test your states and pillars? It would be nice if I could write some unittests for our infrstructure, but short of "VM will listen on port $PORT" or "I can wget $URL" or so I am not sure how to approach this. Well, I have some ideas, but I love to be inspired by other setups.
14:02 dude051 joined #salt
14:03 davet joined #salt
14:04 mpanetta_ So, I can't for the life of me find any docs on writing salt states in python...  I've looked all over the docs, no dice. :( can someone kindly point me in the right direction?
14:05 berserk joined #salt
14:05 babilen mpanetta_: http://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.py.html
14:05 babilen mpanetta_: I also frequently write pillars in Python (jinja is often too limited)
14:06 mpanetta_ babilen: Thanks!  I was not looking in the right place apparently heh
14:06 mpanetta_ babilen: Wow, I had no idea you could do that.
14:06 babilen There is also http://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.pydsl.html which defines a nice DSL for salt (and which can be mixed freely with "pure" Python)
14:07 babilen mpanetta_: Pillars are just dictionaries. All you have to do is to write "#!py" in the first line (i.e. choose renderer) and then define a "run():" function that returns a dictionary.
14:07 quickdry21 joined #salt
14:07 babilen A common idiom I am using these days is "common pillar for all boxes, with some exceptions" -- Let me paste an example
14:08 stephanbuys joined #salt
14:10 aquinas_ joined #salt
14:10 babilen https://www.refheap.com/89374 for example (ties into https://github.com/saltstack-formulas/users-formula )
14:11 TheThing joined #salt
14:12 babilen I strongly dislike that grains are being monkey-patched in later on which is why I have "grains = None" in there (to silence static code analyzers), but that is how its done
14:12 mhubbard joined #salt
14:13 ipmb joined #salt
14:13 babilen Conversely everything that refers to grains and would be evaluated during module import (e.g. module level variables) *will* throw an exceptions as "grains is None .. oh NOO"
14:13 mpanetta babilen: Oh wow thanks!
14:14 babilen It is a bit tricky to write clean Python code with that horrible monkey patching, but everything that is "functional programming" in its most pure form typically works.
14:15 toddejohnson joined #salt
14:15 babilen mpanetta: You can write more complex pillars and I quite often use it if solving an issue would be much easier if you have access to, say, itertools
14:16 capitalf_ joined #salt
14:18 oz_akan joined #salt
14:19 gildegoma joined #salt
14:22 Ozack1 joined #salt
14:28 mpanetta babilen: Yeah, I was wondering if it could help me with some issues that are not easily represented in plain yaml.
14:28 babilen Oh, it most definitely can.
14:29 pass_by_value joined #salt
14:31 mpanetta babilen: that link you sent went away :(
14:31 schimmy1 joined #salt
14:32 babilen mpanetta: Yes, I just deleted it.
14:32 mpanetta Ah!
14:33 babilen I thought you saw it and .. well .. I don't necessarily have to leave data behind. Do you need it again?
14:33 mpanetta babilen: Yeah just for a minute, I missed how the pillar was returned
14:34 gothix joined #salt
14:34 mpanetta hmm I wonder if I could use python to allow parallel state execution on the minion.
14:35 babilen just "return pillar" (i.e. the dictionary)
14:35 mpanetta babilen: Ah ok cool, thanks!
14:36 gladiatr joined #salt
14:36 gladiatr joined #salt
14:37 sectionme joined #salt
14:38 jalbretsen joined #salt
14:40 ajolo joined #salt
14:41 mgw joined #salt
14:42 atzebadekappe2k joined #salt
14:42 SheetiS joined #salt
14:43 atzebadekappe2k hi all, i'm looking for some advice about xen+salt? do you know which toolstack i should use under debian?
14:44 atzebadekappe2k i want to use the xapi module
14:44 dccc_ joined #salt
14:45 bhosmer_ joined #salt
14:47 gladiatr atz, I don't think there is anything that targets xapi specifically in salt.  Time to dust off your mad python skills :)
14:47 gladiatr left #salt
14:47 gladiatr joined #salt
14:48 dccc_ joined #salt
14:48 rawkode Is there a way to use reactors to salt-cloud kill a box if bootstrap fails?
14:49 NV joined #salt
14:49 atzebadekappe2k okay, thank you :-)
14:49 manfred rawkode: i do not believe there is an event on a failed server
14:49 Ahlee well, if bootstrap fails, the reactor/event system isn't going to see it right?
14:50 Ahlee there's no event on disconnect as of 0.17.x
14:50 Ahlee (which would be amazing)
14:50 manfred rawkode: you would have to write the event into each one of the drivers 'boot' functions
14:50 rawkode So no way to see that a key was accepted, but no minion within 3 minutes?
14:50 manfred rawkode: what you would do is
14:50 gladiatr rawkode, the only way I can think you could approach this would be to keep a list of bootstrap initiations (some sort of TTL would be in order, of course) and kill the system if it hasn't reported in after an average amount of time.
14:50 rawkode No result code from salt-ssh to hang on to either?
14:51 manfred actually
14:51 manfred rawkode: gimme a bit, i think I have an idea
14:51 rawkode manfred: oooh :)
14:56 tmh1999 joined #salt
14:58 MK_FG joined #salt
15:01 dalexand_ joined #salt
15:01 ndrei joined #salt
15:04 jslatts joined #salt
15:04 arthabaska joined #salt
15:08 vejdmn joined #salt
15:08 manfred rawkode: so
15:09 manfred rawkode: what you could do is wrap all the .create calls in salt/cloud/__init__.py CloudClient() in try except blocks, and then if they fail, send an event.
15:09 manfred that is how I would do it
15:12 mpanetta Sounds like a good addition to salt-cloud
15:14 mpanetta manfred: Is there any way that you know of to call salt-cloud through the salt API?
15:14 mpanetta We have a similar issue.  It would be very nice to retry cloud server builds if they fail.
15:14 wendall911 joined #salt
15:14 manfred mpanetta: yes
15:14 manfred through the cloud module or cloud runner
15:15 mpanetta Ideally we would have a 'one button deploy' type of system that at the end the env would be set up and running.
15:15 tmh1999 joined #salt
15:15 mhubbard joined #salt
15:15 mpanetta Hmm, I've not looked at runners yet.
15:16 stephanbuys joined #salt
15:16 manfred the cloud runner is pretty awesome
15:17 FeatherKing joined #salt
15:17 arthabaska joined #salt
15:20 vejdmn joined #salt
15:20 mpanetta manfred: Does it run in parallel mode or just series?
15:20 manfred i do not remember
15:20 manfred i think it runs in series, but you can make as many calls to it as you want
15:23 FeatherKing should i be able to service.restart a windows minion? it doesnt seem to be coming back on 2014.1.7
15:23 FeatherKing restart the minion service i should say
15:24 DaveQB joined #salt
15:25 jaimed joined #salt
15:25 ramishra joined #salt
15:26 mpanetta manfred: Thanks :)
15:33 Ozack1 joined #salt
15:35 pled76 joined #salt
15:37 tligda joined #salt
15:40 thayne joined #salt
15:47 TheThing joined #salt
15:51 whitepaws what is the term for a "subelement" of a grain like ip_interfaces:eth1?
15:52 jcockhren salt mine is more than awesome.
15:52 jcockhren :D
15:52 whitepaws i'm trying to target minions with that info, like: salt -vG 'ip_interfaces[eth1]:10.2.3.4' test.ping  ... but can't find the right syntax
15:52 bezeee joined #salt
15:54 Sp00n whitepaws, http://salt.readthedocs.org/en/latest/topics/targeting/ipcidr.html
15:54 Sp00n is that what you need?
15:54 mechanicalduck joined #salt
15:55 peters-tx joined #salt
15:57 possibilities joined #salt
15:58 pass_by_value left #salt
15:59 drawks hey all
16:00 drawks can someone do me a solid and just confirm that targetting by pillar works for them. I can't for the life of me get it to work.
16:00 whitepaws Sp00n that is really handy, but i was looking for how you can target minions when a dict member has a certain value. the ip_interfaces is more like just an example
16:00 whitepaws thank you though
16:00 drawks watching the master logs in debug seems to indicate that the correct subset of minions is targetted, but then the minions never actually seem to do the job
16:00 pdayton joined #salt
16:04 KyleG joined #salt
16:04 KyleG joined #salt
16:05 pled76 joined #salt
16:05 rojem joined #salt
16:05 KyleG joined #salt
16:05 KyleG joined #salt
16:12 sectionme joined #salt
16:15 aparsons joined #salt
16:16 aparsons joined #salt
16:18 dccc_ joined #salt
16:19 icebourg joined #salt
16:22 troyready joined #salt
16:22 AnswerGuy joined #salt
16:23 _mel_ joined #salt
16:23 _mel_ can i do a file.replace only if the file exists?
16:25 pled76 joined #salt
16:26 claytron_ joined #salt
16:27 aquinas_ joined #salt
16:27 rawkode joined #salt
16:28 davet joined #salt
16:30 rawkode manfred: I'll give that a bash ;-)
16:30 pled76_ joined #salt
16:30 rawkode My linux box is being rather weird. @ is showing up as á - anybody seen that before?
16:33 davet joined #salt
16:34 pled76 joined #salt
16:34 debian112 joined #salt
16:34 Katafalkas joined #salt
16:37 rawkode Oops, silly. Stupid Mac
16:40 pled76 joined #salt
16:41 ndrei joined #salt
16:42 davet1 joined #salt
16:43 mpanetta Is there any way to get the minions to execute non dependent states in parallel?
16:45 skyler _mel_: What is the use case do you have for this?
16:46 pled76_ joined #salt
16:46 joehillen joined #salt
16:46 imanc are there any books on saltstack?
16:47 cpowell joined #salt
16:48 manfred imanc: there are several currnetly being written
16:48 Ryan_Lane joined #salt
16:49 pled76 joined #salt
16:50 debian112 Hello Everyone!
16:50 debian112 Anyone has an example on configuring IP addresses on each node from salt?
16:51 drawks can someone please help me confirm that targetting by pillar actually works as described in the salt manpage?
16:52 screamingbanshee joined #salt
16:54 badon_ joined #salt
16:54 manfred drawks: works here
16:55 drawks what's your command line look like?
16:55 debian112 anyone using this: salt.states.network module for configuring IP addresses on minions?
16:58 arthabaska joined #salt
16:58 manfred drawks: http://paste.gtmanfred.com/hkUQg/
16:58 ericof joined #salt
16:58 joehoyle joined #salt
16:59 drawks ohhhh... so pillar data needs to be 2 levels deep?
16:59 manfred no
16:59 manfred it can be one level
16:59 manfred if i had
17:00 manfred key:
17:00 manfred - value
17:00 drawks yeah thats what I have and it totally never works
17:00 manfred it would have matched salt -I 'key: value'
17:00 bhosmer joined #salt
17:00 drawks you need a space?
17:00 manfred no
17:00 manfred with or without
17:00 drawks I'm completely puzzled
17:03 forrest joined #salt
17:04 bezeee joined #salt
17:04 skyler What is best practice for a sequence of commands that need to be run? Say I have three commands that need to be run in order. Do I just do cmd.run, and require the previous cmd.run in each one?
17:05 n8n joined #salt
17:05 robawt skyler: yes.  Is there a reason why this isn't a script?
17:05 davet joined #salt
17:05 robawt if you scripted it you could add exit values in the event of failure, but i guess you could do the same with a chain of cmd.runs
17:06 skyler robawt: I was thinking about a script. Do I need to move the script over to the minion, or can I write it on the master and execute it using a salt:// address?
17:06 pled76 joined #salt
17:06 manfred drawks: looks like it doesn't like the space http://paste.gtmanfred.com/Sqt/
17:06 manfred but it works
17:08 _mel_ skyler: i want to change the /etc/cron.d/mdadm File, but only if it is installed (the package gets installed when using softraid)
17:09 pentabular joined #salt
17:10 drawks strange. seems like after a restart my minions are behaving correctly again
17:11 skyler _mel_: Check out: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.exists
17:11 possibilities joined #salt
17:11 skyler _mel_: Then you could use watch or watch_in to trigger the replacement when you install the package.
17:12 rap424 joined #salt
17:13 _mel_ skyler: the package is installed external when installing the system. until now i have a post-install script who changes the file. but i like to switch to salt only. can i use file.exists as require inside file.replace somehow?
17:17 drawks ohhhhh so minions don't refresh pillar data automatically? seems like changing the backing store for my external pillar isn't picked up by the minions until after i either restart or call saltutil.refresh_pillar
17:18 aw110f joined #salt
17:18 skyler _mel_: nvm what I said, I was reading the question right...
17:19 mhubbard joined #salt
17:20 jeffrey4l joined #salt
17:20 _mel_ skyler: if i understand the behavoir correct only packages installed via salt can be "watched". am i wrong about this?
17:21 rojem joined #salt
17:22 tcotav _mel_: you'd key off of file.exists...  basically chain them.  first test if exists
17:22 tcotav next check how the exists test went
17:22 pled76 joined #salt
17:24 tcotav something like this: http://pastebin.com/Czew5J6m
17:25 _mel_ can i do something like this "dpkg --add-architecture i386" via a state?
17:25 forrest _mel_, you could use cmd.run
17:25 jkaye joined #salt
17:25 halfss joined #salt
17:29 _mel_ forrest: thx
17:30 forrest np
17:30 _mel_ forrest: would that be good? http://pastebin.com/dxfBmnu3
17:30 skyler I am having trouble running a script. I have a script at /srv/salt/hello.sh and in the script command I specify "name: salt://hello.sh" but I get the error "State cmd.scipt found in sls example is unavailable"
17:31 forrest skyler, that's not how it works, you aren't running the script from the master
17:31 forrest skyler, can you gist your state?
17:31 forrest or the cmd.script portion?
17:32 skyler Yeah, just a sec.
17:34 kt76 I have a stupid "include:" problem - I have "include:\n  - foo.bar" and there is a (state_root/foo/bar.sls) but salt keeps stating "State foo.bar found in sls foo is unavailable"
17:35 TheThing joined #salt
17:35 skyler forrest: There is a lot of junk, because I am testing it out in the middle of a large state I am working on https://gist.github.com/skylerberg/64f19ac91d9b492172d8
17:35 pled76 joined #salt
17:36 forrest skyler, yeah that's why it doesn't work
17:36 forrest let me add a comment, hang on
17:37 forrest skyler, I updated your gist
17:38 forrest skyler, the name is the path the script would live be at on the system
17:38 forrest source is where it's coming from on the salt master
17:38 skyler forrest: I see, thanks. Will it get destroyed afterwards?
17:39 forrest uhh, you know I don't remember
17:39 forrest all I can suggest is to try it
17:39 skyler Yeah, I will check it out.
17:39 forrest cool, let me know, I usually don't take advantage of cmd.script
17:40 capitalfellow joined #salt
17:43 aparsons_ joined #salt
17:44 pled76 joined #salt
17:45 melinath joined #salt
17:46 aparsons joined #salt
17:46 skyler forrest: it does appear to delete it, or never copy it. I don't see it in the folder even when it is running. Also, you can straight up put salt://path/to/file in the - name section with no source. The problem I had was that there is no cmd.scipt. scipt. (I need more sleep).
17:47 forrest skyler, pretty sure you have to use the source option unless you're running a script that already exists on the system
17:47 forrest what do you mean cmd.script .script?
17:48 ramteid joined #salt
17:48 rypeck Can I access the nodegroup a node is in a pillar?
17:48 skyler forrest: I mean it was a typo that caused the error. I just tested it, and I didn't need source and it ran properly, I will check again in case I accidentally had already created the script though.
17:49 forrest skyler, ok
17:50 thayne joined #salt
17:50 skyler forrest: confirmed, you do not need source.
17:50 kermit joined #salt
17:50 forrest even if the script doesn't exist on the system? I don't see how that's possible
17:51 forrest oh you mean using salt://
17:51 forrest gotcha
17:51 forrest I thought you meant referencing it with a full system path, ok
17:51 skyler ah yes, with salt://
17:51 intellix joined #salt
17:51 pled76 joined #salt
17:55 Ryan_Lane1 joined #salt
17:56 ecdhe joined #salt
17:56 dccc_ joined #salt
17:57 chrisjones joined #salt
17:57 pled76 joined #salt
17:58 timoguin anyone know where the configuration directory is on OS X when installing from homebrew?
17:58 kt76 skyler, well there is a typo - "scipt" instead of "script"
17:59 badon_ joined #salt
18:01 pled76 joined #salt
18:02 bhosmer_ joined #salt
18:02 skyler kt76: Yeah, that was my problem. Everything is working now.
18:03 pled76_ joined #salt
18:03 jinlin_gan joined #salt
18:06 aparsons_ joined #salt
18:07 rojem joined #salt
18:07 aparsons_ joined #salt
18:07 jinlin_gan joined #salt
18:08 jkaye Does the file module have any command equivalent to ls?
18:08 jkaye Or is there another builtin module with this functionality?
18:14 twoflowers left #salt
18:16 timoguin jkaye: there's file.readdir
18:17 jkaye timoguin: Perfect, thank you
18:17 jkaye That page is so large and I kept looking for something like ls and directory
18:18 pled76 joined #salt
18:19 timoguin jkaye: yea it took me a second too
18:25 jdmf joined #salt
18:27 joehoyle joined #salt
18:28 kermit joined #salt
18:30 ipmb joined #salt
18:30 dmick joined #salt
18:32 gothix :wq
18:32 gothix i:wq
18:39 felskrone joined #salt
18:41 stephanbuys1 joined #salt
18:42 TheThing joined #salt
18:42 kt76 can anyone help with what I'm doing wrong here? I have an include with a conditional, but it doesn't work ... if I remove the conditional in the included file, it works. The condition is definitely met ... http://pastebin.com/RwMmhyZs
18:44 tkharju joined #salt
18:44 manfred kt76: salt \* grains.get somegrain has blah in it?
18:45 kt76 well that  is sanitized, but yes
18:46 manfred it looks correct
18:46 diegows joined #salt
18:46 kt76 it just skips over that "blah" condition
18:46 manfred the only thing i see is the weird indent in the last one, but I assume that might be just from a pasting issue
18:47 manfred kt76: is there a reason that the whole block in that last file is indented out one entire block?
18:47 kt76 I was playing, I've tried it unindented
18:47 mpanetta General question for you guys... Is there any way to get a salt minion to execute its states in parallel (assuming they don't have dependencies)?
18:48 oz_akan joined #salt
18:48 manfred mpanetta: no
18:48 mpanetta It would be quite nice if parallel state execution were possible...
18:49 mpanetta Oh damn
18:49 manfred you would have to figure out some way of ordering them... which is less than ideal
18:49 mpanetta I want to use the cloud state module, but keep the parallel deployment functionality that salt-cloud has.
18:50 manfred so
18:50 manfred you can
18:50 manfred but, you have to do it from the master, and issue several commands
18:50 manfred there isn't a way to do it yet with the runn
18:50 manfred er
18:50 manfred hold on
18:50 mpanetta manfred: Hmm, ok I was just about to ask that
18:50 manfred mpanetta: https://github.com/saltstack/salt/issues/12159
18:50 manfred that is what that issue is for
18:51 mpanetta manfred: Awesome, thanks for the link
18:56 n8n joined #salt
18:57 Ozack1 joined #salt
18:57 v0rtex joined #salt
18:58 TheThing joined #salt
19:01 wackycaptain joined #salt
19:04 pled76 joined #salt
19:04 possibilities joined #salt
19:05 Ozack1 joined #salt
19:11 CeBe joined #salt
19:14 Katafalkas joined #salt
19:19 pled76 joined #salt
19:22 felskrone joined #salt
19:23 FeatherKing the salt master doesnt make outgoing connections to the minions correct?
19:24 manfred correct, the minions connect to the master and listen across the network to the tcp zeromq
19:24 manfred so you don't have to open any ports on the minion inbound firewall to use salt
19:25 FeatherKing so are the minions just hitting the master like crazy looking for messages?
19:25 manfred it is very chatty
19:26 manfred but it isn't like... crazy, it is just listening across the network opening the connection, and waiting
19:26 FeatherKing seems like that is alot of overhead?
19:26 rypeck Can I do an if statement in an sls to see if a file exists server side?
19:26 manfred it is less than you would think
19:26 FeatherKing my master seems to be handling it ok, im just wondering about traffic transferred
19:26 FeatherKing must be small
19:26 rypeck If a specific file for a node exists, I want to use that file, if it doesn't a generic file.
19:26 FeatherKing how often do the minions hit the master?
19:26 halfss joined #salt
19:26 FeatherKing every second?
19:26 manfred FeatherKing: they aren't hitting the master.
19:27 manfred FeatherKing: https://www.youtube.com/watch?v=SI5J43UkarM
19:27 manfred they discuss raet in that video, and touch somewhat on how zeromq works
19:27 manfred FeatherKing: http://vimeo.com/37922294
19:28 manfred it isn't really the same thing as hitting the server with constant traffic, it is more like listening to port 80 for apache/ngnix... just across the networks
19:28 manfred you connect to the zeromq instance, and stay connected
19:28 rypeck nevermind - I see you can specify a fall back.
19:29 rypeck thought I suppose I want to fallback to a symlink.
19:30 FeatherKing manfred: watching
19:35 skyler forrest: As a follow up to cmd.script's behavior: if you specify cwd and a name using salt://, then a shell file will be created in the cwd with a name like tmp0SMnoD.sh and subsequently cleaned up.
19:35 dmick left #salt
19:35 pled76 joined #salt
19:36 forrest cool
19:36 bmatt how does the salt master handle minion id collisions when auto_accept is turned on?
19:38 dude051 joined #salt
19:38 manfred it doesn't afaik
19:38 dude051 joined #salt
19:39 manfred it just rejects the second minion
19:39 manfred cause there is something already registered with that id, so it should have the key
19:40 rojem joined #salt
19:46 possibilities joined #salt
19:46 masterkorp hello
19:48 cpowell joined #salt
19:48 freeminds joined #salt
19:49 freeminds how can I execute only one specific state? I have a state called users, but salt '*' state.users doesn't work
19:50 manfred freeminds: state.sls users
19:50 manfred freeminds: salt-call sys.doc state.sls
19:50 logix812 joined #salt
19:51 freeminds manfred, thanks
19:51 freeminds I keep getting this error, more or less randomly: state.sls users
19:51 freeminds The function "state.sls" is running as PID 718 and was started at 2014, Aug 22 21:51:08.927784 with jid 20140822215108927784
19:52 freeminds Data failed to compile:
19:52 manfred freeminds: use gist.github.com
19:54 whiteinge freeminds: run that with the --verbose flag. is the JID it's complaining about the same as the currently-running JID?
19:54 badon_ joined #salt
19:54 ekristen joined #salt
19:54 possibilities joined #salt
19:55 kt766 joined #salt
19:56 freeminds should the prompt return before the execution is done?
19:57 nkuttler freeminds: you probably want to increase the --timeout
20:00 yetAnotherZero joined #salt
20:00 possibilities joined #salt
20:04 pled76 joined #salt
20:05 melinath joined #salt
20:06 mechanicalduck joined #salt
20:08 possibilities joined #salt
20:09 joehoyle joined #salt
20:09 v0rtex does anyone know why I would get an error sometimes that says "Failed to authenticate, is this user permitted to execute commands?" on my master?
20:09 gothix If i have a list of includes how to i require one to successfully complete befor processing the next?
20:10 v0rtex sometimes my salt commands work and other times I get that error - my setup is 2 VM's: a master and a minion
20:12 diegows are there packages of beta version?
20:12 diegows I want to install 2014.7.0 to use boto* states modules
20:12 capitalfellow joined #salt
20:12 diegows I want to take the risk :)
20:13 viq diegows: I believe the bootstrap script can install anything, but I don't think there are packages
20:13 v0rtex diegows: http://docs.saltstack.com/en/latest/topics/releases/releasecandidate.html
20:13 diegows great, thanks
20:13 diegows installing :)
20:14 diegows Good thing to do Friday afternoon :)
20:14 diegows devops adrenaline
20:14 v0rtex diegows: FWIW, I've been playing with it recently and it has seemed to work pretty well for me
20:14 diegows good to know
20:20 diegows I want to use the boto* state modules
20:20 kt76 joined #salt
20:20 diegows they look amazing
20:20 diegows Ryan_Lane, were you right?
20:20 diegows I mean, the contributor
20:21 Ryan_Lane Lyft is. I wrote most of them, but some of them were written by coworkers
20:21 egalano_ joined #salt
20:21 Ryan_Lane I'm the maintainer
20:21 diegows Ryan_Lane, thanks to you and the others :)
20:21 Ryan_Lane yw :)
20:22 TheThing joined #salt
20:22 v0rtex nevermind on my question above, I found https://github.com/saltstack/salt/issues/12248 which seems to be exactly my issue and I see a fix may be forthcoming
20:24 egalano joined #salt
20:26 diegows I was looking for profile in salt
20:26 diegows and now I see this in the last version
20:26 diegows Duration: 6769.65 ms
20:26 diegows :D
20:27 rykan left #salt
20:27 diegows I love you guys
20:29 TheThing joined #salt
20:30 diegows Ryan_Lane, may be you can help :)
20:30 diegows the groups were created by the rules failed
20:30 diegows https://gist.github.com/diegows/6b0c548ec73f927492ea
20:30 diegows syntax looks pretty similar to the example for me
20:31 diegows I only used a list of ports
20:31 bezeee joined #salt
20:31 Ryan_Lane sure. one sec
20:31 Ryan_Lane diegows: you need to list each rule separately
20:32 diegows one per port?
20:33 Ryan_Lane I added a comment
20:33 diegows thanks
20:33 diegows checking
20:33 midacts joined #salt
20:33 Ryan_Lane I think cidr_ip also shouldn't be a list
20:33 Ryan_Lane but a string
20:34 Ryan_Lane updated example
20:34 rglen joined #salt
20:34 diegows good
20:34 diegows ports list support for the next release? :)
20:35 Ryan_Lane you should also set a profile in your pillars
20:35 Ryan_Lane and use that, rather than embedding the keys
20:35 Ryan_Lane (really you should use IAM roles, if you can ;) )
20:35 Ryan_Lane I'm not sure I want to change how it works too much
20:35 Ryan_Lane it's *really* difficult matching boto's output with the input
20:36 midacts Have any of you guys used salt to run something like `apt-get upgrade -y`
20:36 Ryan_Lane boto makes me very angry very often. it's difficult to use idempotently
20:36 diegows Ryan_Lane, yes... I'm just testing this for the first time, I'll move that to pillars :)
20:37 Ryan_Lane midacts: yes, it's a function of the state module in 2014.7 release (which is in release candidate stage right now)
20:37 Ryan_Lane midacts: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.uptodate
20:38 midacts Ryan_Lane: salt.states.pkg.uptodate(name, refresh=False)
20:38 midacts is there a way to make sure it doesnt change configuration files when it runs apt-get upgrade
20:39 badon_ joined #salt
20:39 Ryan_Lane midacts: ubuntu doesn't by default
20:39 Ryan_Lane it'll add new config files as .dpkg-new or something like that
20:39 Ryan_Lane ubuntu/debian, that is
20:39 Ryan_Lane unless they're unmodified
20:40 Ryan_Lane then it'll replace them, but releases in the same distro version shouldn't change functionality
20:40 midacts Gotcha, so theres no way to tell it to not change the configs?
20:50 midacts ohhh you are saying it will keep the original but add a new config file ending in .dpkg-new
20:50 midacts (i am using Debian)
20:57 CeBe joined #salt
20:57 AMains joined #salt
20:57 aquinas_ joined #salt
20:58 pled76 joined #salt
20:58 badon_ joined #salt
20:58 Katafalkas joined #salt
20:59 dude051 joined #salt
21:01 AMains left #salt
21:02 aquinas__ joined #salt
21:04 aparsons joined #salt
21:05 pled76 joined #salt
21:05 aparsons joined #salt
21:06 ipmb joined #salt
21:10 mechanicalduck_ joined #salt
21:17 kermit joined #salt
21:24 MatthewsFace joined #salt
21:26 possibilities joined #salt
21:27 halfss joined #salt
21:31 orion__ joined #salt
21:31 perfectsine joined #salt
21:31 orion__ joined #salt
21:35 Errol joined #salt
21:35 n8n joined #salt
21:35 Errol Hey guys
21:36 oz_akan joined #salt
21:36 pled76 joined #salt
21:37 Errol I want to learn how to use salt (and vagrant) to deploy node JS express app on google compute engine. so where do I start?
21:38 justyns joined #salt
21:38 dmick joined #salt
21:39 forrest Errol, hello, have you used salt at all before?
21:39 Errol Never at all :)
21:39 dmick basepi: if you have access to thatch, let him know I'm here if he needs fast response about 15194
21:39 Errol But i really want to learn
21:40 forrest Errol, Ok, so depending on how you learn best, I'd suggest to either start with the saltstack tutorial, or if you prefer to create a working app you can check out this tutorial I wrote: http://hungryadmin.com/building-a-static-blog-and-deploying-it-with-saltstack.html
21:40 Errol Cool
21:40 forrest From there you can move into some more advanced stuff via the salt docs, and look at the google comput engine/vagrant documentation.
21:41 Errol Do you have any tutorial for NodeJS?
21:41 Errol I can't find a good one
21:42 forrest Errol, how about this one? https://www.youtube.com/watch?v=glvVs6uL5eM
21:42 forrest it's pretty old, and I have no idea who this is
21:42 forrest but he is using nodejs and vagrant
21:42 occupant joined #salt
21:42 forrest Errol, here's another example someone wrote that uses vagrant https://github.com/kstaken/salt-nodejs-mongo-example
21:42 Errol I tried this one but it's hard to understand
21:43 Errol That might help
21:43 Errol Would you recommend on this specific implementation?
21:44 Errol Can I adjust it easily to work onGCE?
21:44 forrest Errol, honestly I'd suggest to go through a more basic tutorial first, learn salt, then start integrating so you can understand all the components, but it's totally up to you and your workflow
21:44 forrest Errol, I don't know, the google compute engine stuff is still kind of new, and I've never used
21:44 forrest *it
21:44 forrest I don't use GCE at all
21:44 forrest but it's supposed to be pretty cool
21:45 Errol Is it good enough for production?
21:45 forrest that repo I linked?
21:45 forrest I don't know
21:45 forrest I didn't look closely
21:45 forrest just was trying to get you started somewhere.
21:45 Errol Okay thanks for your help dude :)
21:46 mechanicalduck joined #salt
21:46 forrest Errol, yeah no problem.
21:51 n8n joined #salt
21:55 bezeee joined #salt
21:56 mikjaer $5
21:56 forrest mikjaer, for me? Sweet!
21:56 forrest well on the way to working from home full time
21:57 joehoyle joined #salt
21:58 bhosmer joined #salt
21:59 laxity joined #salt
22:01 aquinas_ joined #salt
22:02 yetAnotherZero joined #salt
22:03 vejdmn joined #salt
22:03 tkharju joined #salt
22:04 jkaye joined #salt
22:10 TheThing joined #salt
22:16 bhosmer joined #salt
22:17 dsolsona joined #salt
22:20 viq joined #salt
22:23 che-arne joined #salt
22:23 possibilities joined #salt
22:24 TheThing joined #salt
22:25 Guest19488 joined #salt
22:26 pentabular joined #salt
22:26 joehoyle joined #salt
22:33 n8n joined #salt
22:36 davet joined #salt
22:37 egalano joined #salt
22:37 catpiggest joined #salt
22:37 badon_ joined #salt
22:45 dmick left #salt
22:49 thayne joined #salt
22:51 badon_ joined #salt
22:51 ndrei joined #salt
23:01 pssblts joined #salt
23:02 Ryan_Lane1 joined #salt
23:20 TOoSmOotH So I have a jinja template that I want to do something like this:  {{ salt['pillar.get’](‘grains[‘host;]::search', '') }}
23:21 TOoSmOotH basically I want it to grab the search field for the specific sls file based on the hostname
23:22 MK_FG joined #salt
23:22 forrest TOoSmOotH, what do you mean the search field?
23:22 TOoSmOotH that has a value so like search: thisdomain.com
23:23 forrest is this populated in a file?
23:23 TOoSmOotH the pillar name is the hostname
23:23 TOoSmOotH yea
23:23 forrest can you show me an example of how you're trying to use this?
23:23 TOoSmOotH <hostname>.sls
23:23 forrest oh
23:23 forrest wait, that is in your pillar?
23:23 TOoSmOotH stuff specific to that host
23:24 TOoSmOotH things that I want to keep host specific
23:24 forrest why can't you just do {{ salt['pillarget.']('grains['host']) }}.sls
23:24 forrest except without the screwed up syntax
23:24 TheThing joined #salt
23:26 mhubbard joined #salt
23:26 TOoSmOotH {{ salt['pillar.get']('staticinfo:search', '<default>') }}
23:26 TOoSmOotH that is in my /etc/resolv.conf file that I send to each box
23:26 TOoSmOotH the pillarname is statiinfo
23:27 TOoSmOotH I wasn’t sure if you could nest grains into that
23:27 forrest I'm not sure
23:27 mhubbard joined #salt
23:30 bray joined #salt
23:31 TOoSmOotH looks like I could match the pillar
23:40 DaveQB joined #salt
23:42 dude051 joined #salt
23:42 rypeck joined #salt
23:44 Singularo joined #salt
23:49 bray i'm testing my salt-cloud setup and i've created and destroyed instances with the same name a few times. i wait until the (EC2) instance is destroyed before creating a new one. but now it seems salt-cloud has the previous instance's info cached - when i try to --destroy the new one, it says the old one is already destroyed
23:49 bray any idea where that cache is stored and/or how to clear it? i haven't been able to find it on the file system
23:53 hoodow joined #salt
23:58 pentabular1 joined #salt
23:59 badon_ joined #salt

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