Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-06-21

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

All times shown according to UTC.

Time Nick Message
00:01 alexlist joined #salt
00:01 fracklen joined #salt
00:05 cachedout joined #salt
00:06 woodtablet left #salt
00:07 cgiroua joined #salt
00:08 mpanetta joined #salt
00:10 onlyanegg joined #salt
00:23 mpanetta joined #salt
00:33 lorengordon joined #salt
00:47 onlyanegg joined #salt
00:59 pbandark joined #salt
01:12 cachedout joined #salt
01:13 Roh joined #salt
01:21 mt5225 joined #salt
01:22 XenophonF joined #salt
01:31 Praematura joined #salt
01:41 schemanic joined #salt
01:41 schemanic Hi
01:42 schemanic I know this is salt but I'm having some general linux trouble, any recommendations for best place to get help with unified diff output?
01:46 MTecknology ##linux?
01:46 schemanic thanks MTecknology
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.6, 2016.11.5 <+> Support: https://www.saltstack.com/support/ <+> 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 <+> The call for speakers for SaltConf17 is now open: http://tinyurl.com/SaltConf17
01:50 hexa- joined #salt
01:53 noobiedubie joined #salt
01:59 zerocoolback joined #salt
02:00 zerocool_ joined #salt
02:05 onovy joined #salt
02:09 cgiroua joined #salt
02:17 nicksloan joined #salt
02:24 mpanetta joined #salt
02:28 swills joined #salt
02:51 Guest73 joined #salt
02:51 ajw0100 joined #salt
02:53 flowstategames joined #salt
02:56 armin joined #salt
02:57 flowstate joined #salt
02:58 flowstategames joined #salt
03:01 timoguin joined #salt
03:01 dendazen joined #salt
03:10 mt5225 joined #salt
03:16 debian112 joined #salt
03:19 robinsmidsrod joined #salt
03:24 onlyanegg Which http library should I use if I need to calls from an execution module?
03:24 onlyanegg Is it best to use salt.utils.http?
03:24 mikea joined #salt
03:24 whytewolf if you are writing a module then yes that would be the one to use
03:25 onlyanegg cool, thx whytewolf
03:26 donmichelangelo joined #salt
03:30 Roh joined #salt
03:31 cro joined #salt
03:48 cachedout joined #salt
03:53 Praematura joined #salt
04:10 cgiroua joined #salt
04:15 flowstategames joined #salt
04:17 mt5225 joined #salt
04:29 qwertyco joined #salt
04:47 pbandark joined #salt
04:50 tobstone joined #salt
04:59 sh123124213 joined #salt
05:15 cachedout joined #salt
05:17 ajw0100 joined #salt
05:18 armyriad joined #salt
05:20 felskrone joined #salt
05:21 aneeshusa joined #salt
05:30 Bock joined #salt
05:30 sh123124213 joined #salt
05:37 buhm joined #salt
05:42 flowstategames joined #salt
05:44 impi joined #salt
05:45 miruoy joined #salt
05:50 Guest73 joined #salt
06:01 rgrundstrom joined #salt
06:01 rgrundstrom left #salt
06:01 rgrundstrom joined #salt
06:01 rgrundstrom Good morning
06:04 davroman1ak left #salt
06:04 davromaniak joined #salt
06:10 rgrundstrom onlyif should be able to use on file.managed?
06:11 aldevar joined #salt
06:12 rgrundstrom and can i set something like this on "- onlyif: salt['grains.get']('fqdn') == "foo.bar.com""
06:16 Neighbour no, because that would be mixing jinja with salt. Jinja statements should go between {% %}, jinja values between {{ and }}
06:17 xet7 joined #salt
06:18 rgrundstrom so {%salt['grains.get']('fqdn') == "salt-master.it.op5.com"%}   ?
06:19 whytewolf also, onlyif uses retcode of shell to determine if something is true or false
06:20 coredumb that ^
06:20 coredumb rgrundstrom: my guess is you want to make a salt yaml block inside a jinja if statement
06:21 coredumb {% if salt['grains.get']('fqdn') == "salt-master.it.op5.com" %} (state definition) {% endif %}
06:21 rgrundstrom one moment
06:24 rgrundstrom Here: https://gist.github.com/anonymous/f909d40cbc4e024ae3efd3f55582201c#file-gistfile1-txt
06:25 rgrundstrom If I can get that working i can compress a lot of other code. It would look relly good.
06:26 mpanetta joined #salt
06:26 beardedeagle joined #salt
06:26 xet7 joined #salt
06:27 whytewolf onlyif: test `hostname -f` == 'foo.bar.com'
06:27 whytewolf [of coarse that would mean that your system is setup right and hostname -f returns the fqdn
06:27 whytewolf ]
06:29 rgrundstrom whytewolf: That is true... And my server does not... So that is a problem with my configuration. I will correct this. Thank you for finding a flaw in my system :)
06:29 Neighbour whytewolf: wouldn't onlyif: test {{ salt['grains.get']('fqdn') }} == 'foo.bar.com'     work then?
06:29 whytewolf i guess you could be cheeky and use onlyif: test {{salt.grains.get('fqdn','foo.bar.com')}} == 'foo.bar.com'
06:29 Neighbour ah :)
06:29 whytewolf was typing it out as you said it :P
06:30 whytewolf i say cheeky as really hostname -f should return the fqdn... if it doesn't fix it
06:31 coredumb I'd rather trust minion id than any fqdn though
06:32 whytewolf well since a host can have multple fqdn's i would too coredump
06:33 rgrundstrom Perfekt situation to update and reboot the server as well. :)
06:34 coredumb whytewolf: my coredump is dumb mind you :P
06:36 whytewolf anyway. i need to see if i can get some sleep before i my flight in the morning. or if this is going to be the longest day i have had in a long time
06:36 coredumb :D
06:39 dxiri joined #salt
06:44 flowstategames joined #salt
06:49 rgrundstrom Gaaah... missed a ":" and the hole thing went haywire... Good thing im not in development and not production yet :)
06:49 Guest73 joined #salt
06:55 lasseknudsen joined #salt
06:56 lasseknudsen2 joined #salt
06:57 MTecknology You don't work in a protest dev?
07:02 rgrundstrom coredump: whytewolf: Thank you... That onlyif helped me remove 14 lines of code :)
07:04 darioleidi joined #salt
07:12 JohnnyRun joined #salt
07:19 gnomethrower joined #salt
07:20 Antiarc joined #salt
07:39 Reverend joined #salt
07:39 zulutango joined #salt
07:45 flowstategames joined #salt
07:49 infrmnt joined #salt
07:56 Naresh joined #salt
08:01 do3meli joined #salt
08:02 do3meli left #salt
08:04 cyborg-one joined #salt
08:06 fracklen joined #salt
08:09 pbandark joined #salt
08:09 Rumbles joined #salt
08:10 impi joined #salt
08:12 ravenx joined #salt
08:14 major joined #salt
08:16 kshlm joined #salt
08:20 Guest73 joined #salt
08:26 mpanetta joined #salt
08:32 sh123124213 joined #salt
08:32 mikecmpbll joined #salt
08:36 irated joined #salt
08:37 jtb joined #salt
08:43 jtb Hi, I'm new and I'd like to know how to get a variable from a pillar interpreted in a set as follows : https://pastebin.com/124f8xA0
08:44 jtb Is it possible or maybe there's a specific syntax to do that
08:44 jtb (for now if I use {{ foo }} in my template, I get {{ args.documentroot }} in raw)
08:46 flowstategames joined #salt
08:49 Mattch joined #salt
08:53 hemebond jtb: "<Directory " ~ args.documentroot ~ ">
08:53 jtb hemebond: thanks a lot :)
08:58 N-Mi joined #salt
08:58 N-Mi joined #salt
09:06 fracklen joined #salt
09:07 Hybrid joined #salt
09:21 mt5225 joined #salt
09:27 yuhl______ joined #salt
09:28 candyman88 joined #salt
09:37 fracklen joined #salt
09:38 oida joined #salt
09:40 schemanic joined #salt
09:46 Guest73 joined #salt
09:47 flowstategames joined #salt
09:57 twowo joined #salt
09:57 twowo left #salt
09:59 Trauma joined #salt
10:00 mikecmpbll joined #salt
10:04 felskrone1 joined #salt
10:10 asterisc joined #salt
10:21 asterisc can pillar values be changed from minions?
10:22 dwfreed joined #salt
10:22 whytewolf no
10:22 mt5225 joined #salt
10:27 mpanetta joined #salt
10:43 nku asterisc: sounds like you want grains
10:43 asterisc nku: in theory grains are for static data.. I need something 'minion' accessible and modifiable, but dynamic
10:48 flowstategames joined #salt
11:01 nix_ joined #salt
11:04 fullgobhi joined #salt
11:12 fullgobhi hello
11:12 fullgobhi i was trying to provision VN
11:13 fullgobhi *VMs using salt-cloud
11:13 fullgobhi on openstack
11:14 fullgobhi but it is not giving floating ip to all the instances, i have successfully created profile and provider conf file and map file
11:14 fullgobhi and i am able to create instances successfully but the only issue is that all of them does not get floating ip
11:15 fullgobhi in output it shows that all of them get same floating ip, so as a result only one of them get a ip
11:15 fullgobhi please help
11:22 mt5225 joined #salt
11:22 NegiLXXXVIII joined #salt
11:23 NegiLXXXVIII can i have multiple require for a state?
11:26 hemebond Yes. require takes a list
11:27 fullgobhi hey
11:27 fullgobhi is there anyone who can help me
11:28 fullgobhi i am not able to assign floating ip to all instances that i create on cloud
11:29 SMARTODDS\mccaff joined #salt
11:33 salt-noob joined #salt
11:37 tobstone joined #salt
11:37 ProT-0-TypE joined #salt
11:40 pbandark joined #salt
11:41 sh123124213 joined #salt
11:47 salt-noob joined #salt
11:49 saltnoob joined #salt
11:52 saltnoob left #salt
11:52 saltnoob joined #salt
11:53 mt5225 joined #salt
11:53 saltnoob where should I put mine function files
11:54 saltnoob and is there any naming convention I need to follow
12:07 asyncsec joined #salt
12:12 haam3r_ saltnoob: https://docs.saltstack.com/en/latest/topics/mine/#mine-functions
12:13 dendazen joined #salt
12:18 haam3r_ saltnoob: or do you mean you have a custom mine function?
12:21 saltnoob yea I guess I just place it in the top file targeting the machines I want it to run on
12:22 haam3r_ so pillar usually is where you define the mine functions..I for example have separate /srv/pillar/mine.sls file that I include in the pillar top file for minions
12:22 darioleidi joined #salt
12:30 colegatron joined #salt
12:32 amcorreia joined #salt
12:35 asterisc joined #salt
12:36 nicksloan joined #salt
12:38 buu joined #salt
12:43 sh123124213 joined #salt
12:46 kjsaihs joined #salt
12:46 dxiri joined #salt
12:47 dxiri joined #salt
12:52 numkem joined #salt
12:54 mt5225 joined #salt
13:02 Reverend joined #salt
13:03 nick79_ joined #salt
13:14 Shirkdog joined #salt
13:22 seanacais joined #salt
13:28 cgiroua joined #salt
13:28 evle1 joined #salt
13:34 do3meli joined #salt
13:34 do3meli left #salt
13:43 colttt joined #salt
13:46 Cottser joined #salt
13:47 cachedout joined #salt
13:51 flowstategames joined #salt
13:55 bowhunter joined #salt
13:56 racooper joined #salt
14:02 cgiroua joined #salt
14:03 mpanetta joined #salt
14:06 mpanetta joined #salt
14:07 noobiedubie joined #salt
14:12 LostSoul joined #salt
14:13 mt5225 joined #salt
14:18 seanacais_ joined #salt
14:19 promorphus joined #salt
14:20 bowhunter joined #salt
14:29 nfahldieck joined #salt
14:35 seanacais joined #salt
14:41 mage__ left #salt
14:42 cwandrews joined #salt
14:44 hasues joined #salt
14:44 hasues left #salt
14:46 Rumbles joined #salt
14:47 Splix76 joined #salt
14:49 edrocks joined #salt
14:52 seanacais_ joined #salt
14:57 SneakyPh1l left #salt
14:58 Renich_ joined #salt
15:00 sh123124213 joined #salt
15:00 gord0 joined #salt
15:18 yuhl______ joined #salt
15:21 dxiri joined #salt
15:22 Heartsbane joined #salt
15:22 Heartsbane joined #salt
15:27 impi joined #salt
15:29 Trauma joined #salt
15:31 Roh joined #salt
15:31 zerocoolback joined #salt
15:33 bowhunter joined #salt
15:39 mchlumsky joined #salt
15:40 rludosan joined #salt
15:44 tkojames joined #salt
15:45 flavio joined #salt
15:45 aneeshusa joined #salt
15:46 cwandrews joined #salt
15:54 woodtablet joined #salt
16:00 heaje joined #salt
16:02 swills joined #salt
16:11 armyriad joined #salt
16:18 edrocks joined #salt
16:23 Bock joined #salt
16:25 PatrolDoom joined #salt
16:27 Elsmorian joined #salt
16:37 debian112 joined #salt
16:37 darioleidi joined #salt
16:38 debian112 joined #salt
16:38 hashwagon joined #salt
16:39 exegesis joined #salt
16:41 tpaul joined #salt
16:43 fritz09 joined #salt
16:43 Reverend joined #salt
16:45 tpaul "Describe your ideal orchestration environment in 15 seconds or less."
16:45 tpaul Me: https://youtu.be/5Lv9V5xcdT8
16:46 mikea- joined #salt
16:46 mikea- left #salt
16:48 darioleidi joined #salt
16:49 v3x joined #salt
16:50 v3x How do I form a Jinja statement to match an item in a list? If a grain is a *list* of values, a simple "{% if grains['key'] == 'value' %} doesn't work because salt returns the "value" as a list item inside brackets
16:53 jauz left #salt
16:53 jauz joined #salt
16:54 noobiedubie joined #salt
16:58 debian112 joined #salt
17:00 Guest73 joined #salt
17:01 toastedpenguin joined #salt
17:02 heaje v3x: "{% if 'value' in grains['key'] %}
17:03 heaje while it's not exactly 1-to-1, the syntax of jinja is very similar to python in most cases
17:03 toastedpenguin need to run a powershell script on multiple minions, is the only method of doing this creating a state file and pushing this down to each minion?
17:03 ThomasJ|d joined #salt
17:04 PatrolDoom joined #salt
17:08 asyncsec joined #salt
17:17 lordcirth_work toastedpenguin, not the only but probably best
17:19 Lionel_Debroux_ joined #salt
17:22 bowhunter joined #salt
17:25 lordcirth_work Is there a way to edit nodegroups without master restart?  Not a big deal, just wondering
17:25 zach_ left #salt
17:28 aphistic_ left #salt
17:28 aphistic joined #salt
17:29 aphistic hey, i'm using dockerng to start a container but it doesn't seem like it's checking if there's a newer image for a tag when the state is applied. is there a way i can make salt check if there's a newer image for say, the latest tag when it runs?
17:29 darioleidi joined #salt
17:30 za joined #salt
17:30 lordcirth_work aphistic, with dockerng.running ?
17:30 aphistic yeah
17:30 aphistic i pushed a new image to the repo with the latest tag but it's not getting pulled down when i apply the state to a minion
17:30 lordcirth_work aphistic, perhaps - environment: with - image: bar/baz:latest ?
17:37 aphistic ahh, it looks like i should be using dockerng.image_present with force: True, then doing an onchanges: dockerng: <that image>
17:37 aphistic i tried that and it worked
17:39 lordcirth_work aphistic, yeah I also saw Force, but that seems like overkill?
17:39 lordcirth_work I guess it doesn't matter if you're not doing it often
17:41 aphistic i ran it twice and it looks like it will connect to the registry and see that there's no new update so it won't trigger a download
17:41 basepi joined #salt
17:42 mikecmpbll joined #salt
17:42 lordcirth_work aphistic, oh that's ok then
17:49 aphistic lordcirth_work: yup! thanks for the help though :)
17:49 edrocks joined #salt
18:01 timoguin joined #salt
18:06 tobstone_ joined #salt
18:12 timoguin_ joined #salt
18:14 woodtablet i wrote my own custom grain, and plopped into salt/_grains and ran salt 'minion1' saltutil.sync_all && salt-run saltutil.sync_all, and i see it getting the new custom grain, but when i run salt 'minion1' grains.items i dont see my custom stuff
18:14 woodtablet do i need to do something else to incorporate it ?
18:15 v3x thanks heaje
18:15 woodtablet if i grep through the logs on the master, i dont see my grain.. (thinking there would be an error) hmm...
18:16 lordcirth_work woodtablet, what happens if you grains.get it?
18:16 woodtablet oh thats a cool cmd
18:16 woodtablet if i pass the grain name to the get cmd, it returns nothing
18:17 woodtablet ohh
18:17 woodtablet i am missing a library i think
18:17 woodtablet how do i give salt and its minions a python library ? (safely)
18:17 lordcirth_work woodtablet, missing dependencies are a common cause of grains errors
18:17 lordcirth_work woodtablet, what library?
18:17 woodtablet netifaces
18:17 Xenophon1 joined #salt
18:18 woodtablet i have the depenedency on my desktop
18:18 lordcirth_work woodtablet, apt install python-netifaces
18:18 woodtablet ohh
18:18 lordcirth_work or similar package
18:18 lordcirth_work So pkg.installed
18:18 woodtablet only the system needs it ?
18:18 woodtablet GREAT!
18:18 woodtablet @lordcirth thanks!
18:18 lordcirth_work Just install the package on '*' minions
18:18 woodtablet exactly
18:20 woodtablet hmm..
18:20 woodtablet that wasnt enough
18:20 lordcirth_work woodtablet, by the way, this is what I install on all minions: https://gist.github.com/lordcirth/434d52f251809f079ef5952a0ef67f6d
18:21 lordcirth_work Many of those are on Ubuntu Server already, but we deal with stripped-down containers sometimes
18:21 woodtablet thanks
18:21 woodtablet ya, my containers have nothing, and i should really incorporate salt into my docker deploys
18:22 lordcirth_work My lxc container creation adds the salt repo and updates packages, but doesn't install salt-minion because it conflicts with the salt seeding
18:22 lordcirth_work Well, adds our mirror of the salt repo
18:22 woodtablet after installing the dependency, i had to do a salt sync again, and my grain works, thanks again
18:22 lordcirth_work woodtablet, np
18:22 woodtablet you dont install the minion ?
18:23 woodtablet so for my docker images, i right now just do a salt-masterless deploy of like 2 config files. is that what you are doing ?
18:24 mikea joined #salt
18:24 nixjdm joined #salt
18:25 mikea joined #salt
18:31 lordcirth_work woodtablet, I install the repository and the /etc/salt/minion file, but don't install the packages.  I did at first, but the salt lxc.init seeding kept conflicting with the pre-existing minion
18:32 lordcirth_work So I let lxc.init install the salt-minion package, right after running the salt-ubuntu LXC template.
18:33 woodtablet ahh
18:33 woodtablet i see
18:33 woodtablet salt seed being the salt bootstrap script ?
18:34 Trauma joined #salt
18:35 lordcirth_work woodtablet, it uses the bootstrap, yeah
18:38 woodtablet lordcirth_work: thanks again
18:38 lordcirth_work woodtablet, no problem.
18:41 impi joined #salt
18:44 shakalaka joined #salt
18:53 edrocks joined #salt
18:57 shakalaka joined #salt
19:02 Roh joined #salt
19:06 fracklen joined #salt
19:06 cyborg-one joined #salt
19:08 shakalaka joined #salt
19:19 yuhl______ joined #salt
19:19 Rumbles joined #salt
19:20 edrocks joined #salt
19:22 timoguin joined #salt
19:24 oida_ joined #salt
19:27 brianthelion joined #salt
19:27 yuhl______ joined #salt
19:29 yuhl______ joined #salt
19:31 brianthelion is there a word for when you run "salt-minion -u" as an unprivileged user?
19:34 brianthelion I would like to use salt-call to drive a salt-minion that I prop up in a development sandbox -- so no access to the system minion config, cache, or anything else
19:34 brianthelion but i don't know how to google for that
19:34 bowhunter joined #salt
19:38 yuhl______ left #salt
19:40 mikea brianthelion, I just use docker containers
19:41 brianthelion @mikea: docker containers are one of my use-cases, but in some instances i need to use it in a non-chroot environment
19:41 nixjdm joined #salt
19:41 mikea there's some things you can't do in docker easily, like manage services (no systemd running in the container) but for developing most other things it works well
19:44 yuhl______ joined #salt
19:48 ChubYann joined #salt
19:52 lordcirth_work brianthelion, there's also LXC containers or VMs
19:54 censorshipwreck joined #salt
19:56 lorengordon brianthelion: what if you use -c to point at a custom config location? you can pass a config with values for that sandbox
20:05 yuhl______ joined #salt
20:08 tobston__ joined #salt
20:29 timoguin_ joined #salt
20:30 flowstategames joined #salt
20:36 brianthelion lorengordon: i'll try that and report back. I assume that both salt-call and salt-minion will need to point at the same -c location?
20:37 lorengordon i don't think so, you can use salt-call -c independently
20:38 onlyanegg joined #salt
20:39 yuhl______ joined #salt
20:46 bowhunter joined #salt
20:48 brianthelion lorengordon: How do I tell salt-call to talk to the sandbox minion instead of the system-wide minion? I assumed it would be by doing "salt-minion -c sandbox/config" and "salt-call -c sandbox/confg"
20:49 lorengordon so, outside my wheelhouse. i only use masterless, so really not sure about the salt-minion options
20:50 brianthelion lorengordon: i'll give it a try and see
20:53 lorengordon just eyeballing the docs, looks like salt-minion -c would work
20:54 brianthelion all really want is a version of salt-call --local that doesn't depend on the system-wide (and root-owned) /var/cache/minions -- effectively a "userspace" version of salt-call
20:54 lorengordon or use salt-minion -p to set the pid-file and salt-minion -c with a `pidfile` setting that points to the same location?
20:54 lorengordon err, salt-call -c ...
20:56 armyriad joined #salt
20:56 lorengordon oh, well, if masterless mode is ok, you could use "salt-call --local -c /path/to/sandbox" and manage the sandbox config such that the cache dir and everything else are in userspace
20:56 lorengordon then you don't need the salt-minion at all actually
20:57 seanacais joined #salt
20:57 mikecmpbll joined #salt
20:57 nixjdm joined #salt
20:59 Rumbles joined #salt
21:00 brianthelion lorengordon: i didn't see an obvious way to avoid not using the global cache in the --help
21:00 brianthelion you can dodge everything else, but not the cache
21:00 brianthelion can you dodge it in the config file?
21:01 lorengordon yes, in the config file, https://docs.saltstack.com/en/latest/ref/configuration/minion.html#cachedir
21:06 brianthelion sweet
21:06 seanacais_ joined #salt
21:16 asyncsec_ joined #salt
21:17 armonge joined #salt
21:19 ronnix joined #salt
21:23 kiff joined #salt
21:33 ronnix joined #salt
21:35 onlyanegg joined #salt
21:38 buu joined #salt
21:40 tooth_ left #salt
21:45 mikecmpb_ joined #salt
22:03 CrummyGummy joined #salt
22:07 teh_champ joined #salt
22:10 felskrone joined #salt
22:12 edrocks joined #salt
22:23 asyncsec joined #salt
22:28 bowhunter joined #salt
22:29 fracklen joined #salt
22:37 onlyanegg How can I configure the rawfile_json returner? I've added rawfile_json.filename: <path_to_output_file> to my master and minion configs. Do I need to something else?
22:38 edrocks joined #salt
22:40 onlyanegg Ok, so I see the --return argument for salt and salt-call, but I'd like to add it as a default
22:41 onlyanegg I want to see the minion return of a state.orchestrate
22:44 ni291187 joined #salt
22:46 ni291187 left #salt
22:50 edrocks joined #salt
22:55 sh123124213 joined #salt
22:56 fracklen joined #salt
23:00 onlyanegg Alright, I think I found it - return: rawfile_json - added in 2016.11.3 - https://github.com/saltstack/salt/pull/38221
23:01 onlyanegg sorry, 2016.3
23:10 rihannon joined #salt
23:12 bowhunter joined #salt
23:16 timoguin joined #salt
23:21 edrocks joined #salt
23:26 shanth if i do a compound match in the top file for G@os:FreeBSD and G@virtual_subtype:jail - does the and mean it has to be BOTH freebsd and a jail as well to match, or is it matching freebsd systems, and also jails?
23:26 flowstategames joined #salt
23:27 raspado joined #salt
23:28 raspado i have a template in salt where im trying to set values based on grains on the minion, so for exmaple in my template on the salt master, I have "cloud: {{ grains['operational_environment'] }}" as a key:value
23:28 raspado is that the correct way to set a value in a jinja template? I dont see the template having the correct values on the minion
23:29 shanth did you set template: jinja in the state file raspado?
23:29 raspado yeah
23:29 shanth what does your cloud value render as when you run it?
23:30 raspado shanth: oh crap... no i did not :(
23:30 raspado damn i thought i made that commit!
23:30 shanth :)
23:30 raspado let me set that first, thanks shanth for pointing that out
23:30 shanth i do it all the time
23:30 shanth haha
23:31 shanth im outta here
23:31 raspado peace thx again
23:35 Roh joined #salt
23:37 Roh joined #salt
23:40 flowstategames joined #salt
23:41 babilen shanth: the former
23:42 shanth that's what i hoped babilen
23:42 shanth :D
23:43 babilen you'd want 'or' for the union
23:45 flowstategames joined #salt
23:46 joe_n joined #salt
23:55 cyteen joined #salt
23:56 hoonetorg joined #salt

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