Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-04-28

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

All times shown according to UTC.

Time Nick Message
00:04 tobiasBora joined #salt
00:10 petems joined #salt
00:11 moy joined #salt
00:11 Awesomecase joined #salt
00:15 m0nky joined #salt
00:16 armyriad joined #salt
00:17 scoates joined #salt
00:20 jdipierro joined #salt
00:22 sh123124213 joined #salt
00:49 jdipierro joined #salt
00:51 PatrolDoom joined #salt
01:00 gmoro_ joined #salt
01:02 nickadam joined #salt
01:08 pipps joined #salt
01:20 hoonetorg joined #salt
01:29 prg3 joined #salt
01:29 jas02 joined #salt
01:32 nikdatrix joined #salt
01:41 zerocoolback joined #salt
01:49 ilbot3 joined #salt
01:49 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.6, 2016.11.4 <+> Support: https://www.saltstack.com/support/ <+> SaltStack Webinar on Carbon, Nitrogen, and Enterprise 5.1 on May 18, 2017 https://goo.gl/PvsOvQ <+> 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:59 PatrolDoom joined #salt
02:00 DoomPatrol joined #salt
02:01 PatrolDoom joined #salt
02:16 om2 joined #salt
02:20 pipps joined #salt
02:23 om2 joined #salt
02:23 pipps joined #salt
02:33 antpa joined #salt
02:41 pipps joined #salt
02:44 evle joined #salt
02:45 onlyanegg joined #salt
03:15 hoonetorg joined #salt
03:25 onlyanegg joined #salt
03:30 antpa joined #salt
03:32 nikdatrix joined #salt
03:36 antpa joined #salt
03:37 wendall911 joined #salt
03:43 jas02 joined #salt
03:49 fracklen joined #salt
03:52 tharkun_ joined #salt
04:34 Bock joined #salt
04:38 Bock joined #salt
04:39 Praematura joined #salt
04:48 evle joined #salt
05:03 onlyanegg joined #salt
05:19 Ricardo1000 joined #salt
05:21 preludedrew joined #salt
05:33 nikdatrix joined #salt
05:46 sh123124213 joined #salt
06:01 antpa joined #salt
06:01 jas02 joined #salt
06:12 jhauser joined #salt
06:13 antpa joined #salt
06:26 jas02 joined #salt
06:30 aldevar joined #salt
06:41 davromaniak joined #salt
06:43 ahrs joined #salt
06:54 ronnix joined #salt
06:56 fracklen joined #salt
06:57 sh123124213 joined #salt
06:59 sh123124213 joined #salt
06:59 do3meli joined #salt
07:01 felskrone joined #salt
07:06 keldwud joined #salt
07:06 keldwud joined #salt
07:26 Udkkna joined #salt
07:26 zerocoolback joined #salt
07:29 jdipierro joined #salt
07:31 ople joined #salt
07:34 nikdatrix joined #salt
07:35 JohnnyRun joined #salt
07:35 do3meli left #salt
07:48 jas02 joined #salt
07:51 antpa joined #salt
07:56 o1e9 joined #salt
07:59 cyborg-one joined #salt
07:59 pbandark joined #salt
08:01 mikecmpbll joined #salt
08:03 geomacy joined #salt
08:16 s_kunk joined #salt
08:25 colttt joined #salt
08:26 ronnix joined #salt
08:33 s_kunk joined #salt
08:34 gmocanu joined #salt
08:36 zerocoolback joined #salt
08:41 JohnnyRun joined #salt
08:49 nikdatrix joined #salt
09:04 mpanetta joined #salt
09:12 nutcase_ joined #salt
09:12 nutcase_ Good afternoon
09:14 candyman88 joined #salt
09:16 nutcase_ Im hammering my head trying to get my state to work. Anyone that can have a look?
09:16 nutcase_ script: https://gist.github.com/anonymous/72331947ad9bb381c06908dda1affc7b#file-gistfile1-txt
09:17 nutcase_ ---
09:17 nutcase_ Data failed to compile: ----------     ID ubuntu-verion-packets in SLS repos.ubuntu is not a dictionary
09:24 Neighbour nutcase_: What is the 'osrelease' grain on the minion you're getting this error?
09:31 _JZ_ joined #salt
09:38 mat_ mmm, in a schedule, if I use, say, seconds: 60 splay: 60, will it pick random values for each minion, or will it space them evenly, or… ?
09:42 evle joined #salt
09:42 Trauma joined #salt
09:44 rdas joined #salt
09:54 Reverend can one do an 'exit' in jinja?
09:54 Reverend {% exit %}?
09:57 Neighbour Reverend: No, but you can add a test.fail_without_changes-state :)
09:58 Reverend what the fuck is that
09:58 Reverend xD
09:58 Neighbour https://docs.saltstack.com/en/latest/ref/states/all/salt.states.test.html#salt.states.test.fail_without_changes
10:00 yuhl______ joined #salt
10:00 antpa joined #salt
10:06 CDuv joined #salt
10:09 CDuv Hello, I'm not using Salt but as I was looking for a non-AD way to define/enforce Windows settings (including password complexity) on Windows 7-8-10 machines, I found salt.states.win_lgpo which seems to do the tick.
10:09 CDuv But I cannot confirm it works on Windows 7, 8 and 10, do you have any pointers for that?
10:10 jas02 joined #salt
10:18 nutcase_ Neighbour: osrelease is 16.04
10:18 Reverend Neighbour: sorry- im writing a reactor... so I kinda want to exit out if some of the logic fails
10:19 antpa joined #salt
10:32 mat_ so, nobody understands what splay does ?
10:33 Rumbles joined #salt
10:40 dwfreed joined #salt
10:41 Neighbour nutcase_ '16.04' is not <= '16*' :)
10:42 Neighbour (I'm not sure jinja even does wildcard-matching)
10:46 legreffier Neighbour: alphabetical sorting ain't maths.
10:52 Tanta joined #salt
10:52 cyborg-one joined #salt
10:55 cyteen joined #salt
10:55 nutcase_ Neighbour: i know... It should not execute that part. So its correct.
10:57 candyman89 joined #salt
10:57 Neighbour nutcase_: but then you have a syntax error...you have an id, ending with ':', but no data after it
10:58 Neighbour nutcase_: Put line 26 inside the if-statement as well
10:59 nutcase_ ok
11:00 nutcase_ Data failed to compile: ----------     No function declared in state 'service' in SLS u'repos.ubuntu' ----------     State 'ubuntu-service-running' in SLS 'repos.ubuntu' is not formed as a list
11:01 Neighbour You should check if those if-statements actually match like you think they are
11:01 Neighbour because it looks like none of them were applied, resulting in a service-function without a name
11:02 Neighbour nutcase_: On the other hand, maybe it's just the "running:" without a value after it
11:07 nutcase_ Neighbour: Thank you for noticing the "running:"
11:08 nutcase_ Fixed that.
11:08 lorengordon joined #salt
11:08 Neighbour still getting errors?
11:09 nutcase_ Data failed to compile: ----------     No function declared in state 'service' in SLS u'repos.ubuntu' ----------     State 'ubuntu-service-running' in SLS 'repos.ubuntu' is not formed as a list
11:09 nutcase_ Wrong!
11:09 nutcase_ Data failed to compile: ----------     State 'ubuntu-service-running' in SLS 'repos.ubuntu' is not formed as a list
11:11 Neighbour nutcase_: Could you replace the "{% if" with "{%- if"?
11:11 Neighbour (in all cases)
11:11 nutcase_ sure
11:12 nutcase_ Data failed to compile: ----------     State 'ubuntu-service-running' in SLS 'repos.ubuntu' is not formed as a list
11:13 Neighbour hmm, could you update the gist with what you have now?
11:14 nutcase_ https://gist.github.com/anonymous/f2d3fd4110ce3898f507c4dbcece5f7b#file-gistfile1-txt
11:14 Neighbour btw, {%- removes all whitespace and newlines in front of the {%-marker. That should avoid unnecesary newlines, since the newline after %} will still be there
11:14 lorengordon joined #salt
11:14 CrummyGummy joined #salt
11:16 Neighbour Ah, there it is...you have "service:\n - running" (lines 54,55 and 69,71), but it should be "service.running:"
11:16 Neighbour wonder why I didn't see that earlier...hmm
11:19 nutcase_ Yay it works :)
11:20 Neighbour good :)
11:20 DanyC joined #salt
11:25 nutcase_ Thank you.
11:27 antpa joined #salt
11:28 ProT-0-TypE joined #salt
11:28 Neighbour np
11:31 jdipierro joined #salt
11:33 sp0097 joined #salt
11:34 dal_ joined #salt
11:37 asyncsec joined #salt
11:48 promorphus joined #salt
11:51 zerocool_ joined #salt
11:55 Deliant joined #salt
11:57 Praematura joined #salt
12:10 Puckel_ joined #salt
12:17 numkem joined #salt
12:24 ronnix joined #salt
12:24 thinkt4nk joined #salt
12:32 colttt joined #salt
12:42 hemebond left #salt
12:43 numkem joined #salt
12:50 Ricardo1000 joined #salt
12:56 nicksloan joined #salt
13:01 zerocoolback joined #salt
13:05 michelsen joined #salt
13:05 johnkeates joined #salt
13:06 numkem joined #salt
13:09 michelsen joined #salt
13:11 brousch__ joined #salt
13:12 johnkeates i have a pillar top file with only 3 lines in it, and it's not working with a non-descriptive error message
13:12 johnkeates this makes me sad. i thought non-descriptive error messages were fixed
13:18 mat_ Is it possible with a file.managed to concatenate two sources ?
13:19 Brew joined #salt
13:20 Tanta joined #salt
13:20 jas02 joined #salt
13:20 johnkeates yes
13:20 johnkeates you can use a list instead of a single source
13:21 mat_ mmm, I thought the list was only taking the first one that existed
13:21 mat_ must have misread
13:21 ProT-0-TypE joined #salt
13:22 mat_ mmm, the doc says "The source parameter can be specified as a list. If this is done, then the first file to be matched will be the one that is used."
13:22 zerocoolback joined #salt
13:22 cyteen joined #salt
13:23 johnkeates in that case, use append and a jinja loop
13:24 mat_ oh, I missed file.append
13:24 mat_ thaks
13:24 mat_ thanks
13:26 qman__ joined #salt
13:28 antpa joined #salt
13:30 mugundan joined #salt
13:31 mugundan How to get service status for apache running in minion
13:36 sjorge joined #salt
13:39 sknebel joined #salt
13:39 racooper joined #salt
13:43 johnkeates service module
13:45 spicyJalepeno morning ya'll
13:45 spicyJalepeno well, morning here
13:46 spicyJalepeno does anyone here use engines? what types of things do people usually use engines for?
13:46 benner why there is no 2016.11.4 for Ubuntu 12.04?
13:47 spicyJalepeno benner: 12.04 EOL, 2016.11.3 was last release for 12.04
13:47 spicyJalepeno i just went ahead and upgraded my dev box to 16.04 and 2016.11.4
13:48 benner it's easy for 1 box :-)
13:48 spicyJalepeno heh, good point
13:49 masterkorp joined #salt
13:49 masterkorp hello
13:49 spicyJalepeno luckily i only have 1 in prod that needs upgraded as well
13:50 masterkorp So do you guys have experience running the salt-master on a docker container?
13:51 benner spicyJalepeno: I gave ~10k still on...
13:52 spicyJalepeno oh dang
13:53 benjiale[m]1 joined #salt
13:54 masterkorp I am having trouble running the salt-key from my machines
13:54 masterkorp I got salt master running on a container (as root) and exposed the api ports to my machine
13:57 masterkorp and now trying to run salt-key I get this error -> % salt-key
13:57 masterkorp CRITICAL: Salt configured to run as user "root" but unable to switch.
13:57 masterkorp any ideias
13:57 masterkorp ?
13:59 edrocks joined #salt
14:03 masterkorp Also, what is the prefered web interface nowadays?
14:04 johnkeates none
14:04 johnkeates also, containers suck
14:06 zerocoolback joined #salt
14:09 jdipierro joined #salt
14:10 amcorreia joined #salt
14:12 stooj joined #salt
14:15 nutcase_ Anyone that can help me? I cant get my formulas to work... Actually.... No formulas work.
14:15 masterkorp i was expecting to hear that, unfortunellay
14:15 masterkorp but oh well ...
14:17 gtmanfred masterkorp: the only really recommended web interface is salt enterprise or suse manager 3. I hear goodish things about saltpad
14:18 cmarzullo Still praying for the ES master job cache returner to get fixed.
14:19 Rumbles joined #salt
14:19 CDuv left #salt
14:22 gtmanfred cmarzullo: is there an open issue about it?
14:22 cmarzullo yeah
14:22 gtmanfred https://github.com/saltstack/salt/issues/40918 I saw this one yesterday, it looks like a fix for that was put into develop
14:22 saltstackbot [#40918][OPEN] Elasticsearch authentication. | Description of Issue/Question...
14:22 cmarzullo it's got all the labels and stuff
14:22 demize Last time I tried saltpad it didn't work, which was a couple months ago.
14:22 gtmanfred so it would be in nitrogen
14:22 gtmanfred cmarzullo: which one?
14:22 cmarzullo I'll dig it up.
14:22 cmarzullo https://github.com/saltstack/salt/issues/23125
14:22 saltstackbot [#23125][OPEN] Elasticsearch as master_job_cache throws critical | Hi all,...
14:23 mpanetta joined #salt
14:24 cmarzullo good to see that PR you referenced. Since we use x-pac for auth.
14:26 XenophonF joined #salt
14:26 gtmanfred cmarzullo: yeah, that looks way down the list of stuff we are working on
14:26 gtmanfred https://github.com/saltstack/salt/issues/23125#issuecomment-220088669
14:26 saltstackbot [#23125][OPEN] Elasticsearch as master_job_cache throws critical | Hi all,...
14:26 gtmanfred that is the issue for what needs to be added to make it a master_job_cache
14:26 gtmanfred we would love a PR :)
14:27 cmarzullo I would love to be able to make on.
14:27 cmarzullo err one.
14:27 cmarzullo I'm getting closer to taking another stab at it.
14:27 zerocoolback joined #salt
14:27 cmarzullo Last time I tried it . . . went poorly.
14:28 gtmanfred cmarzullo: https://media.giphy.com/media/3o85xtLX7zCyeeWGLC/giphy.gif
14:28 gtmanfred cmarzullo: if you need help poking at it let me know
14:28 zerocoolback joined #salt
14:28 gtmanfred unfortunately i have 0 experience setting up elastic search
14:28 theblazehen joined #salt
14:29 masterkorp gtmanfred: i see, so my effort of moving salt on to a container may be useless
14:29 cmarzullo I've got that bit down. Have a nice all in one ELK vagrant project that we use for training. All salted of course.
14:30 cmarzullo Been working on ext_pillar and proxy minion. But thinking of shifting back to that if I can find time.
14:31 gtmanfred cmarzullo: i have a bunch of issues that I need to get done, but if I can find some time i will try and take a look, if you can add your vagrant to that issue it would help so that i don't have to learn to setup elastic
14:32 cmarzullo thanks m8. I have 'permission' to open source our formulas. Just need to get around to it.
14:32 cmarzullo the vagrant project for elk relies on all our formulas. So i'd have to sort all that ot.
14:32 gtmanfred darn
14:33 meca Hi, I have setup a returner to return to elasticsearch. I am seeing all of my returns in elasticsearch (ex: test.ping) *except* for state.apply. When I run a state.apply I see the saltutil.find_job in elasticsearch but never the result of the state.apply itself. Any reason for that ?
14:33 cmarzullo ^^ hehe
14:34 antpa joined #salt
14:35 * gtmanfred scurries away
14:35 gtmanfred i need coffee
14:38 kwork hello, how do you guys validate sls files before pushing it to git ?
14:38 kwork or you are developing roles on master host ? and use local fs ?
14:39 kwork is there some best practice for it ?
14:39 evle joined #salt
14:42 cmarzullo I do testable formulas kwork
14:42 kwork cmarzullo: could you show me example, some link about it ?
14:43 nutcase_ I know there is a command you can run to list the directory that is avaible on the salt-master. Anyone that can tell me what it is?
14:43 cscf nutcase_, what do you mean by "the directory"?  The state root?
14:44 DammitJim joined #salt
14:44 nutcase_ yeah. Im having problems with getting my formulas to work... I want to make sure that the formula folder is there.
14:45 nutcase_ I have specified the folder in /etc/salt/master but it is still giving me a hard time.
14:45 cmarzullo kwork: http://unicolet.blogspot.it/2016/05/a-not-so-short-guide-to-tdd-saltstack.html
14:45 kwork cmarzullo: thank you :)
14:46 ProT-0-TypE joined #salt
14:46 nutcase_ cscf: Any ideas?
14:46 ravenx joined #salt
14:46 DammitJim I"m running the following from the master: sudo salt <servername> state.sls sudo test=true --state-output=changes
14:47 DammitJim why isn't it telling me what is going to be changed on a file.managed file?
14:47 DammitJim how can I make the master tell me what's going to change?
14:47 ravenx i know salt has an - onfail: requisite
14:47 ravenx but this it have an on success?
14:50 tkharju joined #salt
14:51 jas02 joined #salt
14:53 sahi joined #salt
14:56 cscf ravenx, - require:
14:57 eightyeight joined #salt
14:57 cscf ravenx, although, the requiring state will report failure if it's dependency fails, rather than Clean, as you might want
14:58 cscf DammitJim, it should show a diff, but if the file isn't there at all, it will just say it will create it.  What does it say for you?
14:58 DammitJim it is there
14:58 ravenx cscf: yeah, i want to know if everything up to that is successful or not.  what is this "Clean" that you talk of?
14:58 eightyeight joined #salt
14:58 cscf ravenx, there are 3 statuses a state can have: Clean, Changed, and Failure
14:58 cscf ie, green, blue, red
14:59 ravenx ah, how would i get that?
14:59 ravenx like, query it, or find out if it was clean
15:01 antpa joined #salt
15:04 DanyC joined #salt
15:05 guerby joined #salt
15:05 guerby joined #salt
15:05 brd Huh, pillar doesn't like files with periods in them.. i.e. foo.bar.sls
15:06 max42 python module paths use . as separator
15:07 brd ahh
15:07 brd TIL
15:07 max42 foo.bar.sls means foo/bar.sls
15:07 max42 or something like that
15:07 brd yeah, I switched to foo/init.sls and foo/bar.sls
15:11 s0undt3ch joined #salt
15:16 cscf underscores are also good.
15:19 Praematura joined #salt
15:19 jas02 joined #salt
15:23 nicksloan joined #salt
15:23 averell joined #salt
15:24 sp0097 joined #salt
15:25 masterkorp Hello, so can the salt saltbootratp scrit be helpfull for salt standalone deployments ?
15:27 jas02 joined #salt
15:32 sarcasticadmin joined #salt
15:37 brd in pillar is there a good way to define a pattern for matching on hostname.. i.e. instead of listing every hostname and telling it to load hostname.sls ?
15:37 cmarzullo myapp*
15:38 netce joined #salt
15:38 cmarzullo 'myapp*': {{ grains['host'] }}.sls
15:41 brd cmarzullo: awesome, thanks for the tip
15:43 brd looks like the master will complain if the file isn't there, but that is OK
15:44 wendall911 joined #salt
15:45 asyncsec joined #salt
15:46 TheBigNoob joined #salt
15:47 TheBigNoob Is it possible to loop though salt-mine data in a pillar file?
15:50 whytewolf TheBigNoob: yes. but in order to get the mine data in pillar you have to use the runner version of mine.get see the see also at the bottom of of the mine.get instructions here https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mine.html#salt.modules.mine.get
15:50 TheBigNoob haha, sorry I didn't RTFM @whytewolf
15:50 TheBigNoob thanks!
15:51 nicotine Does anyone know how I'm supposed to configure custom returners for proxies?
15:52 whytewolf it's okay. happens a lot around here. doesn't help that TFM. needs a spidery decoder ring sometimes
15:52 PatrolDoom joined #salt
15:52 jdipierro joined #salt
15:53 whytewolf nicotine: um, actually that i do not know
15:53 nicotine it turns out I'm just dumb, and had a state overwriting /etc/salt/proxy
15:54 pipps joined #salt
15:54 cmarzullo brd: {{ grains['host'] | default ('generic') }}.sls
15:54 cmarzullo oh that won't work. nvm
15:55 meca Hi, I have setup a returner to return to elasticsearch. I am seeing all of my returns in elasticsearch (ex: test.ping) *except* for state.apply. When I run a state.apply I see the saltutil.find_job in elasticsearch but never the result of the state.apply itself. Any reason for that?
15:55 whytewolf yeah. that wouldn't do to much. since grains['host'] should always return something
15:55 aldevar left #salt
15:58 DanyC joined #salt
15:58 pipps joined #salt
15:59 brd cmarzullo: yeah, I need to touch each of the files, but that is no big deal
16:00 DanyC joined #salt
16:02 tiwula joined #salt
16:08 onlyanegg joined #salt
16:10 TheBigNoob whytewolf: does anything stick out at you on this one? https://pastebin.com/raw/per9WkT4  not really sure why it thinks it's getting 2 args
16:10 TheBigNoob i guess 2015.5 doesn't like the dot?
16:13 whytewolf humm. that is strange unforchantly since i always use names with mine functions i never ran across that. althought that might be th magor version before the fix that allowed that to work
16:14 mikecmpbll joined #salt
16:15 TheBigNoob whytewolf, yeah that was my assumption (especially considering that the 2015.5 docs don't even mention it, although salt runner docs are there *shrug*)
16:15 TheBigNoob Guess i'll need to convince the boss to upgrade :)
16:15 TheBigNoob thanks for your input!
16:15 PatrolDoom joined #salt
16:17 ry joined #salt
16:18 whytewolf TheBigNoob: https://github.com/saltstack/salt/pull/26648 this does look like the issue you are seeing
16:18 saltstackbot [#26648][MERGED] Free 'fun' from the function signature namespace | 'fun' is a common argument in Salt. format_call will choke if you attempt to call a function that uses this argment. I.e.,:...
16:19 whytewolf looks like it was backported to 2015.5 but maybe after the version you are using
16:19 TheBigNoob that would make sense
16:19 TheBigNoob probably easier to convince my boss to do a minor version
16:20 ahrs joined #salt
16:22 Taz joined #salt
16:22 jab416171 joined #salt
16:23 abby_the_great joined #salt
16:26 edrocks joined #salt
16:37 mpanetta joined #salt
16:47 cyteen joined #salt
16:47 masterkorp left #salt
16:48 johnkeates joined #salt
16:52 patvz joined #salt
16:54 felskrone joined #salt
16:56 candyman88 joined #salt
16:57 Splix76 joined #salt
16:58 Trauma joined #salt
16:58 tapoxi joined #salt
17:00 cyborg-one joined #salt
17:03 SalanderLives joined #salt
17:05 s_kunk joined #salt
17:05 s_kunk joined #salt
17:06 fracklen joined #salt
17:09 Inveracity joined #salt
17:15 speedlight joined #salt
17:17 DanyC joined #salt
17:22 cyteen joined #salt
17:23 ChubYann joined #salt
17:27 DanyC joined #salt
17:30 sh123124213 joined #salt
17:36 fracklen joined #salt
17:51 nicksloan joined #salt
17:59 cyteen_ joined #salt
18:00 adelcast joined #salt
18:02 CrummyGummy joined #salt
18:06 johnkeates joined #salt
18:07 fracklen joined #salt
18:16 Vasya666 joined #salt
18:22 tercenya joined #salt
18:23 Tanta joined #salt
18:27 candyman88 joined #salt
18:28 geomacy joined #salt
18:36 jas02 joined #salt
18:47 jab416171 joined #salt
18:47 nicotine For compound matching, is the string parser that it uses in salt.util anywhere?
18:47 gnord joined #salt
18:48 nicotine I had the thought I wanted to be able to define a returner type that allows you to map result, grain, and pillar data to specific fields in a database based on config variables
18:49 nicotine And was curious if there was a util to parse a string to find G@grain:key, I@pillar:data, etc, or if I should just writ eone
18:51 jas02 joined #salt
18:56 bigjazzsound joined #salt
18:58 nicksloan joined #salt
19:05 bigjazzsound joined #salt
19:05 jas02 joined #salt
19:11 Brew joined #salt
19:12 tercenya joined #salt
19:13 DammitJim joined #salt
19:16 PatrolDoom joined #salt
19:17 PatrolDoom joined #salt
19:19 iggy nicotine: anything in the match module helpful?
19:20 iggy !salt modules.match
19:20 saltstackbot https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.match.html
19:22 tapoxi joined #salt
19:22 tapoxi hi all, I'm using gitfs and it's being weird about syncing my runners
19:23 tapoxi after upgrading to 2016.11.4 from 2016.11.2, /var/cache/salt/master/extmods is gone, and with it the runners
19:23 tapoxi how can I manually sync it from gitfs?
19:26 jas02 joined #salt
19:27 whytewolf tapoxi: salt-run fileserver.update && salt-run saltutil.sync_runners
19:30 tapoxi whytewolf ahh thanks, I was doing saltutil.sync_all
19:31 tapoxi (which doesn't sync runners for some reason?)
19:31 whytewolf tapoxi: salt-run saltutil.sync_all or salt '*' saltutil.sync_all
19:34 tercenya joined #salt
19:38 jdipierro joined #salt
19:43 fracklen joined #salt
19:47 nicotine iggy: That got me started enough to find salt.utils.subdict_match
19:47 nicotine thanks!
19:51 numkem joined #salt
19:59 ConnorCG How many of you guys manage primarily windows environments?
20:00 ConnorCG I've setup a master and a couple Windows minions, and have a couple of states
20:00 ConnorCG We have like an 85/15 split of windows/linux
20:01 abby_the_great are there good resources for windows minions and salt?
20:01 whytewolf not I. personally I am like a bad maid. I don't do windows
20:01 ConnorCG The documentation seems... mostly good enough, but I'm just wondering if anyone is actually using it
20:01 lorengordon joined #salt
20:01 ConnorCG Trying to get a feel
20:01 whytewolf I know i see a few users in here that manage windows through salt though
20:02 ConnorCG And we have SCCM, so I'm like... ehhh...
20:02 ConnorCG I'm not a huge fan of SCCM though
20:03 whytewolf I know no one who is a fan of SCCM. except the mentally ill
20:03 ConnorCG Realistically I need to be able to sell this to management. I feel like I'm just going to get a "we already have group policy and sccm?"
20:04 bakins joined #salt
20:06 whytewolf generally i believe the break down of users is about 60% linux [debian/redhat based] 30% windows 10% other [including other linux distros, the *BSD, solaris, AIX, ECT.]
20:06 whytewolf but i can't say for sure i don't work for salt who actually knows the numbers
20:06 whytewolf XenophonF: you there? I know you have a lot of windows minions
20:13 TomJepp joined #salt
20:13 TomJepp joined #salt
20:17 mpanetta joined #salt
20:19 mpanetta joined #salt
20:24 edrocks joined #salt
20:30 om2 joined #salt
20:34 Rumbles joined #salt
20:35 Splix76 If I wanted to run this command ( salt '*' mount.fstab ) and only see the results of a specific entry, in this case for a NFS IP. How would I filter the results of the command?
20:36 Splix76 I am looking for all hosts that are configured to use an NFS mount point, so I can purge it from them. Documentation on what was done is non-existent so I need a filtered / targeted answer from salt if I can get it.
20:36 Splix76 ideally, it would only show me hosts that match a string I provide to the check.
20:36 Splix76 err.. to the module mount.fstab
20:39 asyncsec joined #salt
20:40 Taz you could do the module call in a pythonscript and parse the result
20:40 Taz add an arg to the python script
20:40 iggy grep?
20:40 hoonetorg hi
20:41 Splix76 iggy, grep works but you have to know how many lines before / after to capture and in this case it'll vary based on the server the module pulls data from.
20:41 Splix76 a scripted solution maybe the best answer, an 'if 'string' in line:' might capture and dump the right data for me.
20:41 hoonetorg how do i get a "unless" into orch state "state.function" "name: cmd.run"
20:42 Taz Splix76: just use python client lib https://docs.saltstack.com/en/latest/ref/clients/index.html
20:42 hoonetorg "arg:" is for the actual command
20:42 hoonetorg but where do i put the unless
20:42 Splix76 The script could add a grain if the string was seen, then I can filter on the grain. This is the right path forward I think, thanks guys.
20:43 iggy Splix76: or just a custom grain that looks for that
20:43 Splix76 Right, add a custom grain that is something like 'legacyNFS: True' I can filter on using salt -G, then I can act on all hosts via salt filtering when I remove it.
20:44 Splix76 Just have to use the python api to find hosts that have the url / ip of the nfs host and set the custom grain.
20:45 Splix76 I believe I have my solution. It would be nice if salt could do an 'if <string>' filter and return hosts matching, but setting a grain is not a huge issue to work around it.
20:46 iggy Splix76: I was thinking more like an actual python grain module (i.e. https://github.com/saltstack/salt-contrib/tree/master/grains )
20:47 Splix76 That's a cool idea, a grain that is set for all nfs mounts on a system.
20:47 iggy hoonetorg: if you can't pass it via `kwarg`, try making it a state and using salt.state instead of salt.function
20:47 hoonetorg iggy: kwarg:
20:48 hoonetorg unless:
20:48 hoonetorg ^^^ that way?
20:48 iggy there's an example of kwarg use in the docs (that can do a better job than I can)
20:49 hoonetorg iggy: :+1:
21:05 toofer joined #salt
21:16 NightMonkey joined #salt
21:24 antpa joined #salt
21:33 heaje_ joined #salt
21:44 onlyanegg joined #salt
21:45 TomJepp joined #salt
21:47 seanz joined #salt
21:48 pipps joined #salt
21:53 Xenophon1 joined #salt
22:04 yidhra joined #salt
22:08 edrocks joined #salt
22:15 antpa joined #salt
22:20 thinkt4nk joined #salt
22:25 cyteen joined #salt
22:41 cyteen joined #salt
22:43 XenophonF joined #salt
22:51 sarcasticadmin joined #salt
23:04 TomJepp joined #salt
23:05 raspado joined #salt
23:19 druonysus_ joined #salt
23:28 jvelasquez joined #salt
23:30 jvelasquez How could I move everything from /etc/X11/Xsession.d to /etc/X11/Xsession.d.off/, except for /etc/X11/Xsession.d/99local  ?
23:31 druonysus_ joined #salt
23:51 tercenya joined #salt
23:53 Xenophon1 joined #salt
23:57 jvelasquez How can I configure a salt:// file system?  I can't seem to find the section on this topic in the docs.
23:58 tehsu anyone working with Google and salt-cloud that may have seen a permission error with cloudendure GoogleBaseError: {u'domain': u'global', u'message': u"Required 'compute.licenses.get' permission for ''", u'reason': u'forbidden'}

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