Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-01-24

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

All times shown according to UTC.

Time Nick Message
00:04 v12aml joined #salt
00:07 denys joined #salt
00:13 bhosmer joined #salt
00:18 kalessin joined #salt
00:19 kermit joined #salt
00:35 denys joined #salt
00:41 denys joined #salt
00:47 amcorreia joined #salt
00:48 akhter joined #salt
00:50 ageorgop joined #salt
00:50 denys joined #salt
01:03 Tyrm joined #salt
01:07 bhosmer joined #salt
01:15 ldelossa joined #salt
01:16 ldelossa hey guys, real quick question. I have a file.maanged state which copies a local file to a remote machine. Then I have a command that runs after that. I only want that command to run if the file changes, but I need it to run the very first time the file is copied over (meaning the first time the state is ran also). Would the watch accomplish this ? Or will the cmd.run always run regardless?
01:17 whytewolf ldelossa: onchanges
01:17 ldelossa do I do that on the cmd.run state, or on the file.managed  state?
01:18 whytewolf https://docs.saltstack.com/en/latest/ref/states/requisites.html#onchanges
01:18 ldelossa let me read, brb
01:18 whytewolf it is just like watch but only triggers the state if file.managed reports changes [which would be file changes or the first time the file is put there]
01:19 ldelossa you the man
01:19 ldelossa so also, would doinga watch a the file.managed state accomplish the same thign?
01:19 whytewolf you might also want to look at cmd.wait instead of cmd.run
01:19 ldelossa just so I fully know my options
01:20 whytewolf watch would run the cmd.run everytime still
01:20 ldelossa why is that?
01:20 ldelossa if you don't mind explaining
01:21 whytewolf watch is meant for things like service that change the behavour depending on if something changes. like will make sure a service is enabled but if a file is changed will restart the service.
01:21 ldelossa ahh okay understood
01:21 ldelossa It looks liek both onchanges and cmd.wait would accomplish what I need
01:21 ldelossa anything to say about best practices in this case?
01:22 ldelossa cmd.wait seems to be chaining cmd states, I'm chaining to a file.managed
01:22 ldelossa I think it'll work either way.
01:22 whytewolf cmd.wait can chain anything.
01:22 ldelossa perfect
01:22 ldelossa cmd.wait looks for changes only right?
01:22 whytewolf but honestly i would try to find a way to get rid of any cmd.*
01:22 ldelossa sysctl -p /etc/sysctl.conf
01:22 ldelossa is my cmd.run
01:23 ldelossa I'm sure there's a sysctl state I could use instead
01:23 ldelossa and then I can still use the onchanges if I do implement that instaed?
01:23 whytewolf yes
01:23 ldelossa perfect
01:23 ldelossa You're always a big help. Thanks a lot!
01:23 ldelossa let me get cracking on this
01:58 dwfreed|phone joined #salt
02:00 dwfreed|phone left #salt
02:00 iceyao joined #salt
02:02 bhosmer joined #salt
02:04 tpaul joined #salt
02:07 catpiggest joined #salt
02:12 michelangelo joined #salt
02:21 Tyrm joined #salt
02:28 fatLip joined #salt
02:33 akhter joined #salt
02:36 nethershaw joined #salt
02:41 mdupont joined #salt
02:46 kermit joined #salt
02:52 sinonick joined #salt
02:56 bhosmer joined #salt
02:57 moogyver joined #salt
03:02 quasiben joined #salt
03:08 nidr0x joined #salt
03:13 digitalhero joined #salt
03:16 digitalh_ joined #salt
03:18 racooper joined #salt
03:26 moogyver joined #salt
03:49 jeje joined #salt
03:50 bhosmer joined #salt
03:51 jamesp9 joined #salt
04:02 oida joined #salt
04:06 pcdummy joined #salt
04:06 pcdummy joined #salt
04:14 malinoff joined #salt
04:14 treaki__ joined #salt
04:19 lompik joined #salt
04:23 akhter joined #salt
04:26 kitplummer joined #salt
04:46 onlyanegg joined #salt
04:48 subsignal joined #salt
05:00 relicanth joined #salt
05:02 nethershaw joined #salt
05:09 tristianc joined #salt
05:13 baweaver joined #salt
05:13 lemur joined #salt
05:20 relicanth joined #salt
05:30 relicanth joined #salt
05:39 bhosmer joined #salt
05:56 relicanth joined #salt
05:56 justanotheruser joined #salt
06:12 akhter joined #salt
06:16 frewtc4ke joined #salt
06:26 frewtc4ke left #salt
06:28 MTecknology Would it be possible to make the contents of /root/.ssh/id_rsa.pub available in a mine?
06:29 MTecknology Would that sounds like a horrible or okay idea?...
06:31 MTecknology I want to have all servers backing up to a backup server that doesn't have access on the client. It seems like I need to either find a way to share those keys to the backup server so it can create users or I need to find a way to do something with nfs
06:55 johnkeates joined #salt
07:00 kawa2014 joined #salt
07:01 kawa2014 joined #salt
07:27 bhosmer_ joined #salt
07:28 slav0nic joined #salt
07:35 linjan joined #salt
07:40 jrklein joined #salt
07:43 ageorgop joined #salt
07:46 kawa2014 joined #salt
07:54 akhter joined #salt
08:00 anmol joined #salt
08:09 blckbit10 joined #salt
08:11 one joined #salt
08:12 tiadobatima joined #salt
08:13 kawa2014 joined #salt
08:14 iceyao joined #salt
08:15 johnkeates joined #salt
08:19 viq joined #salt
08:21 bhosmer_ joined #salt
08:31 relicanth joined #salt
08:33 relicanth joined #salt
08:34 Fiber^ joined #salt
09:10 txmoose joined #salt
09:16 bhosmer_ joined #salt
09:27 one joined #salt
09:28 Rumbles joined #salt
09:33 nidr0x joined #salt
09:38 TyrfingMjolnir joined #salt
09:40 txmoose joined #salt
09:58 iceyao joined #salt
10:00 yomilk joined #salt
10:02 txmoose left #salt
10:10 blckbit10 joined #salt
10:10 bhosmer_ joined #salt
10:14 yomilk joined #salt
10:15 KermitTheFragger joined #salt
10:27 Fiber^ joined #salt
10:28 kitplummer joined #salt
10:45 blckbit10 joined #salt
11:03 slav0nic joined #salt
11:04 bhosmer_ joined #salt
11:10 yomilk joined #salt
11:13 giantlock joined #salt
11:18 feliks joined #salt
11:31 akhter joined #salt
11:46 rmnuvg joined #salt
11:58 bhosmer_ joined #salt
12:06 Rumbles joined #salt
12:27 GreatSnoopy joined #salt
12:31 lemur joined #salt
12:38 yomilk joined #salt
12:46 tracphil joined #salt
12:49 yomilk joined #salt
12:54 shiriru joined #salt
12:59 lorengordon joined #salt
13:14 amcorreia joined #salt
13:15 quasiben joined #salt
13:23 abednarik joined #salt
13:29 jhauser joined #salt
13:32 Diaoul joined #salt
13:34 CeBe joined #salt
13:44 samed joined #salt
13:47 evle1 joined #salt
14:08 quasiben joined #salt
14:14 lompik joined #salt
14:24 jasondotstar joined #salt
14:28 kevinquinnyo1 joined #salt
14:32 L2SHO joined #salt
14:41 bhosmer joined #salt
14:43 kawa2014 joined #salt
14:46 voidspacexyz joined #salt
14:50 slav0nic joined #salt
14:53 Rumbles joined #salt
14:54 abednarik joined #salt
14:56 XenophonF MTecknology: I manage root's authorized keys file with users-formula - https://github.com/irtnog/salt-pillar-example/blob/master/defaults.sls#L45
14:56 babilen Doesn't that result in a /home/root/ ?
14:56 XenophonF i think that generating keys like that on a minion and then trying to pull them into mine sounds like a lot of extra effort
14:57 subsignal joined #salt
14:57 babilen Ah, you explicitly set home .. nvm
14:59 XenophonF i could set createhome=False, too
15:14 Pie_Mage joined #salt
15:31 mdupont joined #salt
15:33 scoates joined #salt
15:34 Rumbles joined #salt
15:35 bhosmer joined #salt
15:54 elsmo joined #salt
16:00 abednarik joined #salt
16:01 Fiber^ joined #salt
16:13 Score_Under joined #salt
16:26 mapu joined #salt
16:29 abednarik joined #salt
16:30 bhosmer joined #salt
16:30 kitplummer joined #salt
16:39 mapu_ joined #salt
16:41 moogyver joined #salt
16:47 rem5 joined #salt
16:53 CheKoLyN joined #salt
17:01 patrek joined #salt
17:06 rem5 joined #salt
17:14 Pie_Mage joined #salt
17:22 qu9 joined #salt
17:23 qu9 joined #salt
17:24 bhosmer joined #salt
17:28 rem5 joined #salt
17:29 dariusjs joined #salt
17:41 kawa2014 joined #salt
17:49 rem5 joined #salt
17:49 Biopandemic2 joined #salt
17:52 samed joined #salt
17:52 samed joined #salt
18:02 Biopandemic2 joined #salt
18:02 Biopandemic2 joined #salt
18:07 cpelon joined #salt
18:13 fuzzy_id joined #salt
18:15 cpelon does anyone know if there is a way for Salt to monitor Windows Event Logs?
18:16 fuzzy_id i want to ship /etc/apt/sources.list to my minions, now i have the possibility to do this via salt.states.pkgrepo or salt.states.file, the former strips multiline arguments in the `name` field throwing away all newlines, with the latter i don't see a possibility to update the apt database after changing the file
18:16 ageorgop joined #salt
18:21 Lionel_Debroux joined #salt
18:27 strangecolor joined #salt
18:29 strangecolor I am setting up a masterless minion in vagrant - sample files here - https://dpaste.de/K4cB.  I am finding that when I try to run commands like `salt-call --local state.highstate` I am getting the following ERROR message "Permission denied: '/var/cache/salt/minion/roots/mtime_map'".  I also find that even when I run a command like `salt-call --local disk.usage` I get a WARNING message like "Failed to open log file, do you have perm
18:29 strangecolor ission to write to /var/log/salt/minion".  Thoughts?
18:29 strangecolor https://dpaste.de/K4cB
18:31 Crazy67 joined #salt
18:34 strangecolor If I run those commands with `sudo` - those messages go away.
18:34 cyborg-one joined #salt
18:34 strangecolor Problem is, I don't want to have to use Sudo.
18:41 qu9 joined #salt
18:41 qu9 joined #salt
18:46 Rumbles joined #salt
18:47 Crazy67 joined #salt
18:49 relicanth joined #salt
18:51 frewtc4ke joined #salt
18:57 shiriru joined #salt
19:00 QuisaZaderak joined #salt
19:00 QuisaZaderak joined #salt
19:01 relicanth joined #salt
19:01 frewtc4ke left #salt
19:04 snc joined #salt
19:04 Crazy67 joined #salt
19:06 akhter joined #salt
19:08 Crazy67 joined #salt
19:09 relicanth joined #salt
19:11 relicanth joined #salt
19:11 akhter joined #salt
19:20 iggy MTecknology: you could write a custom grain to do it pretty easy, then use mine to pull that data
19:24 Crazy67 joined #salt
19:30 denys joined #salt
19:33 federicob joined #salt
19:34 spaceSub Hmm, is there a way/extension to install aur packages on arch?
19:36 Jimlad joined #salt
19:39 iggy there are a few arch salt users, you might have to wait around for an answer though (it being Sunday and all)
19:44 relicanth joined #salt
19:50 qu9 joined #salt
19:50 qu9 joined #salt
19:52 Crazy67 joined #salt
19:53 akhter joined #salt
20:06 InsaneGeek joined #salt
20:15 elsmo joined #salt
20:15 relicanth joined #salt
20:16 hasues joined #salt
20:19 strangecolor joined #salt
20:21 cetex left #salt
20:21 QuisaZaderak joined #salt
20:22 QuisaZaderak joined #salt
20:23 moogyver joined #salt
20:23 viq joined #salt
20:26 strangecolor Hi all.  I am using a standalone minion to run my Vagrant box.
20:26 catpig joined #salt
20:27 strangecolor Whenever I run a command like `salt-call network.<insert command>`
20:27 Biopandemic2 joined #salt
20:27 strangecolor I get the following warning:
20:27 strangecolor `[WARNING ] Failed to open log file, do you have permission to write to /var/log/salt/minion?`
20:27 strangecolor Should salt-call not be running a root?
20:27 strangecolor as*
20:32 kitplummer joined #salt
20:33 akhter joined #salt
20:41 harkx joined #salt
20:45 scoates joined #salt
20:50 sqwishy left #salt
20:51 qu9 joined #salt
20:55 slav0nic joined #salt
21:01 dlam joined #salt
21:04 relicanth joined #salt
21:04 relicanth joined #salt
21:09 TyrfingM1olnir joined #salt
21:10 rnts joined #salt
21:14 mattiasr joined #salt
21:14 TyrfingMjolnir joined #salt
21:15 Bnon joined #salt
21:16 qu9 joined #salt
21:22 freelock joined #salt
21:23 catpig joined #salt
21:38 hasues left #salt
21:43 subsignal joined #salt
21:49 baweaver joined #salt
21:51 rem5 joined #salt
21:56 MTecknology iggy: I wound up doing this: http://dpaste.com/14YRJW1
21:57 MTecknology XenophonF: thath looks like one massively over-complicated formula
21:59 Rumbles joined #salt
22:04 MTecknology Each server has its own user account on the server, that script can be easily templated to back up extra directories, the backup server can't log into other servers, the servers can't corrupt their old backups, all servers deployed magically get backed up without me having to do anything.
22:12 hasues joined #salt
22:12 keimlink joined #salt
22:12 hasues left #salt
22:22 iggy that works
22:23 iggy strangecolor: it generally runs as root
22:23 iggy strangecolor: there's some stuff in the docs about how to not do that
22:23 strangecolor iggy:  I was able to review running as non-root user.
22:24 strangecolor iggy:  any thoughts on why running `salt-call`, without sudo, would create consistent permissions warnings?
22:24 iggy because, that's how it works?
22:25 iggy I don't understand the question
22:25 MTecknology Letting any user on the system run salt-call would be a horrible idea
22:25 strangecolor If I run `salt-call` is it running as root?  or would it be running another user?
22:25 iggy salt expects to be run as root, if you don't run it as root, and you don't do anything to the system to make it so you don't have to run as root, then you get problems
22:26 iggy strangecolor: it runs as whatever user you are logged in as
22:26 strangecolor iggy:  that makes sense.
22:26 strangecolor I will try setting user: root and see if it still runs as my current user.
22:27 strangecolor MTecknology: this is a vagrant box.  I was just running through some tests to understand Salt a little better.  But that is a good point :)
22:31 iggy so you aren't actually running salt-call, you're telling vagrant to?
22:34 strangecolor iggy:  I wanted to see what the commands look like when you run them one by one.  So I ssh into my vagrant box and run salt-call.  When I did this I noticed permissions warnings.
22:35 iggy ahh, gotcha
22:35 strangecolor I thought it had to do with me being logged in and salt-call was being run as my vagrant user.
22:35 strangecolor but then I changed user in the minion config to root
22:35 strangecolor that did not seem to fix the issue
22:35 iggy that wouldn't
22:35 iggy you need to login as root
22:37 strangecolor That makes sense.
22:38 iggy the user in the minion config tells the minion process (not salt-call) to switch to said user once it's running
22:38 iggy it still has to be started as root
22:39 iggy and that setting does 0 for salt-call because it doesn't daemonize
22:40 strangecolor iggy:  thanks for clearing that up :)
22:41 iggy np, salt is a big piece of software now, it can take some time to figure out all the moving parts
22:43 zenlot2 joined #salt
22:49 bhosmer joined #salt
22:49 moogyver joined #salt
22:50 baweaver joined #salt
23:06 ageorgop joined #salt
23:12 akhter joined #salt
23:15 dlam is there a text editor syntax highlighting thing for  /var/log/minion?  (like i use Vim)
23:15 dlam like when you call `salt-call` it highlights stuff green/red
23:18 jespada joined #salt
23:25 ageorgop joined #salt
23:26 akhter joined #salt
23:36 marcinkuzminski joined #salt
23:38 calculon joined #salt
23:39 linjan joined #salt
23:39 izrail joined #salt
23:43 relicanth joined #salt
23:50 amcorreia joined #salt
23:51 jespada joined #salt
23:51 baweaver joined #salt
23:59 zenlot2 joined #salt

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