Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-11-22

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

All times shown according to UTC.

Time Nick Message
00:00 saltslackbridge joined #salt
00:12 mavhq joined #salt
00:25 rewbycraft joined #salt
00:26 Edgan joined #salt
00:42 rewbycraft joined #salt
00:49 johnj_ joined #salt
01:01 kellyp joined #salt
01:11 kellyp joined #salt
01:29 mavhq joined #salt
01:46 bbradley joined #salt
01:50 johnj_ joined #salt
01:54 mcqueeno1ama joined #salt
01:55 mavhq joined #salt
01:57 tiwula joined #salt
02:00 mavhq joined #salt
02:01 kukacz_ joined #salt
02:02 justanotheruser joined #salt
02:03 mattrose joined #salt
02:07 justanotheruser joined #salt
02:15 BarBQ joined #salt
02:21 khaije1 joined #salt
02:34 nonsenso joined #salt
02:54 nomeed joined #salt
02:55 ilbot3 joined #salt
02:55 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.8, 2017.7.2 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic, and https://saltstackcommunity.herokuapp.com (for slack) <+> We are volunteers and may not have immediate answers
02:59 onlyanegg joined #salt
03:00 shoogz joined #salt
03:01 shoogz joined #salt
03:01 shoogz joined #salt
03:02 shoogz joined #salt
03:03 shoogz joined #salt
03:03 shoogz joined #salt
03:03 evle joined #salt
03:14 mcqueeno1ama joined #salt
03:26 Uni joined #salt
03:35 quantumsummers joined #salt
03:39 jab416171 joined #salt
03:42 Felgar joined #salt
03:51 gnomethrower joined #salt
03:53 johnj_ joined #salt
03:55 k_sze[work] How do I make my salt-master ignore some minions?
03:55 k_sze[work] e.g. when I do `salt -C 'node*' test.ping`
03:55 k_sze[work] I have node02, node07, and node10 that are currently down.
03:55 k_sze[work] I know they are down because I took them offline temporarily.
03:56 tiwula joined #salt
03:56 k_sze[work] I don't want to have to spell out the exact nodes just because a few of them are offline.
03:57 k_sze[work] I also don't want salt-master to wait and then tell me the minions did not return.
03:59 k_sze[work] I guess I can temporarily reject said minions' keys?
04:00 __number5__ k_sze[work]: you can remove the minion by remove their key: `salt-key -d minion_abc_id`
04:01 __number5__ downside of that is when they back online you need to accept the keys again, unless you setup minion auth auto-acceptor
04:04 onlyanegg joined #salt
04:08 chowmeined joined #salt
04:14 k_sze[work] Right.
04:14 k_sze[work] That works for me.
04:18 shortdudey123 joined #salt
04:24 Kax joined #salt
04:25 threwahway_ joined #salt
04:54 johnj_ joined #salt
04:55 impi joined #salt
04:58 mcqueenorama joined #salt
05:23 lkolstad joined #salt
05:26 teratoma joined #salt
05:34 tiwula joined #salt
05:41 lkolstad joined #salt
05:43 justan0theruser joined #salt
05:46 k_sze[work] joined #salt
05:54 SkyRocknRoll joined #salt
05:55 johnj_ joined #salt
05:58 felskrone joined #salt
06:17 pppingme joined #salt
06:22 indistylo joined #salt
06:22 alker joined #salt
06:29 alker1 joined #salt
06:31 threwahway__ joined #salt
06:41 threwahway_ joined #salt
06:50 sh123124213 joined #salt
06:50 eseyman joined #salt
06:51 yuhl_ joined #salt
06:56 johnj_ joined #salt
07:04 DarkKnightCZ joined #salt
07:04 DarkKnightCZ joined #salt
07:05 yuhl_ left #salt
07:06 mcqueenorama joined #salt
07:12 Rumbles joined #salt
07:12 Ricardo1000 joined #salt
07:16 threwahway__ joined #salt
07:21 dagb joined #salt
07:27 mcqueeno1ama joined #salt
07:30 yuhl joined #salt
07:30 Rumbles joined #salt
07:31 yuhl_ joined #salt
07:33 pualj joined #salt
07:40 alker joined #salt
07:48 mcqueenorama joined #salt
07:52 threwahway_ joined #salt
07:57 johnj_ joined #salt
07:57 Tucky joined #salt
07:59 Hybrid joined #salt
08:05 darioleidi joined #salt
08:07 usernkey joined #salt
08:09 mcqueeno1ama joined #salt
08:11 hoonetorg joined #salt
08:20 dcpc007 joined #salt
08:20 dcpc007 hi all
08:20 dcpc007 could i use salt to make a query like "what are the permissions on /var/log/tomcat" ?
08:20 dcpc007 not configure or modify, only get a global report
08:26 pualj joined #salt
08:28 alker1 joined #salt
08:29 mcqueeno1ama joined #salt
08:36 jrenner joined #salt
08:39 dcpc007 i have many other queries to do (first pass is analyze all the systems to see what configurations rules i can write)
08:46 haam3r_ dcpc007: the easiest way to do that is "salt '*' cmd.run 'ls -l /var/log/tomcat' "
08:47 dcpc007 haaa cool :)))
08:47 dcpc007 is there a regroup function in the resuls shown ? like the cssh or clustershell ?
08:48 dcpc007 like host1 and host2 = 755
08:48 dcpc007 and host3 = 775
08:48 dcpc007 or only full listing
08:50 mcqueenorama joined #salt
08:55 Lenz joined #salt
08:56 aldevar joined #salt
08:58 johnj joined #salt
08:59 Tucky joined #salt
09:03 dagb is there anything preventing me from running master, minion and proxy on the same machine?
09:03 haam3r_ dcpc007: Take look here: https://docs.saltstack.com/en/latest/ref/cli/salt.html#options more specifically the --state-output and --out parameters, but you are probably not gonna get something like that without additional filtering after
09:03 _KaszpiR_ joined #salt
09:04 haam3r_ dcpc007: There is actually a file stats module as well, that can give you the same info: https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.file.html#salt.modules.file.stats
09:06 darioleidi joined #salt
09:10 dcpc007 thx i'll look. only starting to look at salt (no right to really start install and work with it), but i need tools to check and manage 70-80 servers ...
09:10 dcpc007 hard to start with no time on big tools like this one
09:10 alker joined #salt
09:11 mcqueeno1ama joined #salt
09:11 dcpc007 i'm configuring a VM with more recent debian to do the master, as i read the master must be at the more recent version of all minions
09:13 dcpc007 very brief explanations liek "One of 'full', 'terse', 'mixed', 'changes' or 'filter'. Default: 'none'."
09:14 dcpc007 and no examples .. :-( hard for beginers. i'll search on those words to see what they do
09:14 pbandark joined #salt
09:16 alker1 joined #salt
09:23 threwahway__ joined #salt
09:24 babilen dcpc007: https://docs.saltstack.com/en/latest/ref/configuration/master.html#state-output explains the options -- Where did you look?
09:24 babilen (/me runs with mixed)
09:26 LotR is that ok, or are you getting mixed results
09:26 LotR ;)
09:28 dcpc007 babilen: grrr thx, pitty, no link to this in the 1st page
09:29 babilen LotR: ba-dum-tsh :D
09:29 Mattch joined #salt
09:30 babilen dcpc007: You might want to bookmark that page (there's an equivalent one for the minion)
09:31 mcqueeno1ama joined #salt
09:33 threwahway_ joined #salt
09:42 dcpc007 for example of what i said about gathered output :  https://clustershell.readthedocs.io/en/latest/tools/clush.html#output-gathering-options
09:43 dcpc007 (example is regroup hostnames by results on the kernel version)
09:43 dcpc007 by default this tool will show each host with its kernel version. with gather, only one line by version
09:52 mcqueenorama joined #salt
09:59 johnj joined #salt
10:02 SkyRocknRoll_ joined #salt
10:04 Naresh joined #salt
10:04 do3meli joined #salt
10:04 do3meli left #salt
10:06 jhauser joined #salt
10:07 babilen dcpc007: No such thing exists for salt, but you can easily output the data in JSON and process it with, say, jq
10:07 babilen If you looking for a clustershell replacement you might prefer Ansible btw
10:07 babilen (depends on your usecase though)
10:11 dcpc007 first case for me is audit the systems. but i hope one day i can officially install and use to enforce some common configs. Basics at start like ntp, dns, mail configs, some local accounts, some file/folder permissions, install some packages,...
10:11 dcpc007 too boring and risk of error to continue configure case by case manually
10:11 dcpc007 especially in 4 years some recommandations changes :)
10:11 dcpc007 and are not reported
10:12 dcpc007 (think it's not the good word ... not applied to all older servers)
10:13 mcqueeno1ama joined #salt
10:14 do3meli joined #salt
10:14 do3meli left #salt
10:17 babilen dcpc007: I assume you've found it already, but in case you haven't: https://docs.saltstack.com/en/getstarted/
10:23 dcpc007 yes, i start install on VM but can't deploy :( and VM is too old for version then, i'm upgrading an OS to start tests
10:24 dcpc007 and myabe audit in read only usage
10:24 Rumbles joined #salt
10:24 dcpc007 yes i start a tutorial with install of VM with vagrant .. but had to stop tutorial :-(
10:26 alker joined #salt
10:34 mcqueeno1ama joined #salt
10:42 aldevar joined #salt
10:44 alker joined #salt
10:50 mcqueenorama joined #salt
11:00 johnj joined #salt
11:15 alker1 joined #salt
11:27 lompik joined #salt
11:28 sahama joined #salt
12:01 johnj joined #salt
12:03 Ricardo1000 joined #salt
12:20 sahama hi. how can i get master ip in salt-ssh?
12:30 alker joined #salt
12:31 LotR joined #salt
12:32 aldevar joined #salt
12:32 ProT-0-TypE joined #salt
12:35 Rumbles joined #salt
12:35 Elsmorian joined #salt
12:39 viq hah, working on puppet catalog json dump and converting it to salt states ;)
12:51 mcqueenorama joined #salt
12:54 alker joined #salt
12:58 Rumbles joined #salt
12:59 sjorge joined #salt
13:02 johnj joined #salt
13:06 usernkey1 joined #salt
13:09 usernkey joined #salt
13:12 Nahual joined #salt
13:19 tacoboy joined #salt
13:23 pcgod joined #salt
13:28 Elsmorian joined #salt
13:31 Ricardo1000 joined #salt
13:35 ExtraCrispy joined #salt
13:46 jbkc85 joined #salt
14:03 johnj joined #salt
14:05 Elsmorian joined #salt
14:15 Lenz joined #salt
14:23 numkem joined #salt
14:23 gh34 joined #salt
14:24 aldevar joined #salt
14:28 do3meli joined #salt
14:28 do3meli left #salt
14:30 racooper joined #salt
14:33 evle joined #salt
14:33 GMAzrael joined #salt
14:37 Rumbles joined #salt
14:52 mcqueenorama joined #salt
14:52 Lenz joined #salt
14:52 alker1 joined #salt
14:54 nomeed joined #salt
14:55 alker joined #salt
14:57 Rubin joined #salt
14:57 user-and-abuser joined #salt
14:57 sahama left #salt
14:57 pualj joined #salt
15:01 mcqueeno1ama joined #salt
15:04 johnj joined #salt
15:07 edrocks joined #salt
15:08 derp123 joined #salt
15:08 deuscapturus joined #salt
15:12 _KaszpiR_ joined #salt
15:14 usernkey1 joined #salt
15:17 chn[work] joined #salt
15:19 jbkc85 joined #salt
15:21 RandyT joined #salt
15:21 RandyT joined #salt
15:22 GnuLxUsr joined #salt
15:24 _JZ_ joined #salt
15:24 johnj joined #salt
15:30 _KaszpiR_ joined #salt
15:34 dfinn joined #salt
15:34 Kax joined #salt
15:39 alker joined #salt
15:39 pualj joined #salt
15:40 deuscapturus joined #salt
15:46 pualj joined #salt
15:51 DammitJim joined #salt
15:53 pualj joined #salt
15:58 xet7 joined #salt
16:01 Drunk_admin joined #salt
16:02 nixjdm joined #salt
16:02 pualj_ joined #salt
16:05 ooboyle joined #salt
16:06 Ricardo1000 joined #salt
16:14 Tenyun[m] joined #salt
16:16 Felgar joined #salt
16:21 pualj_ joined #salt
16:26 tiwula joined #salt
16:31 misconfig joined #salt
16:32 misconfig Hi everyone - I have a pillar that's a SSL certificate - however when I try to populate a file on a minion with the contents of the pillar, I get a jinja rendering failure. I've even tried to escape the content with '|'. Has anyone run into this?
16:34 jnm_theMailman joined #salt
16:35 DammitJim is there a way to "wait" for a state to run?
16:36 DammitJim I have 2 states defined in a state file, but for some reason, the second state sometimes fails, but if I run the state file again, it all checks out (the first state is complete)
16:36 DammitJim I'm doing apt.upgrade on the first state and basically calling a run module to do apt.autoremove
16:36 salty_syd joined #salt
16:37 misconfig @dammitJim, you could use a require requisite
16:37 misconfig https://docs.saltstack.com/en/latest/ref/states/requisites.html
16:40 pualj_ joined #salt
16:40 mrueg joined #salt
16:42 DammitJim misconfig, are you saying that sometimes 2 states can run at the same time?
16:44 Heartsbane joined #salt
16:44 Heartsbane joined #salt
16:45 syd_salt joined #salt
16:45 kellyp joined #salt
16:45 syd_salt Hello all, I hope someone can answer a basic question for me. Do you need a top file in every environment or just one which references each environment?
16:46 misconfig @syd_salt its best to use a single top file, imo.
16:46 syd_salt @misconfig, OK thanks. Would this reside in 'base'?
16:46 misconfig @DamnitJim, I'm not sure if two states can run at the same time, but your first state could be returning successful before the jobs is complete, so the next runs.
16:47 pualj joined #salt
16:49 misconfig @syd_salt base is the default environment, you can define multiple envs in the single top file
16:51 SkyRocknRoll_ joined #salt
16:51 syd_salt Yeah, in brief in my master conf I have base - /srv/salt and prod - /srv/salt/prod, I can list the files in these so salt does see the environments. I have a top file in /srv/salt (base) but when I do salt minion state.apply I get -  No Top file or master_tops data matches found.
16:57 misconfig @syd_salt I've tried that before, check this out: https://docs.saltstack.com/en/latest/ref/states/top.html#how-top-files-are-compiled
16:57 misconfig If I'm understanding your issue correctly, you'll need to set your default env and a merge strategy for the topfiles on the salt master
16:57 misconfig joined #salt
16:58 Felgar joined #salt
16:58 misconfig also, peep the master_tops system: https://docs.saltstack.com/en/latest/topics/master_tops/
16:59 misconfig a good command to use while checking out the top files on your minion is ' salt your_minion state.show_tops'
16:59 misconfig a good command to use while checking out the top files on your minion is ' salt your_minion state.show_top'
16:59 syd_salt @misconfig, ahhh, I think that links is what I needed. Thanks
16:59 misconfig happy to help @syd_salt
16:59 RandyT joined #salt
16:59 RandyT joined #salt
17:06 mcqueenorama joined #salt
17:08 GrisKo joined #salt
17:10 cyteen joined #salt
17:12 nomeed joined #salt
17:15 onlyanegg joined #salt
17:15 jnm_theMailman I'm a newbie to Salt, tinkering my way through some basic tutorials -- can someone help me turn `salt -L minion2,minion3 grains.item 'host' 'ip4_interfaces:eth1'` into something I can use in a Jinja template?
17:16 jnm_theMailman I'm looking to get hostname and IP address into separate variables, for use in an haproxy config.
17:16 jnm_theMailman (and if there's a better way of approaching that, I'm all ears)
17:18 babilen jnm_theMailman: I have to run, but I'd strongly recommend to use network.ipaddrs rather than the ip4_interfaces:eth1 grain (why hardcode an interface?)
17:18 babilen I create multiple mine function aliases for different CIDR masks
17:19 jnm_theMailman @babilen: Thanks for the suggestion!
17:19 babilen And then get the data from the mine in the file .. Might want to read up on the mine and reactors
17:19 unixdude joined #salt
17:19 babilen jnm_theMailman: All the best .. the mine is used to get information about other minions
17:20 jnm_theMailman @babilen: Trying to keep it as simple as possible at the moment -- Vagrant+VMWare and a few local VMs. Seems like it gets complicated quickly if I get into reactors. >.<
17:22 babilen jnm_theMailman: http://paste.debian.net/997097/
17:22 babilen That's the mine function aliases (assign them via pillars) and the jinja you'd use in a template
17:22 pualj_ joined #salt
17:23 babilen Reactors come into play if you want to change the file whenever you add/remove boxes for example
17:25 edrocks joined #salt
17:25 cro joined #salt
17:25 impi joined #salt
17:33 justan0theruser joined #salt
17:40 edrocks joined #salt
17:43 jnm_theMailman @babilen: Thanks again. Lots to grok.
17:45 coredumb Is there an internal jinja function to generate timestamps?
17:46 coredumb i use {% set timestamp = salt['cmd.run']('date +xxxxxx') %} right now but I'm wondering if I haven't missed something
17:52 cyborg-one joined #salt
17:54 cyborg-one left #salt
17:55 impi joined #salt
18:10 pualj_ joined #salt
18:11 NV joined #salt
18:12 dlam joined #salt
18:14 whytewolf coredumb: https://docs.saltstack.com/en/latest/topics/jinja/index.html#strftime
18:15 coredumb whytewolf: thx!
18:15 coredumb guess I was blind :$
18:16 pualj_ joined #salt
18:22 nullwit left #salt
18:23 pualj_ joined #salt
18:37 pualj_ joined #salt
18:43 pualj_ joined #salt
18:44 brianthelion joined #salt
18:53 Rumbles joined #salt
18:56 alker joined #salt
19:01 Drunk_admin joined #salt
19:02 pualj_ joined #salt
19:16 rodr1c joined #salt
19:16 rodr1c joined #salt
19:18 ooboyle joined #salt
19:20 jesusaur joined #salt
19:24 DammitJim joined #salt
19:29 jnm_theMailman I think maybe I'm not getting something key to how this is supposed to work. I'm setting IP addresses on master and minions in a Vagrantfile; if I want to access IP address and hostname later as variables in a Jinja template, do I still have to pull those in with pillar? or can I access the grains directly?
19:31 JPT If the Vagrantfile makes sure that ip + hostname are configured in the guest system properly, you can use the salt grains or pillar in a jinja template that is part of your state. In that case, your jinja template will need to pull these values through grains or pillar before using them
19:31 Neighbour jnm_theMailman: You can list available grains with `salt minion grains.items` (likewise for pillar.items) and see if there's anything useful in them
19:31 edrocks joined #salt
19:36 jnm_theMailman Okay. I can do `salt -L minion2,minion3 grains.item 'host' 'ip4_interfaces:eth1'` and get what I want, but I'm not sure how to do that in a template.
19:37 Winwin joined #salt
19:38 pualj_ joined #salt
19:38 Neighbour grains.item? isn't that grains.get?
19:40 Neighbour salt state scripts (sls files) get executed on a minion, so the targeting (-L minion2,minion3) is not used. In the script you can use {{ salt['grains.get']('ipv4_interfaces:eth1') }} to retrieve the IP and place it in the script where {{ ... }} is
19:40 jnm_theMailman @Neighbour: grains.item gets *both* grains I want in one call
19:40 Neighbour ah
19:41 Neighbour well, then it would be {{ salt['grains.item']('host', 'ipv4_interfaces:eth1') }}
19:41 saltslackbridge <gtmanfred> salt.network.ipaddrs(interface=‘eth1’)
19:41 ymasson joined #salt
19:41 saltslackbridge <gtmanfred> oh, both in one call, meh
19:42 jnm_theMailman @gtmanfred: Yeah, I'm trying to set up (hopefully) a very basic haproxy.cfg -- two minions behind the load balancer.
19:42 jnm_theMailman I'd like to get hostname and IP address in a for loop.
19:43 jnm_theMailman Vamping off a Digital Ocean tutorial: https://www.digitalocean.com/community/tutorial_series/managing-development-environments-with-saltstack
19:43 saltslackbridge <gtmanfred> nice
19:44 jnm_theMailman I'm using Vagrant and VMWare, and it looks like quite a few things have changed since that was published.
19:44 jnm_theMailman Just working my way through some tuts to try and learn my way around.
19:55 Drunk_admin joined #salt
20:09 justan0theruser joined #salt
20:12 jnm_theMailman Here's what I've got in my haproxy.cfg.jinja: https://gist.github.com/JeffMelton/571bd689706f4a0a045c54a97a3db691
20:13 jnm_theMailman And that's not working as expected. The haproxy.cfg file output from Salt: https://gist.github.com/JeffMelton/de318ba2d9171a30f1c65e6a705339f0
20:14 jnm_theMailman I'm trying to target two minions specifically. Like I say, maybe I'm going about this all wrong, so I'm all ears.
20:17 Neighbour jnm_theMailman: use grains.get in line 2, instead of grains.item
20:17 Neighbour with grains.item, salt returns a dict, where you only want a value
20:18 edrocks joined #salt
20:21 jnm_theMailman @Neighbour: Okay, that's closer: bind ['192.168.50.11']:80 is the output.
20:23 pualj joined #salt
20:24 Neighbour ok, so that looks like a list, maybe add |first to the end of the salt call
20:24 Neighbour (this is a jinja filter that grabs the first element of a list, adding [0] would also work)
20:27 Elsmorian joined #salt
20:28 Neighbour jnm_theMailman: So you'll have something like {{ salt['grains.get']('...') | first }}
20:30 Neighbour jnm_theMailman: And with regards to the backend part...I think your minion targeting is off...the way I interpret what you've put there is that you're looking for the mine values of minions that exist in the list [minion2] and in the list [minion3]
20:30 Neighbour but that can never happen (minion2 is in the first list, but not in the second)
20:30 Neighbour Try with 'or' instead of 'and' :)
20:30 Neighbour also, you can try to get the output of the salt call by running a similar command from the CLI first, and inspecting the output
20:32 _KaszpiR_ joined #salt
20:35 kellyp joined #salt
20:36 tiwula joined #salt
20:37 saltslackbridge <vincetingey> Question for the community.  I have a Windows minion that I need to copy a file to from an SMB network share.  The `file.copy` execution module does not seem to support this in anyway.  It also does not support copying it down from the Salt master unlike the `file.managed` state module.  What is the best way of doing one off file deployments to minions?
20:37 Lenz joined #salt
20:37 pualj_ joined #salt
20:38 tiwula joined #salt
20:46 lordcirth_work vincetingey, do you have this share mounted already?  file.copy copies from one place on the minion to another.
20:46 saltslackbridge <vincetingey> not mounted
20:46 saltslackbridge <vincetingey> trying to access through network path
20:46 lordcirth_work Ok.  So you can use file.managed with replace=False to not overwrite the file after the first copy
20:46 saltslackbridge <gtmanfred> file.managed can just copy it down. but it has to be on the filesystem
20:47 saltslackbridge <gtmanfred> fileserver*
20:47 saltslackbridge <gtmanfred> either way, if you want to copy it down from the master, it has to be in salt://
20:48 Neighbour gtmanfred: Is #salt-devel the right place to ask questions regarding salt code or older commits? I've been idling there for a couple of weeks now, but it seems deadly silent in there
20:48 saltslackbridge <gtmanfred> salt-devel is only a stream of github stuff
20:49 saltslackbridge <gtmanfred> if you have questions about code or older commits, I would open an issue on github
20:49 Neighbour ok, so is there a place to 'ask the devs'? :)
20:49 saltslackbridge <gtmanfred> or email salt-users
20:49 Neighbour hmm, ok
20:49 saltslackbridge <gtmanfred> or possibly join the slack most of the core developers are on here
20:49 saltslackbridge <gtmanfred> but github is where i would say the best place is
20:49 Neighbour ok, thanks, i'll try that
20:50 Neighbour I've been tinkering on minion-initiated ACL for salt mine items, but have some questions about bits of code regarding the salt mine
21:04 Lenz joined #salt
21:05 justan0theruser joined #salt
21:12 cyteen joined #salt
21:36 jnm_theMailman I'm still working on the backend portion of my haproxy.cfg (updated: https://gist.github.com/JeffMelton/571bd689706f4a0a045c54a97a3db691).
21:37 jnm_theMailman mine.get at the CLI returns null; grains.get works at the CLI, but I can't figure out how to get at the values
21:38 Lenz joined #salt
21:39 Neighbour jnm_theMailman: Try getting just the IP of minion2 with `salt minion2 mine.get minion2 internal_ip`
21:40 Neighbour if that doesn't return anything, try `salt minion2 mine.update` first and try again
21:40 Neighbour if that still doesn't return anything, check whether 'internal_ip' is sent properly to the mine in the first place
21:51 mchlumsky joined #salt
21:52 sh123124213 joined #salt
21:52 sh123124213 joined #salt
21:56 cliluw joined #salt
21:58 Lenz joined #salt
21:58 Lenz joined #salt
22:05 tiwula joined #salt
22:06 jnm_theMailman @Neighbour: Thanks for helping with this. I didn't realize the mine had to be set up explicitly. So I'm getting those values to update now, but still returning a list. How do I coax that template into returning the value directly?
22:11 deuscapturus joined #salt
22:23 saltslackbridge <vincetingey> Thanks for the info <lordcirth_work> but I just want to do this as a one off and not push a new state to my repo for deployment
22:32 Rumbles joined #salt
22:35 deuscapturus joined #salt
22:36 jnm_theMailman Finally got it. >.<
22:37 deuscapturus joined #salt
22:38 eightyeight is there a better way of doing a range of characters and digits in a jinja template than this:
22:38 eightyeight {% for letter in 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6','7','8','9' %}
22:38 eightyeight ...
22:38 eightyeight {% endfor %}
22:40 eightyeight i guess range(1, 10) will work for the digits. anything similar for characters?
22:42 FL1SK joined #salt
22:56 Drunk_admin joined #salt
22:57 saltslackbridge <vincetingey> Just tried to use powershell to copy the file using 'copy-item' and it works but when I try and run the powershell command through salt I get errors... sigh. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/copy-item?view=powershell-5.1
23:01 GMAzrael joined #salt
23:05 tiwula joined #salt
23:09 heyimawesome joined #salt
23:15 Rumbles joined #salt
23:22 onlyanegg joined #salt
23:28 deuscapturus joined #salt
23:48 Hybrid joined #salt

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