Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-04-19

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

All times shown according to UTC.

Time Nick Message
00:04 akhter joined #salt
00:08 amcorreia joined #salt
00:08 aqua^c_ joined #salt
00:16 cyborg-one joined #salt
00:19 druonysus joined #salt
00:19 mowntan joined #salt
00:27 spuder joined #salt
00:33 flowstate joined #salt
00:35 akhter joined #salt
00:46 terratoma joined #salt
00:59 brianfeister joined #salt
01:01 quasiben joined #salt
01:01 cpowell joined #salt
01:02 aqua^c joined #salt
01:04 akhter joined #salt
01:04 SheetiS1 joined #salt
01:11 iceyao joined #salt
01:19 dendazen joined #salt
01:20 akhter joined #salt
01:22 antpa joined #salt
01:26 djgerm1 left #salt
01:27 catpiggest joined #salt
01:27 hasues joined #salt
01:28 hasues left #salt
01:28 jeffspeff joined #salt
01:33 antpa joined #salt
01:34 hightekvagabond joined #salt
01:34 flowstate joined #salt
01:39 racooper joined #salt
01:46 quasiben joined #salt
01:49 quasiben1 joined #salt
01:51 djgerm1 joined #salt
01:51 djgerm1 is it common practice to use includes in top?
01:51 hemebond djgerm1: I don't believe you can use includes.
01:51 hemebond Except perhaps Jinja includes.
01:52 subsignal joined #salt
01:54 newjersey joined #salt
01:55 newjersey joined #salt
02:00 newjersey joined #salt
02:04 djgerm1 is it recommended to have a more verbose top file (e.g. many discreet states per target) or a more slim top file (e.g. some parent states that they themselves have many includes)?
02:04 hemebond I personally prefer a verbose or explicit top.sls.
02:05 iggy personal preference
02:05 hemebond What you're kind of describing are roles.
02:06 druonysus joined #salt
02:08 newjersey joined #salt
02:09 djgerm1 how big are big top files? :)
02:10 iggy djgerm1: if you never figured out your earlier problem (assuming we're talking about the same thing), you basically need to do `sed -i 's|^  provider: |  driver: |' /etc/salt/cloud.providers.d/*`
02:10 djgerm1 heh thanks. I renamed all the files and provider descriptions and the problem just disappeared
02:11 iggy I've seen top files range from ~10 lines (not a fan... too much magic) to maybe 500ish
02:11 djgerm1 somewhere in between sounds reasonable and legit.
02:12 iggy probably, and keep in mind no 2 depolyments are going to be the same
02:13 djgerm1 right
02:13 iggy I guess one of the downsides of SaltStack not being super opioninated on how things are done (but the upside is so, so good)
02:14 djgerm1 heh. I do hate hearing "it depends" all the damned time from saltstack employees
02:14 djgerm1 but the product is so great it's ok
02:14 capricorn_1 joined #salt
02:15 hemebond It's just one of those things you try out and change if it doesn't work.
02:15 hemebond That's why I like reading articles on how people have setup their Saltstack.
02:15 djgerm1 is there an easy way to see, without applying, all the things that would applied to a minion if you ran highstate?
02:16 hemebond Also I use Puppet at work so I can also say "not like that!" when I'm using Salt.
02:16 hemebond top_sls
02:16 hemebond show_sls
02:16 djgerm1 LOL
02:17 hemebond Sorry, that should have been show_top and show_sls
02:17 hemebond Or even show_highstate
02:17 hemebond https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.state.html
02:24 iceyao joined #salt
02:33 flowstate joined #salt
02:39 subsignal joined #salt
02:40 cyborg-one joined #salt
02:45 iggy state.highstate test=True is also popular
02:45 Vivek joined #salt
02:48 brianfeister joined #salt
02:52 josuebrunel joined #salt
02:56 quasiben joined #salt
02:57 josue joined #salt
03:01 druonysus joined #salt
03:02 evle joined #salt
03:02 cpowell joined #salt
03:04 antpa joined #salt
03:11 brianfeister joined #salt
03:17 josuebrunel joined #salt
03:35 flowstate joined #salt
03:35 Guest21642 joined #salt
03:35 Laogeodritt joined #salt
03:36 oeuftete joined #salt
03:36 iceyao_ joined #salt
03:38 iceyao joined #salt
03:42 LotR joined #salt
03:42 tkeith joined #salt
03:45 Vivek_ joined #salt
04:01 onlyanegg joined #salt
04:05 antpa joined #salt
04:07 intr1nsic joined #salt
04:08 xenoxaos joined #salt
04:12 onlyanegg joined #salt
04:13 quasiben joined #salt
04:13 rnts joined #salt
04:14 zer0def joined #salt
04:17 meekrab joined #salt
04:19 Vivek joined #salt
04:31 Vivek_ joined #salt
04:33 intr1nsic joined #salt
04:34 flowstate joined #salt
04:35 cpowell joined #salt
04:36 xenoxaos joined #salt
04:39 _JZ_ joined #salt
04:47 rdas joined #salt
04:51 Vivek_ joined #salt
05:02 kawa2014 joined #salt
05:03 ivanjaros joined #salt
05:14 Archean joined #salt
05:22 bantone saltconf?
05:25 gadams joined #salt
05:29 djgerm1 left #salt
05:31 impi joined #salt
05:32 hemebond ?
05:34 flowstate joined #salt
05:39 kshlm joined #salt
05:42 hightekvagabond joined #salt
05:42 ronrib joined #salt
05:43 jhauser joined #salt
05:46 sauvin joined #salt
05:53 zenlot6 joined #salt
05:58 Garo_ joined #salt
05:59 mosen joined #salt
06:01 dmaiocchi joined #salt
06:01 vim-zz joined #salt
06:03 spuder joined #salt
06:04 antpa joined #salt
06:09 dmaiocchi joined #salt
06:23 MikaT joined #salt
06:26 av__ joined #salt
06:36 antpa joined #salt
06:36 flowstate joined #salt
07:02 iggy it's a thing
07:04 Sammichmaker joined #salt
07:05 antpa joined #salt
07:09 Salty joined #salt
07:09 dgutu joined #salt
07:10 Salty Hey guys, how can i exclude in a git sls?
07:10 Salty i want to pull all the files except for one
07:20 antpa joined #salt
07:28 kbaikov joined #salt
07:29 hightekvagabond joined #salt
07:30 KermitTheFragger joined #salt
07:33 flowstate joined #salt
07:38 Salty Im getting this error when running state apply to pull from git: error: Your local changes to the following files would be overwritten by merge:                 stagingtest               Please, commit your changes or stash them before you can merge.
07:38 antpa joined #salt
07:43 iggy that seems fairly straightforward to me
07:47 josuebrunel joined #salt
07:48 Rumbles joined #salt
07:49 mariusv joined #salt
07:49 mariusv joined #salt
07:49 impi joined #salt
07:51 lero joined #salt
07:51 meekrab joined #salt
07:54 lpl joined #salt
07:55 Salty Yes, but im using sls. And I want it to push automatically. how do i force it to overwrite?
07:56 teatime did you have this question a few days ago?
07:56 flowstate joined #salt
07:57 Salty Yes, still stuck on this one
07:58 SheetiS joined #salt
08:01 antpa joined #salt
08:01 dyasny joined #salt
08:04 teatime if neither force_checkout nor force_reset work, then it's probably a bug
08:04 teatime but same as last time, the workaround would be to use git.reset manually
08:04 Salty I need it to be automatically, im using aws autoscale
08:05 teatime https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.git.html#salt.modules.git.reset
08:05 favadi joined #salt
08:05 teatime yes, same as I told you last time, you can call salt modules from a state .sls
08:06 teatime you could also just use cmd.run and the git command directly.
08:06 teatime https://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html
08:06 AndreasLutro Salty: what salt version are you using?
08:08 Salty 2015.8.8
08:09 antpa joined #salt
08:09 auzty joined #salt
08:10 AndreasLutro and you have both force_checkout and force_reset set to true?
08:12 s_kunk joined #salt
08:12 s_kunk joined #salt
08:13 Salty yes
08:14 antpa joined #salt
08:15 Salty I tried every combination of the following:
08:15 JohnnyRun joined #salt
08:15 Salty http://paste.ubuntu.com/15926006/
08:15 SpX joined #salt
08:17 linjan joined #salt
08:18 toastedpenguin joined #salt
08:19 ronnix joined #salt
08:19 AndreasLutro I dunno then
08:19 AndreasLutro possibly a bug, if you can create a minimal reproduction of the problem you could submit an issue for it
08:23 losh joined #salt
08:25 SpX joined #salt
08:28 ronnix_ joined #salt
08:30 antpa joined #salt
08:32 Miouge joined #salt
08:33 slav0nic joined #salt
08:35 flowstate joined #salt
08:36 cpowell joined #salt
08:38 mackripeum joined #salt
08:49 rubenb left #salt
08:50 antpa joined #salt
08:56 keimlink joined #salt
08:57 fredvd joined #salt
08:59 free_beard joined #salt
09:07 antpa joined #salt
09:23 west575 joined #salt
09:23 roock joined #salt
09:23 hax404 joined #salt
09:23 Azid joined #salt
09:23 rofl____ joined #salt
09:23 bastiandg joined #salt
09:23 hypnosb joined #salt
09:23 Edur joined #salt
09:24 hypnosb joined #salt
09:33 flowstate joined #salt
09:36 ronnix joined #salt
09:41 antpa joined #salt
09:52 colegatron joined #salt
09:55 morissette joined #salt
09:56 ravenx joined #salt
09:56 ravenx i have this in my state.sls file:     rev: {{ salt['pillar.get']('app-tool:git_branch') }}
09:56 ravenx and i want to pass a pillar to it on the command line:
09:56 ravenx to git clone the correct branch;
09:57 ravenx salt 'two' state.sls mystate pillar='{"app-tool": {"git_branch":"MANTOOL-338"}}'
09:57 antpa joined #salt
09:57 ravenx and it keeps returning:  Comment: /bin/sh: 1: Syntax error: "(" unexpected
09:57 ravenx anyone know why?
09:58 hemebond ravenx: Any change if you put an extra set of quotes around the whole pillar bit?
09:59 ravenx for the rev:  i already have it surrounded in {{  }}
09:59 hemebond I mean in your command.
10:00 ravenx so pillar='{{  ?
10:01 hemebond ya
10:02 ravenx hemebond: nope, adding it didnt' seem to help
10:03 hemebond okay, lemme whip up a test and see if I can replicate. Which version of Salt are you using?
10:03 rhalldearn joined #salt
10:03 ravenx hemebond: thanks.  i am running: salt 8.8 on master
10:04 hemebond 8.8?
10:04 ravenx and on minion: salt-minio: 5.3
10:04 hemebond Is that 2015.8.8?
10:04 ravenx corrwect
10:04 ravenx it is
10:04 antpa joined #salt
10:05 rhalldearn left #salt
10:08 hemebond I'm running 2016.3.0rc2 and it seems to have worked for me.
10:08 richhal joined #salt
10:09 hemebond What if you do a simpler test using file.managed?
10:10 ravenx perhaps i could try that, yeah.
10:10 ravenx so the syntax is correct?
10:11 ravenx can you paste me your init.sls and the command you ran
10:11 hemebond Sure.
10:11 ravenx thanks hemebond
10:12 hemebond ravenx: http://paste.debian.net/439473/
10:15 SpX joined #salt
10:17 bdrung_work joined #salt
10:19 ravenx hemebond: hmm, so the syntax isn't so different at all.
10:19 ravenx gah, this sucks.
10:19 ravenx hemebond: do you know how to write something similar in an older syntax
10:20 ravenx hemebond: i think that before pillar.get there was something similar:  https://docs.saltstack.com/en/2015.5/topics/tutorials/pillar.html
10:20 hemebond Older syntax? I would have thought it would work on most versions.
10:20 ravenx if you look at:   pillar['pkgs']['apache']
10:20 ravenx would it possible for you to make an example out of that version?
10:21 hemebond Ah, that's not really an old syntax, it's just different and works a bit differently.
10:21 ronnix joined #salt
10:21 hemebond salt['pillar.get'] has been recommended for a while now.
10:22 hemebond Otherwise you should be able to just use pillar['var1:var2'] in the state.
10:22 ravenx hemebond: sweet, imma give both a shot and see how that works out for me.
10:22 teatime oh?  that's a new one on me.
10:23 hemebond But maybe not because pillar[''] is a regular dict lookup.
10:23 teatime yes
10:23 hemebond So maybe it's pillar['var1']['var2']
10:23 AndreasLutro /bin/sh: 1: Syntax error: "(" unexpected
10:23 AndreasLutro this is probably  entirely unrelated to your pillar thing
10:28 ravenx AndreasLutro: yes that is what i'm getting
10:29 ravenx what makes you think it isn't related to pillar
10:30 linjan joined #salt
10:31 akhter joined #salt
10:33 richhal joined #salt
10:35 teatime did you paste your whole .sls anywhere?  I didn't see it.
10:36 ravenx i haven'y et.
10:36 ravenx teatime: i am trying stugff out still
10:36 ravenx give me 2 minutes and i will
10:37 cpowell joined #salt
10:38 ravenx here it is:  http://ix.io/x49/#n-LINENO
10:39 ravenx and ihave been running it like this; salt 'two' state.sls hotel-admin pillar="{'hotel-admin': {'git_branch': 'master'}}"
10:39 west575 joined #salt
10:40 ronnix_ joined #salt
10:40 teatime 13     - rev: salt['pillar.get']('super-app:git_branch')
10:40 teatime this is not in {{ }}
10:41 ravenx oaky let me try again.
10:41 amcorreia joined #salt
10:42 teatime so you're setting rev: to the literal string "salt['pillar.get']('super-app:git_branch')"
10:47 ravenx teatime: that makes sense
10:47 ravenx teatime: now that i ahve tried it
10:47 ravenx it works
10:47 ravenx thank you guys, teatime , hemebond and AndreasLutro
10:55 west575 joined #salt
11:07 eliasp joined #salt
11:13 ninkotech_ joined #salt
11:22 ronnix joined #salt
11:28 truescot joined #salt
11:30 truescot good afternoon people, can anyone tell me if there is a problem with "service.delete" for windows minions in salt minion 2015.8.3 because when i call it i get the error
11:30 truescot State 'service.delete' was not found in SLS 'server_cleanup'  Reason: 'service.delete' is not available.
11:37 borgstrom joined #salt
11:41 ronnix_ joined #salt
11:44 hemebond truescot: I don't see service.delete int he documentation. Where are you seeing it?
11:46 truescot https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.win_service.html
11:47 hemebond Ah I see. Are you calling it as an execution module?
11:47 hemebond It's not a state module.
11:47 hemebond So you should be able to call it from the command line but can't just use service.delete in a state.
11:48 truescot ahh, yea i am trying to do it in a state
11:48 hemebond Unless you call it as an execution module within the state.
11:48 quasiben joined #salt
11:48 hemebond https://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html#salt.states.module.run
11:49 truescot I just worked around it by running a powershell sc delete command anyway , was jsut wandering if it was something that should work but thanks for telling me abou the module run ability that will come in handy i am sure :)
11:49 hemebond Note the salt.states.* vs salt.modules.*
11:50 truescot yup, i understand :) is there a specific reason why there is a split between the module and state functionalities?
11:51 hemebond salt.modules are remote management and execution. salt.states manage state of the system so they do things a little differently, though usually use the execution modules to do things.
11:52 teatime I kindof wish a different name had been chosen than 'modules'.
11:52 teatime it was a point of confusion for me originally and I'm sure it is for most people.
11:52 truescot yea, what you say makes sense actually but yea modules is a funny name for it :)
11:53 teatime I geuss you can call them 'execution modules' to be explicit.
11:54 teatime it's ultimately a useful distinction.  just takes a moment to wrap your head around.
11:56 evle1 joined #salt
11:58 garphy joined #salt
12:10 tkharju joined #salt
12:12 ggoZ joined #salt
12:12 newjersey joined #salt
12:15 iceyao joined #salt
12:16 aqua^c joined #salt
12:23 west575 joined #salt
12:29 kbaikov joined #salt
12:32 hajhatten joined #salt
12:36 abednarik joined #salt
12:39 DammitJim joined #salt
12:41 toastedpenguin joined #salt
12:42 squishypebble joined #salt
12:42 toastedpenguin joined #salt
12:44 Rumbles joined #salt
12:45 gmoro joined #salt
12:52 gmoro joined #salt
12:57 truescot joined #salt
13:01 pfallenop joined #salt
13:04 hasues joined #salt
13:04 hasues left #salt
13:06 subsignal joined #salt
13:08 Xevian joined #salt
13:09 mowntan joined #salt
13:09 pfallenop joined #salt
13:11 gh34 joined #salt
13:12 quix joined #salt
13:14 abednarik joined #salt
13:14 subsigna_ joined #salt
13:16 edrocks joined #salt
13:17 racooper joined #salt
13:24 gmoro joined #salt
13:24 akhter joined #salt
13:26 mapu joined #salt
13:26 akhter joined #salt
13:26 pfallenop joined #salt
13:26 pfallenop joined #salt
13:27 den joined #salt
13:28 akhter_1 joined #salt
13:31 numkem joined #salt
13:32 protoz joined #salt
13:33 protoz_ joined #salt
13:34 jnials_ joined #salt
13:38 Rumbles joined #salt
13:42 wangofett joined #salt
13:43 ronnix joined #salt
13:43 wangofett joined #salt
13:44 abednarik joined #salt
13:44 baoboa joined #salt
13:44 jschoolcraft joined #salt
13:45 wangofett joined #salt
13:50 akhter joined #salt
13:50 flowstate joined #salt
13:54 akhter joined #salt
13:58 akhter joined #salt
14:00 Miouge joined #salt
14:02 jerredbell joined #salt
14:05 dendazen joined #salt
14:08 DammitJim joined #salt
14:11 MadHatter42 joined #salt
14:15 mowntan joined #salt
14:21 akhter joined #salt
14:23 ivanjaros joined #salt
14:26 hightekvagabond joined #salt
14:27 evle joined #salt
14:29 dmaiocchi joined #salt
14:33 akhter joined #salt
14:36 abednarik joined #salt
14:36 mowntan joined #salt
14:38 cpowell joined #salt
14:44 den left #salt
14:46 Brew joined #salt
14:47 Miouge joined #salt
14:48 dabb joined #salt
14:50 _JZ_ joined #salt
14:51 jeffspeff joined #salt
14:53 flowstate joined #salt
14:53 flowstate joined #salt
14:57 dfinn joined #salt
14:58 mowntan joined #salt
15:03 diesis joined #salt
15:04 i90rr joined #salt
15:05 diesis Hello, I'm new to salt. Just installed a debian jessie master and a windows seven minion. Executed succesfully a "salt win7x64 system.reboot", so I assume salt environmente works correctly.
15:05 macheck joined #salt
15:05 rickflare wooooo
15:05 armguy joined #salt
15:05 rickflare saltcon time baby
15:05 hal58th joined #salt
15:05 _JZ_ :)
15:07 johnkeates joined #salt
15:07 diesis I followed the guide for installing the windows software repo, but when I try to install or query a package I got the error at https://gist.github.com/GabrieleV/51eae8451ab58166b8c5ab22ff32d487
15:07 nZac joined #salt
15:08 diesis Any suggestion ?
15:08 dayid joined #salt
15:08 dayid joined #salt
15:09 druonysus joined #salt
15:12 beardedeagle joined #salt
15:15 favadi joined #salt
15:16 antpa joined #salt
15:18 mowntan joined #salt
15:18 kevops joined #salt
15:18 mowntan joined #salt
15:20 spuder joined #salt
15:23 fredvd joined #salt
15:31 BlueMonday joined #salt
15:31 BlueMonday Hello! I am running into problems bootstrapping salt on CentOS 7.
15:32 BlueMonday https://bootstrap.saltstack.com contains an older script which refers to an EPEL RPM which no longer exists
15:32 brotatochip joined #salt
15:33 BlueMonday I noticed there are two urls https://bootstrap.saltstack.com and http://bootstrap.saltstack.org
15:33 BlueMonday the .org contains a much newer version of the bootstrap salt script?
15:33 BlueMonday The documentation refers to https://bootstrap.saltstack.com though
15:34 salty_solution joined #salt
15:35 flowstate joined #salt
15:35 salty_solution SaltConf16 Today woot!!
15:35 rickflare yes buddy
15:35 rickflare im there now
15:35 rickflare salty_solution!!!!
15:36 wangofett Wish I was there :P
15:36 wangofett though I'm more of a developer, I'd still enjoy it, I'm sure ;)
15:36 hal58th Yeap, I'm here in the predictive orchestration class
15:36 rickflare me too
15:36 rickflare hal58th raise your hand
15:36 hal58th see it?
15:36 rickflare no
15:36 rickflare keep it up
15:36 Taz joined #salt
15:37 hal58th haha, dont want to look like i have a question. im second row on the right, third one in in a grey shit
15:37 hal58th shirt
15:37 Taz Im at saltconf too!
15:37 hal58th haha
15:37 bantone saltconf!
15:37 bantone I'm in intro to salt..been using it in my new role but I want to past the exam
15:37 hal58th grey/black shirt
15:37 bantone i should have got into building salt modules
15:37 bantone i may try and sneak in in the afternoon
15:37 hal58th bantone, that class is darn basic. took it last year.
15:38 jfindlay BlueMonday: that is strange, also, a new bootstrap went out yesterday
15:38 hal58th but it did help me understand a couple things, but not worth three hours
15:38 hal58th rickflare, where you at?
15:38 bantone which one?
15:38 rickflare check pm
15:38 bantone im doing intro to salt and advanced salt concepts
15:38 truescot sorry to ask such a simple question but this is doing my head in, file.recurse is clearly not the way to transfer a large number of files (6000 files at a total of 1.2gb) as it is using 15gb of memory on my salt master to transfer them to 1 machine, so what is the correct way?
15:38 Taz rickflare: is red polo third row on the left :P
15:39 truescot specifically being that i want it to make sure that no files have changed etc
15:39 salty_solution I couldn't go today. I'm going to be there the next two days. :(
15:40 salty_solution How is the venue?
15:41 bantone grand america is great!
15:41 BlueMonday @jfindlay: All of the documentation says to use https://botstrap.saltstack.com which seems to be really out of date. http://bootstrap.saltstack.org seems to be really up to date though but none of the documentation says to use it?
15:41 Taz salty_solution: its great, really enjoying it so far
15:41 rickflare dude this is the best hotel ive stayed in
15:42 rickflare better than anything in vegas
15:42 rickflare or NY
15:42 salty_solution I've always wanted to stay there
15:42 hal58th same here. its almost too nice
15:42 rickflare service is outstanding
15:42 jfindlay BlueMonday: yeah, I need to bug UtahDave about that
15:42 hal58th the food is amazing. it was soo good last year
15:43 mowntan joined #salt
15:44 bantone yeah food is always 10/10 here
15:44 rickflare we should all link up after
15:44 bantone grand america is the only 5 star hotel in salt lake city
15:44 rickflare and prep for the exam
15:45 bantone I'm down, but they give you a shot to take it immediately after the training today
15:45 Taz sure lets do it
15:45 bantone and if you dont pass it, you get another chance during the conf
15:45 bantone I missed passing by 5 points last year :(
15:45 BlueMonday @jfindlay: Thanks! I opened https://github.com/saltstack/salt-bootstrap/issues/819 to track the issue.
15:45 saltstackbot [#819]title: https://bootstrap.saltstack.com is broken for CentOS 7 | ### Description of Issue/Question...
15:46 jfindlay thanks, BlueMonday!
15:46 bantone some of the theory is a key focus in the exam.  like where things are rendered, which is rendered first
15:47 flowstate joined #salt
15:47 bantone for example if I want to push data to a pillar, is it rendered on the minion or master etc etc
15:48 flowstate joined #salt
15:48 rickflare how hard was bantone
15:48 rickflare was it
15:48 rickflare where can we find that info?
15:48 bantone its not hard, its just the fact that it's timed makes it worse
15:48 bantone 80 questions 60 minutes
15:48 bantone and its open lab / book
15:49 rickflare are you hear?
15:49 rickflare id love to pick your brain later
15:49 bantone so you can find all the info its just that you should know a good bit of it already
15:49 rickflare beers on me
15:49 bantone yea i'm in intro to salt
15:49 rickflare ok when we get out
15:49 bantone w/ virtustream/emc
15:49 rickflare lets link up
15:49 bantone sure!
15:51 TooLmaN joined #salt
15:54 truescot what do people use to transfer directories with a large number of files since file.recurse doesnt work
15:54 west575_ joined #salt
15:54 jeffspeff joined #salt
15:55 west575 joined #salt
15:59 bltmiller joined #salt
15:59 diesis Fixed my problem: I was running salt-master 2015-05 and sal-minion on windows 2015-08. Updated master to 08 and now everything works
16:00 mowntan joined #salt
16:00 repl1cant I was just deploying CentOS 7 w/salt-cloud w/o any issues
16:01 johnkeates joined #salt
16:01 repl1cant seems to use the one from bootstrap.saltstack.com
16:02 repl1cant salt-cloud -u
16:02 repl1cant [INFO    ] Starting new HTTPS connection (1): bootstrap.saltstack.com
16:03 repl1cant ran it against a centos7 instance yesterday w/o salt-cloud too
16:04 favadi joined #salt
16:05 spuder_ joined #salt
16:06 repl1cant odd, ya. wget against the rpm in that ticket doesn't work
16:06 repl1cant er s/ticket/issue
16:07 racooper Howdy. has anyone done a state module for RH/Centos authconfig?
16:09 brotatochip joined #salt
16:10 akhter joined #salt
16:11 johnkeates left #salt
16:12 repl1cant doh! something must of changed overnight because deploying CentOS via salt-cloud doesn't work anymore either
16:13 repl1cant rpm release version change, it's now epel-release-7-6.noarch.rpm
16:13 repl1cant instead of 7-5
16:17 kingscott joined #salt
16:18 ]V[ joined #salt
16:18 kingscott I added a bunch of minions to a nodegroup in /etc/salt/master and when i run 'salt -N group test.ping' i don't get a response from one of the minions in the group. the names are identical in both places. Any idea what's happening?
16:21 _JZ_ joined #salt
16:21 bantone kingscott: what's your output?
16:21 bantone and did you check the salt master logs?
16:23 kingscott haven't checked logs yet. output says minion did not return. [no response]
16:23 kingscott when i run a salt '*' test.ping it returns fine
16:24 brotatochip joined #salt
16:26 nZac joined #salt
16:27 writtenoff joined #salt
16:27 quasiben joined #salt
16:27 macheck joined #salt
16:27 quasiben joined #salt
16:27 teatime https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-bash-server-side/  <--  I love this, and it also provides further reason (as if needed) to never `curl | bash`
16:28 ageorgop joined #salt
16:32 abednarik joined #salt
16:36 akhter joined #salt
16:39 ronnix joined #salt
16:40 RandyT joined #salt
16:41 plamen joined #salt
16:42 brotatochip joined #salt
16:43 akhter_1 joined #salt
16:44 DammitJim joined #salt
16:44 impi joined #salt
16:54 amcorreia joined #salt
16:54 akhter joined #salt
16:55 kevinmm joined #salt
16:57 bltmiller joined #salt
16:58 heaje joined #salt
17:00 kevinmm Hi.  I have what I would think is a common question, but can't seem to find documentation for it.  I want to test the salt-formula formula to configure my salt-master.  I have a vagrant centos/7 box and am running the bootstrap script to install the master and minion and then run highstate (for the formula).  I can't quite get this to work.
17:00 kevinmm Right now, the bootstrap script fails because the minion key is rejected.  Shouldn't the bootstrap script take care of this, or am I missing a step?
17:01 abednarik joined #salt
17:03 hunmonk joined #salt
17:05 lero joined #salt
17:06 jeffspeff joined #salt
17:06 TyrfingMjolnir joined #salt
17:06 bantone yeah this salt UI stuff is useless for my role
17:06 aw110f joined #salt
17:06 hunmonk hey all, it appears commit 05df2e4186 broke installs on debian jessie. "from tornado.httputil import parse_response_start_line, HTTPInputError" throws an error. jessie includes the python-tornado 3.2.x series in package form, and parse_response_start_line doesn't look like it was added until 4.x. i can fix the error by upgrading tornado via pip, and, curious if this should be considered a bug, or if i should just enable the pip-based i
17:15 flowstate joined #salt
17:15 antpa joined #salt
17:17 antpa joined #salt
17:19 mavhq joined #salt
17:21 brotatochip joined #salt
17:22 jfindlay hunmonk: salt requires tornado >= 4.2 ish
17:23 hunmonk jfindlay: ok, makes sense. so would this be a bug in the salt bootstrap script then? b/c it installed the python-tornado 3.2.x package
17:24 jfindlay hunmonk: did you install with salt-cloud or run bootstrap manually on the VM?
17:24 edrocks joined #salt
17:25 keltim joined #salt
17:25 hunmonk jfindlay: i ran bootstrap manually on the VM
17:26 jfindlay hunmonk: what is the output of `bootstrap.sh -v`?
17:26 hightekvagabond joined #salt
17:26 jfindlay we made a new bootstrap release yesterday
17:27 svjness joined #salt
17:28 hunmonk jfindlay: Version 2016.04.18
17:28 hunmonk jfindlay: i pulled it down within the last 30 min
17:29 tawm04 joined #salt
17:33 jfindlay hmm
17:33 jfindlay would you mind filing a bootstrap bug?
17:33 jfindlay I tested bootstrapping debian 7 and 8 a few days ago
17:37 akhter joined #salt
17:39 svjness Heya, I have a strange issue that may or may not be salt caused. Here is the scenario: A salt state.sls update is made to iptables-persistent rules file in /etc/iptables/rules.v4, and after that, it tries to reload iptables-persistent, but it fails. Investigating the rules.v4 file, everything looks kosher.. but if I just open the rules.v4 file in an editor, make no change at all, and re-save the file,
17:39 svjness iptables-persistent reload will work fine. Somehow if salt is the last thing to touch that file, it fails to load. I've ruled out permissions or ownership issues, and encoding of the file is the same before and after I re-save the file to "fix" it.
17:40 hal58th Maybe the timestamp isn't changed when salt edits it? So then iptables-persistent doesn't know to reload? Or something along those lines
17:42 hal58th i guess research how that file works and knows when to reload?
17:42 teatime svjness: to clarify, you're saying reloading iptables-persistent manually fails, until you edit and save the file, and then it succeeds?
17:42 teatime and, the error message would be helpful.
17:42 mr_chris svjness, Is it editing and saving or just opening and resaving?
17:43 svjness Just opening and re-saving
17:43 svjness one sec, let me clean up some examples and put it in a gist or something
17:45 punkoivan joined #salt
17:45 baweaver joined #salt
17:46 s_kunk joined #salt
17:46 s_kunk joined #salt
17:47 punkoivan left #salt
17:47 mr_chris Is there a Salt equivalent for Chef's Test Kitchen?
17:49 jfindlay mr_chris: there's pchanges and state mocking
17:50 truescot joined #salt
17:50 jfindlay pchanges allows you compare what would have happened with what did happen among other things, and state mocking allows you to process out requisites to probe different permutations of your state tree
17:50 jfindlay both are new features: pchanges needs to be added to a majority of state modules
17:51 mr_chris jfindlay, Interesting.
17:51 jfindlay mr_chris: there's also salt kitchen or kitchen salt, I can't remember which, but I've never used it
17:51 mr_chris When you say state mocking, are you referring to mock=True ?
17:51 jfindlay mr_chris: yes
17:51 mr_chris I'm not finding much on pchanges.
17:52 jfindlay mr_chris: I'm giving a presentation at saltconf on state mocking on Thursday
17:52 truescot i asked earlier but got no replies so am asking again, how do people manage file transfers of directories with a lot of files in them as files.recursed doesnt work for many files i.e 6000 files totaling 1.2gb
17:52 jfindlay yeah, not many modules have been implemented with pchanges yet
17:52 jfindlay truescot: I think the sensible thing is to use rsync
17:53 mr_chris jfindlay, Thanks. Good luck with you talk.
17:53 mr_chris *your
17:53 jfindlay mr_chris: thanks
17:53 jfindlay truescot: there's a state module for rsync
17:54 truescot yea, thats the conclusion i am coming to, my thought was to set up an rsync server and use a standalone binary on my windows server and use a saltstack cmd.run to trigger the sync, does that sound about right to you?
17:55 baweaver joined #salt
17:55 truescot yea, i saw the rsync module, but i am guessing that doesnt work on windows minions, am i right?
17:55 jfindlay truescot: I personally would try the rsync state module first if only to take advantage of the extra niceties of the state system
17:56 truescot yea, i will give that a go and see if it works on windows
17:57 truescot although i just noticed its New in version 2016.3.0.= , dounbt i will be able to upgrade my entire environment any time soon :(
17:59 tedski salt.states.dockerng in 2015.8.8 seems to have broken my volumes (binds) when upgrading from 2015.8.7
17:59 tedski i can't seem to find any issues in github to match
17:59 tedski and i doubt i'm the first to discover this
18:00 protoz joined #salt
18:02 tedski uhh, maybe i need more coffee
18:02 tedski because everything i just said is false
18:04 svjness okay, sorry it took me while to format this and hide all the replace some info with blah stuff.  https://gist.github.com/wallentx/1d3571c41c28b33434d6b3122ed048e8
18:05 flowstate joined #salt
18:05 svjness That's the entire rundown of what i'm going through, from salt changing the file, to me fixing the file with black magick apparently
18:06 kevinquinnyo joined #salt
18:07 lero joined #salt
18:07 svjness and i did confirm that salt is updating the timestamp of the file when it modifies it
18:08 kevinquinnyo In a reactor is it possible for me to have to 'local'state.sls' calls, with one having a requisite of the other one?  If so, what do I use for the require key?  ie: {'require': [{'local': 'Name of my other local.state.sls here'}]}  ?
18:13 GreatSnoopy joined #salt
18:14 hunmonk jfindlay: issue filed, https://github.com/saltstack/salt-bootstrap/issues/820
18:14 saltstackbot [#820]title: Bootstrap installs outdated version of python-tornado package on Debian Jesse | It appears commit 05df2e4186 in the Salt repository broke installs on Debian Jessie....
18:15 jeffspeff joined #salt
18:17 akhter joined #salt
18:19 nate_c joined #salt
18:26 svjness If anyone has any ideas as to what i can do further.. such as checking any logs, or inspecting the file in some other way, I'd be happy to try and investigate further
18:28 teatime the file is one byte longer after you re-save it
18:28 teatime perhaps it didn't end in a newline originally?
18:29 teatime you could test that easily w/ wc -l before/after
18:30 teatime there's probably more detail in the system logs, also.  /var/log or journalctl
18:34 dyasny joined #salt
18:34 edrocks joined #salt
18:36 josuebrunel joined #salt
18:40 cpowell joined #salt
18:40 svjness so wc -l does show that it's adding an additional line after editing
18:40 akhter joined #salt
18:40 svjness or rather, after opening and saving
18:41 svjness i just updated my commit to the file it's diffing off of, and added a newline the end of the file
18:42 teatime yup.
18:42 teatime in unix, (non-empty) files should always end in \n... POSIX says \n is the line terminator, not line separator.
18:42 svjness and it's now working without issues.. so it's like if there isn't a newline at the end of the file that it's doing the diff from, when it writes the diff.. perhaps it's not leaving the file in a usable state
18:42 teatime it's rarely a big deal, but occassionally breaks things.
18:43 svjness interesting
18:43 teatime especially if it's concating files together somewhere; that's the most common situation where you'd see differing behavior.
18:44 teatime but it could just be iptables-restore being strict about what it accepts.
18:45 svjness thanks! I'll newline all the things from now on
18:46 hunmonk left #salt
18:47 aw110f joined #salt
18:48 hightekvagabond joined #salt
18:52 akhter joined #salt
18:56 truescot_ joined #salt
18:58 hal58th joined #salt
19:00 akhter_1 joined #salt
19:02 akhter_ joined #salt
19:03 jgelens joined #salt
19:04 cyborg-one joined #salt
19:04 SheetiS joined #salt
19:04 akhter_ joined #salt
19:06 akhter_1 joined #salt
19:08 _JZ_ joined #salt
19:09 druonysus joined #salt
19:09 dmaiocchi joined #salt
19:09 hightekvagabond joined #salt
19:10 jfindlay truescot: sorry, I should have seen that :)
19:11 akhter joined #salt
19:12 jfindlay you can also put together a stateful cmd.run with onlyif and/or unless
19:16 akhter joined #salt
19:16 akhter joined #salt
19:21 akhter joined #salt
19:23 ignarps joined #salt
19:23 flowstate joined #salt
19:23 keimlink joined #salt
19:24 akhter joined #salt
19:26 akhter joined #salt
19:26 morissette joined #salt
19:26 baweaver joined #salt
19:28 jeffspeff joined #salt
19:31 ajw0100 joined #salt
19:32 abednarik joined #salt
19:33 flowstate joined #salt
19:39 bantone anyone here take the tuning saltstack class?
19:44 druonysus joined #salt
19:46 v0rtex joined #salt
19:48 baweaver joined #salt
19:48 flowstate joined #salt
19:51 ajw0100 joined #salt
19:53 smcquay joined #salt
19:54 ajw0100_ joined #salt
19:54 wangofett joined #salt
19:55 hightekvagabond joined #salt
19:56 akhter joined #salt
19:57 abednarik joined #salt
19:59 richhal joined #salt
19:59 akhter joined #salt
20:05 baweaver joined #salt
20:08 DammitJim joined #salt
20:09 DammitJim so, when I'm defining pillar data
20:09 DammitJim do I always have to do it in a key: value pair?
20:10 babilen DammitJim: Yeah
20:10 kevinquinnyo DammitJim: it's just a python dict
20:10 DammitJim right
20:10 DammitJim so, how do I get around making a list of users?
20:10 kevinquinnyo but the values can of course be any nested list of dicts, etc
20:10 AndreasLutro the "root" level has to be a key/value mapping, the rest can be whatever
20:10 babilen (they are essentially https://docs.python.org/2/tutorial/datastructures.html#dictionaries)
20:10 DammitJim oh
20:10 DammitJim silly me
20:11 DammitJim so, the pillar could look like: rail_users: {'jack', 'guido'}
20:11 DammitJim ?
20:11 babilen DammitJim: You can obviously use something like: {'users': ['foo', 'bar', 'baz']} (or "users: - foo - bar - baz")
20:11 morissette joined #salt
20:11 DammitJim how do I access those values?
20:11 babilen {rail_users: ['jack', 'guido']}
20:11 bantone yeah I think a dictionary in jinja works best..
20:11 bantone from what I've seen
20:12 DammitJim for user in rail_users.iteritems() ?
20:12 kevinquinnyo for user, user_data in rail_users.iteritems():
20:12 kevinquinnyo if they are indexed by a username, that would make sense
20:12 babilen For my example if would be "for user in salt['pillar.get']('rail_users', [])"
20:12 AndreasLutro dictionaries are better in my opinion because they're more predictable in terms of merging and overriding
20:12 DammitJim the I loop through user_data?
20:13 babilen DammitJim: I'd use something like {'rails_users': {'foo': { FOO_SETTINGS }, 'bar': { BAR_SETTING }}
20:13 morissette joined #salt
20:14 babilen That allows for easy iteration (cf. users-formula) and per-user settings
20:14 kevinquinnyo if it were like:  {'rail_users': {'jack': {'full_name': 'Jack Jackson', 'password': 'p@ssw0rd'}}
20:14 kevinquinnyo yeah
20:14 babilen So something like kevinquinnyo's "for user, user_settings in rail_users.iteritems()"
20:15 kevinquinnyo this is why i personally don't like the yaml abstractions -- they make you forget that you're just ultimately dealing with standard python data structures
20:15 babilen Absolutely
20:16 kevinquinnyo i find using the #!py renderer to be the easiest to understand, especially when the data structures get more complicated than key: value
20:18 akhter_1 joined #salt
20:18 ajw0100 joined #salt
20:19 DammitJim babilen and kevinquinnyo ... can I do: {'rail_users': {'jack': {'full_name': 'Jack Jackson'}, 'mark': {'full_name': 'Mark Markus'}}
20:19 DammitJim what a mess
20:20 AndreasLutro yes you can
20:20 AndreasLutro and that's hardly a mess
20:20 kevinquinnyo it looks a lot cleaner when it's indented properly
20:20 DammitJim I think I'm just going to do it like:
20:20 DammitJim rail_users:
20:20 DammitJim user1: jack
20:20 DammitJim user2: mark
20:20 aqua^c joined #salt
20:20 DammitJim user3: AndreasLutro
20:21 DammitJim there is nothing wrong with that, right?
20:21 babilen That is indeed a possibility, but you won't be able to ever incorporate other user information (their age, favourite beer, ...) in there
20:21 kevinquinnyo why have the keys user1, user2, user3
20:21 brianfeister joined #salt
20:21 AndreasLutro you might run into issues later on if you need to add more user fields than the full name later on
20:21 kevinquinnyo if it's just a list, just make it a list
20:21 babilen I think that's the usernames and the 'jack' the full name
20:22 kevinquinnyo oh
20:22 DammitJim oh, can I have:
20:22 DammitJim rail_users:
20:22 DammitJim user: jack
20:22 DammitJim user: mark
20:22 DammitJim user: AndreasLutro
20:22 DammitJim ?
20:22 babilen no
20:22 AndreasLutro no
20:22 AndreasLutro a mapping can't have duplicate keys
20:22 DammitJim right, that's why I have user1, user2, etc
20:22 babilen That uses the same key for all of them
20:22 DammitJim you see, all I'm doing is a list
20:22 kevinquinnyo DammitJim: if it's just a list, then just do:
20:22 kevinquinnyo rail_users:
20:22 kevinquinnyo - jack
20:23 kevinquinnyo - mark
20:23 DammitJim oh really?
20:23 kevinquinnyo i think that's the correct yaml syntax
20:23 AndreasLutro yep
20:23 DammitJim and I can just do a: for user in rail_users.iteritems()
20:23 DammitJim ?
20:23 AndreasLutro iteritems is a dict method
20:23 babilen You need distinct keys .. I'd use {'rail_users': {'USERNAME': {'full_name': FULLNAME, ....}}
20:23 kevinquinnyo for user in rail_users:
20:23 brotatochip joined #salt
20:24 babilen Which brings us back to the initial suggestion of {'users': ['foo', 'bar', 'baz']} (or "users: - foo - bar - baz")
20:24 DammitJim for user in rail_users()
20:24 kevinquinnyo nope
20:24 DammitJim got it
20:24 kevinquinnyo heh
20:24 kevinquinnyo remove the ()
20:24 DammitJim really?
20:24 DammitJim wow
20:24 DammitJim that's simple!
20:24 kevinquinnyo that will make python thing rail_users() is a function being executed
20:24 babilen for user in salt['pillar.get']('users', [])
20:25 DammitJim oh yeah, pillar.get
20:25 kevinquinnyo DammitJim: you should start using the python interpreter from the command line to test things quickly, build little lists and dictionaries and see how you iterate things
20:25 kevinquinnyo if you just type python from the command line on a server you go into the python interpreter
20:26 DammitJim you know what's funny?
20:26 DammitJim I've done that
20:26 DammitJim but in my brain, I have a disconnect between python
20:26 kevinquinnyo i do it all the time ;)
20:26 DammitJim and using pillar.get
20:26 DammitJim and things like that
20:26 kevinquinnyo yep i know what you mean
20:27 DammitJim thanks guys
20:27 DammitJim this is a simple exercise
20:27 DammitJim I don't know why I complicated it
20:29 aharvey joined #salt
20:30 DammitJim different question
20:30 DammitJim is there a reason why my master log isn't updating?
20:30 DammitJim the last entry is from last night
20:30 babilen Probably
20:30 babilen Maybe there's nothing to report?
20:31 AndreasLutro or this https://github.com/saltstack/salt/issues/13558
20:31 saltstackbot [#13558]title: Minion sometimes stops logging after logrotate | It appears that after a logrotate has occurred the minion stops logging:...
20:31 irctc182 joined #salt
20:32 DammitJim it's the master in this case
20:32 irctc182 Hello, I keep getting "Error deleting fd from IOLoop"  when running highstate
20:33 DammitJim dammit... back to yesterday's question
20:33 DammitJim it's weird that /etc/shadow has a password hash as: !!
20:34 babilen irctc182: Could you elaborate on that? Do you have an idea which state might cause that? What is the exact output and what it your command? (and so on)
20:35 antpa joined #salt
20:35 salty_solution joined #salt
20:36 ronnix joined #salt
20:38 irctc182 babilen: sure, I'm trying to get the master working with svnfs_remotes.  To test, I'm running "salt '*' state.highstate test=True" and the error that returns is https://gist.github.com/anonymous/865b834b5a9da13aba1fefd6543eb58f
20:40 aw110f joined #salt
20:40 babilen Haven't touched svnfs at all
20:41 cpowell joined #salt
20:44 ZiLi0n joined #salt
20:46 abednarik joined #salt
20:47 ZiLi0n hello everyone, not sure how to get right the sintax to do a conditional with grains in a states. I want to check if selinux is enabled, and if so then set it to permissove. I am trying as: {% if salt['grains.get']('selinux).enabled == True %} Basically I want to set selinux to permissive only if it is not disabled already (I am getting error whten it is disabled and then a states try to set it to permissive)
20:48 wangofett joined #salt
20:48 flowstate joined #salt
20:49 ZiLi0n cool, ok, it seems the syntax above is correct. Thanks!
20:49 wangofett joined #salt
20:53 garphy joined #salt
20:58 zer0def joined #salt
21:01 Eric____ joined #salt
21:04 Eric____ Hi all, I try to use pkg.install on a windows minion, this computer is behind an http proxy and it seems it can't download msi files, is there a way to specify http proxy?
21:04 Eric____ error is :  MinionError: Error: HTTP 599: Timeout reading http://download.microsoft.com/download/B/4/1/B4119C11-0423-477B-80EE-7A474314B347/NDP452-KB2901954-Web.exe
21:05 hemebond Eric____: I thought you could specify a system-wide proxy in Windows.
21:09 keimlink joined #salt
21:12 Eric____ proxy is set in internet settings
21:13 hemebond In Internet Explorer? I'm not sure those are system-wide.
21:13 hemebond Are you using group policy to configure your servers?
21:13 brotatochip joined #salt
21:14 Eric____ yes in IE, maybe a global env like on unix? i will try with http_proxy
21:14 Eric____ I'am not using group policy
21:15 hemebond http://superuser.com/a/288065
21:16 Zuriel joined #salt
21:16 hemebond http://superuser.com/a/375525
21:17 Zuriel evening, can anyone point me in the direction of required "distfiles" for building Windows MSIs for the salt-minion?
21:21 Eric____ I try to set with netsh but I have the same error
21:22 nZac joined #salt
21:23 hemebond The develop/unreleased version of Salt minion has support for HTTP proxies.
21:23 hemebond See proxy_host at https://docs.saltstack.com/en/develop/ref/configuration/examples.html#example-minion-configuration-file
21:24 hemebond If you set the proxy with netsh does it work when doing stuff via a Python console?
21:24 bastiandg joined #salt
21:26 Agustin_ joined #salt
21:26 hemebond Not sure why they added a setting to the minion instead of using a system-wide setting but hey.
21:27 Agustin_ Hi guys!
21:27 hemebond Hi Agustin_!!
21:27 Agustin_ I have a problem with requirements
21:28 Agustin_ Can you give me a hand?
21:28 Agustin_ the problem is with "watch"
21:28 hemebond If you ask, and someone knows how to help, I'm sure they will :-)
21:28 Garo_ joined #salt
21:28 akhter joined #salt
21:28 Agustin_ i know. people here is always nice :D
21:28 Agustin_ I'll go ahead and describe my problem
21:29 josuebrunel joined #salt
21:29 Agustin_ I want to restart sensu-client everytime i deploy new checks
21:29 UForgotten joined #salt
21:29 Agustin_ so i added this to my state
21:30 teatime ... use a pastebin service ...
21:30 aw110f joined #salt
21:30 Agustin_ yes
21:30 Agustin_ \gist
21:30 onlyanegg joined #salt
21:31 Eric____ hemebond: thanks for yours ideas I will try to look that, I have to go, bye
21:31 Agustin_ I added this
21:31 Agustin_ https://gist.github.com/Northwood128/3c8120617fddda4382b29c3829c9762e
21:32 Agustin_ I read that globs can be used like this to watch for changes in the directory
21:32 Agustin_ however, this is what I get
21:32 Agustin_ https://gist.github.com/Northwood128/30a4bf56dfc32cafd056f6688551e1a3
21:32 hemebond Agustin_: Are you managing those files using Salt?
21:32 teatime no; you can't watch configured artifacts like files/directories, you can only watch salt states.
21:33 hemebond You can't just watch files on the file system, you can only watch states.
21:34 Agustin_ mmm
21:34 patrek joined #salt
21:34 Agustin_ ohh you mean the files
21:34 Agustin_ yes, those are managed by salt
21:34 hemebond Can you update your Gist with the states for (some of) those files?
21:35 Agustin_ https://gist.github.com/Northwood128/cf6c2342f2964b0318fc9e2c2080d3f5
21:35 Agustin_ thats the complete state
21:35 * teatime is suprised to learn that the glob syntax does exist... man, that's bound to confuse people even worse who want to watch files/directories.
21:36 hemebond Agustin_: There's nothing in that Gist for a file in /etc/sensu/conf.d/
21:36 hemebond I don't think it can watch every file when recursing out like that.
21:36 hemebond What happens if you add one particular file?
21:36 Agustin_ mmm i see a sensu-conf-dir there
21:37 Agustin_ it uses file.recurse
21:37 hemebond Correct, but there's no specific file.
21:37 hemebond Or rather, no file state that points to a file under conf.d/
21:37 Agustin_ that's cause file.recurse, should watch all files in that diw
21:37 hemebond Just checking issues and it looks like it should work for recurse too.
21:37 Agustin_ dir
21:38 Agustin_ https://docs.saltstack.com/en/getstarted/config/files.html
21:38 hemebond What if you change your watch to point to sensu-conf-dir
21:38 teatime I don't think your glob will match anything 'cause it should match against state ids, and none match '/etc/sensu/conf.d/*' ... '/etc/sensu/conf.d*' would match, but you should probably just use '/etc/sensu/conf.d' ?   just guessing.
21:39 quix joined #salt
21:39 hemebond Or "/etc/sensu/conf.d" as teatime mentioned.
21:39 Agustin_ let me see
21:39 hemebond You should really use the state ID declaration where possible, I think.
21:39 teatime you still will not get triggers when the files change outside of salt; only if the salt state changes them.
21:39 hemebond You generally see file paths because in general people use the file path as the ID declaration.
21:42 Agustin_ i think i get the idea mmm
21:42 Agustin_ Let me see if this is ok
21:42 Agustin_ re writing the states
21:46 Zuriel No takers on MSI build problems?
21:46 macheck_ joined #salt
21:48 macheck joined #salt
21:54 aharvey joined #salt
21:55 teatime Anyone use https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.data.html or anything that serves a similar purpose.
21:55 teatime been thinking about it for a couple of things, but perhaps I should just use mine even for minion-local data.
21:57 whytewolf humm. most things that are avalible through mine can be grabbed during the jinja [or template] step anyway.
21:57 Vivek joined #salt
21:57 Garo_ joined #salt
21:58 whytewolf [well for "local" mine anyway
21:58 whytewolf ]
21:58 west575 joined #salt
22:00 LotR joined #salt
22:00 macheck joined #salt
22:01 Agustin_ like this?
22:01 Agustin_ https://gist.github.com/Northwood128/cf6c2342f2964b0318fc9e2c2080d3f5
22:01 dfinn joined #salt
22:03 josuebrunel joined #salt
22:03 hemebond Looks okay to me. Does it work?
22:04 tkeith joined #salt
22:06 williamthekid joined #salt
22:09 Agustin_ testing. My network is working horribly today
22:09 macheck joined #salt
22:10 antpa joined #salt
22:11 Agustin_ yes
22:11 Agustin_ it works
22:13 druonysus joined #salt
22:14 kows joined #salt
22:22 akhter joined #salt
22:23 ewrwerew joined #salt
22:26 intr1nsic joined #salt
22:28 catpiggest joined #salt
22:29 bytejumper joined #salt
22:36 truescot joined #salt
22:37 brianfeister joined #salt
22:39 brianfeister joined #salt
22:40 hightekvagabond joined #salt
22:41 zenlot6 joined #salt
22:41 cpowell joined #salt
22:42 linjan joined #salt
22:44 whatever_sd_ joined #salt
22:45 _JZ_ joined #salt
22:48 xenoxaos joined #salt
22:50 murrdoc joined #salt
22:53 baweaver joined #salt
22:54 _JZ__ joined #salt
22:55 murrdoc jfindlay: https://github.com/saltstack/salt/pull/32665
22:55 saltstackbot [#32665]title:  Master configuration "pillar_merge_lists" has no effect #30809 | ### What does this PR do?...
22:55 murrdoc how do i get the tests to re run
23:04 wych joined #salt
23:10 murrdoc ?
23:16 duckfez joined #salt
23:17 amcorreia joined #salt
23:22 whatever_sd_ joined #salt
23:28 kevinquinnyo1 joined #salt
23:31 macheck_ joined #salt
23:31 edrocks joined #salt
23:35 lemur joined #salt
23:35 djgerm1 joined #salt
23:36 djgerm1 so… i did a salt-cloud -m mymap.map and it built my minions just fine… but salt-minion didnt get installed
23:37 djgerm1 and I dont understand why…
23:37 hemebond djgerm1: Do you have the bootstrap.sh script in /etc/salt/cloud.deploy.d/?
23:37 hemebond Have you done salt-cloud -u to fetch/upgrade it?
23:37 djgerm1 oh….
23:38 hemebond Also make sure the SSH key you're using is available to your user.
23:40 djgerm1 huh…. salt-cloud -u… I guess…. weird I dont recall ever having to do it
23:41 hemebond I believe it's a regression.
23:41 hemebond There is an issue open for it.
23:41 djgerm1 AH
23:41 qman__ joined #salt
23:42 rideh joined #salt
23:44 nomad_fr joined #salt
23:45 Vye joined #salt
23:45 djgerm1 gosh, that was confusing
23:46 qman__ joined #salt
23:47 edulix joined #salt
23:47 mrMute joined #salt
23:47 jor joined #salt
23:48 kuromagi joined #salt
23:48 smkelly joined #salt
23:51 jcockhren joined #salt
23:55 Castor__ joined #salt
23:58 coolnay309 joined #salt
23:59 aqua^c joined #salt

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