Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-05-07

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

All times shown according to UTC.

Time Nick Message
00:01 rem5 joined #salt
00:02 _JZ_ joined #salt
00:08 ninjada joined #salt
00:19 yomilk joined #salt
00:20 hajhatten joined #salt
00:29 rem5 joined #salt
00:31 ageorgop joined #salt
00:36 drawsmcgraw joined #salt
00:39 sjmh joined #salt
00:54 rem5 joined #salt
01:04 skeezix-hf joined #salt
01:21 hajhatten joined #salt
01:23 devops is there any exaple of using mako in managed files?
01:24 armguy joined #salt
01:33 fracklen joined #salt
01:48 quantumsummers left #salt
01:49 donmichelangelo joined #salt
01:51 devops left #salt
02:00 writtenoff joined #salt
02:15 subsignal joined #salt
02:24 SheetiS joined #salt
02:28 ninjada joined #salt
02:35 hajhatten joined #salt
02:43 ninjada joined #salt
03:05 hasues joined #salt
03:05 sjmh joined #salt
03:13 iceyao joined #salt
03:23 keldwud_ joined #salt
03:29 hajhatten joined #salt
03:29 mosen joined #salt
03:33 iceyao joined #salt
03:38 hasues left #salt
04:10 Garyx joined #salt
04:15 racooper joined #salt
04:19 fracklen joined #salt
04:21 hajhatten joined #salt
04:21 subsignal joined #salt
04:23 darix joined #salt
04:30 fracklen joined #salt
04:37 manji joined #salt
04:47 estahn joined #salt
04:48 lero joined #salt
04:50 nZac joined #salt
05:02 estahn joined #salt
05:24 hajhatten joined #salt
05:24 hoonetorg joined #salt
05:33 sauvin joined #salt
05:50 Garyx joined #salt
06:00 drawsmcgraw joined #salt
06:00 nZac joined #salt
06:01 cpowell joined #salt
06:23 subsignal joined #salt
06:25 estahn joined #salt
06:25 hajhatten joined #salt
06:56 iceyao joined #salt
07:04 TyrfingMjolnir joined #salt
07:04 lero joined #salt
07:05 josuebrunel joined #salt
07:07 lempa joined #salt
07:12 SpX joined #salt
07:17 iceyao joined #salt
07:21 Bmw-01 joined #salt
07:21 Bmw-01 http://pastebin.com/hMFZuji8 Earn 5 Dollars every 1000 visit from your website
07:26 hajhatten joined #salt
07:32 punkoivan joined #salt
07:36 wmp joined #salt
07:36 wiuempe joined #salt
07:40 dezertol joined #salt
07:47 iceyao_ joined #salt
08:02 cpowell joined #salt
08:12 manji joined #salt
08:26 subsignal joined #salt
08:26 hajhatten joined #salt
08:27 nidr0x joined #salt
08:31 keldwud_ joined #salt
08:34 manji joined #salt
08:42 fgimian joined #salt
08:52 dmaiocchi joined #salt
08:53 ninjada joined #salt
09:06 CeBe joined #salt
09:18 fgimian joined #salt
09:19 fgimian joined #salt
09:25 punkoivan left #salt
09:27 hajhatten joined #salt
09:33 ivanjaros joined #salt
09:49 fgimian joined #salt
09:54 slav0nic joined #salt
09:59 lero joined #salt
10:06 bluenemo joined #salt
10:10 viq_ joined #salt
10:28 subsignal joined #salt
10:28 hajhatten joined #salt
10:50 _viq joined #salt
10:53 josuebrunel joined #salt
10:54 Ayo joined #salt
11:20 quasiben joined #salt
11:25 kevinquinnyo joined #salt
11:29 ninjada joined #salt
11:34 marie1972 joined #salt
11:37 cyteen joined #salt
11:41 hosttor joined #salt
11:45 hajhatten joined #salt
11:52 hosttor` joined #salt
11:53 dmaiocchi joined #salt
11:56 ninjada joined #salt
12:04 cpowell joined #salt
12:06 iceyao joined #salt
12:08 west575 joined #salt
12:13 rem5 joined #salt
12:18 cyborg-one joined #salt
12:21 manji joined #salt
12:21 ws2k3 joined #salt
12:22 manji joined #salt
12:23 telecode joined #salt
12:27 estahn joined #salt
12:30 subsignal joined #salt
12:35 rem5 joined #salt
12:53 nZac joined #salt
13:02 amcorreia joined #salt
13:07 ninjada joined #salt
13:13 scarcry joined #salt
13:23 subsignal joined #salt
13:27 Kruge Quiet in here...
13:31 bluenemo hi guys. I'm trying to create a stacked dict in jinja but it wont work :( http://paste.debian.net/hidden/c1b772d6/ where is the error i dont see?
13:37 ninjada joined #salt
13:42 slav0nic joined #salt
13:44 snaggleb joined #salt
13:47 eseyman joined #salt
13:47 ninjada joined #salt
14:01 ivanjaros joined #salt
14:13 yidhra joined #salt
14:20 CeBe1 joined #salt
14:22 nZac joined #salt
14:24 punkoivan joined #salt
14:27 bluenemo got it
14:31 manji joined #salt
14:38 akhter joined #salt
14:38 ivanjaros joined #salt
14:50 punkoivan joined #salt
14:51 punkoivan left #salt
15:07 KingJ Are there any known issues with using pillar matching in a pillar top file? If I put in e.g. "I@roles:xyz" or "roles:xyz" with a - match: pillar underneath, minions error with "Failed to load ext_pillar git: 'pillar'"
15:08 KingJ The same syntax works fine in a state top.sls, and i've had no issues previously using grain targeting in a pillar top.sls.
15:09 brianfeister joined #salt
15:13 viq KingJ: I believe you cannot use pillars in pillars
15:15 viq And by extension I would apply that to pillar's top.sls as well. You can't match on something you'll only assign in a moment.
15:16 KingJ viq: Ah, that makes sense. I'll have to look in to another way of doing this then (I'm looking at moving away from grains for storing roles basically, thought I could try it in the pillar instead)
15:24 nZac joined #salt
15:28 deus_ex joined #salt
15:31 west575 joined #salt
15:38 linjan joined #salt
15:40 _viq joined #salt
15:40 ageorgop joined #salt
15:41 orion KingJ: You might want to make the role part of the node name for security purposes.
15:41 _viq joined #salt
15:44 viq_ joined #salt
15:45 KingJ orion: Some nodes have more than one role unfortunately
15:45 KingJ I think I might have to go with nodegroups
15:46 orion How are you going to prevent a rogue node from changing their role anmd gaining access to all pillar data?
15:46 babilen KingJ: You need some form of external pillar -- https://github.com/saltstack/salt/issues/23910 discusses one approach to this and the referenced issues are interesting -- One way is to use external pillars such as pillarstack.
15:46 saltstackbot [#23910]title: Please implement static pillars | Hi,...
15:47 babilen KingJ: And yeah, essentially the minion id is the *only* information you can trust from the minion. If you make sensitive data available to it then it has to be anchored to that.
15:50 KingJ orion: My idea with pillar based roles is that in the top file i'd match the minion's ID which would have a file path to a pillar sls which contained the roles for it. If I made a nodegroup per 'role', containing the minion IDs that form that role, and then target the nodegroup in top.sls, wouldn't that get around the issue?
15:53 babilen KingJ: I'd use pillarstack in that case. Nodegroups are slightly pesky because you have to restart the master when they change.
15:53 babilen (that might not be an issue though)
15:54 orion babilen: Is KingJ's hypothetical setup secure?
15:54 KingJ babilen: I'd prefer to avoid master restarts if possible :) Having a look at PillarStack now.
15:55 babilen orion: Well, nodegroups are defined in terms of minion IDs and you can then securely target pillar data using them.
15:55 babilen So .. I guess. I also haven't checked if you still have to restart the master for nodegroup changes, but that was the case the last time I evaluated them
15:56 babilen "When adding or modifying nodegroups to a master configuration file, the master must be restarted for those changes to be fully recognized."
15:56 babilen (from https://docs.saltstack.com/en/develop/topics/targeting/nodegroups.html)
15:58 KingJ Thanks for your help so far orion and babilen. I'll report back once i've given PillarStack a go.
16:00 babilen Also read the issue I referenced earlier .. some of the other issues mentioned in there might provide additional approaches.
16:00 babilen This is also of interest to me, so if you come up with something nice let me know please :)
16:05 cpowell joined #salt
16:13 Fiber^ joined #salt
16:19 liskl joined #salt
16:35 armguy joined #salt
16:38 flowstate joined #salt
16:39 crashmag joined #salt
16:39 Rumbles joined #salt
16:46 ageorgop joined #salt
16:52 pdayton joined #salt
16:54 KingJ Partial success so far, i'm able to define a role in a minion's pillar but PillarStack isn't then extending the pillar based off that role
16:56 KingJ On running a pillar refresh, in the master log I see "Ignoring pillar stack template "":" which makes me think that no roles are being returned from the pillar and thus it's defaulting to "" which doesn't exist.
16:57 KingJ (i'm using the bottom 4 lines from the PillarStack example in my PillarStack configuration)
16:59 jnials joined #salt
17:08 KingJ If I change the for loop from {%- for role in pillar.get('roles', []) %} to {%- for role in __grains__['roles'] %} it successfully applies the role from roles/role.yml but that only works because i've still got roles defined in grains which puts me back to square 1
17:13 keldwud_ joined #salt
17:17 KingJ Hm, thinking about it, I guess it doesn't work because the pillar object is what is passed to PillarStack by salt, so at the moment it is effectively empty. So i'd need to define the minion -> roles mapping elsewhere before PillarStack gets called.... I think.
17:18 KingJ although the stack object is updated as it goes along.... so theoretically if I load the minion config first (and define roles there) I can then loop over the stack object to apply the roles. Only one way to find out.
17:19 tracphil joined #salt
17:31 KingJ No luck unfortunately. It only works if I define a minion's roles elsewhere first.
17:40 quasiben joined #salt
17:44 viq joined #salt
18:11 dmaiocchi joined #salt
18:16 amcorreia joined #salt
18:26 Castor__ joined #salt
18:32 tracphil joined #salt
18:35 merlehaggard joined #salt
18:37 keimlink joined #salt
18:40 armguy joined #salt
18:51 nidr0x joined #salt
18:56 keimlink joined #salt
18:57 KingJ babilen: Just given nodegroups a go, would appear that the docs aren't quite correct - a master restart isn't required when adding new nodegroups or nodegroup members. (At least, I was able to add a nodegroup and then successfully run a salt -N nodegroup test.ping without error)
19:05 KingJ and I can match against nodegroups in pillars too. So until issue 23910 gets implemented I think i'll be sticking with a nodegroup approach for roles.
19:05 KingJ thanks for the suggestions and pointers :)
19:06 fracklen joined #salt
19:07 fracklen joined #salt
19:11 quasiben joined #salt
19:12 pmcg joined #salt
19:16 subsignal joined #salt
19:31 pdayton joined #salt
19:36 kevinquinnyo left #salt
19:36 Ayo joined #salt
19:39 tracphil joined #salt
19:46 kus joined #salt
19:47 cilkay joined #salt
19:48 pdayton joined #salt
19:53 cilkay Hello. I have a very simple Python script that sends a message via Django channels <http://channels.readthedocs.io/> which eventually is displayed on a web page. It's a very simple way of providing status updates as Salt states are executed. I can use cmd.run to invoke that function and pass the string representing the status as a parameter but I'm thinking there must be a more elegant way to do this given that Salt is implemented in Python,
19:53 cilkay too.
19:54 cilkay Any ideas?
20:02 subsignal joined #salt
20:07 cpowell joined #salt
20:08 RoGryza joined #salt
20:10 RoGryza hi, any salt devs here?
20:16 terratoma joined #salt
20:19 viq cilkay: listen on event bus?
20:20 viq RoGryza: are you conducting a survey, or do you have an actual question?
20:21 cilkay viq: We have masterless minions deployed so there is no event bus to listen to.
20:21 RoGryza I wanted to know how I go about a pull request, since I never contributed to FOSS projects. My company just started using salt and we have some changes to standard modules and states, should I  talk to someone to see if the features are wanted, or should I open a pull request first?
20:22 viq RoGryza: I think either try mailing list, or just go ahead with the pull request
20:23 viq cilkay: I don't have enough experience to have any advice there.
20:23 AndreasLutro cilkay: while salt is implemented in python, its execution model actively discourages giving live status updates to a highstate
20:24 AndreasLutro RoGryza: pull request is usually fine, worst that could happen is you get asked to do the pull request against another branch instead
20:25 RoGryza OK, I'll clean everything up and proceed with a pr. Thanks
20:26 cilkay AndreasLutro: Thanks. I'll just use cmd.run in my states then.
20:30 nZac joined #salt
20:30 tracphil joined #salt
20:31 brianfeister joined #salt
20:40 justin_ joined #salt
20:42 justin_ hello everyone, I've been googleing and can't seem to find something that will allow me to use salt to create/destroy vapp's in a vmware vcloud director environment
20:42 justin_ am I just missing it or does it not exist
20:46 xxjparkerxx since ansible can this I though salt could do it
20:59 xxjparkerxx joined #salt
21:05 fracklen joined #salt
21:12 mapu joined #salt
21:15 flowstate joined #salt
21:17 Sammichmaker joined #salt
21:20 flowstate joined #salt
21:24 armguy joined #salt
21:27 Garyx joined #salt
21:34 jnials joined #salt
21:40 rem5 joined #salt
21:42 rem5 joined #salt
21:42 nZac joined #salt
21:44 jnials joined #salt
21:53 xxjparkerxx joined #salt
21:55 Pie_Mage joined #salt
22:04 imanc joined #salt
22:05 bbhoss joined #salt
22:05 SteamWells joined #salt
22:13 mowntan joined #salt
22:20 brianfeister joined #salt
22:28 flowstate joined #salt
22:36 nZac joined #salt
22:36 zenlot joined #salt
22:43 estahn joined #salt
22:54 armguy joined #salt
23:00 Garyx joined #salt
23:14 flowstate joined #salt
23:14 keimlink_ joined #salt
23:15 nZac joined #salt
23:32 nZac joined #salt
23:39 Zachary_DuBois joined #salt
23:43 nZac joined #salt
23:47 rem5 joined #salt
23:51 flowstate joined #salt
23:53 cpowell joined #salt
23:53 nZac joined #salt

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