Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-06-11

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

All times shown according to UTC.

Time Nick Message
00:08 brotatochip joined #salt
00:10 nmadhok joined #salt
00:13 tawm04 joined #salt
00:14 coen-hyde joined #salt
00:20 subsignal joined #salt
00:28 jeddi joined #salt
00:31 subsignal joined #salt
00:34 ageorgop joined #salt
00:39 rem5 joined #salt
00:44 iceyao joined #salt
00:53 paydro_ joined #salt
00:54 rem5 joined #salt
00:54 DEger joined #salt
00:55 edrocks joined #salt
01:02 catpigger joined #salt
01:11 Nahual joined #salt
01:16 debian112 left #salt
01:21 amcorreia joined #salt
01:28 west575 joined #salt
01:31 DEger joined #salt
01:40 fannet joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.5.10, 2015.8.10, 2016.3.0 | Support: https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | See also: #salt-devel, #salt-offtopic | Ask with patience as we are volunteers and may not have immediate answers
01:49 Patch joined #salt
01:50 Patch joined #salt
01:52 west575 joined #salt
01:58 brotatochip joined #salt
01:59 catpiggest joined #salt
02:02 nmadhok joined #salt
02:03 vodik joined #salt
02:06 vodik joined #salt
02:09 mpanetta joined #salt
02:16 dfinn joined #salt
02:41 Zhen joined #salt
02:44 squishypebble joined #salt
02:45 aharvey joined #salt
02:52 tuxx joined #salt
03:01 Derailed joined #salt
03:11 bfig_ joined #salt
03:23 fgimian joined #salt
03:24 mosen joined #salt
03:25 SpX joined #salt
03:29 fannet joined #salt
03:31 hasues joined #salt
03:31 hasues left #salt
03:35 justanotheruser joined #salt
03:40 coen-hyde joined #salt
03:46 coen-hyde joined #salt
03:58 edrocks joined #salt
04:00 racooper joined #salt
04:16 DEger joined #salt
04:22 alvinstarr joined #salt
04:25 aidin joined #salt
04:41 nmadhok joined #salt
05:06 Sylvain31 joined #salt
05:10 DEger joined #salt
05:17 fannet joined #salt
05:20 felskrone joined #salt
05:31 DEger joined #salt
05:34 manji joined #salt
05:49 justanotheruser joined #salt
05:50 DEger joined #salt
05:51 paydro joined #salt
05:54 spuder joined #salt
05:55 spuder_ joined #salt
06:07 Sammichmaker joined #salt
06:08 DEger joined #salt
06:10 iceyao joined #salt
06:25 sauvin joined #salt
06:29 DEger joined #salt
06:32 DarkKnightCZ joined #salt
06:48 manji joined #salt
06:48 DEger joined #salt
06:58 DEger joined #salt
07:05 fannet joined #salt
07:14 slav0nic joined #salt
07:15 eseyman joined #salt
07:15 whaity joined #salt
07:27 dmaiocchi joined #salt
07:29 aidin joined #salt
07:29 DEger joined #salt
07:37 dmaiocchi joined #salt
07:39 Ayo joined #salt
07:39 anmol joined #salt
07:41 DEger joined #salt
07:49 aliz joined #salt
07:51 DEger joined #salt
07:55 alexlist joined #salt
08:01 edrocks joined #salt
08:14 iggy it would be nice if just once I didn't fire up salt-cloud and it was broken in some new and exciting way
08:18 DEger joined #salt
08:21 TyrfingMjolnir joined #salt
08:29 DEger joined #salt
08:30 manji joined #salt
08:39 DEger joined #salt
08:49 DEger joined #salt
08:54 fannet joined #salt
09:00 punkoivan joined #salt
09:07 stooj Is there a way of adding a file to everyone's home directory?
09:08 fgimian joined #salt
09:10 evle1 joined #salt
09:11 CeBe joined #salt
09:14 whaity stooj: after the users first login? if not there is /etc/skel
09:14 DEger joined #salt
09:21 DEger joined #salt
09:39 source47 joined #salt
09:40 source47 hi guys, i need to be able to get a minion to trigger a salt.state.highstate on another set of minions once its finished its run. how can i make this trigger?
09:45 stooj Sorry whaity - yeah. This is well after users have logged in and accounts have been created.
09:49 DEger joined #salt
09:55 babilen stooj: Do you manage those users?
09:57 stooj Not necessarily babilen - I was just hoping there would be some easy way of querying the system for a list of user accounts or something
09:57 babilen source47: I wouldn't let the minion do that itself, but use orchestrate. Or fire an event on the minion to which you react with a suitable reactor.
09:57 stooj babilen: It's not that big a deal though;
09:57 babilen stooj: So they are not being managed at all?
09:57 babilen Well .. what is a big deal anyway in the grand scheme of things?
09:58 stooj babilen: OK, I'll manage them.
09:59 babilen stooj: No, I'm asking as I want to provide good advice. You *could* list users with https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.useradd.html#salt.modules.useradd.list_users but if you manage users *already* there might be better ways to achieve what you want depending on how you manage them :)
10:00 babilen stooj: With user.list_users you could simply iterate over them and create suitable file.managed states in /home/{{ username }}/your_file
10:01 babilen But if you have all your users in a pillar and manage them with the users-formula *already* there might be a better approach (namely user_files), if you have them in LDAP that wouldn't necessarily be appropriate either (and so on)
10:01 stooj Aaah, awesome! Thanks babilen - I think I need to re-think my approach, but list_users was exactly what I was looking for :)
10:01 babilen https://github.com/saltstack-formulas/users-formula might be worth a look
10:01 aidin joined #salt
10:02 babilen https://github.com/saltstack-formulas/users-formula/blob/master/pillar.example#L107 is what I'm referring to there
10:02 babilen There are many approaches and it is hard to answer "how to do that" without knowing how you tackle user management right now
10:03 source47 babilen: u have some examples of it?
10:03 babilen source47: https://docs.saltstack.com/en/latest/topics/orchestrate/orchestrate_runner.html#orchestrate-runner and https://docs.saltstack.com/en/latest/topics/reactor/ have examples
10:09 DEger joined #salt
10:20 CeBe joined #salt
10:21 blue joined #salt
10:38 manji joined #salt
10:38 DEger joined #salt
10:42 fannet joined #salt
10:43 punkoivan joined #salt
10:47 west575 joined #salt
11:00 abednarik joined #salt
11:14 felskrone joined #salt
11:22 favadi joined #salt
11:26 abednarik joined #salt
11:28 mapu joined #salt
11:40 Jimlad joined #salt
11:50 aidin joined #salt
12:03 edrocks joined #salt
12:09 abednarik joined #salt
12:11 Zhen joined #salt
12:18 DanSlimmon joined #salt
12:29 toanju joined #salt
12:30 fannet joined #salt
12:31 linuschen joined #salt
12:37 favadi joined #salt
12:39 s_kunk joined #salt
12:51 linjan joined #salt
12:53 evle joined #salt
13:04 felskrone joined #salt
13:05 yoni joined #salt
13:06 Guest67582 Hi, I'm getting a No Top file or external nodes data matches found when I run  salt '*' state.apply
13:06 Guest67582 NICK yoni
13:08 CeBe joined #salt
13:10 nyx joined #salt
13:16 yoni_ joined #salt
13:16 aidin1 joined #salt
13:18 yoni_ Hi, I'm getting a No Top file or external nodes data matches found when I run  salt '*' state.apply
13:19 Nahual joined #salt
13:26 whaity yoni_: do you have a top file?
13:26 whaity normally in /srv/salt/top.sls
13:27 whaity if not then if you pass the name of the state you are looking to run after state,apply
13:27 whaity sorry state.apply
13:28 rhodgin joined #salt
13:28 whaity so say you have a state called ntp in /srv/salt
13:29 whaity then you would run salt '*' state.apply ntp to apply the state to all salt minions
13:33 yoni__ joined #salt
13:44 DanSlimmon joined #salt
13:45 west575 joined #salt
13:46 stooj I'd like to clone a git repo on minions, but only the master has an ssh key with access to the repo. Is there a way an accepted way of getting round this issue?
13:52 CeBe joined #salt
13:52 amcorreia joined #salt
13:55 Jimlad joined #salt
13:57 subsigna_ joined #salt
14:00 dendazen joined #salt
14:17 justanotheruser joined #salt
14:19 fannet joined #salt
14:19 rem5 joined #salt
14:21 amcorreia joined #salt
14:22 whaity stooj: I have not tried this but ....
14:22 whaity stooj: the states.git pages says that 'Key can be specified as a SaltStack file server URL, eg. salt://location/identity_file'
14:23 whaity stooj: but you will need version 2016.3.0
14:23 whaity stooj: I guess it depends on the version you are on.
14:24 whaity You could setup ssl password for the pull
14:24 subsignal joined #salt
14:28 shoemonkey joined #salt
14:31 Jimlad joined #salt
14:32 Ztyx joined #salt
14:32 DanSlimmon joined #salt
14:36 Qlawy joined #salt
14:36 shoemonkey joined #salt
14:39 deniszh joined #salt
14:40 DEger joined #salt
14:43 west575 joined #salt
14:44 Qlawy joined #salt
14:45 rem5 joined #salt
14:48 Ztyx joined #salt
15:02 Ayo joined #salt
15:02 manji joined #salt
15:02 mikecmpbll joined #salt
15:09 rem5 joined #salt
15:10 mikecmpbll joined #salt
15:11 iceyao joined #salt
15:13 bfig joined #salt
15:14 squishypebble1 joined #salt
15:22 whaity joined #salt
15:23 mohae joined #salt
15:25 shoemonkey joined #salt
15:29 manji joined #salt
15:33 Nahual joined #salt
15:40 rem5 joined #salt
15:42 ElasticApps joined #salt
15:43 yidhra joined #salt
15:49 favadi joined #salt
15:54 krymzon joined #salt
16:05 edrocks joined #salt
16:06 Muchoz joined #salt
16:07 fannet joined #salt
16:14 rem5 joined #salt
16:16 catpig joined #salt
16:18 slav0nic joined #salt
16:25 mapu joined #salt
16:29 onlyanegg joined #salt
16:30 spuder joined #salt
16:30 CeBe joined #salt
16:31 radhac joined #salt
16:44 iggy have the master pull to a dir that is inside file_roots and then file.recurse it?
16:51 CeBe joined #salt
16:55 DEger joined #salt
17:04 onlyanegg joined #salt
17:14 Ayo_ joined #salt
17:16 Fiber^ joined #salt
17:21 macheck left #salt
17:22 macheck joined #salt
17:23 spuder joined #salt
17:24 _W_ joined #salt
17:29 ageorgop joined #salt
17:38 whitenoise joined #salt
17:45 rim-k joined #salt
17:50 CeBe joined #salt
17:51 felskrone joined #salt
17:55 fannet joined #salt
17:59 subsignal joined #salt
18:00 iggy thoughts on salt-cloud replacements?
18:08 onlyanegg joined #salt
18:09 mikecmpbll joined #salt
18:22 Muchoz joined #salt
18:25 west575 joined #salt
18:27 felskrone1 joined #salt
18:28 rim-k joined #salt
18:40 babilen That bad?
18:47 nmadhok joined #salt
18:49 ThomasJ joined #salt
18:58 aidin joined #salt
19:04 CeBe joined #salt
19:12 dtsar joined #salt
19:16 dtsar hi all, with a production environment, would it be best practice to *always* specify the package version for `pkg.installed`?
19:17 dtsar if deployment always replaced machines with new machines, i guess there wouldn't be config drift
19:18 dtsar but if adding machines to cluster after initial deployment, you could easily have diff versions on what is supposed to be identical machine
19:18 dtsar so should you just stay ahead of it and always specify a version?
19:18 iggy babilen: every time I try to spin up a new node, I spend a day finding/fixing/filing/etc bugs
19:19 iggy dtsar: it really depends on your setup
19:19 iggy if you have a bunch of ephemeral stuff, chances are the drift won't be that bad... if you have a bunch of long lived systems then it probably makes sense to specify versions
19:20 iggy we are in the process of rigging up our CI/CD system to push versions to a database and using that via an ext_pillar
19:21 dtsar yeah, our machines are sadly very long-lived :(
19:21 dtsar trying to change that though
19:21 dtsar very clever re: CD/CI -> db
19:22 Ztyx joined #salt
19:22 dtsar iggy: thanks!
19:23 dtsar left #salt
19:25 iggy yeah, it's really the only maintainable solution for us
19:26 amcorreia joined #salt
19:26 iggy we have over 20k systems, and packages coming from at least 8 different teams (and each of those teams really has their own CI/CD setup too... going to be a fun project)
19:31 mikecmpbll joined #salt
19:33 ageorgop joined #salt
19:35 iggy I wonder why salt-cloud doesn't use cloud-init on providers that support it... seems like it'd be a lot more reliable than trying to ssh
19:38 iggy at least half of my deployments wouldn't fail with apt db locked messages because cloud-init is running when salt-cloud is busy looping trying to ssh in and run stuff
19:41 deniszh joined #salt
19:44 fannet joined #salt
20:06 DEger joined #salt
20:10 nyx joined #salt
20:22 davetoo joined #salt
20:30 manji joined #salt
20:33 radhac joined #salt
20:37 iceyao joined #salt
20:38 writtenoff joined #salt
20:54 kus joined #salt
20:55 dfinn joined #salt
21:00 Nahual joined #salt
21:07 DEger joined #salt
21:11 rem5 joined #salt
21:24 CeBe joined #salt
21:32 fannet joined #salt
21:37 ElasticApps joined #salt
21:48 CeBe joined #salt
21:56 DanSlimmon joined #salt
22:26 punkoivan joined #salt
22:27 rem5 joined #salt
22:30 DEger joined #salt
22:39 CeBe joined #salt
23:12 flowstate joined #salt
23:13 amcorreia joined #salt
23:21 fannet joined #salt
23:35 TyrfingMjolnir joined #salt
23:38 hasues joined #salt
23:47 west575 joined #salt
23:49 mikecmpbll joined #salt
23:53 rim-k joined #salt
23:55 rem5 joined #salt

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