Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-02-26

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

All times shown according to UTC.

Time Nick Message
00:00 XenophonF tomatoschewps: https://docs.saltstack.com/en/latest/ref/states/highstate.html#function-declaration
00:00 XenophonF that's why you have to do that
00:01 tomatoschewps yes, now I know :)
00:01 XenophonF :)
00:01 tomatoschewps shortcut is not always good ...
00:04 XenophonF you can see here the kind of hoops one has to jump through sometimes - https://github.com/irtnog/comanage-formula/blob/master/comanage/registry/init.sls
00:07 joshbenner joined #salt
00:10 jagguli joined #salt
00:12 jagguli joined #salt
00:17 jagguli joined #salt
00:23 edrocks joined #salt
00:24 leonkatz joined #salt
00:25 jagguli joined #salt
00:32 jagguli joined #salt
00:45 ponyofdeath joined #salt
01:11 fxhp joined #salt
01:23 jas02 joined #salt
01:24 icebal_ joined #salt
01:34 scsinutz joined #salt
01:53 scsinutz joined #salt
02:24 onlyanegg joined #salt
02:38 raspado joined #salt
02:46 catpigger joined #salt
02:58 Bryson joined #salt
02:58 leonkatz joined #salt
03:01 XenophonF joined #salt
03:09 coldbrewedbrew joined #salt
03:09 coldbrewedbrew joined #salt
03:10 coldbrewedbrew_ joined #salt
03:14 FreeSpencer joined #salt
03:14 FreeSpencer joined #salt
03:26 edrocks joined #salt
03:38 dxiri joined #salt
03:40 jas02 joined #salt
03:44 newmanium joined #salt
03:46 cyteen joined #salt
04:00 ivanjaros joined #salt
04:22 Kelsar joined #salt
04:37 dxiri joined #salt
04:46 dxiri joined #salt
04:49 chutzpah joined #salt
05:05 nafg If I don't use requisites, states are executed in order?
05:06 nafg If a few commands depend on each other, can I just write them in order and skip the extra boilerplate?
05:08 whytewolf nafg: in thoery. you can run into problems if you need something to not run if something else failed. or need to restart something is something else changes
05:11 whytewolf for the most part even with requisites things run in order. the one thing you REALLLY don't want to do though as it normally tosses order compleatly out the window. is use order: in 1 state.
05:18 nafg Why do all the state config options start with a `-` -- why is it a list of objects? Why can't the arguments by keys on the config directly?
05:18 nafg *a list of single-key objects
05:20 quarcu_ joined #salt
05:20 wryfi joined #salt
05:23 pietdv_ joined #salt
05:23 wwalker_ joined #salt
05:24 Tanta yaml
05:24 sknebel_ joined #salt
05:25 JamieH_ joined #salt
05:26 jijiki joined #salt
05:28 Vye joined #salt
05:29 cb_ joined #salt
05:29 ThomasJ|m1 joined #salt
05:30 gmacon_ joined #salt
05:30 honestly_ joined #salt
05:30 pjs_ joined #salt
05:31 nafg Tanta: no, compare to e.g. a docker-compose file. Much cleaner
05:31 nafg or gitlab-ci
05:31 nafg Lots of things use yaml
05:31 Ludo_ joined #salt
05:31 nafg No need for lists of single-key objects
05:31 MTecknol1gy joined #salt
05:32 Savemech_ joined #salt
05:33 zz_Cidan joined #salt
05:33 simmel joined #salt
05:33 EvaSDK_ joined #salt
05:33 Cidan joined #salt
05:33 twiedenbein joined #salt
05:34 Armadillo joined #salt
05:41 tom29739 joined #salt
05:43 jwon joined #salt
05:48 armin joined #salt
05:50 Yamazaki-kun joined #salt
05:51 g3cko joined #salt
05:53 feliks joined #salt
05:53 hax404 joined #salt
05:53 jas02 joined #salt
06:04 iggy dict's (traditionally) aren't ordered
06:07 nafg iggy: why does salt care about the ordering of properties?
06:07 nafg Changing ssh_auth.present.options doesn't seem to work
06:08 nafg Every time I run apply, salt says it updated the authorized_keys, but it hasn't
06:09 iggy I'm honestly not sure what you're asking, just mentioning the normal reason for going with list of dicts vs just dicts
06:14 ninjada joined #salt
06:17 nafg iggy: every state's parameters are specified with a list of dicts
06:17 nafg (ssh_auth was unrelated question)
06:19 systemexit joined #salt
06:23 evle1 joined #salt
06:28 edrocks joined #salt
06:31 cyteen joined #salt
06:36 iggy think of /etc/hosts:\n  file:\n    - append\n    - text: someting
06:36 iggy that wouldn't work obviously because the append isn't key/value
06:39 drewb joined #salt
06:40 dxiri joined #salt
06:42 drewb Hello, I was reading some docs on salt earlier and came across a page that used a regular expression to uncomment a line in a config file on a minion. I can't seem to find the page again. Can someone point me to somewhere I can find similar information?
06:42 sh123124213 joined #salt
06:49 iggy !salt states.file.line
06:50 saltstackbot https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.line
06:50 iggy or maybe file.replace
06:51 fracklen joined #salt
06:54 drewb Thanks. Will check that out
07:02 MTecknology joined #salt
07:10 ninjada joined #salt
07:15 klaas joined #salt
07:25 icebal_ joined #salt
07:38 ninjada joined #salt
07:39 jwon joined #salt
07:48 jas02 joined #salt
07:49 ninjada joined #salt
08:08 dxiri joined #salt
08:15 ivanjaros joined #salt
08:18 syst0m joined #salt
08:21 ninjada joined #salt
08:22 n1x0n joined #salt
08:45 sh123124213 joined #salt
08:50 gmoro joined #salt
08:54 ninjada joined #salt
09:08 ninjada joined #salt
09:10 ninjada_ joined #salt
09:16 armyriad joined #salt
09:24 fracklen joined #salt
09:25 leonkatz joined #salt
09:31 edrocks joined #salt
09:39 ninjada joined #salt
09:48 jas02_ joined #salt
09:52 jas02 joined #salt
10:15 anotherzero joined #salt
10:25 dxiri joined #salt
10:26 ninjada joined #salt
10:36 viccuad joined #salt
10:38 netcho joined #salt
10:39 jas02 joined #salt
10:49 jas02 joined #salt
10:51 eichiro joined #salt
11:00 mikecmpbll joined #salt
11:02 ninjada joined #salt
11:15 jwon joined #salt
11:23 ninjada joined #salt
11:33 aldevar joined #salt
11:48 sh123124213 joined #salt
11:49 ninjada joined #salt
12:02 jas02 joined #salt
12:12 jas02 joined #salt
12:23 jas02 joined #salt
12:27 dxiri joined #salt
12:31 fracklen joined #salt
12:42 thebinary joined #salt
12:42 Inveracity joined #salt
13:18 joshbenner joined #salt
13:23 dxiri joined #salt
13:24 jas02 joined #salt
13:25 aldevar joined #salt
13:28 aldevar1 joined #salt
13:33 sh123124213 joined #salt
14:03 jas02 joined #salt
14:19 jas02 joined #salt
14:20 Tanta joined #salt
14:33 mpanetta joined #salt
14:34 mpanetta joined #salt
14:34 sh123124213 joined #salt
14:35 edrocks joined #salt
14:36 sh123124213 joined #salt
14:39 manji joined #salt
14:46 sh123124213 joined #salt
14:48 oaken_chris joined #salt
14:50 fracklen joined #salt
14:51 ronnix joined #salt
14:54 ninjada joined #salt
14:54 ronnix joined #salt
15:00 sh123124_ joined #salt
15:02 fracklen joined #salt
15:02 ronnix_ joined #salt
15:05 ronnix joined #salt
15:18 WesleyTech_ joined #salt
15:20 sh123124213 joined #salt
15:21 ivanjaros joined #salt
15:25 alem0lars joined #salt
15:25 manji joined #salt
15:30 syst0m joined #salt
15:31 syst0m left #salt
15:38 candyman88 joined #salt
15:40 jas02 joined #salt
15:43 nafg joined #salt
15:59 sh123124213 joined #salt
16:23 jas02 joined #salt
16:24 jas02 joined #salt
16:35 k_sze[work] joined #salt
16:37 sh123124_ joined #salt
16:38 edrocks joined #salt
16:38 ronnix joined #salt
16:44 netcho joined #salt
16:46 leonkatz joined #salt
16:56 ninjada joined #salt
17:13 jas02 joined #salt
17:23 newmaniuma joined #salt
17:24 rem5 joined #salt
17:25 icebal_ joined #salt
17:40 fracklen joined #salt
17:44 gableroux joined #salt
17:52 ronnix joined #salt
17:54 aerobotos joined #salt
17:56 ninjada joined #salt
17:59 Aleks3Y joined #salt
18:25 rezroo joined #salt
18:30 sjorge joined #salt
18:30 sjorge joined #salt
18:35 joshbenner joined #salt
18:44 Lionel_Debroux_ joined #salt
18:46 icebal_ joined #salt
18:53 newmaniuma so, following up on my previous question: it seems like the source of the issue with salt-ssh and _grains is that the saltutil.sync_all function is not sending down grains from the _grains directory in file_root. Has anyone else experienced this issue on 2016.3.5 or 2016.11.2? (I've seen it on both)
19:02 N-Mi joined #salt
19:02 N-Mi joined #salt
19:14 fracklen joined #salt
19:18 k_sze[work] joined #salt
19:25 jas02 joined #salt
19:26 jas02 joined #salt
19:30 ronnix joined #salt
19:38 popus joined #salt
19:40 edrocks joined #salt
19:42 jab416171 joined #salt
19:44 popus joined #salt
19:49 popus Hi, I am pretty new to salt and would like to ask you about achieving rather simple thing. The case is that I have plenty of hosts for which I'd like to set IP on another (not main) network interface (eth1). At this moment you may guess that the only thing is changing is the IP address belonging to the host. What is the best approach, ie like creating some kind of dictionary matching minion/host name and
19:49 popus setting variable (IP address) to it?
19:50 popus Can you pls share with me some examples? Thank you!
19:52 mavhq joined #salt
20:00 newmanium @popus, perhaps take a look at this guide? http://regilero.github.io/saltstack/english/2014/01/28/saltstack_merge_dictionaries_of_settings_with_grains_filter_by/
20:00 newmanium I think you could do a jinja map and do a grains filter_by against the fqdn or host grain, then map out which IP addresses are associated to which host in the map file
20:01 newmanium Re: my issue above with salt-ssh, I've filed a bug :(  https://github.com/saltstack/salt/issues/39671
20:01 saltstackbot [#39671][OPEN] salt-ssh Not Syncing _grains Custom Grains with saltutil.sync_all | Description of Issue/Question...
20:02 scoates joined #salt
20:10 popus @newmanium yeah, it seems to be the right direction, thanks!
20:11 bgdnlp joined #salt
20:14 bgdnlp hi. I'm trying to make salt check a git repo once a week instead of on every run. Trying to use unless, but I get "csh: Permissions denied", which is wrong as I'm running as root. Am i doing something wrong here: https://gist.github.com/bgdnlp/16f83b43369c594ee9dcb4009dd0870c ?
20:15 bgdnlp or is this a known bug? tried to search on github, but it's kind of hard to find anything
20:21 icebal_ joined #salt
20:32 newmanium_ joined #salt
20:37 bgdnlp hm. I think it has something to do with the fact that I'm running git as a different user
20:37 bgdnlp because cmd.run with "runas" also fails with permissions denied
20:42 Tanta joined #salt
20:44 bgdnlp nope, it has something to do with root's shell being csh. changing it to /bin/sh works. I'm on FreeBSD
20:58 cyborg-one joined #salt
21:06 prg3 joined #salt
21:12 sknebel joined #salt
21:16 jas02 joined #salt
21:18 jagguli_ joined #salt
21:19 justan0theruser joined #salt
21:23 fracklen joined #salt
21:26 preludedrew joined #salt
21:29 chadhs joined #salt
21:37 prions joined #salt
21:42 edrocks joined #salt
21:50 oaken_chris joined #salt
21:56 bgdnlp issue opened: https://github.com/saltstack/salt/issues/39673
21:56 saltstackbot [#39673][OPEN] cmd.run(runas) results in "csh: Permission denied" (FreeBSD) | Description of Issue/Question...
22:04 ninjada joined #salt
22:06 hemebond joined #salt
22:10 jagguli- joined #salt
22:11 jagguli_ joined #salt
22:18 jas02 joined #salt
22:18 ninjada joined #salt
22:34 icebal_ joined #salt
22:35 icebal_ joined #salt
22:39 chadhs joined #salt
22:41 netcho joined #salt
22:49 jagguli- joined #salt
23:05 gableroux joined #salt
23:17 oaken_chris joined #salt
23:18 jas02 joined #salt
23:26 mikecmpbll joined #salt
23:29 Guest95584 joined #salt
23:43 netcho joined #salt
23:45 chadhs joined #salt
23:52 brousch__ joined #salt
23:57 Tanta joined #salt

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