Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-08-29

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

All times shown according to UTC.

Time Nick Message
00:02 mapu joined #salt
00:06 aalmenar_ joined #salt
00:14 gableroux joined #salt
00:23 kus joined #salt
00:34 colegatron joined #salt
00:34 nidr0x joined #salt
00:36 nidr0x joined #salt
00:45 justanotheruser joined #salt
00:57 DammitJim joined #salt
01:14 nshttpd joined #salt
01:14 |aaron is anyone here using salt to manage their BIND zone files? i built a template that generates A and CNAME records based on pillar data which works well.. until dhcpd starts adding A records for its clients. after that happens if i update the zonefile template in salt there is a conflict between the zonefile and the journal data when bind restarts. bind's answer for this is for you to 'rndc freeze' which writes the dhcp client records to the zone file, then yo
01:14 |aaron can modify the zonefile directly and afterwards 'rndc reload && rndc thaw' will reload the zonefile. buuuuuut of course that doesnt work with a salt managed file, it overwrites the dhcp client records on highstate...
01:18 Deliants joined #salt
01:22 fxhp joined #salt
01:23 linovia joined #salt
01:24 Bryson joined #salt
01:24 samkottler joined #salt
01:24 nahkiss joined #salt
01:25 simonmcc joined #salt
01:26 aljosa joined #salt
01:26 wiqd joined #salt
01:27 bbhoss joined #salt
01:27 gazarsgo joined #salt
01:28 OliverMT joined #salt
01:32 JPT joined #salt
01:45 raspado joined #salt
01:45 fannet joined #salt
01:45 scoates joined #salt
01:47 catpigger joined #salt
02:04 edrocks_ joined #salt
02:09 marie1972 joined #salt
02:10 edrocks_ joined #salt
02:12 DEger joined #salt
02:22 DEger joined #salt
02:23 bastiandg joined #salt
02:29 ninjada joined #salt
02:29 marie1972 left #salt
02:34 k_sze[work] joined #salt
02:40 MajObviousman joined #salt
02:43 fracklen joined #salt
02:45 |aaron derp heres the answer :) https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ddns.html
02:50 Vye joined #salt
03:05 ALLmightySPIFF joined #salt
03:09 evle joined #salt
03:13 DEger joined #salt
03:18 bilal80 joined #salt
03:35 kshlm joined #salt
03:46 sagerdearia joined #salt
03:49 amy_ joined #salt
03:51 hasues joined #salt
04:10 ZachLanich joined #salt
04:12 armguy joined #salt
04:33 stanchan joined #salt
04:35 jerredbell joined #salt
04:48 mohae_ joined #salt
04:50 raspado joined #salt
05:02 fracklen joined #salt
05:04 ub joined #salt
05:24 brotatochip joined #salt
05:25 jimklo joined #salt
05:36 onlyanegg joined #salt
05:38 AvengerMoJo joined #salt
05:44 fannet joined #salt
05:48 rdas joined #salt
05:52 Brijesh1 joined #salt
05:55 berto- joined #salt
06:02 colttt joined #salt
06:02 armyriad joined #salt
06:03 jxm_ joined #salt
06:03 ivanjaros joined #salt
06:06 harkx joined #salt
06:06 robinsmidsrod joined #salt
06:12 justanotheruser joined #salt
06:15 ninjada joined #salt
06:20 ninjada joined #salt
06:29 DEger joined #salt
06:40 haam3r joined #salt
06:40 yuhlw_ joined #salt
06:51 fracklen joined #salt
06:55 fracklen joined #salt
06:55 John_Kang joined #salt
06:57 haam3r joined #salt
06:59 haam3r joined #salt
07:06 ninjada_ joined #salt
07:07 haam3r joined #salt
07:07 ivanjaros joined #salt
07:11 haam3r joined #salt
07:12 hasues left #salt
07:12 Electron^- joined #salt
07:23 dariusjs joined #salt
07:26 JohnnyRun joined #salt
07:45 fannet joined #salt
07:47 jhauser joined #salt
07:49 impi joined #salt
07:55 ronnix joined #salt
08:01 kbaikov joined #salt
08:17 keimlink joined #salt
08:18 dariusjs joined #salt
08:29 GreatSnoopy joined #salt
08:30 Mattch joined #salt
08:40 jeddi joined #salt
08:42 giany hi, I'm trying to add this module https://github.com/saltstack/salt-contrib/blob/master/modules/cloudflare.py to salt, any idea what are the steps of doing that?
08:50 manji first of all, do you  have the pyflare module?
08:53 giany yes, its installed
08:54 martin_hynar left #salt
08:55 babilen giany: You'd move it into _modules/ somewhere in file_roots and run https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.sync_all against your minions
08:56 babilen (and where did you install the pyflare modules)
08:56 lero joined #salt
09:10 DEger joined #salt
09:24 ronnix joined #salt
09:25 John_Kang joined #salt
09:27 giany nevermind..made it work though seems its not updated
09:46 fannet joined #salt
09:46 lero joined #salt
10:05 edrocks joined #salt
10:07 ninjada joined #salt
10:09 Rumbles joined #salt
10:25 stanchan joined #salt
10:28 fracklen joined #salt
10:29 John_Kang I expected that It will be overriden if I define the pillar keys below the include syntax
10:29 John_Kang but It doesn't seem
10:29 John_Kang am I wrong ?
10:52 Brijesh1 joined #salt
11:05 antpa joined #salt
11:09 babilen John_Kang: What will be overridden? Could you paste an example of what you are doing to one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … ?
11:17 ninjada joined #salt
11:22 fracklen joined #salt
11:24 amcorreia joined #salt
11:27 nicksloan joined #salt
11:27 antpa joined #salt
11:28 hvn joined #salt
11:38 lero joined #salt
11:39 teryx510 joined #salt
11:40 impi joined #salt
11:42 fracklen joined #salt
11:46 fracklen_ joined #salt
11:47 fannet joined #salt
11:47 catpig joined #salt
11:54 impi joined #salt
12:05 fracklen joined #salt
12:06 dariusjs joined #salt
12:06 verb0se joined #salt
12:06 ninjada joined #salt
12:09 DEger joined #salt
12:17 Sarphram joined #salt
12:19 CeBe joined #salt
12:20 Sarphram joined #salt
12:35 ub my reactor does not work. can somebody help me?
12:35 ub [DEBUG   ] Rendered data from file: /var/cache/salt/master/files/base/reactor/log.sls:
12:35 ub test_reactor:
12:35 ub cmd.run:
12:35 ub - name: echo id srv01 >> /tmp/test_123
12:35 ub [DEBUG   ] Results of YAML rendering:
12:35 ub OrderedDict([('test_reactor', OrderedDict([('cmd.run', [OrderedDict([('name', 'echo id srv01 >> /tmp/test_123')])])]))])
12:35 ub [PROFILE ] Time (in seconds) to render '/var/cache/salt/master/files/base/reactor/log.sls' using 'yaml' renderer: 0.00165605545044
12:37 dyasny joined #salt
12:38 edrocks joined #salt
12:44 jeddi joined #salt
12:49 ub ok. i got it. i need the command local.cmd.run
12:50 numkem joined #salt
12:52 gh34 joined #salt
12:55 edrocks joined #salt
12:56 misconfig joined #salt
12:57 DammitJim joined #salt
12:58 marie1973 joined #salt
13:00 badon joined #salt
13:09 kylehuff joined #salt
13:11 _JZ_ joined #salt
13:22 west575 joined #salt
13:33 Cottser joined #salt
13:34 vincent_vdk does someone knows about info around Docker orchestration with Salt
13:34 vincent_vdk or might doe something similar themselfs
13:37 nebuchadnezzar joined #salt
13:38 akhter joined #salt
13:40 dyasny joined #salt
13:41 akhter joined #salt
13:44 akhter joined #salt
13:48 tapoxi joined #salt
13:48 akhter joined #salt
13:49 ninjada joined #salt
13:49 marie1973 left #salt
13:52 tapoxi alright I've had some weird issues with salt-ssh lately, it won't accept my password for auth. sshing in manually is fine
13:52 hackel joined #salt
13:55 edrocks joined #salt
13:55 jerredbell joined #salt
13:56 akhter_1 joined #salt
13:57 haam3r joined #salt
13:57 ekristen joined #salt
14:00 drawsmcgraw joined #salt
14:02 Tanta joined #salt
14:05 mpanetta joined #salt
14:06 hackel I noticed that highstate causes "apt-get -q update" to run many, many times on my Ubuntu server.  Is there any way to prevent/consolidate this?  Once per run is more than enough, unless a repo has been added.
14:06 mpanetta joined #salt
14:07 austinpapp i'm trying to figure out the best course of action here. i have a situation where i need to monitor a file for change. however, upon change, its just a noop (return true and move on)
14:07 tapoxi austinpapp beacon?
14:07 austinpapp however, i need it fail if it goes beyond N tries or N secs.
14:08 austinpapp hmmm... let me check that out
14:08 AndreasLutro what goes beyond N tries/secs?
14:08 tapoxi austinpapp or a python script that uses salt.client and sends stuff to the salt bus
14:09 impi joined #salt
14:09 austinpapp yea... i was seeing if i could do this w/o a script. no big deal if i have to just didnt know if this was something salt could handle easily (w/o programming)
14:09 austinpapp again, not a big deal
14:09 tapoxi yeah beacons are probably your best bet
14:09 austinpapp beyond N tries/secs is fail hard
14:10 mapu joined #salt
14:10 tapoxi on the master side you could probably use thorium reactor to say 'this has failed x times I'm triggering a hard fail'
14:11 AndreasLutro what goes beyond N tries/secs?
14:11 fusionx86 joined #salt
14:11 Tanta so do your state with an unless: for (( attempt=1; attempt+=1; attempt<10)); do try something here && break; done
14:12 austinpapp Tanta: i see
14:12 AndreasLutro austinpapp: from what you've said you only have a file that's being managed and a noop - none of those parts can really fail
14:13 M-liberdiko joined #salt
14:14 austinpapp AndreasLutro: i'm going to poke around the beacon concept. i think this might work.
14:15 austinpapp so yea. it would return true to proceed to the next block or fail
14:17 Tanta you can also use the 'onchanges: - file: file_name' requisite to chain together multiple state function calls
14:19 debian112 joined #salt
14:20 ivanjaros joined #salt
14:22 armonge joined #salt
14:23 Cottser joined #salt
14:23 Cottser joined #salt
14:25 dariusjs joined #salt
14:25 gpampara joined #salt
14:25 austinpapp i do like the reactor / beacon work
14:26 austinpapp which would actually highlight the power of salt... im building out a poc here
14:26 gpampara Am I right in that the behaviour of file.managed, where the source is remote that the file will always be downloaded for the md5 comparison to take place?
14:27 Tanta unless you specify a different checksum algorithm, like SHA1
14:27 AndreasLutro gpampara: the minion will check the hashsum against the master before downloading it, usually
14:28 gpampara AndreasLutro: That's what I was thinking, but it appears that it downloads the file each time. This is masterless-minion if that changes the behavior? I saw the redownload happening in the debug log
14:29 AndreasLutro dunno about masterless but it'll also depend on the state/module doing it
14:29 Tanta if you think about it, the system has to download the file to compute an accurate checksum first
14:30 AndreasLutro not really
14:30 AndreasLutro the minion has a locally cached file it can check the hash sum of, and it can communicate with the master to get the hashsum without downloading it
14:30 AndreasLutro I think the way it does this is by receiving a full list of files and hashsums at the start of a run but not 100% sure
14:31 verb0se joined #salt
14:31 akhter joined #salt
14:33 akhter_1 joined #salt
14:35 ssplatt joined #salt
14:36 remyd1 joined #salt
14:36 ssplatt is it possible to filter grains similar to the mine functions, like if i want grains.ipv4 | cidr: 192.168.0.0/16 ?
14:37 ssplatt wihtout having to make a for loop and seeing if it has ’192.168’ in it?
14:37 hasues joined #salt
14:37 remyd1 Hi folks. Except for the sync/async I do not understand quite well the differences between salt-run and salt with modules. Can anyone help me about that ?
14:37 verb0se left #salt
14:37 JohnnyRun joined #salt
14:38 AndreasLutro salt-run runs on the master, salt '*'
14:38 AndreasLutro salt '*' runs stuff on minions
14:38 remyd1 yeah, but you can do salt-call as well on the master
14:38 akhter joined #salt
14:39 AndreasLutro only if it has a minion installed on it
14:39 remyd1 ok
14:40 remyd1 thanks
14:40 nidr0x joined #salt
14:43 nidr0x joined #salt
14:43 akhter joined #salt
14:43 debian112 joined #salt
14:44 raspado joined #salt
14:44 gpampara AndreasLutro: exactly, the file is locally cached, and the hash is defined with a md5= string
14:44 gpampara I'll poke a bit more then
14:47 sp0097 joined #salt
14:47 hasues left #salt
14:48 DEger joined #salt
14:50 toastedpenguin joined #salt
14:51 remyd1 BTW I am trying to update my pillars through reactor (using mongodb). I am wondering how you access the pillar through a reactor or an orchestrator
14:51 remyd1 I am doing it the same way as for states, and it does not work
14:52 remyd1 *or does not seem to
14:53 XenophonF w
15:00 akhter joined #salt
15:01 Hybrid joined #salt
15:06 AvengerMoJo joined #salt
15:07 AvengerMoJo joined #salt
15:09 dosequis joined #salt
15:13 haam3r joined #salt
15:16 hoonetorg joined #salt
15:19 west575 joined #salt
15:20 ecdhe joined #salt
15:25 M-MadsRC joined #salt
15:25 freelock[m] joined #salt
15:27 akhter joined #salt
15:28 nyx_ joined #salt
15:29 nyx_ I'm trying to use salt-cloud and the reactor system to invoke some EC2 route53 DNS configuration upon salt-cloud VM destruction. My issue is that I need pillar data and the ID of the minion being destroyed to do that and I don't have access to pillar data in the reactor state's context.
15:32 autofsckk joined #salt
15:32 orionx joined #salt
15:36 akhter joined #salt
15:38 SpX joined #salt
15:39 nyx_ this appears to be a potential solution: https://docs.saltstack.com/en/latest/topics/reactor/index.html#passing-event-data-to-minions-or-orchestrate-as-pillar
15:41 eykd joined #salt
15:44 ivanjaros joined #salt
15:46 akhter_1 joined #salt
15:47 edrocks joined #salt
15:48 tapoxi joined #salt
15:48 armonge joined #salt
15:49 fannet joined #salt
15:50 Bryson joined #salt
15:51 tiwula joined #salt
15:51 tapoxi anyone else running into salt-ssh issues? I'm providing the password with --askpass and it always gets me "Permission denied (publickey,password)." not seeing auth issues on the target minions,  and its also failing to add the salt-ssh key
15:51 UtahDave joined #salt
15:51 UtahDave morning, all
15:52 tapoxi if I try -l debug it's not much help either
15:56 sjmh joined #salt
15:56 misconfig joined #salt
15:57 akhter joined #salt
15:59 DammitJim joined #salt
16:00 west575_ joined #salt
16:01 akhter joined #salt
16:04 iggy ssplatt: are you specifically referring to targetting or just getting the data?
16:04 akhter joined #salt
16:05 racooper joined #salt
16:07 toastedpenguin joined #salt
16:08 coldbrewedbrew joined #salt
16:08 coldbrewedbrew joined #salt
16:08 FreeSpencer joined #salt
16:08 FreeSpencer joined #salt
16:08 coldbrewedbrew_ joined #salt
16:08 bltmiller joined #salt
16:09 akhter joined #salt
16:11 pipps joined #salt
16:14 tapoxi odd. if I use --askpass it fails auth. if I use --passwd salt-ssh works just fine...
16:15 Brijesh2 joined #salt
16:17 whytewolf tapoxi: https://github.com/saltstack/salt/issues/24406
16:17 saltstackbot [#24406][OPEN] salt-ssh interactively prompts to deploy key when using --askpass and password fails | When running salt-ssh with --askpass and not using --priv or --key-deploy, it interactively prompts the user asking if the key should be deployed if it can't log in with the password. This is odd since it can't log in, how is it going to deploy the key? This also causes the process to block waiting for an answer, which is annoying in large-ish
16:18 tapoxi whytewolf thanks, I'll watch that bug
16:19 toastedpenguin joined #salt
16:20 amcorreia joined #salt
16:21 parasciidick joined #salt
16:28 woodtablet joined #salt
16:28 ZachLanich joined #salt
16:28 UtahDave joined #salt
16:28 cyborg-one joined #salt
16:29 keimlink_ joined #salt
16:30 onlyanegg joined #salt
16:32 zer0def joined #salt
16:36 anotherZero joined #salt
16:37 edrocks joined #salt
16:41 akhter joined #salt
16:45 fracklen joined #salt
16:45 ssplatt joined #salt
16:49 akhter joined #salt
16:51 benjiale joined #salt
16:54 cyrus_mc joined #salt
16:55 benjiale heya smart people... I'm running into something kinda strange I was wondering if anyone might have some suggestions. I'm trying to install the salt-minion on some elasticbeanstalk nodes, and I keep running into and error on the nodes after running the yum command to install the minion: Error: Package: salt-minion-2016.3.2-1.el6.noarch (saltstack-repo)  Requires: salt = 2016.3.2-1.el6. Any good ideas on how to troubleshoot this? Not s
16:55 cyrus_mc From the master I can run salt commands (ie: salt '*' cmd.run "...."). Is there a way to accomplish that wthout having to have direct SSH access into the master?
16:55 tapoxi cyrus_mc salt-api
16:56 tapoxi benjiale amazon linux?
16:56 benjiale cyrus, I have used CherryPi in the past for this type of thing.
16:56 benjiale er Py
16:56 benjiale Heya Tapoxi, yep.
16:57 tapoxi benjiale using saltstack repos?
16:57 benjiale I am
16:58 tapoxi benjiale for amazon or cent?
16:58 benjiale For amazon
17:00 tapoxi benjiale looks like its missing: https://repo.saltstack.com/yum/redhat/6/x86_64/2016.3/
17:01 tapoxi in your /etc/yum/repos.d/salt-amzn-2016.3.repo change redhat to rhel6
17:01 tapoxi might work
17:02 benjiale k, will give it a shot
17:06 akhter joined #salt
17:09 brotatochip joined #salt
17:11 onlyanegg joined #salt
17:11 dosequis Is it possible to retrieve the name of the currently executing state from within a jinja2 template? Here's an example that shows what I'm trying to accomplish: https://gist.github.com/anonymous/c51c9c9a1078b234fb61f8201e42cf29
17:14 Ahlee Drawing a blank, trying to match on salt['pillar.get']('foo:bar:*', None). Doesn't like the wildcard, suggestions?
17:17 nicksloan joined #salt
17:18 Tanta just use foo:bar
17:18 jimklo joined #salt
17:18 akhter joined #salt
17:19 Ahlee Tried that, it's not matching with pillar.get or pillar.item
17:20 Tanta do a `salt-call pillar.items` and see if the pillar data actually exists
17:20 pipps joined #salt
17:20 Ahlee it does
17:20 Ahlee and I can match on it with -I
17:20 Ahlee so i know the minion's cache actually sees it
17:21 Ahlee i guess i'll just set a grain based on the pillar, and then do a pillar lookup for the value rather than matching on the pillar
17:21 whytewolf Ahlee: have you forced the cache update just in case?
17:22 Ahlee whytewolf: aye. salt MINION saltutil.refresh_pillar && salt MINION state.sls foo
17:22 whytewolf well fooy
17:23 Ahlee this is an external pillar, and I see the request hitting hte endpoint too, so I I know it's querying, I know it sees it
17:23 Ahlee issue is actually foo:bar:a/b/* - this isn't going to work
17:23 AdamBurstyn joined #salt
17:23 Ahlee salt['pillar.get']('foo:bar'), but that's 100% of the servers, so..nope :) blah.
17:23 whytewolf ahhh yeah, not without a lot of jinj [python] inbetween
17:25 whytewolf humm. you are just trying to fetch a list of minions that have the pillar?
17:27 whytewolf dosequis: the answer is no. jinja[rendering] happens before any of the states are ran.
17:29 Ahlee whytewolf: kind of. I want a sysctl value to be applied only if a pillar is set
17:29 MTecknology Is there a module that can manage user private gpg keys? I see the gpg.present state, but that seems to be only for pulling public keys from a public key server.
17:29 desdenlogos joined #salt
17:30 whytewolf Ahlee: ahh. then you are only testing if the pillar exists on the current minion. then might i sugest match.pillar_pcre
17:31 whytewolf https://docs.saltstack.com/en/2015.8/ref/modules/all/salt.modules.match.html#salt.modules.match.pillar_pcre
17:31 Ahlee not in my version, sadly
17:31 Ahlee 0.17 for life
17:32 whytewolf 0.17 should have it
17:32 whytewolf the delim was introduced in 0.16.4
17:32 Ahlee see that now, i saw the new in and stopped reading :)
17:32 Ahlee will give it a shot
17:33 Ahlee oh, wait this is matching
17:33 akhter joined #salt
17:33 whytewolf yeah it will only tell you if the pillar exists. if you want to retrieve the value. thats going to take a lot of jinja
17:34 Ahlee yeah.
17:34 jaybocc2 joined #salt
17:35 whytewolf basicly have to grab at the highest root you are sure of and then walk the tree
17:35 jimklo joined #salt
17:35 dosequis is there a recommended way, then, of applying the same formula 2+ times on the same minion but with separate settings for each, without lots of copy/paste? all formula examples i've looked at on github seem like they'd only be run once per minion. my use case is for something like two instances of redis running on the same minion.
17:36 Ahlee dosequis: for foo, bar in ['a', 'b']
17:36 Ahlee well, without that bar
17:36 dosequis where would this go?
17:37 Ahlee lemme put something together
17:38 desdenlogos Has anyone used the slack engine? I wanted to know what kind of token it was looking for. I'm on 2016.3.1
17:38 mpanetta desdenlogos: Normal API token.
17:38 mpanetta Like a bot token for example.
17:38 desdenlogos I used a bot token and I get an error
17:39 mpanetta Oh?
17:39 mpanetta Let me see what I have
17:39 desdenlogos Yeah. "Error: 'is_bot'"
17:39 dosequis ahlee: my formula as it is now, does something like install redis, configure redis, run redis as a service. i don't think it would be appropriate to modify this formula to know about the existence of a and b, since a and be are dependent on the minion. a different minion may have c, d, and e for example
17:40 Ahlee dosequis: right
17:40 Ahlee dosequis: but an instance with only a single instance isn't different than an instance that has 5
17:40 Ahlee it only has 4 additional occurances
17:40 Ahlee which is irrelevant, since it's a list of length 1 first a list of length 5
17:40 Ahlee s/first/vs/
17:41 pipps joined #salt
17:41 mpanetta desdenlogos: Well crap, I thought I had it set up...  I can't find the config now...
17:41 mpanetta desdenlogos: Try just a plain API token.
17:42 dosequis ahlee: i assume you're going to say that that the pillar data would be a list, where each item contains the settings for one instance?
17:42 Ahlee That data has to be avaialble somewhere, but no reason for it to be a list in the pillar, as long as it knows how to look it up
17:42 desdenlogos mpanetta: Thank you I will try that.
17:43 mpanetta Oh nevermind, I was looking in the wrong place... Yeah it is a normal api_key
17:43 Ahlee but, yeah, something like http://paste.debian.net/794861/
17:44 Ahlee without knowing more about args vs how you're storing the values
17:45 desdenlogos mpanetta: do you know the link to making a token? I have to get my boss to make the token, and want to make it simple as possible.
17:45 mpanetta I don't off hand.
17:46 desdenlogos mpanetta: no worries I'll find it
17:46 mpanetta Cool
17:46 desdenlogos mpanetta: Thank you for the help. I really appreciate it.
17:47 mpanetta desdenlogos: No problem :)
17:49 ajw0100 joined #salt
17:49 Fiber^ joined #salt
17:50 dosequis ahlee: i actually need to pass in many values, not just a single arg per formula. Port number, a bunch of config settings, etc. Putting them in the formula itself doesn't make sense since there's an undetermined number of instances of the formula. Making a list of dictionaries (where each dict is all the parameters for an instance) in the pillar is doable, but seems too restrictive since the only thing these instances have in common i
17:50 Shirkdog joined #salt
17:51 ub joined #salt
17:51 Ahlee Was afraid you were going to say that
17:51 dosequis ahlee: to me it makes more logical sense for each instance to be it's own pillar data
17:51 Ahlee I think the salt-ish way to do this is to define each as stand alone
17:51 Ahlee yeah
17:52 Ahlee so a pillar value {instance_A:{setting1:foo, setting2:bar}}, and then a lot of jinja templating
17:52 Ahlee and nested iterators
17:52 Ahlee for instance in instances; for key, value in instance\
17:53 dosequis and i'm back to where i was. how do i pass that name to the formula so the formula knows which pillar data to look at? my understanding is all pillars for a single minion get merged together flatly, so i can't use unique top-level names in the pillar without the formula needing to know what those names are
17:54 Ahlee this is where the 'static pillars' discussion comes in, where you can look up dynamic values that are calculated either first or last
17:54 Ahlee I don't have a good answer for you dosequis, sorry
17:55 nicksloan joined #salt
17:57 ub joined #salt
17:59 dosequis ahlee: can you point me to something about this? "this is where the 'static pillars' discussion comes in, where you can look up dynamic values that are calculated either first or last"
18:00 edrocks joined #salt
18:01 Ahlee https://github.com/saltstack/salt/issues/23910
18:01 saltstackbot [#23910][OPEN] Please implement static pillars | Hi,...
18:02 Ahlee effetively you need something to glue instance:config
18:02 Ahlee and there's no good way to do that right now in salt without tacking on a grain identifying it as such
18:02 Ahlee which has the downside of requiring two runs, one to set the grain, one to do something with that knowledge
18:03 akhter joined #salt
18:03 impi joined #salt
18:05 dosequis ah, ok. i see
18:06 dosequis thanks very much for your help
18:07 brotatochip joined #salt
18:07 ub joined #salt
18:07 Ahlee No problem, sorry I couldn't be of more help. You can try posting to the mailing list, this might draw smarter individuals than I
18:08 subsignal joined #salt
18:08 ponyofdeath joined #salt
18:10 ub2 joined #salt
18:11 ZachLanich joined #salt
18:14 west575 joined #salt
18:15 agend joined #salt
18:18 mapu joined #salt
18:24 ozux joined #salt
18:24 brotatochip joined #salt
18:28 snarfy^ joined #salt
18:29 silicon_id joined #salt
18:30 snarfy^ i got 2016.3.2 and my master-minion communication is all borked up
18:30 snarfy^ minion can test.ping but the master cant test ping it
18:33 edrocks joined #salt
18:35 IdoKaplan joined #salt
18:36 wendall911 joined #salt
18:36 IdoKaplan Hi, Is it possible to make a reference from pillar to pillar?
18:36 ub joined #salt
18:40 akhter joined #salt
18:41 ub joined #salt
18:43 akhter joined #salt
18:43 lero joined #salt
18:47 akhter joined #salt
18:49 ssplatt IdoKaplan: kind of.  you can do things like {% set iptables = salt[‘pillar.get’](‘iptables’, ‘’) %}
18:49 ssplatt and then do something if iptables is not blank
18:50 ssplatt but its kind of a race condition to reference pillar data inside other pillar data, because pillar is not gauranteed to render in a specific order
18:56 akhter joined #salt
18:56 Bryson joined #salt
18:56 IanV0rn2341 joined #salt
18:59 mpanetta joined #salt
19:04 rc_ joined #salt
19:06 rc_ On my windows minions, c:\salt\var\log\salt\minion is always empty.   Event log only contains events for nssm.   Where can I find minion logs on Windows?
19:09 akhter joined #salt
19:11 nicksloan joined #salt
19:11 UtahDave rc_: have you tried changing the log file level in your minion config?
19:12 Pulp joined #salt
19:13 ssplatt joined #salt
19:17 rc_ UtahDave: Yes, I tried setting log_level: info and also tried setting it to debug.   After restart of salt-minion service, still empty.
19:18 ssplatt joined #salt
19:18 UtahDave That's for the cli.  Try this config option:    log_level_logfile
19:18 Ahlee grains.present and creating a dict, possible?
19:19 UtahDave Ahlee: should be.
19:21 rc_ @UtahDave: That did it.  Thanks.
19:22 UtahDave You're welcome!
19:22 pipps joined #salt
19:23 akhter joined #salt
19:23 edrocks joined #salt
19:23 rc_ @UtahDave:  Regarding windows logs, will it fill up the disk, or can I configure it to rotate?
19:26 Ahlee damn. Reading the code for my version it's not smart enough
19:26 armonge joined #salt
19:26 Ahlee c'est la vie
19:27 UtahDave rc_: I'm really not sure if it will rotate the windows logs. I would monitor that.
19:28 Ahlee rc_: https://github.com/saltstack/salt/issues/26195
19:28 saltstackbot [#26195][OPEN] Salt better rotate its logs. | Since system administrators very often forget to make a logrotate configuration for programs, some logs can grow large and fill up file systems. I had it happen before....
19:28 cedwards joined #salt
19:28 Ahlee It does not rotate them. We restart minions monthly to purge windows logs
19:28 alrayyes joined #salt
19:29 Ahlee if you keep the logs to INFO it does not log much at all (pending how many jobs you submit against the master)
19:29 cedwards Is it possible to pin GitFS at a specific commit or tag?
19:29 Ahlee cedwards: tags and branches used to be environments, so you could tag and go that route
19:29 UtahDave cedwards: yes, you can
19:30 cedwards UtahDave: have any examples from the docs? this doesn't make it clear https://docs.saltstack.com/en/latest/topics/tutorials/gitfs.html
19:32 alrayyes joined #salt
19:34 UtahDave so, your tag becomes the environment.   You use the tag as the environment name in your top file
19:40 cyrus_mc How do I debug the salt-api? Followed this doc for setup : http://bencane.com/2014/07/17/integrating-saltstack-with-other-services-via-salt-api/ but I don't think it is actually executing the command I am asking
19:40 cyrus_mc it returns success: true but the service never actually restart
19:40 raspado is there a way to present salt from mounting a drive?
19:41 raspado present = prevent
19:41 dyasny joined #salt
19:42 UtahDave cyrus_mc: you should be able to see the job and its result in the salt master job cache
19:42 UtahDave raspado: Salt won't mount a drive without you telling it to.   Can you provide some more detail?
19:43 cyrus_mc UtahDave: I see it in the job list, but it didn't execute like it should have. The service was not restarted
19:44 UtahDave cyrus_mc: what's the output from the job cache?
19:45 raspado UtahDave: ah okay ill check further from my end, my /dev/xvdb is being mounted as /mnt, im defining it in my map file as ephemeral0
19:45 raspado so when I try to define swap to /dev/sdb, its already saying its mounted
19:46 UtahDave raspado: Oh, so you're talking about salt-cloud?
19:47 raspado UtahDave: yeah
19:47 UtahDave Oh, ok.  Well, you can comment out the line defining that in your map file
19:48 bltmiller joined #salt
19:49 raspado UtahDave: this is how im defining it in my map file, for some reason it mounts /dev/sdb as /mnt ;\ http://pastebin.com/KAULJYnt
19:50 fannet joined #salt
19:51 numkem joined #salt
19:51 dyasny joined #salt
19:52 pipps joined #salt
19:52 raspado looks right ya?
19:53 cyrus_mc UtahDave: I got it. Had the tag set wrong in reactor.conf so it wasn't firing
19:53 sp0097 joined #salt
19:54 UtahDave cyrus_mc: ah, glad you found it
19:54 UtahDave raspado: Hm. as far as I can tell you have it configured correctly.
19:55 UtahDave raspado: oh, wait. hold on
19:55 UtahDave I think that part of the config in your salt-cloud map just adds that device to your VM.  Then something else mounts that device somewhere
19:55 UtahDave So something is auto mounting that to /mnt for you
19:56 raspado kk, thx UtahDave
20:02 pipps joined #salt
20:05 pipps99 joined #salt
20:06 GreatSnoopy joined #salt
20:10 pipps joined #salt
20:10 desdenlogos joined #salt
20:13 fannet joined #salt
20:13 akhter joined #salt
20:20 lovecraftian joined #salt
20:21 fracklen joined #salt
20:22 pipps joined #salt
20:24 spuder joined #salt
20:24 dyasny joined #salt
20:24 telx joined #salt
20:24 jhauser joined #salt
20:31 tapoxi joined #salt
20:35 pipps joined #salt
20:35 ZachLanich joined #salt
20:36 mpanetta joined #salt
20:38 barajasfab joined #salt
20:39 brotatochip joined #salt
20:40 nethershaw joined #salt
20:47 cyrus_mc UtahDave: https://gist.github.com/cyrus-mc/d09863025ad3c0de6927a5a946fc76ac I run a command through the API as such (just restart a service). The return is simply success: true
20:47 cyrus_mc is there a way to have it return the list of machines it ran on, and the result
20:51 DEger joined #salt
20:53 spuder_ joined #salt
20:53 DEger joined #salt
20:59 debian112 left #salt
21:02 pipps joined #salt
21:02 bantone http://blogs-images.forbes.com/niallmccarthy/files/2016/08/20160824_Tech_Jobs.jpg
21:12 anotherZero joined #salt
21:14 west575 joined #salt
21:21 lero joined #salt
21:22 debian112 joined #salt
21:24 misconfig joined #salt
21:24 telx joined #salt
21:27 UtahDave cyrus_mc: I think it's because of how you're sending the command
21:29 UtahDave cyrus_mc: i commented on your gist
21:29 UtahDave nice, bantone
21:39 pipps joined #salt
21:41 raspado joined #salt
21:46 pipps joined #salt
21:48 gpampara joined #salt
21:53 justanotheruser joined #salt
21:54 justanotheruser joined #salt
21:57 raspado can anyone help me out? im trying to mount a device so I can enable swap but the error I get is "sepcial device /dev/sdb does not exist"
21:57 raspado http://pastebin.com/iVr4bcMy
21:57 brotatochip joined #salt
21:59 raspado oh... i guess i had it inversed
22:00 orionx_ joined #salt
22:07 cyrus_mc UtahDave: ok, will try in a bit
22:10 wryfi i'm trying to get started with test-kitchen/kitchen-salt
22:11 wryfi my salt states and my pillars are in different directories of the same repo
22:11 wryfi i'm having a hard time figuring out how to get kitchen-salt to work in this scenario
22:11 wryfi anybody have any suggestions?
22:11 wryfi is there a way to copy a custom minion config to the test instance?
22:14 wryfi also not sure i'm fully grokking the difference between is_file_root and state_collection options
22:14 karlthane joined #salt
22:15 wryfi and i guess a standard tree of pillars with a top.sls is not supported?
22:16 ub2 joined #salt
22:18 anotherZero joined #salt
22:18 chrichip joined #salt
22:18 ssplatt joined #salt
22:20 ub joined #salt
22:22 cedwards joined #salt
22:27 pipps joined #salt
22:34 akhter joined #salt
22:37 teryx510 joined #salt
22:39 raspado ok i think i need help
22:39 raspado how the heck can i mount a device as swap?
22:39 raspado im trying mount.swap but it states it failed to activate
22:40 nicksloan joined #salt
22:41 brotatochip joined #salt
22:43 raspado I get this error "[ERROR   ] output: swapon: /dev/sdb: read swap header failed: Is a directory"
22:45 UtahDave wryfi: sorry, I haven't used test-kitchen at all. I'm not sure
22:46 debian112 joined #salt
22:51 debian112 joined #salt
22:52 nicksloan joined #salt
22:53 marie1972 joined #salt
23:01 pipps joined #salt
23:02 iggy raspado: did you mkswap it first?
23:04 silicon_id joined #salt
23:05 \ask joined #salt
23:05 brotatochip joined #salt
23:09 ninjada joined #salt
23:10 pipps99 joined #salt
23:11 pipps99 joined #salt
23:17 debian112 joined #salt
23:25 silicon_id joined #salt
23:25 capri joined #salt
23:26 cmarzullo joined #salt
23:26 ZachLanich joined #salt
23:27 whitenoise joined #salt
23:34 LeProvokateur joined #salt
23:34 ninjada joined #salt
23:40 orionx joined #salt
23:42 pipps joined #salt
23:47 ub2 joined #salt
23:47 cyborg-one joined #salt
23:48 ALLmightySPIFF joined #salt
23:48 orionx_ joined #salt
23:48 pipps joined #salt
23:52 pipps joined #salt
23:54 akhter joined #salt

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