Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-08-16

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

All times shown according to UTC.

Time Nick Message
00:13 jeadr joined #salt
00:25 dyasny joined #salt
00:29 zircote joined #salt
00:29 flebel joined #salt
00:38 armguy joined #salt
00:48 claytron_ joined #salt
00:48 edrocks joined #salt
00:51 yota joined #salt
00:54 Bryson joined #salt
00:59 funzo joined #salt
01:10 dthom91 joined #salt
01:12 dthom91 joined #salt
01:15 cheus joined #salt
01:15 duendecat joined #salt
01:26 micko joined #salt
01:27 tedski joined #salt
01:32 yomilk joined #salt
01:32 claytron_ joined #salt
01:36 yomilk joined #salt
01:36 midacts Any advice for this error message 'Minion did not return. [No response]'?
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt | 2015.5.2 is the latest | Please use https://gist.github.com for code, don't paste directly into the channel | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
01:48 duendecat joined #salt
01:52 jeadr joined #salt
01:57 llua look at the minion's log files
01:59 funzo joined #salt
01:59 midacts The master key has changed, the salt master could have been subverted,
02:03 jeadr joined #salt
02:14 favadi joined #salt
02:15 dthom91 joined #salt
02:15 al joined #salt
02:19 duendecat joined #salt
02:19 claytron_ joined #salt
02:22 ageorgop joined #salt
02:27 hasues joined #salt
02:31 hasues left #salt
02:44 ITChap joined #salt
02:48 viq joined #salt
02:48 viq joined #salt
02:50 duendecat joined #salt
02:51 favadi joined #salt
02:54 arthoo joined #salt
03:08 pppingme joined #salt
03:12 jeadr joined #salt
03:18 TyrfingMjolnir joined #salt
03:20 duendecat joined #salt
03:22 claytron_ joined #salt
03:24 al joined #salt
03:26 ITChap Hi everyone
03:27 ITChap is there a nice way to run a state before and after another state ?
03:27 ITChap like for example file.directory to ensure that a dir is present
03:27 ITChap add some stuff in the dir
03:28 ITChap and re run file.directory to check the rights
03:45 NV joined #salt
03:45 NV joined #salt
03:48 ajw0100 joined #salt
03:51 duendecat joined #salt
04:01 funzo joined #salt
04:22 duendecat joined #salt
04:52 duendecat joined #salt
05:01 funzo joined #salt
05:09 claytron_ joined #salt
05:11 catpigger joined #salt
05:15 big_area joined #salt
05:17 pm90_ joined #salt
05:18 kbaikov joined #salt
05:23 duendecat joined #salt
05:24 yomilk joined #salt
05:25 tedski joined #salt
05:37 pm90_ joined #salt
05:42 TyrfingMjolnir joined #salt
05:54 duendecat joined #salt
05:58 AndreasLutro joined #salt
06:02 funzo joined #salt
06:08 yomilk joined #salt
06:11 evle joined #salt
06:11 claytron_ joined #salt
06:25 duendecat joined #salt
06:25 Jimmy_Rustler joined #salt
06:26 Jimmy_Rustler Heya everyone. I'm wondering if anyone here can be bothered to give help to a salt-scrub trying to make an internal network with docker.
06:55 duendecat joined #salt
07:08 ilbot3 joined #salt
07:08 Topic for #salt is now Welcome to #salt | 2015.5.2 is the latest | Please use https://gist.github.com for code, don't paste directly into the channel | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
07:09 catpig joined #salt
07:09 dopesong joined #salt
07:10 jeadr joined #salt
07:11 dopesong_ joined #salt
07:15 FredFoo joined #salt
07:24 subsignal joined #salt
07:26 duendecat joined #salt
07:29 edrocks joined #salt
07:31 Jimmy_Rustler I'm trying to set up a minion right now. Can I use the git setup.py to set it up without having the salt-master system?
08:04 funzo joined #salt
08:13 claytron_ joined #salt
08:23 whytewolf joined #salt
08:41 Fiber^ joined #salt
08:44 otter768 joined #salt
09:05 funzo joined #salt
09:06 babilen Jimmy_Rustler: You'd typically use packages or http://docs.saltstack.com/en/latest/topics/tutorials/salt_bootstrap.html
09:16 yomilk joined #salt
09:16 claytron_ joined #salt
09:45 ITChap joined #salt
09:47 viq joined #salt
09:53 favadi joined #salt
09:55 kermit joined #salt
09:59 claytron_ joined #salt
10:05 funzo joined #salt
10:30 X67r joined #salt
10:30 favadi joined #salt
10:31 CeBe joined #salt
10:41 claytron_ joined #salt
10:43 CeBe joined #salt
10:45 afics joined #salt
10:45 otter768 joined #salt
10:58 CeBe1 joined #salt
11:00 kukacz joined #salt
11:02 gfa joined #salt
11:04 yomilk joined #salt
11:06 funzo joined #salt
11:20 cape joined #salt
11:23 claytron_ joined #salt
11:23 fgimian joined #salt
11:24 fgimian joined #salt
11:25 cape I'm having problems getting yamlex aggregates to work with the smart renderer. As I understand the docs (http://docs.saltstack.com/en/latest/ref/configuration/master.html#pillar-source-merging-strategy) and code (https://github.com/saltstack/salt/blob/v2015.5.3/salt/utils/dictupdate.py#L84), I should just have to tack a #!yamlex in some files and !aggregate, and off I go?
11:25 cape the aggregations don't seem to work though :(
11:25 cape If I manually set pillar_source_merging_strategy to aggregate it works, but shouldn't the default smart one work?
11:29 cape some input/output: http://pastebin.com/K2sVd7b1
11:37 dopesong joined #salt
11:53 zer0def joined #salt
12:07 funzo joined #salt
12:18 colttt joined #salt
12:28 s_kunk joined #salt
12:41 pcdummy joined #salt
12:41 pcdummy joined #salt
12:46 otter768 joined #salt
12:50 claytron_ joined #salt
12:51 pm90_ joined #salt
12:59 hitu joined #salt
13:01 malinoff joined #salt
13:07 funzo joined #salt
13:14 kukacz joined #salt
13:17 tf0054 joined #salt
13:19 tf0054 Hi, I am now trying to make a vm on azure using salt-2015.8.0rc3, but got an error, like * ERROR: You need to allow pip based installations (-P) in order to install the python package 'tornado >= 4.0'
13:19 dalom Just cannot get custom modules to work :( (master: module_dirs: - /srv/_modules) (Filesystem: /srv/_modules/mycustommodule.py) I get "Module 'mycustommodule' is not available."
13:36 malinoff joined #salt
13:37 malinoff joined #salt
13:42 CeBe1 joined #salt
13:53 funzo joined #salt
14:14 claytron_ joined #salt
14:14 dthom91 joined #salt
14:19 dthom91 joined #salt
14:27 yomilk joined #salt
14:35 jeadr joined #salt
14:40 jeddi joined #salt
14:47 otter768 joined #salt
14:47 Ahrotahntee joined #salt
14:55 claytron_ joined #salt
14:56 mapu joined #salt
15:01 tomasfejfar joined #salt
15:04 dopesong joined #salt
15:04 VR-Jack joined #salt
15:05 nyx_ joined #salt
15:13 jngd joined #salt
15:23 funzo joined #salt
15:37 jeadr joined #salt
15:39 claytron_ joined #salt
15:48 shaggy_surfer joined #salt
15:49 shaggy_surfer joined #salt
15:55 pcdummy joined #salt
15:55 pcdummy joined #salt
16:12 zwi joined #salt
16:13 TyrfingMjolnir joined #salt
16:19 dthom91 joined #salt
16:21 dthom91 joined #salt
16:24 claytron_ joined #salt
16:24 otter768 joined #salt
16:31 subsignal joined #salt
16:35 dexter91x joined #salt
16:36 dexter91x hello, how can i include an sls while using py render ?
16:41 kukacz joined #salt
16:42 nyx_ joined #salt
16:46 dexter91x joined #salt
16:51 jeadr joined #salt
16:53 subsignal joined #salt
16:56 dexter91x joined #salt
16:57 hasues joined #salt
16:59 patrick__ joined #salt
17:05 raakesh joined #salt
17:05 scoates joined #salt
17:07 hasues left #salt
17:09 claytron_ joined #salt
17:10 patrick__ hello.  new irc and salt user here.  had a quick question if anyone could help.  in the docs it gives an example for a source as "- source: salt://apache/http.conf".  my question is: where exactly is it looking for the http.conf file?  what exactly does the salt:// protocol refer to and where does it look?
17:16 nyx_ joined #salt
17:19 Arendtsen patrick__: it looks in the same folder as where you have your init.sls
17:19 Arendtsen the salt protocol is described in the documentation if memory serves me correct
17:19 patrick__ lol ty.  had a feeling it was somthing simple but wanted to make sure
17:20 Arendtsen I usally create a folder called files and use the URI salt:://modulename/files/filename
17:21 patrick__ i had difficulty locating the docs on it.  couldn't seem to find info on salt:// through a few different google searches, but may have not found the magic one
17:42 AndreasLutro patrick__: http://docs.saltstack.com/en/latest/ref/file_server/file_roots.html should cover it
17:43 shaggy_surfer1 joined #salt
17:45 markm joined #salt
17:57 calvinh joined #salt
18:02 linjan_ joined #salt
18:02 shaggy_surfer joined #salt
18:12 unused_PhD joined #salt
18:13 claytron_ joined #salt
18:25 irctc433 joined #salt
18:27 irctc433 hey everyone, i'm here again for som equirk questions about how do you use salt.. I'm wondering if you implement routines checks on minion states, running some sort of cron salt, or let the monitoing show you something has wrong (for salt service up state for example..)
18:28 irctc433 means i see a lot of examples that implement salt states that checks if the service is running and, if not, start it... do you use it as "application cluster" that restart dead services or not implementing the state this way?
18:29 irctc433 there's an advantage of write a state that check  if a service is running and start it? or is just for sake of examples..
18:31 VR-Jack irctc433: states define the "state" the system should be in. ie, this service is running, or this file should look like this.
18:31 VR-Jack if the server is not in that state, salt does what it needs to put it there.
18:33 AndreasLutro irctc433: why shouldn't a salt state make sure a service is running?
18:35 ajw0100 joined #salt
18:43 Fiber^ joined #salt
18:47 Lionel_Debroux joined #salt
18:59 irctc868 joined #salt
19:02 jeadr joined #salt
19:07 jmreicha joined #salt
19:13 clintberry joined #salt
19:18 claytron_ joined #salt
19:22 irctc794 joined #salt
19:31 |_[O_O]_| is there a way to rerun a call only on the minions which failed to respond to the initial query?
19:31 |_[O_O]_| or list the minions that failed a particular transaction after the fact?
19:35 Ztyx joined #salt
19:40 patrick__ AndreasLutro: thank you
19:50 Lionel_Debroux_ joined #salt
19:50 BigBear joined #salt
19:52 cachedout joined #salt
20:01 claytron_ joined #salt
20:02 j0lly joined #salt
20:04 mohae joined #salt
20:04 j0lly hello *, I'm thinking if you use states to check periodically if a service is up.. I'm asking because i see a lot of exampples online that build a state for serivce running.. but i feel, this is useful if fired periodically (like monitoring systems does  for checks)
20:05 j0lly I already asked but i got a connection cutoff and i couldn't recover the history
20:05 j0lly :/
20:07 ajw0100 joined #salt
20:07 whytewolf j0lly: a state just tells the system what state X should be in. so it is perfectly valid to have a state that checks if a service is running.
20:08 whytewolf j0lly: for running jobs at periodic times look into http://docs.saltstack.com/en/stage/topics/jobs/index.html#scheduling-jobs
20:09 j0lly ahgg you're too fast writing, i have no time that you answer me on  asecond line :P
20:10 j0lly now, just to be courious: do you use "cron job" for salt in order to check your services?
20:10 j0lly is a practice in use at salt community, to use it for service up checking?
20:11 whytewolf no, states check everything. and sceduling is internal to salt.
20:12 whytewolf service.running checks if the named service. is currently running. if not it will restart it.
20:12 whytewolf using whatever init system the system is setup with
20:13 whytewolf http://docs.saltstack.com/en/latest/ref/states/all/salt.states.service.html#salt.states.service.running
20:16 j0lly hum i mean, do you usually implement service running on some service (eg ntp) and schedule a sls for wethever + service.running just to be sure the service is running automatically?
20:17 whytewolf j0lly: only if you want to check every now and then.
20:17 j0lly so, if a service fails, the salt schedule will restart it promptly
20:17 whytewolf the schedule is optional
20:18 whytewolf no
20:18 whytewolf it will start it next time the schedule runs
20:19 j0lly yes, i ask it because i used to work in aplace where we was using a cluster service to check every, say 2 mins, the applications on the cluster and try to rstart them if were failing..
20:19 whytewolf if you set it to run the state every 60 seconds then you could have a lag time of a min.
20:20 dopesong_ joined #salt
20:20 j0lly yes, i feel i could implement it like i said, but i don't know if he software is ment for this and if the communtiy use it like that :P
20:20 whytewolf j0lly: it is a pretty standard practice. thats why salt has a schedule feature built in, just in case cron fails.
20:21 whytewolf salt users tend to whole system manegment though not single services
20:22 j0lly i mean do you use any automated service to try to restart a basic serice like ntp//dhcp//httpd//whatever ?
20:23 j0lly yes but, a part for manage the whole system, keep it up to date, patch it and keep config synced and so on, do you use it also for the porpouse of restarting failing services?
20:23 GreatSnoopy anyone successfully used this info here http://docs.saltstack.com/en/latest/topics/development/hacking.html to get a working development environment from the dev tree ?
20:23 Jimmy_Rustler joined #salt
20:23 GreatSnoopy on my machine i get a salt-master that seems to get one worker on 100%cpu
20:24 whytewolf j0lly: my states are setup that if a service fails, it will restart it. or if i put a change in my git it will push that change automaticlly then restart the service [same service.running does both]
20:24 whytewolf and i have the highstate in a schedule that runs every 10 min
20:25 j0lly ok, i have some numbers :P
20:26 whytewolf GreatSnoopy: sorry i have not. I use the bootstrap script to install develop branches
20:26 j0lly thanks whytewolf , i would like to hear about other configurations, i dunno if there's a place to exchange such conf.. just to start understand how people use salt for
20:26 clintberry joined #salt
20:27 whytewolf j0lly: you can look at https://github.com/saltstack-formulas for the different formulas people have already created,
20:27 j0lly damn me, yeahh
20:27 j0lly i was looking at it right now, from a google search :P
20:27 j0lly hehe
20:28 j0lly i sould check before write sometimes :P
20:28 GreatSnoopy whytewolf, any link for how that path works ? I'm trying to have the dev branch run in a separate env, under an unprivileged user so that i can test/modify some stuff
20:28 whytewolf GreatSnoopy: I don't think the bootstrap does virtual env
20:29 GreatSnoopy ohwell. Any ideea how to learn what the worker is doign ? setting loglevel to all produces nothing relevant
20:30 GreatSnoopy also, it starts whell and only after the first command gets executed successfully it goes haywire  ( a test.ping will do that )
20:31 whytewolf strange. sorry I'm no help on the workers. never seen only one pegged at 100% when there are more than one.
20:33 GreatSnoopy strace on it gets this
20:33 GreatSnoopy poll([{fd=14, events=POLLIN}], 1, 0)    = 0 (Timeout)
20:33 GreatSnoopy poll([{fd=13, events=POLLIN}, {fd=14, events=POLLIN}], 2, 0) = 0 (Timeout)
20:33 GreatSnoopy poll([{fd=13, events=POLLIN}], 1, 0)    = 0 (Timeout)
20:33 GreatSnoopy poll([{fd=14, events=POLLIN}], 1, 0)    = 0 (Timeout)
20:33 GreatSnoopy poll([{fd=13, events=POLLIN}, {fd=14, events=POLLIN}], 2, 0) = 0 (Timeout)
20:33 GreatSnoopy poll([{fd=13, events=POLLIN}], 1, 0)    = 0 (Timeout)
20:34 GreatSnoopy hm, maybe i can find what fd 13 is from proc
20:35 GreatSnoopy both fd's are -> anon_inode:[eventfd]
20:35 whytewolf might wwant to look at that, maybe it will help. http://docs.saltstack.com/en/latest/topics/troubleshooting/master.html#live-python-debug-output
20:35 GreatSnoopy letssee
20:36 mimiandi joined #salt
20:36 mimiandi hi guys
20:36 mimiandi trying to setup mine_functions
20:36 mimiandi and i notice if i run from salt '*' config.get mine_functions
20:37 mimiandi i already see grains.items in there
20:37 mimiandi is this a default behaviour?
20:37 GreatSnoopy File "/home/blue/work/saltdev/ve/salt/salt/utils/event.py", line 420, in _get_event
20:37 GreatSnoopy socks = dict(self.poller.poll(wait * 1000))
20:37 mimiandi i cant see where this is set in the minions config ..
20:37 GreatSnoopy that'w why eventfd in proc, i suppose
20:37 mimiandi and i dont see grains.items in the mine_functions in any of the config or sls
20:39 mimiandi anyone here not setup mine .. run salt '*' config.get mine_functions from their master?
20:39 mimiandi or small set of minions would be better
20:43 whytewolf mimiandi: that is not defaults. a default system would be blank.
20:44 whytewolf salt '*' config.get mine_functions
20:44 whytewolf salt.wolfcloud.bad4.us:
20:44 whytewolf horizon01:
20:46 whytewolf mimiandi: try salt '*' config.get mine_functions
20:46 whytewolf sorry i ment salt '*' pillar.get mine_functions
20:47 mimiandi dont get it in the pillar
20:47 mimiandi i had already went thru pillar root and what not
20:47 mimiandi i have no idea where this is getting set
20:47 mimiandi i do this under _scheduler that mine.update is running
20:48 whytewolf yes that is fine. but grains.items being in there is not normal
20:48 whytewolf unless it is put in there
20:48 mimiandi whytewolf: yeah trying to find out where
20:48 mimiandi that is being set
20:48 mimiandi mine_functions that is
20:48 mimiandi i cant fine it anywhere
20:48 mimiandi which is why i thought it mightve been default behaviour
20:49 whytewolf no, it isn't because that would be a very bad security choice
20:49 mimiandi so based on the doc, config.get reads roster/pillar/master or minion config
20:49 mimiandi i dont use roster
20:50 mimiandi whytewolf: well grains are not suppose to be security sensitive data anyways... that would be pillar info .. if you have put in sensitive info in the grains that owuld be just bad choice ?
20:50 mimiandi anyways thats besides the point ATM :)
20:53 whytewolf salt '*' cmd.run 'grep -rn mine_functions /etc/salt/*'
20:53 mimiandi running in minion in trace now to see if shows where it gets it
20:54 mimiandi hmm
20:54 mimiandi this is embarrassing
20:55 mimiandi someone set it in the minion in the defaul file
20:55 mimiandi well that resolves 'mystery'
20:55 mimiandi whytewolf: thanks for the tip
20:57 mimiandi hmm no wonder why it wouldnt let me set mine_functions from the pillar
21:01 ajw0100_ joined #salt
21:03 calvinh joined #salt
21:05 irctc088 joined #salt
21:12 j0lly joined #salt
21:14 jeadr joined #salt
21:23 claytron_ joined #salt
21:31 ljt joined #salt
21:35 irctc214 joined #salt
21:36 j0lly joined #salt
21:37 j0lly joined #salt
21:39 j0lly joined #salt
21:46 midacts left #salt
21:49 j0lly joined #salt
22:06 ajw0100 joined #salt
22:08 claytron_ joined #salt
22:11 cachedout joined #salt
22:15 bfoxwell joined #salt
22:30 dingo joined #salt
22:35 yomilk joined #salt
22:55 catpig joined #salt
22:57 tedski joined #salt
23:08 yomilk joined #salt
23:13 claytron_ joined #salt
23:13 mosen joined #salt
23:15 dthom91 joined #salt
23:17 ventris joined #salt
23:39 claytron_ joined #salt
23:40 XenophonF joined #salt
23:43 dthom91 joined #salt
23:53 jeadr joined #salt
23:55 dthom91 joined #salt

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