Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-12-21

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

All times shown according to UTC.

Time Nick Message
00:05 keimlink_ joined #salt
00:08 tmclaugh[work] joined #salt
00:09 invalidexception joined #salt
00:11 flowstate joined #salt
00:11 keimlink joined #salt
00:14 TyrfingMjolnir joined #salt
00:18 cliluw joined #salt
00:41 yomilk joined #salt
00:42 yomilk joined #salt
00:43 ajw0100 joined #salt
00:43 otter768 joined #salt
00:48 yomilk joined #salt
00:52 onlyanegg Is there an offiical openstack project for salt?
00:54 onlyanegg I mean for deployment of openstack infrastructure
00:54 akhter joined #salt
00:58 akhter joined #salt
01:07 bhosmer joined #salt
01:07 abednarik joined #salt
01:09 akhter joined #salt
01:19 Edgan Any used salt cloud with ec2 heavily?
01:20 amcorreia joined #salt
01:22 invalidexception joined #salt
01:29 yomilk_ joined #salt
01:35 justanotheruser joined #salt
01:41 flowstate joined #salt
01:41 yomilk joined #salt
01:42 dyasny joined #salt
01:47 abednarik joined #salt
01:58 jdipierro joined #salt
01:59 jdipierro joined #salt
02:02 yomilk_ joined #salt
02:05 favadi joined #salt
02:06 kusams joined #salt
02:16 yomilk joined #salt
02:21 lumtnman joined #salt
02:22 auzty joined #salt
02:24 anotherZero joined #salt
02:30 DammitJim joined #salt
02:41 flowstate joined #salt
02:46 edrocks joined #salt
02:46 otter768 joined #salt
02:50 yomilk_ joined #salt
02:53 evle joined #salt
02:57 DammitJim joined #salt
02:57 kusams joined #salt
02:59 catpigger joined #salt
03:06 akhter joined #salt
03:07 invalidexception joined #salt
03:09 jdipierro joined #salt
03:11 jdipierr_ joined #salt
03:20 yomilk joined #salt
03:32 Singularo joined #salt
03:33 jdipierro joined #salt
03:33 jdipierro joined #salt
03:41 flowstate joined #salt
03:42 colegatron joined #salt
03:50 racooper joined #salt
03:55 jdipierro joined #salt
03:57 malinoff joined #salt
04:00 DammitJim joined #salt
04:00 dayid joined #salt
04:00 dayid joined #salt
04:03 jdipierro joined #salt
04:07 otter768 joined #salt
04:07 Shyana joined #salt
04:08 dayid joined #salt
04:08 dayid joined #salt
04:08 cberndt joined #salt
04:09 kusams joined #salt
04:11 hasues joined #salt
04:11 Shyana left #salt
04:11 hasues left #salt
04:20 kshlm joined #salt
04:20 kusams_ joined #salt
04:22 malinoff joined #salt
04:26 ramteid joined #salt
04:40 flowstate joined #salt
04:46 justanotheruser joined #salt
04:48 otter768 joined #salt
04:54 rem5 joined #salt
04:57 jdipierro joined #salt
05:05 jdipierro joined #salt
05:07 jdipierro joined #salt
05:10 jdipierro joined #salt
05:11 rdas joined #salt
05:25 jdipierro joined #salt
05:29 whytewolf joined #salt
05:35 wildfire joined #salt
05:38 flowstate joined #salt
05:46 invalidexception joined #salt
05:55 nafg_ joined #salt
06:08 malinoff joined #salt
06:17 favadi joined #salt
06:27 jdipierro joined #salt
06:31 jaybocc2 joined #salt
06:38 flowstate joined #salt
06:39 anmol joined #salt
06:44 mohae joined #salt
06:46 felskrone joined #salt
07:10 colttt joined #salt
07:15 kusams joined #salt
07:18 AlberTUX joined #salt
07:18 felskrone1 joined #salt
07:25 mattiasr joined #salt
07:27 mohae joined #salt
07:31 otter768 joined #salt
07:33 antpa joined #salt
07:34 nafg_ joined #salt
07:36 KermitTheFragger joined #salt
07:37 netcho joined #salt
07:40 flowstate joined #salt
07:54 dkrae joined #salt
08:02 dkrae joined #salt
08:04 zerthimon joined #salt
08:08 Trauma joined #salt
08:10 jaybocc2 joined #salt
08:21 flowstate joined #salt
08:27 eseyman joined #salt
08:30 linjan joined #salt
08:35 akhter joined #salt
08:47 traph_ joined #salt
08:52 Rumbles joined #salt
09:09 shiriru joined #salt
09:12 traph_ joined #salt
09:27 Erik_P joined #salt
09:29 Erik_P any one stuck with this error when try to install msi in windows '_comment': 'Registry not updated.'
09:32 Xevian joined #salt
09:32 otter768 joined #salt
09:32 GreatSnoopy joined #salt
09:36 LeProvokateur joined #salt
09:40 flowstate joined #salt
09:40 opdude_ joined #salt
09:41 toddnni_ joined #salt
09:41 k00mi joined #salt
09:42 tedski- joined #salt
09:43 thefish joined #salt
09:43 the_ktosiek joined #salt
09:44 iamtew_ joined #salt
09:44 sirtaj_ joined #salt
09:44 colegatron joined #salt
09:44 muep_ joined #salt
09:44 douardda_ joined #salt
09:45 ze-_ joined #salt
09:45 btorch_ joined #salt
09:45 lionel_ joined #salt
09:45 ignasr_ joined #salt
09:45 ventris_ joined #salt
09:45 nahamu_ joined #salt
09:45 terratom1 joined #salt
09:45 Ludo__ joined #salt
09:45 rbjorkli1 joined #salt
09:46 slav0nic joined #salt
09:47 EvaSDK_ joined #salt
09:47 EvaSDK_ joined #salt
09:47 ajolo_ joined #salt
09:47 geekatcmu_ joined #salt
09:48 gchao_ joined #salt
09:48 gnord_ joined #salt
09:48 ZombieTwiglet joined #salt
09:48 bbradley_ joined #salt
09:48 Karunamon|2 joined #salt
09:48 ask- joined #salt
09:48 JPau1 joined #salt
09:48 okfine_ joined #salt
09:48 nobrak_ joined #salt
09:48 unusedPh- joined #salt
09:48 smkelly_ joined #salt
09:48 ujjain- joined #salt
09:48 culexor_ joined #salt
09:48 jasondotstar_ joined #salt
09:48 phx- joined #salt
09:48 JoeJulian_ joined #salt
09:48 artemz- joined #salt
09:48 quarcu_ joined #salt
09:48 intr1nsic_ joined #salt
09:49 arif-ali_ joined #salt
09:49 marcinkuzminski_ joined #salt
09:49 drw- joined #salt
09:50 Yoda-BZH joined #salt
09:50 mitsuhiko_ joined #salt
09:50 Yoda-BZH joined #salt
09:50 wych How to use pillar like hiera?
09:51 ws2k3 joined #salt
09:51 s_kunk joined #salt
09:51 s_kunk joined #salt
09:52 unusedPhD joined #salt
09:52 ujjain- joined #salt
09:52 cswang_ joined #salt
09:54 pdx6_ joined #salt
09:56 masterkorp joined #salt
09:57 portalus1r joined #salt
09:57 raso2 joined #salt
09:57 djinni`_ joined #salt
09:57 boargod3 joined #salt
09:58 lahwran_ joined #salt
09:59 buMPnet joined #salt
09:59 JoeJulian_ joined #salt
09:59 Adobeman joined #salt
10:00 asco1aro joined #salt
10:00 tehsufn joined #salt
10:00 Corey_ joined #salt
10:01 mephx_ joined #salt
10:01 nicksloan- joined #salt
10:01 AllSySt3msG0 joined #salt
10:02 Xevian_ joined #salt
10:02 jerryc joined #salt
10:02 chamunks- joined #salt
10:02 Micromus_ joined #salt
10:03 sk_0_ joined #salt
10:04 jayne_ joined #salt
10:04 tawm04_ joined #salt
10:04 artemz joined #salt
10:05 eliasp_ joined #salt
10:05 Dev0n_ joined #salt
10:06 edulix_ joined #salt
10:07 ahammond_ joined #salt
10:10 ernetas_ joined #salt
10:11 cwyse_ joined #salt
10:11 VSpike_ joined #salt
10:11 CeBe1 joined #salt
10:12 Pixionus joined #salt
10:12 scc joined #salt
10:14 ctrlrsf joined #salt
10:14 wendall911 joined #salt
10:15 EvaSDK joined #salt
10:15 EvaSDK joined #salt
10:16 hoonetorg joined #salt
10:17 fredvd joined #salt
10:17 dyasny joined #salt
10:19 drawsmcgraw joined #salt
10:22 joshin joined #salt
10:22 joshin joined #salt
10:22 jaybocc2 joined #salt
10:26 zer0def joined #salt
10:29 jdipierro joined #salt
10:38 flowstate joined #salt
10:41 ggoZ joined #salt
10:41 ajw0100 joined #salt
10:43 kshlm joined #salt
10:54 amcorreia joined #salt
10:56 Vaelatern joined #salt
10:57 yomilk joined #salt
11:06 giantlock joined #salt
11:10 jaybocc2 joined #salt
11:11 N-Mi joined #salt
11:17 slav0nic any workarounds for custom grains/targeting in salt-ssh? now i use dicts in pillars with host id as key + globbing targeting, like {{ pillar['foo'][grains['id']] }}
11:29 Trauma joined #salt
11:33 otter768 joined #salt
11:33 davromaniak joined #salt
11:38 nkuttler joined #salt
11:39 babilen slav0nic: It is not clear what the exact problem is you are trying to solve
11:39 babilen (to me at least)
11:40 afics joined #salt
11:41 slav0nic babilen, grains does't work in salt-ssh
11:45 AndreasLutro slav0nic: grains work, grain targetting doesn't
11:46 slav0nic AndreasLutro, can you show example for define grains in roster?
11:47 slav0nic grains.items work for me, but all custom grains not available in {{ grains }}
11:49 TyrfingMjolnir joined #salt
11:55 antpa joined #salt
11:59 Erik_P any one stuck with this error when try to install msi in windows '_comment': 'Registry not updated.'
12:01 _mel_ joined #salt
12:04 Linuturk joined #salt
12:16 fredvd joined #salt
12:28 anmol joined #salt
12:30 yomilk joined #salt
12:30 rotbeard joined #salt
12:34 the_drow joined #salt
12:39 flowstate joined #salt
12:45 shiin joined #salt
12:45 quasiben joined #salt
12:47 upb joined #salt
12:48 yomilk joined #salt
12:52 alxchk left #salt
12:52 antpa joined #salt
12:55 shiriru joined #salt
12:56 giantlock joined #salt
13:03 stolenmoment joined #salt
13:04 stolenmoment left #salt
13:15 rotbeard joined #salt
13:15 TooLmaN joined #salt
13:22 jaybocc2 joined #salt
13:26 pegmanm joined #salt
13:26 Lionel_Debroux joined #salt
13:28 DammitJim joined #salt
13:28 Erik_P joined #salt
13:28 Erik_P any one stuck with this error when try to install msi in windows '_comment': 'Registry not updated.'
13:33 bmcorser joined #salt
13:34 otter768 joined #salt
13:35 TyrfingMjolnir joined #salt
13:37 anotherZero joined #salt
13:38 jaybocc2 joined #salt
13:41 jdipierro joined #salt
13:44 pegmanm joined #salt
13:47 edrocks joined #salt
13:52 av_ joined #salt
13:54 antpa joined #salt
13:54 subsignal joined #salt
13:56 kusams joined #salt
14:00 kusams joined #salt
14:01 toastedpenguin joined #salt
14:04 jhauser joined #salt
14:05 kusams joined #salt
14:09 diegows joined #salt
14:14 evle1 joined #salt
14:21 _JZ_ joined #salt
14:23 jrklein joined #salt
14:26 tmclaugh[work] joined #salt
14:30 Tanta joined #salt
14:34 racooper joined #salt
14:35 numkem joined #salt
14:37 winsalt joined #salt
14:37 perfectsine joined #salt
14:46 FreeSpencer joined #salt
14:46 FreeSpencer joined #salt
14:53 intel joined #salt
14:54 ALLmightySPIFF joined #salt
14:59 Xopher joined #salt
15:03 nyx_ joined #salt
15:03 Erik_P any one stuck with this error when try to install msi in windows '_comment': 'Registry not updated.'
15:04 hasues joined #salt
15:04 upb joined #salt
15:05 rem5 joined #salt
15:05 babilen https://github.com/saltstack/salt/issues/28218
15:05 saltstackbot [#28218]title: Windows win_pkg module is not finding 64 bit packages [somewhat serious] | Previously a package we have installed successfully, but recently it fails with a vague message about the registry. While the state fails, the package gets installed anyway, and if I log the install process it shows no errors.  When I check the box manually I see the package is installed, and everything looks normal....
15:05 babilen Erik_P: ^
15:06 jdipierro joined #salt
15:06 lwm joined #salt
15:07 winsalt I think he is the last comment in that thread, and he is asking here too
15:07 babilen Ah, winsalt also had that problem (judging from my IRC logs)
15:09 antpa joined #salt
15:09 dyasny joined #salt
15:09 akhter joined #salt
15:09 blue0ctober joined #salt
15:12 lwm hmmm, can someone explain this target to me - 'not G@roles:saltmaster and G@environment:dev'
15:12 lwm new to saltstack ...
15:13 hasues left #salt
15:14 babilen All boxes that neither have a "roles" grains that includes "saltmaster" nor an "environment" grain that includes "dev"
15:14 * babilen disliked grains for roles
15:14 nyx_ babilen: we use that pattern, what alternative do you prefer?
15:15 nyx_ lwm: that's a compound matcher: https://docs.saltstack.com/en/latest/topics/targeting/compound.html
15:16 babilen nyx_: Pillars, I simply don't understand why you would want to save that data in a distributed manner. Let alone that minions can easily fake it and claim to be "the saltmaster" or similar.
15:16 lwm nyx_, babilen: thanks!
15:17 kusams joined #salt
15:18 Erik_P babilen: any sulotion for this?
15:18 ALLmightySPIFF joined #salt
15:18 Erik_P maybe a workaround?
15:18 babilen Erik_P: winsalt might know -- I haven't touched Windows in 15 years and do not intend to change that :D
15:18 babilen Just thought I'd point out a relevant bug report I stumbled upon
15:18 cyteen_ joined #salt
15:18 Erik_P thnaks i sow it :-)
15:19 Erik_P try to work with the code to find the problem
15:19 Erik_P trying
15:19 winsalt I never found out exactly why the windows pkgs failed like that, i upgraded to 2015.8.3 and the problem went away
15:19 babilen Erik_P: Which version of salt are you using?
15:19 cpowell joined #salt
15:19 DanyC joined #salt
15:19 Erik_P 2015.8.3
15:20 Erik_P i tryed to install java
15:20 Erik_P i downgrade to 2015.8.1 and all work well
15:21 Erik_P now i return to 2015.8.3 and its see the java already installed
15:21 DanyC anyone knows how to import a salt module via python repl on a minion to test why things are failing when are called from master?
15:21 DanyC if i do only _import boto_secgroup_ it says it can't find the module although is present
15:22 zmalone joined #salt
15:23 lwm can someone tell me the difference between pillar and grains, when for example, they are both just static values?
15:25 babilen lwm: Grains are typically more or less static data that is gathered *on* the minion. It includes data such as memory, hostnames, network configuration, ... Pillars are essentially Python dictionaries that are being made available to every minion specifically. This makes them usable for sensitive data as only a specific minion can see them.
15:26 babilen lwm: Furthermore pillars are typically used to "configure" or "tailor" more generic salt states to your needs as done by salt formulas
15:27 lwm babilen: righto, that makes a lot of sense
15:30 flowstate joined #salt
15:35 otter768 joined #salt
15:41 lumtnman joined #salt
15:42 colegatron joined #salt
15:47 giantlock joined #salt
15:47 malinoff joined #salt
15:48 spuder joined #salt
15:49 jaybocc2 joined #salt
15:49 fxhp joined #salt
15:52 tpaul joined #salt
15:52 conan_the_destro joined #salt
15:57 jdubski joined #salt
16:00 flowstate joined #salt
16:01 jdipierro joined #salt
16:04 marsdominion joined #salt
16:04 marsdominion joined #salt
16:05 jaybocc2 joined #salt
16:08 Erik_P winsalt:i see you had the same problem with Registry not updated
16:09 winsalt yeah, but I think it was an issue with the 32bit salt installer they were still serving from their old download page
16:10 winsalt when i upgraded to 8.3 the problem went away
16:11 murrdoc joined #salt
16:11 marsdomi_ joined #salt
16:13 _mel_ joined #salt
16:16 mr_const joined #salt
16:16 mr_const hi, I've got two questions about gitfs
16:17 Erik_P from where you download the pkg?
16:17 mr_const I'm deploying our web service from git sources and would like to make a post-push hook, which will call salt deployment of the sources
16:18 mr_const but it seems, that would be unusable, as gitfs caches data and I have to wait few minutes after the push, before salt will get new data
16:20 mr_const so, is there any way to make post-push hook
16:20 mr_const and is there some way to make it faster? :)
16:21 drawsmcgraw mr_const: There's a filesystem runner
16:21 drawsmcgraw What I do when I'm impatient
16:22 drawsmcgraw is run 'salt-run fileserver.update'
16:22 drawsmcgraw But the default install has the Master updating the GitFS cache every 60 seconds, too\
16:22 Erik_P winsalt:i am on 2015.8.3 and still the same
16:22 drawsmcgraw I've used salt-api + Reactor to do (I think) exactly what you're trying to do, and it works well
16:23 drawsmcgraw Github -> POST to -> salt-api -> wired up to -> Reactor -> runs -> some states
16:23 winsalt Erik_P, i got mine from http://repo.saltstack.com/#windows.  If its still happening, then I dont know what it could be
16:24 mr_const drawsmcgraw, hm... thanks, exactly seems like what I need :)
16:24 winsalt what I did in that github issue, was open up python and import the salt modules directly, and compared the outputs of list_pkgs etc.
16:24 drawsmcgraw mr_const: sure thing! I followed this writeup when I implemented mine: http://bencane.com/2014/07/17/integrating-saltstack-with-other-services-via-salt-api/
16:25 Erik_P when i run salt-call --local pkg.install its working
16:26 lwm oof, anyone got any ideas on this error: https://gist.github.com/lwm/a3fefa43c5bdf5ce822b
16:27 whytewolf lwm: the : in spujadas/elk-docker:{{ tag }} is throwing off the yaml
16:28 lwm whytewolf: sure, but I have another file that loads perfectly with that syntax
16:30 lwm I was wondering was it the `-` in the repo URI
16:31 whytewolf lwm: that is possable. - have been known to cause issues before.
16:31 lwm do I have any other options for specifying that repo? I tried using the docker hub URI, but it couldn't find it
16:32 whytewolf try using the yaml literal to see if you can get it accepted as just a string
16:33 whytewolf |
16:35 murrdoc joined #salt
16:36 lwm hmmm ... but I still need to get that `{{ tag }}`, so not sure that will work
16:36 foundatron Hi, I'm trying to use salt to manage my salt master. If I target the salt-master directly with something like  "salt 'saltmaster' state.apply salt.master" it works no problem, but if I target master in my top file, ' salt '*' state.highstate'   times out when trying to apply to the master....anyone have any idea why state.apply would work but state
16:36 foundatron .highstate would timeout (the other minions work fine)
16:36 whytewolf lwm: jinja is seperate from the yaml it is rendered before the yaml is processed
16:37 lwm whytewolf: good to know!
16:37 traph_ joined #salt
16:39 flowstate joined #salt
16:39 lwm oh, I think my variable is not be loaded properly. The `|` didn't work but it using double quotes did
16:40 lwm well, the mystery is over now, thanks
16:40 whytewolf foundatron: because state.apply salt.master is applying only the state salt.master use -l debug with salt-call to see if there are other states being applyed
16:40 whytewolf foundatron: or salt-call saltutil.show_highstate
16:42 racooper howdy. is there a way to run a "systemctl daemon-reexec" from a salt module other than as a cmd.run ?
16:42 murrdoc you could write a python module to do that
16:42 murrdoc state or module
16:43 racooper just as a command module, not as a state
16:43 foundatron Thanks whytewolf
16:45 whytewolf racooper: download the systemd module and add the function to it to do that?
16:47 racooper if I were a programmer, I'd think about it ;)
16:48 whytewolf cmd.run it is then
16:48 amcorreia joined #salt
16:48 cpowell Does anyone know of a way to get the current formula's filepath in an sls file
16:48 racooper for now, sounds like it. I just wanted to make sure I wasn't missing soemthing first.
16:48 cpowell I know there is slspath, but its not 100% what I want
16:51 mohae joined #salt
17:00 onlyanegg joined #salt
17:00 saltstackDeb joined #salt
17:01 jvblasco joined #salt
17:03 lumtnman_ joined #salt
17:06 marsdominion joined #salt
17:06 marsdominion joined #salt
17:12 subsignal joined #salt
17:15 nidr0x joined #salt
17:15 losh joined #salt
17:18 Jarus joined #salt
17:20 mpanetta joined #salt
17:23 invalidexception joined #salt
17:23 ageorgop joined #salt
17:23 brianfeister joined #salt
17:25 justanotheruser joined #salt
17:27 hackel joined #salt
17:29 Heartsbane joined #salt
17:29 Heartsbane joined #salt
17:31 impi joined #salt
17:32 impi joined #salt
17:35 otter768 joined #salt
17:36 jdipierro joined #salt
17:36 morissette joined #salt
17:39 pppingme joined #salt
17:48 beardedeagle joined #salt
17:51 invalidexception joined #salt
17:51 writtenoff joined #salt
17:57 Bryson joined #salt
17:59 marsdominion joined #salt
18:00 XenophonF joined #salt
18:03 rem5 joined #salt
18:06 Jarus joined #salt
18:08 otter768 joined #salt
18:20 XenophonF onlyanegg: i've been working on an openstack formula for salt in my copious free time, https://github.com/irtnog/openstack-formula
18:21 marsdominion joined #salt
18:21 marsdominion joined #salt
18:21 XenophonF onlyanegg: i've been developing it with ubuntu 14.04 and openstack juno...i think liberty is out now?
18:21 XenophonF onlyanegg: my dev hardware died a month or so ago, so i haven't made forward progress on it in a while
18:22 murrdoc XenophonF:  does it work
18:22 XenophonF murrdoc: it deploys keystone, glance and nova-compute
18:22 XenophonF and It Works For Me(tm)
18:22 whytewolf YAOSF [yet another openstack formula]
18:23 XenophonF whytewolf: i guess
18:23 whytewolf personally openstack is one of those projects that have so many VASTLY different ways of being configured and setup that honestly a single openstack formula just wouldn't fit enough people
18:23 lumtnman joined #salt
18:24 murrdoc it does ?
18:24 murrdoc i use what xeno does
18:25 XenophonF whytewolf: that's my problem with some of the other formulas
18:25 XenophonF whytewolf: they kind of assumed a particular deployment model
18:25 whytewolf murrdoc: on my own hardware I use KVM, with nova-compute and neutron with selfservice networks. I work for a bank that uses VMware as the hypervisor, uses nova-networking with provider networks.
18:26 XenophonF whytewolf: my goal is to write a formula whose defaults end up with something like devstack but can be tweaked to scale out all the way
18:26 XenophonF i'm not there yet, clearly, so take that for what it's worth
18:27 murrdoc gawd hurry up
18:27 murrdoc :)
18:27 murrdoc iggy:  is gonna probably end up working on our openstack setup
18:27 Oxc0de joined #salt
18:27 whytewolf XenophonF: I'm not knocking your attempt. I'm jsut saying this might be a big chunk to chew off esp. if you want to accomidate the 99%.
18:28 whytewolf I wrote my own setup cause again none of the openstack formulas fit my needs.
18:28 Oxc0de How can I call out availability_zone from the salt-cloud command line?
18:29 XenophonF murrdoc: LOL
18:29 XenophonF whytewolf: understood
18:30 XenophonF whytewolf: i do want to make something generally useful, if only because deploying openstack is such a huge pain in the ass
18:30 whytewolf XenophonF: it gets easier each time. lol. I actually am able to do it in a matter of hours now. [with out salt]
18:31 marsdominion joined #salt
18:34 marsdomi_ joined #salt
18:35 whytewolf what we really need is almost a compleate rewrite of the openstack salt modules. cause a lot of them have a lot of bugs. and don't really follow the openstack cli tools. and don't get me started on the nova vs openstack salt-cloud driver
18:36 perfectsine joined #salt
18:38 onlyanegg Thanks XenophonF, I'll check that out
18:38 whytewolf what would be nice. is a set of modules like the boto modules
18:38 murrdoc whytewolf: lets do it
18:38 murrdoc u do the work
18:38 murrdoc i ll test
18:38 * murrdoc wanders off
18:39 cberndt joined #salt
18:39 whytewolf lol. I acutally did start the work. and then realized i have a lack of something called time
18:39 whytewolf not to mention my python skills are subpar
18:39 murrdoc really tho someone should fix the modules
18:39 murrdoc with modules u done need python skills
18:39 murrdoc salt internals tho
18:39 murrdoc :* now thast some purtty code
18:40 cberndt joined #salt
18:40 whytewolf yeah, salt internals has some purtty code. openstak api does not
18:40 murrdoc lol
18:41 murrdoc its funny cos its true
18:41 whytewolf it although it looks like it got a little better if you only want to support liberty up
18:43 onlyanegg joined #salt
18:45 linjan joined #salt
18:49 iggy murrdoc: who told you that?
18:50 ajw0100 joined #salt
18:50 iggy it's not salted afaik... I guess I could do that
18:51 murrdoc iggy:  i am hoping its you
18:53 jaybocc2 joined #salt
18:54 lwm joined #salt
18:55 lwm besides: https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html#debugging
18:55 lwm is there some decent template YAML/Jinja debugging tips anyone has?
18:55 lwm I have a whole bunch of PGP encrypted keys in my context and when I call `show_full_context`, I get inundated with logs
18:58 spuder_ joined #salt
18:59 whytewolf lwm: i did write this little module for helping with template debugging. https://github.com/whytewolf/salt-debug it will render the file and output it.
19:00 Joren_ joined #salt
19:00 murrdoc #not bad
19:01 johnkeates joined #salt
19:04 whytewolf it is my spiderman decoder ring for some of the oddball jinja that gets posted to this channel :P
19:06 frew I have a grain that gets EC2 data, but I don't want it to run sometimes (like when I am running in vagrant)
19:06 frew any tips on how to do this?
19:06 murrdoc this also makes it super easy to use a file from the minion
19:07 om Hi all
19:08 om Does salt['pillar.get'](...etc   work inside a jinja template file?
19:08 om oh nm
19:08 om it does
19:08 whytewolf frew: add a __virtual__ function that tests if it should be run on that system.
19:09 frew whytewolf: I was thikning of maybe overriding that grain with a hardcoded value in  /etc/salt/grains, so that I wouldn't have to change the grain definitions
19:09 frew is that reasonable?
19:10 whytewolf frew: https://docs.saltstack.com/en/latest/topics/targeting/grains.html#precedence
19:11 frew ah ok
19:11 frew so I got thta backwards
19:11 johnkeates left #salt
19:11 whytewolf yeap
19:11 iggy frew: you can do that or do some detection in the module itself (i.e. if not in_ec2(): return {}
19:16 SRM joined #salt
19:16 brianfeister joined #salt
19:21 GreatSnoopy joined #salt
19:22 Edgan Anyone tried rebuilding the 2015.8.x deb packages from source?
19:22 statik joined #salt
19:22 oida joined #salt
19:23 frew whytewolf: I defined a __virtual with simply `return (False, 'Not running in EC2')` as a test to see if it would work in the grains and I'm still getting the stacktrace I got before
19:23 frew er, __virtual__
19:23 frew is there more to it than that?
19:24 invalidexception joined #salt
19:24 murrdoc did u restart the minion
19:24 murrdoc sync out the modules
19:25 frew I'm running locally with no services (minion or master) running
19:25 frew to avoid having to do that
19:25 murrdoc what does the log file say
19:25 murrdoc or you know traceback
19:26 frew https://gist.github.com/frioux/35dc6c3a6a53a764bd44
19:27 rem5 joined #salt
19:28 The_Loeki_ joined #salt
19:28 frew it looks to me like it just failed to even run the __virtual__ function
19:28 whytewolf frew: odd a I could have sworn that _grains support __virtual__
19:29 johnkeates joined #salt
19:29 frew grains are modules right?
19:29 frew the docs seem to imply it
19:29 whytewolf _grains are modules
19:30 The_Loeki joined #salt
19:31 whytewolf frew: you could always follow iggys advice and wrap your function in an if that blocks it from running if not in ec2
19:31 frew yeah
19:34 frew hm
19:34 frew somethign is weird
19:34 frew I tried just putting return {} at the top of my functions
19:34 frew and I'm still getting the stack trac
19:34 frew I wonder if I'm editing the wrong file or something
19:34 keimlink joined #salt
19:35 whytewolf that is possable. are you saltutil.sync_all after the updates [even if masterless]
19:35 frew I was not doing that, now
19:35 frew no*
19:35 frew will do now
19:36 frew ok
19:36 frew that was what I needed to do
19:36 frew __virtual__ works now
19:36 frew now to figure out how to tell if I'm running in EC2 or not :)
19:38 murrdoc is it a vm ?
19:39 murrdoc u can check the provider
19:39 murrdoc manufacturer
19:40 slav0nic joined #salt
19:40 iggy I'm sure google can tell you 10000000000000000 options to try
19:41 murrdoc there is a grain for it
19:41 fredvd joined #salt
19:42 iggy you can't use grains in grains
19:42 aidalgol joined #salt
19:42 murrdoc you can
19:42 murrdoc GIG is cool
19:42 murrdoc PiP isnt
19:43 Tanta try: curl --silent http://169.254.169.254/latest/dynamic/instance-identity/document
19:43 Tanta you can parse the output of that json and easily determine if it's in EC2
19:44 iggy or more than likely, if you can connect to 169.254.169.254 it's ec2, if you can't connect to that IP it's not
19:45 iggy but hey, if you can use grains in grains as murrdoc claims, go that route
19:45 jdipierro joined #salt
19:45 Tanta or: test "$(curl --silent http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region)" = 'us-east-1'
19:45 iggy personally I don't trust him
19:45 Tanta something like that would be appropriate for a test
19:46 alxchk joined #salt
19:46 iggy why call out to a shell command in python code?
19:46 Tanta I guess it depends where you're using it, if it's in a state declaration for 'only'
19:46 Tanta onlyif, rather
19:47 Tanta I use patterns like that sometimes in states when I want to do additional validations with shell
19:48 iggy I guess, that's not what they asked for, but yeah... take a step back and make sure you're doing what you need at the right level
19:49 johnkeates joined #salt
19:50 chrismoos joined #salt
19:50 statik joined #salt
19:50 chrismoos does anyone know if salt-cloud w/ ec2 can only include instances matching certain criteria? (tags, etc,.)
19:51 diegows joined #salt
19:51 chrismoos i.e runnign salt-cloud -F would be filtered
19:51 murrdoc nah
19:51 murrdoc use localhost iggy
19:51 murrdoc http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
19:51 keepguessing joined #salt
19:51 murrdoc oh wait they moved ?
19:51 murrdoc used to be localhost
19:51 keepguessing Hi getting this error for my jinja
19:52 keepguessing http://paste.ubuntu.com/14131433/ http://paste.ubuntu.com/14131450/
19:52 keepguessing jinja template ^^^^^ and output ^^^^^^
19:52 chrismoos i'd like to use the salt cloud reactor to bootstrap/accept minion keys for new nodes, but only for nodes that i want salt to manage (so maybe ones matching EC2 tags), guessing there is no support for this?
19:53 whytewolf keepguessing: that should be {% set network_ipaddr = salt['network.ip_addrs']('eth0')[0] %}
19:53 keepguessing whytewolf: I have it twice.
19:54 keepguessing would not it see the Nonified declaration earlier?
19:54 keepguessing line 6
19:54 whytewolf keepguessing: you are trying to set it again.
19:54 whytewolf it still needs set
19:55 whytewolf set is the tag
19:55 whytewolf network_ipaddr is a varable
19:55 forrest joined #salt
19:56 whytewolf jinja is funny like that. {% tag [what to do based on that tag] %} {{ print }}
19:59 keepguessing whytewolf: hmm i see.
19:59 keepguessing s/i/I/
19:59 keepguessing it worked. I also removed test with None. "is not None" is not working
20:01 frew murrdoc: it's a container, sorry was afk
20:03 statik joined #salt
20:08 novaq joined #salt
20:09 whatapain joined #salt
20:09 whatapain how do i require and iptables rule?  require: - iptable{s}: rule-name doesn't seem to work
20:10 ajw0100 joined #salt
20:10 forrest whatapain, can you gist your state
20:10 whytewolf what state module was used to create the rule?
20:11 whatapain rule exists in the same state
20:11 whatapain er iptables.insert
20:11 whytewolf gist
20:11 murrdoc .
20:12 murrdoc github
20:12 murrdoc .
20:12 murrdoc com
20:12 forrest murrdoc, You saw my comment on that issue right?
20:12 murrdoc yeah
20:12 forrest cool
20:12 murrdoc u see the comment from the raphael something or the other dude
20:12 forrest on #73?
20:12 murrdoc he pushes his stuff directly
20:12 murrdoc i said please pull
20:12 forrest where was that at?
20:12 murrdoc he said fu its my formula
20:12 forrest link please.
20:13 forrest It might be in a repo I'm not watching
20:13 forrest because of how github works when it adds stuff :|
20:14 murrdoc https://github.com/saltstack-formulas/debootstrap-formula/commit/c03ab4f73d3d0d744d12b9064f5729932edde1d7#commitcomment-15104454
20:14 whatapain whytewolf: https://gist.github.com/mshirley/0faa471602e6043b835b along those lines
20:14 forrest whatapain, iptables, not iptable
20:14 forrest on line 15
20:14 whatapain bah
20:15 whytewolf what he said
20:15 whatapain thanks
20:15 whatapain stupid fingers
20:16 KyleG joined #salt
20:16 KyleG joined #salt
20:17 RandyT howdy
20:17 KyleG Hiya
20:18 RandyT hoping someone can give me some hints as to how to debug and s3 ext_pillar
20:18 KyleG RandyT: Have you set your minions and/or master to debug log level yet to see what's going on
20:18 forrest I added a comment murrdoc. I understand where he is coming from, but it's not acceptable from a management sense.
20:18 RandyT I've tried the following, same structure in git ext_pillar, works, debug level on both master and minion.
20:18 murrdoc forrest:  u go girl
20:18 * murrdoc orders popcorn
20:18 RandyT access to s3 from the master via aws cli works
20:19 kermit joined #salt
20:19 forrest murrdoc, No need to order popcorn, I'm sure he'll understand, dude has always been reasonable.
20:19 RandyT nothing logged regarding s3 problems.
20:19 murrdoc sucks
20:19 murrdoc i like popcorn
20:19 KyleG RandyT: What is is supposed to be doing, that it's not?
20:19 forrest murrdoc, You should get a whirly pop
20:20 RandyT KyleG: pillar.items does not return anything.
20:20 RandyT same pillar filesystem on local or git ext_pillar works
20:20 RandyT wondering if there is something to dig around in in the cache that might tell me something.
20:21 RandyT at a loss for how to dubg this
20:21 forrest RandyT, Did you already crank up the log output to debug?
20:21 RandyT forrest: yes, log output at trace actually
20:21 forrest And you don't see any calls to the s3 driver stuff?
20:21 forrest You restarted the service after adding that config I assume?
20:22 RandyT "Sync local pillar cache from S3 completed"
20:22 forrest but there's nothing in the cache dir?
20:22 RandyT yes, master restarted after configuration.
20:22 KyleG you guys ever run into issues that seemingly disappear when you restart your salt minions.......
20:22 KyleG always dumbfounds me
20:22 murrdoc yeah
20:22 KyleG This is my latest problem https://gist.github.com/kylegato/0926665cbdf9eb1940e1
20:23 KyleG part of my deploy system, runs this grunt deploy
20:23 forrest KyleG, Yep.
20:23 KyleG every time it happens, I can run it manually as the user and it runs fine………
20:23 DanyC joined #salt
20:23 whytewolf KyleG: every now and then. I've also had the oppisite problem. nothing wrong till i restart my salt minion
20:23 KyleG I can reproduce the error consistently via salt from the master and salt-call locally
20:23 iggy much more so on older versions... seems like it's improved
20:23 murrdoc u need better pipes
20:23 forrest KyleG, Now the true question, to blame salt, or grunt /troll
20:23 KyleG That's what I'm not sure
20:23 RandyT forrest: there is a cache file in /var/cache/salt/master/pillar_s3fs/
20:23 KyleG I guess the real question is
20:24 KyleG what could cause "stdin" errors for a command executed by salt, that go away after a minion is restarted?
20:24 KyleG That's the real question
20:24 KyleG that's why I'm hesitant to blame grunt
20:24 forrest RandyT, but it's blank?
20:24 KyleG I can run the command manually not through salt when its not working through salt…and it always works, then I can turn around and run the command shown in that gist and bam there's that weird stdin thing again
20:24 brianfeister joined #salt
20:24 forrest KyleG, Well, my question is you say it works on restart right? Is there a chance something isn't 'ending' correctly and is screwing salt up?
20:24 RandyT forrest: not blank, but only 7 lines...
20:25 forrest RandyT, Are you sure you have the right dir inside the bucket on S3?
20:25 KyleG forrest: Well that's my guess, but if so why can salt handle it after a restart but not before? The minion returns the job with the error so it's not like the command is running perpetually
20:25 KyleG I know what it's trying to go do there
20:25 KyleG it's trying to build some stuff
20:26 KyleG https://gist.github.com/kylegato/be9c52e5f4c644918c0b
20:26 forrest KyleG, Well that's what I'm saying, the first run after a restart is fine, but is anything returning that could be problematic? You're already running the minion in debug mode too right?
20:26 RandyT forrest: I've tried with and without a base dir in the prefix dir
20:26 KyleG there's the output after I restart the minion and it "works"
20:26 RandyT forrest: I've tried without the prefix dir
20:26 murrdoc KyleG:  try some other queue
20:26 KyleG murrdoc: How do you mean?
20:26 KyleG as in, instead of default ZMQ?
20:27 murrdoc yeah
20:27 RandyT Here is what I am seeing in the cache file.
20:27 RandyT https://gist.github.com/rterbush/1216d76b73c3d603b5bc
20:27 KyleG murrdoc: What's the idea behind that suggestion?
20:28 murrdoc pipes
20:28 whatapain ls
20:28 murrdoc connectivity
20:28 forrest RandyT, Huh, that seems... wrong.
20:28 KyleG Where would I change the queue? Can you link me to the section of the docs you spaek of
20:28 KyleG speak*
20:28 TyrfingMjolnir joined #salt
20:28 RandyT forrest: is that the correct cache dir?
20:29 forrest I'm not sure.
20:29 forrest RandyT, Are you using single environment or mulitple environments?
20:29 RandyT forrest: single environment
20:29 forrest and the bucket structure looks like s3://<bucket name>/<prefix>/<files>
20:29 KyleG murrdoc: like this? https://docs.saltstack.com/en/latest/topics/transports/raet/index.html
20:29 RandyT have tried to keep this as simple as possible to debug this.
20:30 RandyT and as I wrote, this same pillar layout works on local filesystem and on git ext_pillar
20:30 RandyT forrest: correct
20:30 forrest RandyT, Understood. Quick question then, have you used the S3 command line tool using the same creds/settings to see what it pulls?
20:30 RandyT yes, aws cli works fine.
20:30 RandyT Can list and get files on the s3
20:30 forrest What release of salt are you on?
20:30 KyleG murrdoc: you mean transports? https://docs.saltstack.com/en/latest/topics/transports/tcp.html
20:31 RandyT forrest: 2015.8.3
20:31 ageorgop joined #salt
20:31 murrdoc KyleG:  yes
20:31 murrdoc sorry arsenal is playing and i am at work
20:31 murrdoc yes please try a different transport
20:31 kermit joined #salt
20:31 KyleG okay, will I have to manually restart all my salt minions by hand and set these on all of em
20:31 murrdoc could just be your connectivity
20:31 murrdoc well you can try it with one master and one minion
20:31 murrdoc if it works then roll forward
20:32 KyleG If it's a connectivity issue, then I would expect the job not be returned, but the proper ID and the output is returned
20:32 forrest RandyT, Do you have anything going on like this? https://github.com/saltstack/salt/issues/26506
20:32 saltstackbot [#26506]title: ext_pillars eat other ext_pillar's file_roots | Version: 2015.8...
20:32 cyborg-one joined #salt
20:34 RandyT forrest: not setting an environment explicitly, so I don't think that issue applies, unless I must explicitly set base:
20:34 RandyT Will give that a try now to see if there is any effect.
20:35 RandyT I've moved the local pillar root to be able to debug this, so there is nothing in local pillar root
20:35 forrest RandyT, Gotcha, yeah I'm not really sure then, sorry :(
20:36 otter768 joined #salt
20:36 XenophonF left #salt
20:39 RandyT forrest: here is an observation that might be meaningful.
20:40 viq joined #salt
20:40 RandyT updated that gist to show my configuration for ext_pillar:
20:40 RandyT https://gist.github.com/rterbush/1216d76b73c3d603b5bc
20:41 racooper joined #salt
20:41 forrest RandyT, No keys required?
20:41 RandyT forrest: no keys required
20:41 forrest Hmm
20:41 RandyT and validated from command line with aws cli
20:41 forrest so weird.
20:42 RandyT sorry, but just updated the gist again to show the filename that is in cache
20:42 RandyT the name was the same when pointing to prefix of 'pillar' in the bucket.
20:42 RandyT I thought the '-pillar' was a reflection of the prefix path
20:43 viq1 joined #salt
20:43 RandyT so if prefix is named "pillar", would think perhaps I see 'my-bucket-name-pillar-pillar-files.cache as a name?
20:43 RandyT not sure what that should be if working properly
20:43 RandyT 'pillar' a reserved word of sorts ? :-)
20:44 RandyT will try changing it, but as I also shared, moving the pillar files to root of the bucket did not help either.
20:44 forrest Yeah I don't know. I don't have any access to a system that is using S3 pillars any more to compare against (the joys of unemployment)
20:44 forrest otherwise I'd compare against the setup I previously had
20:45 murrdoc sounds really bad btw
20:45 murrdoc s3 pillars
20:45 forrest Nah it works fine
20:46 forrest What makes you think it would be bad murrdoc? If you're already in S3 it's a good way to store secrets.
20:46 RandyT would be a great keyless setup if I could get it to work...
20:46 forrest yeah.
20:46 RandyT Yep, use KMS to store your keys, etc... no credentials to share ..
20:47 RandyT so I moved all files to root of that bucket and still have no love
20:47 murrdoc s3 has le sucked balls for our usecase
20:47 murrdoc to the point that we is writing ceph
20:47 RandyT ah, but standby, I don't have permissions to grab thigns from root of that bucket...
20:50 RandyT no love
20:51 forrest RandyT, Yeah I'm not sure. Might be worth posting on the mailing list along with your log output and all that jazz to see if anyone has ideas.
20:51 forrest Probably going to be pretty slow due to the holiday though
20:51 DammitJim joined #salt
20:52 RandyT thanks for the help forrest
20:52 Rumbles joined #salt
20:52 RandyT Will give that a try...
20:52 forrest You got it, sorry I couldn't be more help, just not sure what's up with it :\
20:52 RandyT I still have some hair left so I will continue to pull it out for a bit...
20:52 RandyT np
20:52 forrest lol
20:52 murrdoc shave it RandyT
20:52 murrdoc come on home
20:53 giantlock joined #salt
20:53 RandyT murrdoc: might just as well...
20:53 iggy it's what all the cool kids are doing
20:53 murrdoc RandyT:  https://www.youtube.com/watch?v=HjSRFyVzKZU context
20:53 RandyT LOL
20:54 conan_the_destro joined #salt
20:54 kermit joined #salt
20:54 ranomore1 left #salt
20:57 DanyC joined #salt
20:58 jdipierro joined #salt
21:01 DanyC has anyone (apart from Ryan) here used boto_secgroup.authorize to inject new rules into an existing SG ?
21:01 murrdoc not so fast ryan
21:04 DanyC hmm
21:04 marsdominion joined #salt
21:06 ranomore joined #salt
21:06 murrdoc what u mean ?
21:10 marsdominion joined #salt
21:10 DanyC murrdoc: well i was hopping to see more people using boto but i guess i'll have to wait for Ryan to be back online. Either way, appreciate your reply
21:12 murrdoc ok
21:12 moogyver joined #salt
21:17 sinh joined #salt
21:17 kermit joined #salt
21:18 perfectsine_ joined #salt
21:21 TyrfingMjolnir joined #salt
21:22 KyleG murrdoc: How does a command run with use_vt differ than without? I was able to reproduce my issue, it works fine with use_vt=True, I can turn around and run it with use_vt not set and it fails again.
21:23 brianfeister joined #salt
21:25 MindDrive joined #salt
21:29 invalidexception joined #salt
21:30 jeffspeff joined #salt
21:35 bmcorser joined #salt
21:35 TyrfingMjolnir joined #salt
21:36 bmcorser in my runner i'm getting
21:36 bmcorser *** NameError: name '__jid_event__' is not defined
21:36 bmcorser which is what things say in the docs
21:36 bmcorser what's the proper way to send events from runners?
21:36 om hey guys
21:36 om how do you use pillar get inside a jinja template?
21:37 DanyC joined #salt
21:37 om I am trying this:  {{ salt['pillar.get']('object:key', '') }}
21:37 om but it returns nothing
21:37 om when parsing the jinja template...
21:37 whytewolf om. does object:key exist?
21:37 om yes
21:38 om it's in the pillar file
21:38 bmcorser om `{object: {key: value}}`?
21:38 whytewolf and shows up when you do salt 'minion' pillar.get object:key
21:39 bmcorser the colon (object:key) syntax is shorthand for ['object']['key']
21:39 whytewolf or better yet on the minion salt-call pillar.get object:key
21:39 om it throws no error, just returns nothing
21:39 whytewolf om: thats because it isn't finding it
21:40 om whytewolf: that makes sense...
21:40 jdipierro joined #salt
21:41 kermit joined #salt
21:41 abednarik joined #salt
21:41 bmcorser whytewolf: know anything about sending jid events in runners?
21:42 ALLmightySPIFF joined #salt
21:42 colegatron joined #salt
21:43 justanotheruser joined #salt
21:43 whytewolf bmcorser: events are typically triggered by a minion not the master.
21:43 bmcorser hmm
21:44 whytewolf bmcorser: that being said you might want to dig into the webhook part of the net-api
21:44 bmcorser the docs for runners mention how print statements generate events
21:44 bmcorser (like attached to jid or something?)
21:45 bmcorser ok cool
21:45 bmcorser you point me to a page whytewolf ?
21:45 bmcorser *would you
21:45 om whytewolf: I have not idea why it's not finding the pillar...
21:45 whytewolf om gist up the pillar.
21:45 bmcorser om you might need to refresh
21:45 om ok
21:46 whytewolf and yes. pillar.get does need a pillar_refresh
21:46 bmcorser https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.refresh_pillar
21:47 whytewolf bmcorser: https://github.com/saltstack/salt/blob/develop/salt/netapi/rest_cherrypy/app.py#L2067
21:47 ageorgop joined #salt
21:48 akhter joined #salt
21:48 om http://pastebin.com/3WegQgVF <- jinja file
21:48 om http://pastebin.com/Cn2yNnj6 <- pillar file
21:49 bmcorser thanks whytewolf
21:49 om oh pillar_refresh
21:49 bmcorser feels a bit awkward making http calls when i'm already in salt context ...
21:50 whytewolf bmcorser: I was saying look a thte code to see how they are doing it :P
21:50 bmcorser ahhh :D
21:51 rem5 joined #salt
21:52 edrocks joined #salt
21:53 RandyT I actually have a bit more debug getting logged on this s3 ext_pillar issue: https://gist.github.com/rterbush/1216d76b73c3d603b5bc
21:54 RandyT seems the GET /?prefix is returning a 403...
21:54 RandyT would think that should result in an ERROR in the salt code...
21:56 Brew joined #salt
21:58 mdupont joined #salt
21:59 ronrib joined #salt
22:00 mattiasr joined #salt
22:02 jaybocc2 joined #salt
22:03 edrocks joined #salt
22:04 TyrfingMjolnir joined #salt
22:04 jdipierro joined #salt
22:04 jdipierr_ joined #salt
22:10 om bmcorser: how do you refresh pillar from cli?
22:10 om can't find that in docs
22:11 ranomore om: salt \* saltutil.refresh_pillar I believe
22:11 om salt '*' saltutil.refresh_pillar
22:11 om found it in my history :p
22:11 om thanks!
22:12 om odd
22:12 om still doesn't show the pillar data
22:13 om might be something wrong with these files?
22:13 om <om> http://pastebin.com/3WegQgVF <- jinja file
22:13 om <om> http://pastebin.com/Cn2yNnj6 <- pillar file
22:14 whytewolf om do salt 'minion' pillar.items and see if you are even getting your pillar set.
22:15 whytewolf or salt '*' pillar.item gfs_fshare_secondaries
22:15 rem5 joined #salt
22:15 invalidexception joined #salt
22:23 intel joined #salt
22:24 moogyver bmcorser - did you figure your issue out?
22:25 bmcorser yes moogyver i was trying to access dunder vars before they were injected
22:26 bmcorser https://www.irccloud.com/pastebin/iTeYXZ3n/
22:26 bmcorser if that makes sense?
22:26 moogyver yeah i was just going to offer some assistance if you were still having issues
22:28 aurynn is the 0MQ stuff run over TLS? IE is it safe/sane to route it over the internet?
22:29 upb joined #salt
22:29 aurynn "no" and "why would you do that even" are reasonable responses to this question :)
22:29 keepguessing whytewolf: I have noticed that packages are only getting installed when I run the state.highstate How could I make sure it automagically do it?
22:30 whytewolf keepguessing: um. since it doens't do anything automagically by default you could setup a schedule job to auto run state.highstate
22:30 whytewolf which is normally
22:31 om whytewolf: the gfs_fshare_secondaries: comes up but nothing in it
22:32 keepguessing ah I see.
22:32 rem5 joined #salt
22:32 whytewolf om: then your pillar grains are not working
22:34 RandyT so I have figured out my problem with s3 pillar
22:35 om whytewolf: what can cause that or how to debug?
22:35 moogyver aurynn - no, it doesn't use TLS ( that I'm aware of )
22:36 moogyver aurynn - https://github.com/saltstack/salt/issues/5913
22:36 saltstackbot [#5913]title: Update Salt Crypto | Update Salt crypto per:...
22:36 moogyver may be a good read
22:36 whytewolf om: most likely the issue with with whitespace caused by jinja
22:36 RandyT for anyone interested, it seems that s3 ext_pillars do not work without providing key and keyid, even though the doc suggests they support getting this information from the EC2 meta-data
22:36 om I think i found the issue
22:36 otter768 joined #salt
22:36 om will let you know in a sec
22:37 aurynn moogyver, thanks!
22:37 kermit joined #salt
22:40 om base/top.sls was missing the pillar definitions :p
22:40 om thanks guys!  it works now
22:40 pegmanm joined #salt
22:41 whytewolf om: lol. no problem
22:41 jaybocc2 joined #salt
22:44 teryx510 joined #salt
22:46 mdupont joined #salt
22:48 iggy aurynn: I was under the impression it was safe (well as safe as any other software written by wildly imperfect humans)
22:52 aurynn iggy, :)
22:54 RandyT FYI: https://github.com/saltstack/salt/issues/29912
22:54 saltstackbot [#29912]title: s3 ext_pillar fails if key and keyid are not provided | Even though the doc suggest that an s3 ext_pillar will get credentials from the EC2 meta-data, this appears not to be working in 2015.8.3....
22:54 keepguessing where can I find list of all jinja tags
22:54 keepguessing googling is not easily finding it.
22:55 jdipierro joined #salt
22:57 ranomore keepguessing: like this? https://docs.saltstack.com/en/latest/topics/development/dunder_dictionaries.html
22:57 whytewolf keepguessing: there are not many. but you can look at http://jinja.pocoo.org/docs/dev/
22:59 keepguessing whytewolf: something that would help me know how to use print
22:59 bmcorser anyone using the websockets endpoint of salt-api?
22:59 whytewolf keepguessing: {{}} is printing
22:59 keepguessing and where it sends the logs to. puppet has notice and notify
22:59 keepguessing whytewolf: oh
22:59 keepguessing whytewolf: where does it print?
23:00 whytewolf wheer ever the {{}} are in the file
23:00 keepguessing oh it is put in the file?
23:00 keepguessing it is replaced in the template file?
23:00 keepguessing I wanted to print something in the log.
23:01 whytewolf then don't use jinja which is JUST a template engine
23:01 keepguessing whytewolf: I want to print to debug.
23:01 whytewolf jinja doesn't do that
23:03 whytewolf I'm not sure even the python render can
23:03 whytewolf [depends on context i guess]
23:04 keepguessing http://paste.ubuntu.com/14133137/
23:04 keepguessing I am seeing this error
23:04 keepguessing for this http://paste.ubuntu.com/14133133/
23:04 keepguessing whytewolf: not sure how to debug this.
23:05 Brew joined #salt
23:05 whytewolf keepguessing: well a hint is that it is referencing an index item 0 . I see 3 spots in your jinja that has an index item of 0
23:05 whytewolf oh 4 i missed one
23:06 whytewolf 9,12,14,16
23:07 keepguessing yeah I wanted to know which change would fix this :-)
23:07 keimlink joined #salt
23:07 mdupont joined #salt
23:07 keepguessing and why are they not having first element when I am checking if they have been defined or not.
23:08 whytewolf try using .first instead of [0]
23:09 keepguessing is it equivalent?
23:09 kermit joined #salt
23:10 whytewolf keepguessing: no. first will get the first item no matter the index value. [0] implys that it is always 0
23:10 drwx joined #salt
23:10 drwx joined #salt
23:12 perfectsine joined #salt
23:13 brianfeister joined #salt
23:17 pegmanm joined #salt
23:18 darvon joined #salt
23:18 TomJepp joined #salt
23:19 kusams joined #salt
23:20 RandyT whytewolf: perhaps you can help educate me a bit here...
23:20 RandyT If I were to grab salt/pillar/s3.py from the develop branch, is there a place like _pillar that I could drop it that would overload the distributed version?
23:21 kusams_ joined #salt
23:23 jdipierro joined #salt
23:25 ingslovak joined #salt
23:32 disterics joined #salt
23:33 bmcorser ok question about acl system
23:33 bmcorser how do i create a user?
23:33 bmcorser or does the word "user" in the docs refer to a unix system user?
23:35 KyleG joined #salt
23:35 KyleG joined #salt
23:35 whytewolf bmcorser: user is a unix system user. salt ties into pam
23:35 bmcorser pam i don't know
23:35 whytewolf well under linux it is pam
23:36 bmcorser ok
23:36 whytewolf I'm sure there is simalar systems on other unixes
23:36 whatapain joined #salt
23:37 bmcorser so when i'm running salt-api (as root) and i connect through http, i pass pam (user, password) credentials for my unix user?
23:37 otter768 joined #salt
23:37 whatapain anyone know what would cause salt-cloud to show different information when querying ec2 instance compared to using the ec2 api tools like describe-instance?  it's almost as if salt-cloud has cached old results from the ec2 api and it's not updating.
23:37 whytewolf ahh. you are talking the netapi acl not client_acl
23:38 whatapain salt-cloud shows 2 instances no longer running but ec2-describe-instances shows the correct information
23:38 jdipierro joined #salt
23:39 bmcorser whytewolf: this guy? https://docs.saltstack.com/en/latest/ref/clientacl.html
23:39 whytewolf bmcorser: https://docs.saltstack.com/en/latest/topics/eauth/index.html
23:39 whytewolf eauth is the document you want if you want salt-api
23:39 bmcorser ok
23:40 whytewolf client_acl is for the cli setup
23:40 bmcorser awesome!
23:40 bmcorser that is very slick
23:41 bmcorser wow
23:44 whytewolf also not shown on that page are the other auth methods that are possable such as auth.keystone just go to https://docs.saltstack.com/en/latest/salt-modindex.html#cap-a and look through the salt.auth modules
23:45 jirwin joined #salt
23:46 zmalone joined #salt
23:47 kermit joined #salt
23:47 teryx510 left #salt
23:50 RandyT whatapain: I've seen cases where a salt-cloud provision will error out, but the creation of the ec2 instance will continue, likely without a name.
23:50 RandyT You may find that as part of that failed process, you may end up with an accepted key for the failed minion which I suspect could have the effect of leaving some data around about that minion...
23:51 RandyT whatapain: what does salt-key show?
23:53 hackel joined #salt
23:55 kermit joined #salt
23:57 int3l joined #salt
23:59 Brew joined #salt

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