Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-08-28

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

All times shown according to UTC.

Time Nick Message
00:00 edrocks joined #salt
00:04 amcorreia joined #salt
00:04 amy_ joined #salt
00:05 antpa joined #salt
00:34 johnkeates joined #salt
00:34 JPT joined #salt
00:49 MTecknology iggy: orchestrate
00:55 MTecknology I'm missing two things with my orchestrator file 1) can't figure out how to make it run runner.fileserver.update and 2) can't figure out how to add a batch size to the highstate
00:58 edrocks joined #salt
01:10 stephanlooney joined #salt
01:13 edrocks joined #salt
01:29 Nahual joined #salt
01:33 Brijesh1 joined #salt
01:35 Pie_Mage left #salt
01:45 catpig joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.5.11, 2015.8.11, 2016.3.2 | 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:48 catpigger joined #salt
01:51 stephanlooney joined #salt
01:52 Brijesh1 joined #salt
01:57 ZachLanich joined #salt
02:00 _JZ_ joined #salt
02:18 amy_ joined #salt
02:25 bastiand1 joined #salt
02:34 stephanlooney joined #salt
02:45 whitenoise joined #salt
02:47 ninjada joined #salt
02:48 ALLmightySPIFF joined #salt
02:56 Brijesh1 joined #salt
02:57 ninjada joined #salt
03:00 ninjada joined #salt
03:13 stephanlooney joined #salt
03:13 iggy it doesn't support batches (there's a ticket somewhere)
03:19 armin_ joined #salt
03:19 mohae joined #salt
03:20 error_ joined #salt
03:20 t00m0 joined #salt
03:20 jhujhiti_ joined #salt
03:20 aljosa_ joined #salt
03:20 daks_ joined #salt
03:20 doriftoshoes_ joined #salt
03:20 Jimlad_ joined #salt
03:21 feld_ joined #salt
03:21 jrklein_ joined #salt
03:23 Kruge joined #salt
03:23 lovecraftian_ joined #salt
03:23 lovecraftian_ joined #salt
03:23 pmcg_ joined #salt
03:23 JamieH_ joined #salt
03:23 Heartsbane_ joined #salt
03:23 blue joined #salt
03:23 canci_ joined #salt
03:23 Heartsbane_ joined #salt
03:24 pfallenop joined #salt
03:24 skr0bul joined #salt
03:25 PalTale joined #salt
03:25 rodr1c_ joined #salt
03:25 alxchk_ joined #salt
03:25 futuredale_ joined #salt
03:25 aarontc_ joined #salt
03:25 zifnab06 joined #salt
03:26 Hazelesque joined #salt
03:26 Hazelesque joined #salt
03:26 al joined #salt
03:26 garphyx joined #salt
03:26 boogibugs joined #salt
03:26 chitown joined #salt
03:26 alrayyes joined #salt
03:26 alex_s joined #salt
03:27 McNinja joined #salt
03:27 shanemhansen joined #salt
03:27 etw joined #salt
03:27 ramblinpeck joined #salt
03:28 adeschamps joined #salt
03:28 djural joined #salt
03:29 cyborg-one joined #salt
03:30 WKNiGHT joined #salt
03:32 Freek joined #salt
03:32 copelco joined #salt
03:33 Ryan_Lane joined #salt
03:35 APLU joined #salt
03:35 ToeSnacks joined #salt
03:36 antpa joined #salt
03:39 7GHABWCO2 joined #salt
03:44 stephanlooney joined #salt
03:50 nicksloan joined #salt
04:01 edrocks_ joined #salt
04:06 woodtablet joined #salt
04:21 stephanlooney joined #salt
04:39 sagerdearia joined #salt
04:41 edrocks_ joined #salt
04:57 jamesp9 joined #salt
05:00 stephanlooney joined #salt
05:13 oida joined #salt
05:24 __number5__ joined #salt
05:28 DEger joined #salt
05:28 ninjada joined #salt
05:28 MTecknology iggy: ah, I guess I won't keep trying to make it happen then. That sucks. If you happen to remember the number, I wouldn't mind subscribing. Seems like something I'd be interested in trying to poke at. I don't suppose you happen to know how to kick off a runner from inside a python script, do you?
05:29 MTecknology I'm having a hard time trying to figure out how to turn this whole project into a presentation
05:30 iggy there should be something like local.cmd for runners that you could call from a python script
05:32 iggy https://docs.saltstack.com/en/latest/ref/clients/index.html#salt.runner.RunnerClient
05:32 iggy but...
05:33 iggy I mean you obviously wouldn't run that from within python code that was already running in salt (if that's what you're trying to do)
05:33 ZachLanich joined #salt
05:34 stephanlooney joined #salt
05:47 antpa joined #salt
05:52 mavhq joined #salt
05:56 MTecknology this is from outside of salt, kicked off by the salt scheduler, but it's a python script that loads up salt.utils.sdb
05:58 MTecknology it drops the value in sdb by 1 each time it runs and if it's at 60, it'll kick off the orchestrator
06:02 MTecknology I'm perfectly fine calling salt-run from subprocess. Then I can log the output easily, not worry about environment, and just be lazy
06:07 iggy well, that url is what you want... but yeah, sometimes subprocess is easier ;)
06:15 stephanlooney joined #salt
06:16 MTecknology this insanely complicated script is all the way up to 30 lines
06:17 MTecknology by complicated I mean the toughest logic is >0 and ==30
06:22 MTecknology iggy: not the classy solution, but it's a solution.. http://dpaste.com/32NRSQY
06:23 DEger joined #salt
06:23 iggy that's way too long to read
06:24 MTecknology lol
06:24 MTecknology this is the last bit that makes everything work too
06:25 MTecknology at least, in theory
06:26 MTecknology it didn't work... more debug time :)
06:36 ninjada joined #salt
06:50 MTecknology seems to be working correctly now
06:57 MTecknology so next up, I need to have salt-cloud deploying a server in proxmox (digitalocean is working, proxmox is supported... should be easy), then get a reactor that handles any changes in a pillar file that defines my entire network, then get that triggering a custom script that makes my network (all VPS included) match exactly that file
06:57 ub joined #salt
06:58 MTecknology I'm excited to make that happen... push to git repo, server gets spun up, if openvpn is needed that's dropped in, highstate is run, dns is configured, etc.
06:59 MTecknology not sure if I actually have the drive to take it /that/ far, but it sounds like fun and I know it's entirely possible
07:03 MTecknology iggy: the timer thing ;; git hook -> sudo /some/script -> salt event -> reactor -> [ get tick; if tick > 30 or tick == 0 or not tick: set tick = 40 ] ;; scheduler -> 1x/min script runs [ get tick; tick = tick - 1; if tick == 40: salt-run orch .. >>log ]
07:05 stephanlooney joined #salt
07:07 MTecknology that way you can make as many changes as you want as long as each change is within ten minutes of the previous; covers the situation where you pushed to the states repo before pushing to the states repo or something. It means once you push to the git repo, it'll run a highstate across the environment, but it won't run so often that it causes problems.
07:09 MTecknology it doesn't inhibit other git refresh operations either, only changes to repos that impact the entire network
07:09 MTecknology bed time! :D
07:12 ub Hi, how can i run multiple state.sls on a minion on the same time?
07:12 iggy state.sls foo,bar,baz,some.statefile
07:13 ub i have a state with some wait event and need to execute an other from time to time
07:13 ub srv01:
07:13 ub Data failed to compile:
07:13 ub ----------
07:13 ub The function "state.sls" is running as PID 24195 and was started at 2016, Aug
07:13 ub E
07:14 iggy queue=True ?
07:14 iggy yeah, you can't do that
07:14 ub i have to. is there a workaround
07:15 iggy salt would require some major rework to allow multiple state runs at once
07:15 iggy queue=True is the only thing I can think of
07:15 iggy but it doesn't run them at the same time, it just makes the second state.sls not fail
07:16 ub bad news. i have states how can wait up to 1 hour.
07:17 iggy maybe someone smarter than I will chime in, but I'm pretty sure it's just impossible
07:19 ub ok. thx. so i have to do a redesign my solution.
07:19 iggy that sucks
07:23 jxm_ joined #salt
07:38 stephanlooney joined #salt
08:04 edrocks joined #salt
08:08 ivanjaros joined #salt
08:10 raiden joined #salt
08:32 SpX joined #salt
09:10 stephanlooney joined #salt
09:34 Fiber^ joined #salt
09:41 bigg01 joined #salt
09:41 stephanlooney joined #salt
10:37 stephanlooney joined #salt
10:58 ninjada joined #salt
11:07 ninjada joined #salt
11:35 ninjada joined #salt
11:39 stephanlooney joined #salt
11:47 oida joined #salt
12:03 SpX joined #salt
12:13 SpX joined #salt
12:17 amy_ joined #salt
12:39 stephanlooney joined #salt
12:43 SpX joined #salt
12:44 catpig joined #salt
12:54 nicksloan joined #salt
13:06 SpX joined #salt
13:07 misconfig joined #salt
13:10 ninjada joined #salt
13:11 ninjada joined #salt
13:39 stephanlooney joined #salt
13:48 fracklen joined #salt
13:49 ivanjaros joined #salt
13:51 ALLmightySPIFF joined #salt
13:54 mikeym joined #salt
13:58 nicksloan joined #salt
14:03 justanotheruser joined #salt
14:03 edrocks joined #salt
14:10 amcorreia joined #salt
14:13 ninjada joined #salt
14:22 jhujhiti joined #salt
14:26 mikeym joined #salt
14:28 armyriad joined #salt
14:33 nidr0x joined #salt
14:34 kiorky joined #salt
14:51 SpX joined #salt
14:59 mapu joined #salt
15:01 Nahual joined #salt
15:02 tpaul joined #salt
15:18 amcorreia joined #salt
15:30 DEger joined #salt
15:45 cyborg-one joined #salt
15:54 squishypebble joined #salt
16:02 stanchan joined #salt
16:10 edrocks joined #salt
16:13 chrichip joined #salt
16:14 DEger joined #salt
16:22 hasues joined #salt
16:22 hasues left #salt
16:29 rylnd joined #salt
16:33 XenophonF ub: you might want to look into the orchestrate runner
16:33 XenophonF ub: https://docs.saltstack.com/en/latest/topics/orchestrate/orchestrate_runner.html
16:43 onlyanegg joined #salt
16:54 brotatochip joined #salt
17:00 west575 joined #salt
17:08 DEger joined #salt
17:10 ivanjaros joined #salt
17:20 chrichip joined #salt
17:34 SpX joined #salt
17:45 amy_ joined #salt
17:49 tuxx joined #salt
17:50 Lionel_Debroux joined #salt
17:55 fracklen joined #salt
18:03 edrocks_ joined #salt
18:16 hasues joined #salt
18:16 hasues left #salt
18:27 teryx510 joined #salt
18:29 GreatSnoopy joined #salt
18:30 mohae joined #salt
18:35 sjmh XenophonF - I think ub's issue is that he has 1 state that is doing some stuff and then going into a wait for a long time, waiting for some event.  In the meantime, though, he may want to run another, different unrelated state on that box - and he can't, because a state is already running.
18:36 sjmh ub - in a case like that, you're going to have to redesign the 1st state.  instead of going into a wait on the box, have it save it's state somewhere.  then when the event happens, have it sent to the master and make a reactor that will then execute the next parts of the state, or re-run the state and it can pick up where it's left off.
18:40 fracklen joined #salt
18:46 ivanjaros joined #salt
18:51 Kraln joined #salt
18:57 scoates joined #salt
19:17 scoates joined #salt
19:21 ZachLanich joined #salt
19:27 hoonetorg joined #salt
19:31 hoonetorg joined #salt
19:32 ALLmightySPIFF joined #salt
19:41 akhter joined #salt
19:43 DEger joined #salt
19:57 rylnd is it possible to use an ipv6 address in the network configuration of a salt-cloud profile?
20:07 Nahual joined #salt
20:09 mapu joined #salt
20:15 stanchan joined #salt
20:21 TomJepp_ joined #salt
20:21 chamunks- joined #salt
20:35 khaije|mentat joined #salt
20:36 khaije|mentat Hi all, I'm looking to use salt to assert that a branch-name exists in a repo at github. Any recommendations?
20:37 khaije|mentat So far I can only imaging using a cmd.run state, but interested in tidier alternatives.
20:37 dyasny joined #salt
20:39 cyborg-one joined #salt
20:41 writtenoff joined #salt
20:59 mavhq joined #salt
21:19 misconfig joined #salt
21:35 ALLmightySPIFF joined #salt
21:49 nsidhu joined #salt
21:53 khaije|mentat joined #salt
22:06 edrocks joined #salt
22:06 DEger joined #salt
22:08 ZachLanich joined #salt
22:09 hoonetorg joined #salt
22:25 cmek_ joined #salt
22:26 ZachLanich joined #salt
22:27 gadams_ joined #salt
22:28 sjmh_ joined #salt
22:28 tpaul joined #salt
22:28 NV joined #salt
22:28 bstaz joined #salt
22:28 tedski joined #salt
22:29 tuxx joined #salt
22:29 robbintt joined #salt
22:29 hillna joined #salt
22:29 phtes joined #salt
22:30 lkannan joined #salt
22:31 abele joined #salt
22:31 copelco joined #salt
22:32 twiedenbein joined #salt
22:32 smcquay joined #salt
22:32 M-liberdiko joined #salt
22:33 munhitsu_ joined #salt
22:33 Awesomecase joined #salt
22:33 mattl joined #salt
22:34 Corey joined #salt
22:39 catpig joined #salt
22:40 dimeshake joined #salt
22:41 dyaln joined #salt
22:41 stopbyte joined #salt
22:41 fracklen joined #salt
22:41 chitown joined #salt
22:51 edrocks joined #salt
22:54 ALLmightySPIFF joined #salt
22:56 ninjada joined #salt
23:07 ninjada joined #salt
23:08 robinsmidsrod joined #salt
23:08 ninjada joined #salt
23:09 samkottler joined #salt
23:09 wiqd joined #salt
23:09 aljosa joined #salt
23:09 gazarsgo joined #salt
23:09 linovia joined #salt
23:09 simonmcc joined #salt
23:12 colegatron_origi joined #salt
23:15 nahkiss joined #salt
23:15 tcolvin joined #salt
23:19 iggy custom module?
23:26 OliverMT joined #salt
23:29 John_Kang joined #salt
23:35 bbhoss joined #salt
23:37 Guest21457 joined #salt
23:40 ninjada joined #salt
23:42 fannet joined #salt
23:43 nicksloan joined #salt

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