Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-06-02

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

All times shown according to UTC.

Time Nick Message
00:01 nixjdm joined #salt
00:04 tongpu_ joined #salt
00:05 PatrolDoom joined #salt
00:19 dxiri joined #salt
00:20 g3cko joined #salt
00:33 woodtablet left #salt
00:36 preludedrew joined #salt
00:45 mosen joined #salt
00:48 dxiri joined #salt
00:50 edrocks joined #salt
01:04 jas02 joined #salt
01:04 sh123124213 joined #salt
01:07 saintpablo joined #salt
01:14 justanotheruser joined #salt
01:21 fracklen joined #salt
01:24 hosttor joined #salt
01:29 dxiri joined #salt
01:34 VR-Jack-H joined #salt
01:38 stooj joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.6, 2016.11.5 <+> Support: https://www.saltstack.com/support/ <+> 1st Salt Cloud Working Group meeting June 1st, 2017 https://goo.gl/o2OK49 <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers
01:51 dxiri joined #salt
02:11 dxiri joined #salt
02:22 zerocoolback joined #salt
02:28 dxiri joined #salt
02:31 mpanetta joined #salt
02:32 PatrolDoom joined #salt
02:49 evle joined #salt
02:51 edrocks joined #salt
02:52 Aleks3Y joined #salt
02:53 dxiri joined #salt
02:55 mpanetta joined #salt
03:11 aneeshusa joined #salt
03:16 jas02 joined #salt
03:17 dxiri joined #salt
03:19 c_g joined #salt
03:38 nethershaw joined #salt
03:40 dxiri joined #salt
03:51 nethershaw joined #salt
03:56 om2 joined #salt
03:58 felskrone1 joined #salt
04:14 tmilam_ joined #salt
04:18 dxiri joined #salt
04:29 tmilam joined #salt
04:31 Praematura joined #salt
04:36 dxiri joined #salt
04:53 edrocks joined #salt
05:01 Tantagel joined #salt
05:03 nidr0x joined #salt
05:04 zerocoolback joined #salt
05:07 sybix joined #salt
05:16 Bock joined #salt
05:23 Tantagel joined #salt
05:24 Tantagel joined #salt
05:29 inetpro joined #salt
05:31 mugsie joined #salt
05:31 mugsie joined #salt
05:34 stooj joined #salt
05:40 stooj joined #salt
05:47 stooj joined #salt
05:48 impi joined #salt
05:54 dxiri joined #salt
05:55 stooj_ joined #salt
06:13 stooj joined #salt
06:15 sh123124213 joined #salt
06:26 stooj joined #salt
06:32 iggy FYI: the bot is now messaging people who aren't identified with nickserv to tell them they should
06:32 hemebond ????
06:34 whytewolf yay!
06:37 stooj joined #salt
06:40 saltstackbot joined #salt
06:41 iggy so yeah, if anybody hears of the bot going wild, let me know
06:43 stooj joined #salt
06:49 stooj joined #salt
06:50 scarcry joined #salt
06:51 bvcelari joined #salt
06:59 fracklen joined #salt
07:02 toanju joined #salt
07:03 Ricardo1000 joined #salt
07:12 dcpc007 is it possible to have a "preview" of what would be changed on a minion ?
07:12 dcpc007 like a dry-run option ?
07:12 fracklen joined #salt
07:13 dcpc007 i'm starting to prepare a list of what configs salt could help us, but see here that there is many exceptions, and sometimes local modification done.. sometimes without alert the admin :-(
07:14 fracklen dcpc007 salt <minion> state.highstate test=True
07:16 dcpc007 ok thx !!
07:17 dcpc007 then i think it's possible to make something like a daily auto check and send by email a report if needed ..
07:21 colttt joined #salt
07:22 pbandark joined #salt
07:22 o1e9 joined #salt
07:24 Tantagel joined #salt
07:24 Tantagel .
07:27 dcpc007 something like system update available :)
07:28 dcpc007 can beacons/reactor used for that (not look this part)
07:36 om2 joined #salt
07:39 wybczu joined #salt
07:42 jas02 joined #salt
07:44 colegatron joined #salt
07:50 candyman88 joined #salt
07:52 Hybrid joined #salt
07:53 Rumbles joined #salt
07:55 dxiri joined #salt
07:55 edrocks joined #salt
08:08 mikecmpbll joined #salt
08:10 oida joined #salt
08:23 impi joined #salt
08:26 Naresh joined #salt
08:30 haam3r joined #salt
08:34 haam3r joined #salt
08:37 zwobot joined #salt
08:37 zwoboter joined #salt
08:40 Reverend whytewolf - still having that issue of the service reloading -before- the vhosts file is updated :/
08:43 Reverend https://hastebin.com/egovavacun.pas
08:44 Reverend I would expect that the service would say "yep this file is changed, now you're good to reload"
08:46 babilen You might want to remove the order argument there
08:47 babilen (and provide some additional output that exemplifies the problem)
08:53 Reverend waiiiiiiiiiit a minute. I just took out the service reload, and apache still started ....
08:53 Reverend :o
08:53 Reverend `vendor preset: disabled` so it's not starting on boot
08:54 Reverend babilen: it's running on events, so I don't have -that- much output
08:54 Reverend I could turn off the events I guess... run them manually. hmm
09:07 Tantagel joined #salt
09:22 dxiri joined #salt
09:22 losh joined #salt
09:23 vbh joined #salt
09:26 vbh joined #salt
09:29 Reverend babilen - figured it I think. I have -two- httpd reloads in that highstate. one for newrelic, and one for vhosts.conf
09:29 Reverend it seems that salt just ignores the vhosts.conf one if the newrelic one runs
09:29 Reverend which is weird
09:30 Reverend (which also means that the `order: last` does absolutely nothing haha. xD)
09:30 Reverend I has a question though
09:30 Reverend if I do an `include: newrelic-php`, when I write the requisite, do I just use the state ID as normal?
09:32 colttt joined #salt
09:33 peters-tx joined #salt
09:34 XenophonF you're referencing a state ID in the newrelic-php SLS, yes?
09:34 XenophonF so it'd just be that state ID verbatim, e.g., https://github.com/irtnog/tomcat-formula/blob/master/tomcat/shibboleth-idp.sls
09:48 Reverend thank you XenophonF. So the watch can also watch files in there... noice. lets say I've got php54 sls, and httpd sls... I can include newrelic in both of them right, even though they're both in the top for that one node?
09:58 edrocks joined #salt
10:04 tellendil joined #salt
10:07 dcpc007 left #salt
10:08 candyman88 joined #salt
10:08 Reverend this is good XenophonF - you did a good. I'm gonna split off my HTTPD install to a seperate SLS and wherever I need requisites, just extend into that state some additional watch's. Thooughts?
10:09 Reverend one thing I'm a little unsure about is the `extend:\n  [name]:` <-- is the name the name of the sls or the state that we're extending?
10:11 miruoy joined #salt
10:11 mariusv joined #salt
10:11 impi joined #salt
10:20 _KaszpiR_ joined #salt
10:26 Fo0ob joined #salt
10:35 Fo0ob joined #salt
10:43 Fo0ob I'm running into a "true" vs true issue in salt. I'm trying to save both strings and booleans in mongo. If I put "true" in the pillar, the mongo value gets stored as "true" and not true which is what I want. If I use true, then salt errors out with "TypeError: can't serialize ValueError('No JSON object could be decoded',)". Here's a gist which should explain it better (20 lines)
10:43 Fo0ob https://gist.github.com/Elethiomel/1fd86e82966875113066f87dd5f1700e
10:45 hemebond Fo0ob: Put quotes around your pillar true
10:45 hemebond Oh.
10:45 hemebond nvm
10:45 Fo0ob Yes, but then "true" gets stored in mongo
10:45 Fo0ob Yeah, you get it :)
10:45 hemebond Maybe use |json filter in your state.
10:46 mariusv joined #salt
10:46 Fo0ob hemebond: Cheers, looking into that now
10:49 XenophonF Reverend: I use SLSes like the one I showed you to glue formulas together, but I'm usually careful about making the formulas themselves work independent of one another.
10:49 Reverend XenophonF: yeah, this is a tricky one, because it's almost a cyclic requisite.
10:49 XenophonF e.g., I can run the tomcat and shibboleth.idp SLSes separately, and they work as expected
10:50 Reverend httpd needs php54. newrelic needs php54 and httpd. but I don't want newrelic to be on every server... >_<
10:50 XenophonF right
10:50 XenophonF now in many cases, i don't bother welding states together
10:50 Reverend let me write a hastebin, and let me know if I'm chatting shit :P
10:51 XenophonF e.g., I wrote a formula that installs a PHP app named COmanage Registry, https://github.com/irtnog/comanage-formula
10:52 XenophonF While Apache httpd needs to be configured for the app to work, there are no technical dependencies between the app and httpd.
10:52 XenophonF So in that case I never bothered to glue the two formulas together.
10:53 XenophonF I only write the glue SLS when I explicitly need it.
10:53 Reverend XenophonF: https://hastebin.com/sufepavafu.css   this is the issue
10:53 Reverend >_<
10:54 XenophonF ah
10:54 XenophonF so I also don't decompose things that far
10:54 Reverend this is what I currently have, but it's not working: https://hastebin.com/kohirineqe.erl
10:54 Reverend the reload in both newrelic, AND httpd sls's don't work... it only reloads once.
10:54 Reverend is that normal? O.o
10:54 XenophonF why does the newrelic install need to trigger a web server restart?
10:55 Reverend oh I have no fucking idea. it's nonsense.
10:55 XenophonF e.g., my PHP app can just get dropped into a directory, and boom - it's updated
10:55 XenophonF httpd/mod_php don't need to restart
10:56 Reverend I'm wondering if I do httpd +include php54 +include newrelic-php54, then in the newrelic-php54 do require_in: httpd-service ?
10:56 XenophonF it's not like java or python where you have to restart a container
10:56 XenophonF so this is how I'd do it
10:56 Reverend I know... their docs specifically say "restart httpd when you install it" -_- although, I guess the httpd restart should sort it out... maybe xD
10:56 Reverend on the conf restart i mean
10:56 XenophonF i'd have a httpd SLS and a php SLS and a newrelic SLS
10:56 Reverend yep. that's how it is ATM
10:57 PatrolDoom joined #salt
10:57 XenophonF i'd tweak the defaults (via Pillar) of the httpd SLS to install mod_php and friends, even though the PHP SLS does that
10:57 Reverend O_O
10:58 XenophonF I assume that the php SLS configures the runtime environment to your liking, so I would put the necessary newrelic-spcific tweaks into the php SLS's Pillar data
10:58 XenophonF (making a lot of assumptions about your code here)
10:58 Reverend haha
10:59 XenophonF and then finally, i'd have the newrelic SLS install the requisite httpd and php packages itself in case it needs user accounts or to run the php command or something
10:59 heyimawesome `1212121212121212121212121212121212121212121212121212121234567
10:59 XenophonF (you can see an example of what i mean at https://github.com/irtnog/comanage-formula)
10:59 Reverend GG heyimawesome.
11:00 Reverend XenophonF: okay, there may be a much easier solution.
11:00 Reverend if I include php54, which includes newrelic... can I do a rquired_in on the newrelic confs?
11:00 XenophonF then i might write a glue state that ties those all together b/c you say that the newrelic docs say "restart httpd"
11:00 XenophonF so i could run my httpd SLS and it does the right thing
11:00 XenophonF and i could run my php SLS and it does the right thing
11:00 XenophonF and i could run my newrelic SLS and it does the right thing
11:01 XenophonF all independent of one another
11:01 heyimawesome Oops. Probably shouldn't have flipped the new keyboard over as I plugged the usb into it
11:01 Reverend jesus. if there were emoji's in irc there's be a lot of crying faces in here xD hahaha
11:01 XenophonF and i could run my httpd-php-newrelic SLS that puts them all together
11:01 colttt joined #salt
11:01 XenophonF that way my httpd and php SLSes can be pretty generic
11:01 jas02 joined #salt
11:01 XenophonF and I can reuse them elsewhere
11:02 XenophonF but note that you can only include things once
11:02 XenophonF so you can't have the newrelic SLS include the php SLS, which includes the httpd SLS
11:03 XenophonF you'd have to either have the newrelic SLS include both the php and httpd SLSes or have a separate glue SLS that does all three at once
11:03 XenophonF (I prefer the latter style b/c it makes what you're doing---gluing stuff together---more obvious to you six months from now)
11:04 fracklen joined #salt
11:05 XenophonF for a real example, take a look at my Shibboleth IdP states
11:05 XenophonF https://github.com/irtnog/salt-states/blob/master/top.sls#L314
11:05 sjorge joined #salt
11:05 XenophonF https://github.com/irtnog/tomcat-formula
11:05 XenophonF https://github.com/irtnog/shibboleth-formula
11:05 XenophonF https://github.com/irtnog/apache-formula
11:06 XenophonF https://github.com/irtnog/salt-pillar-example/blob/master/login/example/com/init.sls
11:06 XenophonF notice how I make it possible for the individual SLSes to be called separately
11:06 XenophonF https://github.com/irtnog/salt-pillar-example/blob/master/login/example/com/init.sls#L28
11:07 XenophonF I wrote these as formulas so I felt like they had to be self-contained.
11:07 XenophonF I apply the same discipline to regular ol' states.
11:08 XenophonF er
11:08 XenophonF sorry for the wall-o-text everyone
11:09 Reverend XenophonF meh. it's helpful so it counts :)
11:09 Reverend we're gonna rewrite our salt config at some point, as we have nginx installs all over the place...
11:10 Reverend but im gonan try requiring a include of an include ;)
11:10 XenophonF :)
11:10 XenophonF I like making states composable like that.
11:10 XenophonF Just don't go too crazy with the includes.
11:11 XenophonF They can turn into footguns and make your SLSes difficult to understand real quick.
11:11 Reverend haha
11:12 Reverend well, we know apache is gonna required php. as apache is only on php app servers.
11:12 Reverend I'm just testing an extend of an include of an include atm.
11:12 Reverend hang on
11:12 XenophonF That's why my general rule is: 1 SLS per "service", no cross-SLS dependencies.
11:12 XenophonF include of include doesn't work
11:13 XenophonF you'll need to list the include and the included include (whew!) in the... er, includer
11:13 XenophonF :-D
11:14 Reverend hahahaha
11:14 Reverend it most certainly doesn;t
11:14 Reverend I'm half tempted to just bungle all the newrelic stuff into the php sls and be done with it
11:14 Reverend FUCK IT
11:15 XenophonF that's also an option
11:15 XenophonF or put the php stuff into the newrelic SLS
11:15 XenophonF (which is what I usually do...thank god for php.d)
11:15 Reverend ugh.
11:16 Reverend well, firstly, do you know why a service can't be reload twice in one highstate?
11:16 XenophonF no I don't but tbh I've never tried to do that
11:16 Reverend yeah, don.t :P
11:17 Reverend tell you what though, I reckon that newrelic is gonna install before httpd reloads...
11:17 Reverend so because of that listen (instead of watch) on the service, it'll do it last anyway
11:18 Reverend im gonna just tempt fate and let httpd manage the restart without any requisites on newrelic, and just hope that it works. \shrug
11:23 sjorge joined #salt
11:24 dxiri joined #salt
11:26 Ricardo1000 joined #salt
11:42 evle1 joined #salt
11:42 Fo0ob hemebond: https://gist.github.com/Elethiomel/92f1dd81f79fd1adab82e8016f62c5ed
11:43 Fo0ob Ugly, but it works(TM)(C)(R)  Hashtag : ShipIt
11:44 hemebond Yikes.
11:45 Rubin joined #salt
11:45 cuxtud joined #salt
11:46 velan joined #salt
11:50 Reverend XenophonF it werked.
11:50 Reverend :)
11:57 tiwula joined #salt
12:04 jas02 joined #salt
12:05 jas02 joined #salt
12:07 fracklen joined #salt
12:09 candyman89 joined #salt
12:17 Fo0ob joined #salt
12:20 LondonAppDev joined #salt
12:20 Shados joined #salt
12:22 evle1 joined #salt
12:30 colttt joined #salt
12:37 dxiri joined #salt
12:38 ssplatt joined #salt
12:40 edgr joined #salt
12:40 amcorreia joined #salt
12:45 edrocks joined #salt
12:51 thinkt4nk joined #salt
12:53 dxiri joined #salt
13:00 cyteen joined #salt
13:05 mikecmpb_ joined #salt
13:05 Ricardo1000 joined #salt
13:06 dxiri joined #salt
13:10 dxiri joined #salt
13:15 manwe joined #salt
13:21 c_g joined #salt
13:22 andy___ joined #salt
13:23 rebbdohr joined #salt
13:25 mikecmpbll joined #salt
13:26 manwe joined #salt
13:26 manwe left #salt
13:30 manwe178 joined #salt
13:30 manwe178 Hi all, does anyone have a view on the most widely accepted naming convention for state IDs?
13:30 skatz joined #salt
13:30 manwe178 I would have thought people would prefer to stick to camel case, hypens/underscores, all lower case, or something, but in the tutorial they suggest using descriptive sentences, e.g. "Install mysql and make sure the mysql service is running"
13:31 mikecmpbll joined #salt
13:31 manwe178 But when I've looked in other places I see things like "apache", "mysql-init", etc
13:32 manwe178 Which seems a bit more normal
13:38 brousch__ joined #salt
13:46 mikecmpbll joined #salt
13:47 matt11 manwel178: I've seen both, I think from a programmers point of view, it's safer to not use spaces, so most people just don't
13:47 Shados joined #salt
13:48 matt11 manwe178: It shouldn't matter though
13:49 Rumbles joined #salt
13:49 matt11 manwe178: Just be descriptive, doesn't have to be a sentence, but something descriptive is nice and something that is unique
13:49 jas02 joined #salt
13:49 matt11 Anyone use the apache formula?
13:50 racooper joined #salt
13:50 manwe178 matt11: Thanks
13:50 matt11 Currently trying to get it configured on CentOS 7, everything seems could. Look at the configs, but getting 403 error - permission denied. I don't see anything in the config that should be doing that
13:51 manwe178 Yeah, I would always try to be descriptive if I can, just a full sentence with spaces and capitalisation, etc, feels weird to put in something described as an ID.
13:51 absolutejam joined #salt
13:52 rebbdohr joined #salt
13:52 absolutejam Hey guys
13:52 absolutejam Can anyone help me translate my Ansible brain to a Salty one?
13:53 absolutejam I'm trying to do the following: Run a powershell command and if that value is True, copy over a file to the host and run the file
13:53 absolutejam In a Salt state
13:54 absolutejam There's an absolute tonne of requisites I could use by the look of the docs, but I'm not sure if I'm tackling this correctly
14:02 jhauser joined #salt
14:04 absolutejam hm, think I got it
14:04 absolutejam but I'm not sure I 'get' it
14:04 manwe178 Does anyone know if it's possible to pass the return value of one execution module call to another?  For example, to pass the result of `salt '*' dockerng.list_containers` to `salt '*' dockerng.stop <container>` in order to stop all containers
14:04 absolutejam I did onlyif: powershell.exe -command 'try { get-hotfix -id KB3191565 -Ea Stop; exit 1 } catch { exit 0 }'
14:04 absolutejam But I feel like that's not very scalable, compared to using Ansible's 'register' - Am I missing anything?
14:05 absolutejam wouldn't you be better with a state, manwe178?
14:05 rebbdohr joined #salt
14:05 mikecmpbll joined #salt
14:09 manwe178 absolutejam: Maybe...  So you mean create a 'no containers are running' state which runs a command like `docker stop $(docker ps -q)` to ensure all containers are stopped?
14:10 manwe178 I'm trying to make use of the built-in modules as much as possible, seeing if there's a way to use the existing Docker stuff to put Docker into that state
14:10 rebbdohr joined #salt
14:10 manwe178 Rather than using cmd.run, if I can avoid it
14:10 rebbdohr_ joined #salt
14:12 Rubin joined #salt
14:12 nafg__ joined #salt
14:12 nafg joined #salt
14:12 mpanetta joined #salt
14:16 drawsmcgraw joined #salt
14:17 mikecmpbll joined #salt
14:21 pbandark Hi.. is "source_hash" mandatory option with "file.managed" state function ?
14:22 dev_tea Nope
14:23 absolutejam manwe178: Are you running them as execution modules?
14:23 XenophonF Reverend: congrats!
14:23 absolutejam If you're doing multiple steps, isn't that call for using an .sls file?
14:24 pbandark ahh. its skip_verify
14:24 XenophonF pbandark: that's generally a bad idea
14:24 XenophonF don't do that
14:24 pbandark yup. i am just testing something on my test setup
14:25 XenophonF even if you're using https as the transport, you should do the whole Reaganesque trust-but-verify thing
14:25 XenophonF oh well if it's test, who cares!  ;)
14:25 pbandark :)
14:25 XenophonF absolutejam: you can use the output of a powershell command from jinja to do stuff
14:25 XenophonF or really any command
14:26 manwe178 absolutejam: Basically we're just bringing SaltStack into our systems at work, I'm reviewing a PR where someone has come up with a number of Salt states to stop all containers, remove all containers and remove all images, they're then using that state as a way of cleaning everything up, but it's not in the top.sls file, it's just there as a convenience state that could be applied to clean up a machine.
14:26 manwe178 I'm trying to figure out if that's a normal thing to do, or if one would normally use modules for that sort of thing
14:28 absolutejam XenophonF: I saw that you can run cmd.run and save that as a jinja variable
14:29 XenophonF absolutejam: https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.cmdmod.html#salt.modules.cmdmod.powershell
14:29 ronnix joined #salt
14:29 absolutejam Is that what you mean?
14:29 absolutejam If I use {{ salt.cmd.run }} can I pass the 'shell' kwarg?
14:29 XenophonF sure - notice that cmd.powershell appends |ConvertTo-JSON, which serializes the result on the PS side and deserializes on the minion side
14:29 absolutejam oh, cmd.powershell
14:30 absolutejam sorry, didn't see that
14:30 XenophonF right
14:30 absolutejam derp!
14:30 XenophonF then you can work with real data!
14:30 absolutejam Muuuuuch better!
14:30 XenophonF yup
14:31 XenophonF but more to the point, doesn't salt have exec and state modules that work with Windows Update?
14:31 XenophonF (making lots of assumptions here)
14:31 XenophonF https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.win_update.html
14:32 XenophonF https://docs.saltstack.com/en/latest/ref/states/all/salt.states.win_update.html
14:32 XenophonF depending on what you want to do, Salt might already have a way of accomplishing it
14:32 absolutejam Not really what I need
14:32 XenophonF gotcha
14:32 absolutejam Can't run an .msu
14:32 absolutejam The dism module says it can
14:32 absolutejam but it errors
14:32 absolutejam But I think that's just a dism limitation
14:32 absolutejam Spent 2 days trying to do it with Ansible
14:33 absolutejam protip: You can't
14:33 absolutejam But I found in general, what I was trying to achieve with Ansible was baked into salt.
14:33 XenophonF MSUs are installed using msiexec, IIRC
14:33 XenophonF CABs get installed using DISM.
14:33 absolutejam wusa.exe
14:34 XenophonF oh right
14:34 inad922 joined #salt
14:34 XenophonF duh
14:34 XenophonF wouldn't it be nice if windows got with the program and made it so we could do something like "yum update"?
14:39 absolutejam If onyl
14:39 absolutejam only too
14:43 Rumbles joined #salt
14:43 mikecmpbll joined #salt
14:50 absolutejam any idea what I need to do for `onlyif` to work?
14:50 absolutejam I'm not sure it's actually accepting what i'm trying
14:51 absolutejam Hm, wonder if it's because I'm shelling out to powershell
14:51 drawsmcgraw joined #salt
14:51 absolutejam powershell.exe -command 'do something {{ exit 0 }} else {{ exit 1 }}'
14:51 absolutejam wonder if I need to relay this result to cmd
14:52 fracklen joined #salt
14:53 preludedrew joined #salt
14:53 miruoy joined #salt
14:54 fracklen joined #salt
14:55 mpanetta joined #salt
14:56 mpanetta joined #salt
15:00 Aleks3Y joined #salt
15:00 jas02 joined #salt
15:03 nicksloan joined #salt
15:12 censorshipwreck joined #salt
15:12 major joined #salt
15:12 lordcirth_work I made a PR, changes were requested, I made them a week ago.  Is it bad to bug people about it? https://github.com/saltstack/salt/pull/41255
15:14 zerocoolback joined #salt
15:15 dxiri joined #salt
15:19 drawsmcgraw joined #salt
15:24 sarcasticadmin joined #salt
15:25 sarcasticadmin joined #salt
15:28 sp0097 joined #salt
15:29 sybix joined #salt
15:33 impi joined #salt
15:36 sh123124213 joined #salt
15:49 _JZ_ joined #salt
15:50 rmelero joined #salt
15:51 nethershaw joined #salt
15:57 dyasny joined #salt
16:00 fracklen joined #salt
16:05 peters-tx joined #salt
16:08 jsp joined #salt
16:16 Praematura joined #salt
16:18 rebbdohr joined #salt
16:40 rebbdohr_ joined #salt
16:40 nixjdm joined #salt
16:49 pbandark Hi.. can anyone tell me difference between "state.orchestrate" , "state.orchestrate_high" and "state.orchestrate_single" runner modules ?
16:50 pbandark i tried going through doc but I am unable to get exact usecase
16:51 whytewolf orchestrate_high and orchestrate_single seem to be just used to run single hand crafted orchestrates built at that time.
16:52 rebbdohr joined #salt
16:52 whytewolf _high states highstate type data, and single takes more human readable data
16:53 matt11 https://docs.saltstack.com/en/latest/ref/states/layers.html
16:53 edrocks joined #salt
16:55 pbandark whytewolf, matt11:  so there is no diff in "state.orchestrate" and "state.orchestrate_single" ?
16:55 whytewolf there is
16:55 matt11 there is
16:55 matt11 orch is highstate
16:55 matt11 single just runs a single state
16:55 pbandark ok
16:57 matt11 https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.state.html
16:58 matt11 gives some examples as well
16:58 nicksloan joined #salt
16:58 matt11 but its the same concept as with the layers in states
16:58 sp0097 joined #salt
17:00 matt11 state single and orch single look to be about the same
17:00 rebbdohr joined #salt
17:00 matt11 orch_high is sort of the same as state.low
17:00 rebbdohr_ joined #salt
17:01 matt11 the exception seems to be that you can put in multiple routines instead of just one
17:01 matt11 and orch is basically the same concept as state.apply
17:06 rebbdohr joined #salt
17:06 thinkt4nk joined #salt
17:06 pbandark let me read again to understand  it better :)
17:06 rebbdohr_ joined #salt
17:11 brd joined #salt
17:17 hashwagon joined #salt
17:30 pbandark matt11: what does " layers in states" means ?
17:31 pbandark i am referring to above chat "but its the same concept as with the layers in states" <==
17:31 whytewolf highstate > high data > lowstate > low data > run > output
17:32 whytewolf or really: render > highstate > high data > lowstate > low data > run > output
17:35 major how well does salt work w/ mismatched minion/master versions?
17:35 whytewolf eh, some hick ups here and there. and master should always be the higher version
17:36 whytewolf https://docs.saltstack.com/en/latest/faq.html#can-i-run-different-versions-of-salt-on-my-master-and-minion
17:37 whytewolf although that needs to be updated. thanks to a recent issue with 2016.11.4 and a change to crypto
17:46 dxiri joined #salt
17:46 rebbdohr joined #salt
17:50 DC joined #salt
17:51 sh123124213 joined #salt
17:51 matt11 pbandark: basically what whyte said, it's how states are run, if it's from the sls files or a direct call
17:51 DanyC joined #salt
17:51 pbandark matt11:  ok
17:53 shred joined #salt
17:54 nafg__ joined #salt
17:55 nafg joined #salt
17:56 nixjdm joined #salt
17:57 DC1_ joined #salt
18:02 DC3_ joined #salt
18:04 DC65 joined #salt
18:04 DanyC hi all, can anyone help me find out if Salt can be used for service chaining ? Any help would be much appreciated
18:07 nysallust joined #salt
18:08 nysallust Hi everyone.
18:08 nysallust I am trying to run a salt-minion installed via Pip in a virtualenv.  Run into a wall... looking for help!  It all worked fine on RedHat EL7 (w/ Python 2.7) but in CentOS EL6 (w/ Python 2.6.6) on startup the "tornado/iostream.py" piece keeps crashing on this line ("memoryview(self._write_buffer)[start:start + size])"), with the message ("NameError: global name 'memoryview' is not defined").  Does anyone have any suggestions on how to
18:10 nysallust "memoryview" seems to have been backported into Python 2.6 a long time ago, so I am not sure why it is not recognized.
18:12 nysallust Perhaps I need to pull down something else via pip in my virtualenv; can't figure out what though.  If it matters, on the global root level, "zmq" and the "development tools" group all installed as RPMs, along with "python-devel" RPM.
18:12 nicksloan joined #salt
18:16 pbandark I am trying to use salt orchestration but its failing with "KeyError". https://paste.fedoraproject.org/paste/4gb8riLpPiVXTJdikcYU415M1UNdIGYhyRLivL9gydE=  did I make any mistake in the syntax/calling salt orchestration ?  can anyone help me on the same?
18:18 whytewolf pbandark: how are you calling this?
18:18 whytewolf what are you trying to do?
18:19 DanyC joined #salt
18:20 whytewolf also, what version of salt are you on?
18:21 pbandark whytewolf: i am calling with `salt 'tomcat_server' state.apply`. where "init.sls" file will start initilization of tomcat state file.  I am trying to configure tomcat. but for tomcat there is depenancy of "java"(which is another module configured on salt master). I am trying to configure tomcat using orchestration so that, first java is installed and then tomcat
18:21 pbandark salt 2016.11.3 <==from master
18:22 whytewolf okay. orch is handled on the master not the minion. [unless it is masterless]
18:22 whytewolf so salt 'minion' state.apply won't work for the minion
18:22 whytewolf [when dealing with orch]
18:23 pbandark ahh. ok.
18:24 whytewolf second not sure what 5-8 was supposed to be. but there is no runner named tomcat.orchestrate.deploy
18:24 whytewolf also 11-14 is also a little off
18:24 whytewolf here is an orch file i use for installing mysql https://github.com/whytewolf/salt-phase0-orch/blob/master/orch/install/mysql.sls
18:25 whytewolf it is called from the master using salt-run state.orch orch.install.mysql
18:25 pbandark checking
18:25 major trying to set up a webook reactor so I can be lazy with updating my development master..
18:35 mugsie joined #salt
18:38 PatrolDoom joined #salt
18:44 peters-tx joined #salt
18:49 DanyC joined #salt
18:56 nixjdm joined #salt
19:02 gtmanfred joined #salt
19:06 pbandark whytewolf: i have modified the code. can you check if its correct ? https://paste.fedoraproject.org/paste/p-P~JVgTIt535HudJ1eCZl5M1UNdIGYhyRLivL9gydE=
19:07 toanju joined #salt
19:08 whytewolf okay. that looks "better" but why does tomcat/init.sls & tomcat/orchestrate/initialize.sls exist?
19:09 whytewolf you can call tomcat.orchestrate.configure with salt-run state.orch tomcat.orchestrate.configure
19:09 pbandark i can remove it. but will it cause any issue in the execution ?
19:10 pbandark i mean with what have written.
19:10 pbandark what I have*
19:10 _KaszpiR_ joined #salt
19:10 absolutejam_ joined #salt
19:11 absolutejam_ I really need to set my ZNC back up
19:11 absolutejam_ https://pastebin.com/SaiLv7VN
19:11 absolutejam_ Anyone see an error in that?
19:11 absolutejam_ Getting: issing closing '}' in statement block.
19:11 absolutejam_ Missing*
19:12 absolutejam_ But from the returned 'Name', it looks fine
19:12 absolutejam_ No missing braces
19:12 SalanderLives joined #salt
19:14 pbandark whytewolf: I tried with both approach ` salt-run state.orchestrate tomcat/orchestrate/configure`. Its getting executed but, the changes are not getting reflected on target minion. I dont see any error :(
19:14 absolutejam_ well, besides accidentally using 'except' instead of 'catch'. Bit too much Python eh
19:19 absolutejam_ If I copy and paste the exact output in 'Name' into PowerShell, it works
19:19 absolutejam_ Wonder if it's a parsing problem
19:22 pbandark whytewolf: please ignore. its working now.  thanks a lot for your help
19:23 calij3aze joined #salt
19:24 edrocks joined #salt
19:24 DanyC joined #salt
19:31 saltstackbot joined #salt
19:33 absolutejam_ Hm, I've created a GitHub issue
19:38 jale2ice joined #salt
19:41 sjorge joined #salt
19:43 jale2ice left #salt
19:43 jale2ice joined #salt
19:43 ChubYann joined #salt
19:46 major just when I thought I had the hang of all this .. the rest_cherrypy reactor is liquifing my brain
19:52 fracklen joined #salt
19:53 jale2ice Hello. I'm trying to understand why this jinja for loop is failing: https://pastebin.com/qk7Xs6Lx
19:56 nixjdm joined #salt
19:56 nafg joined #salt
19:56 nafg__ joined #salt
20:00 fracklen joined #salt
20:00 absolutejam_ joined #salt
20:07 Vasya666 joined #salt
20:08 Vasya666 left #salt
20:12 censorshipwreck joined #salt
20:12 sjorge joined #salt
20:18 LeProvokateur joined #salt
20:19 lordcirth_work jale2ice, it looks like your pillar is a list of dict, but you are addressing it as a dict
20:23 mvensky joined #salt
20:25 jale2ice Thank you lordcirth_work . I'll try to flatten my pillar.
20:31 major soo .. trying to grok this pydsl state file, and it refers to: secret = salt.pillar.get('salt_reactor:github_webhook_secret', '') .. I am not entirely certain where in the tree this is refering to
20:33 DammitJim joined #salt
20:39 edrocks joined #salt
20:40 amcorreia joined #salt
20:53 jrgochan joined #salt
20:56 nixjdm joined #salt
20:57 shred joined #salt
20:58 swa_work joined #salt
20:58 SaucyElf joined #salt
20:58 SaucyElf left #salt
21:15 sp0097 joined #salt
21:21 nafg__ joined #salt
21:22 jrgochan hello
21:22 jrgochan I'm trying to use the rsync.synchronized state and am having some trouble. Looks like my minion is having ssh key trouble.. any idea what the following means?
21:22 jrgochan Invalid Changes data: opening connection using: ssh salt rsync --server --sender -vvvulogDtprze.iLs . //files/custom/RedHat/6/
21:23 jrgochan do I need to add an ssh key to my salt server's authorized_keys?
21:23 fritz09 joined #salt
21:23 nafg joined #salt
21:27 shred joined #salt
21:37 c_g joined #salt
21:38 shred joined #salt
21:40 edrocks joined #salt
21:43 daxroc Evening all
21:44 cyborg-one joined #salt
21:46 daxroc I'm wanting to create a simple standalone client script for salt, how can I set the pki for the client connect
21:46 daxroc here's what I've got so far https://gist.github.com/daxroc/9f3b1d6ada4c8af32f268a892b380a51
21:52 GMAzrael joined #salt
21:57 debian112 joined #salt
22:02 sp0097 joined #salt
22:19 debian112 joined #salt
22:28 DoomPatrol joined #salt
22:28 gmoro joined #salt
22:28 watersoul joined #salt
22:29 Trauma joined #salt
22:30 aarontc joined #salt
22:31 Ahlee_ joined #salt
22:31 Mogget joined #salt
22:31 chron0_ joined #salt
22:31 dh__ joined #salt
22:31 mkillebr1w joined #salt
22:32 Qlawy_ joined #salt
22:32 penguinp1wernz joined #salt
22:32 Shirkdog_ joined #salt
22:32 Rkp_ joined #salt
22:32 pewpew joined #salt
22:33 jrklein_ joined #salt
22:36 nledez joined #salt
22:36 nledez joined #salt
22:38 georgemarshall joined #salt
22:40 Shirkdog_ joined #salt
22:40 rickflare2 joined #salt
22:40 Hazelesque_ joined #salt
22:40 KingJ_ joined #salt
22:40 saltstackbot joined #salt
22:42 rofl____ joined #salt
22:42 Edur joined #salt
22:43 lstor joined #salt
22:44 nledez joined #salt
22:44 nledez joined #salt
22:45 basepi joined #salt
22:45 ekkelett joined #salt
22:54 jesusaur joined #salt
23:16 jesusaur joined #salt
23:18 shred joined #salt
23:37 xet7 joined #salt
23:40 edrocks joined #salt
23:42 shred joined #salt
23:45 sh123124213 joined #salt
23:50 lorengordon joined #salt
23:59 Rubin joined #salt

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