Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-06-28

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

All times shown according to UTC.

Time Nick Message
00:00 GabLeRoux joined #salt
00:01 markm joined #salt
00:05 Tahm joined #salt
00:15 pcdummy joined #salt
00:34 amcorreia joined #salt
00:35 ajw0100 joined #salt
00:51 quasiben joined #salt
00:51 pravka joined #salt
00:56 dopesong joined #salt
00:56 yomilk joined #salt
01:02 pravka joined #salt
01:09 litwol joined #salt
01:09 litwol Hello
01:10 litwol I forgot/never knew how to perform service command reload only.. ONLY if a certain file changed.
01:28 hrumph_ is tehre a log for this chan?
01:28 hrumph_ i forgot to do my own logging i wanted to review an old convo
01:28 _JZ_ yes
01:28 beauby joined #salt
01:28 hrumph_ oh wait i see it in the topic. awesomeness
01:28 _JZ_ Channel logs are available at http://irclog.perlgeek.de/salt/
01:28 _JZ_ :)
01:31 ALLmightySPIFF joined #salt
01:47 quasiben joined #salt
01:48 sunkist joined #salt
01:51 yomilk joined #salt
02:02 quasiben joined #salt
02:09 beauby joined #salt
02:12 favadi joined #salt
02:26 aqua^c joined #salt
02:29 beauby joined #salt
02:40 cberndt joined #salt
02:43 favadi joined #salt
02:48 oeuftete joined #salt
02:55 _JZ_ joined #salt
02:56 clemensb joined #salt
03:08 sunkist1 joined #salt
03:10 beauby joined #salt
03:13 sunkist2 joined #salt
03:16 jradd joined #salt
03:35 aea joined #salt
03:46 yomilk joined #salt
03:53 jradd joined #salt
04:15 yomilk joined #salt
04:25 colonD joined #salt
04:41 stoogenmeyer joined #salt
05:02 catpigger joined #salt
05:47 emid joined #salt
05:48 IanV0rn joined #salt
05:54 IanV0rn joined #salt
05:55 joeto joined #salt
05:59 IanV0rn Hiya, how can I have a central master that a few people can control? Do we all have to ssh into that one master?
06:00 catpiggest joined #salt
06:06 IanV0rn What I'd like is to be able to control the master from my or any of my work macs
06:06 Zachary_DuBois joined #salt
06:06 IanV0rn (or control the minions as the end result)
06:12 hrumph_ i know that ianvorn is gone...i don't see what 's particularly bad about logging in with ssh
06:13 stoogenmeyer joined #salt
06:19 kermit joined #salt
06:23 donmichelangelo joined #salt
06:31 ryand- joined #salt
06:38 ndrei joined #salt
06:39 unholycrab joined #salt
06:45 badon joined #salt
06:49 yomilk joined #salt
06:55 Sketch joined #salt
07:07 markm joined #salt
07:08 jradd joined #salt
07:14 chiui joined #salt
07:15 napsterX joined #salt
07:28 joeto1 joined #salt
07:43 hojgaard_ joined #salt
07:44 ndrei joined #salt
07:46 cliluw joined #salt
07:47 Fiber^ joined #salt
07:48 asoc joined #salt
07:54 stoogenmeyer_ joined #salt
07:55 agentnoel joined #salt
08:02 IanV0rn joined #salt
08:02 ajw0100 joined #salt
08:30 joeto joined #salt
08:42 evle1 joined #salt
08:49 primechuck joined #salt
08:56 Steven- joined #salt
09:20 linjan joined #salt
09:52 slav0nic joined #salt
10:06 SpX joined #salt
10:09 linjan joined #salt
10:11 favadi joined #salt
10:12 jradd joined #salt
10:22 al joined #salt
10:23 ramaseshan joined #salt
10:48 yomilk joined #salt
10:56 peters-tx0 joined #salt
11:22 napsterX joined #salt
11:25 Dev0n joined #salt
11:27 yomilk joined #salt
11:40 mapu joined #salt
11:42 linjan joined #salt
11:52 s_kunk joined #salt
12:08 dopesong joined #salt
12:09 dopesong_ joined #salt
12:15 ALLmightySPIFF joined #salt
12:17 napsterX joined #salt
12:20 c10 joined #salt
12:21 primechuck joined #salt
12:22 ndrei joined #salt
12:23 primechuck joined #salt
12:27 mdupont joined #salt
12:32 nyx_ joined #salt
12:44 yomilk joined #salt
12:52 tomh- joined #salt
13:12 napsterX joined #salt
13:16 ALLmightySPIFF joined #salt
13:16 primechuck joined #salt
13:50 jradd joined #salt
14:03 froztbyte what options do I have if I want to debug tracebacks in template rendering?
14:12 amcorreia joined #salt
14:13 napsterX joined #salt
14:27 litwol Hello
14:28 patrek joined #salt
14:32 manfred froztbyte:  not many unfortunately, I always jump on a minion, and call salt-call state.show_low_sls -l debug
14:34 froztbyte that's still not really good, though
14:34 froztbyte since there's no way for me to get at the data passed to the renderer
14:35 froztbyte (compared to, say, `python -i`)
14:35 froztbyte (not the best example)
14:35 froztbyte hmmmmm, has anyone tried to integrate salt with sentry?
14:35 froztbyte that would deal with my issue quite nicely
14:36 litwol I am really struggling with methodoligy
14:36 litwol methodology
14:36 manfred froztbyte:  i would really like a linter <3
14:36 Eriks joined #salt
14:36 litwol I have a simple state that may or may not run, but when it runs i want it to trigger another command being run (Service restart)
14:37 froztbyte manfred: you and me both
14:37 litwol I know i can do this using 'watch_in' to reload services when files change.
14:37 litwol BUT
14:37 froztbyte I should probably post to salt-users to find out if anyone else is doing this
14:37 Eriks hi, can any one tell me how to use wildcard in if? {% if grains['host'] == 'host-*' %}
14:37 litwol How can i specifcy a PASSIVE state definition which would never execute on its own ever, unless it is triggered by watch_in ?
14:37 manfred Eriks:  if 'host-' in grains['host']
14:37 froztbyte "testing salt/states" seems to typically just be done by running things until the errors stop, which isn't really all that great
14:37 litwol is that a proper salt approach?
14:38 manfred Eriks:  like in python, will check for the substring match
14:38 froztbyte litwol: sortakindabutnotreally
14:38 manfred litwol: if you the thing you are watching with has a mod_watch built in, it won't run unless the other thing changes
14:38 froztbyte litwol: the purpose of salt is really to enforce a given set of state(s) (like, "it *must* be this" type of thing)
14:38 manfred otherwise, i jsut combine listen and onchanges*
14:38 froztbyte litwol: there are (salt) states that allow conditional execution though
14:39 manfred so it only does the restart if onchanges is matched
14:39 froztbyte look for things with unless/onlyif/modwatch
14:39 froztbyte it is, fwiw, easier to accomplish this in salt than in puppet (in my experience)
14:39 manfred https://github.com/taplists/taplist-salt/blob/master/services/init.sls#L10-13
14:39 Eriks Thanks
14:40 froztbyte it's perhaps possible that you want something from the reactor (which is designed to react to events), but I haven't dealt with it myself yet so I can't say whether that's a correct guess
14:40 litwol oh yeah! i forgot about unless/onlyif
14:40 litwol unfortunately service i'm trying to "restart" isn't trully a service.. i need sysctl --system reloaded after i change ipv4.ip_forward
14:41 froztbyte litwol: use the sysctl state and a watch_In?
14:41 froztbyte watch_in*
14:41 froztbyte http://docs.saltstack.com/en/latest/ref/states/all/salt.states.sysctl.html
14:42 froztbyte (side rant: could sysctl be a bit better please? kthx)
14:42 litwol damnit
14:42 froztbyte (there are parts of it which aren't modifiable post-boot/post-moduleload)
14:42 litwol *of course* there will be sysctl state
14:42 froztbyte :)
14:42 * litwol facepalms
14:43 * litwol tries this out
14:45 froztbyte dammit, I can't get this yaml-to-json conversion to happen nicely
14:45 froztbyte it is trying to do a fair bit of magic, but still
14:46 froztbyte wait, scratch that, I had a typo because I'm an idiot
14:46 froztbyte wooooooooo, insane plans working \o/
14:48 froztbyte :D:D:D:D:D:D::D:D:D:D
14:48 froztbyte oh man
14:49 litwol froztbyte++
14:49 litwol froztbyte: that state did the trick.
14:49 litwol i am beginning to formulate a pattern in my mind about this stuff
14:49 froztbyte so I have some really crazy hax here now. pretty much interpolating pillar-specific data *into* a template that's itself a *part of* another template
14:49 froztbyte also the sub-template itself is yaml loaded by way of load_yaml
14:49 litwol goes along the lines of "if you are starting to perform conditional actions, you are doing it wrong"
14:50 froztbyte this is probably The Worst Thing
14:50 froztbyte but it works
14:50 froztbyte (also there's an execution module on the side there, because trying to do dict manipulation in a jinja template without jinja2.ext.do proved slightly tricky)
14:50 * froztbyte haz a happy
14:50 froztbyte litwol: sweet :)
14:51 lowfive joined #salt
14:51 froztbyte litwol: yup
14:51 froztbyte re conditional execution
14:51 litwol i do wonder though.. what if i run into a scenario where core state doesn't exist that does what i need, and if not "need" then /want/.. just because.
14:52 froztbyte that's part of my problem with this crazy stuff that I'm doing, though
14:52 litwol would i write a custom state module then?
14:52 froztbyte I have a single salt env and a less-than-good pillar scenario
14:52 froztbyte but my template rendering happens (well, will be happening) based on pillar input
14:52 litwol someting in there has to perform these conditional steps anyway. us as 'salt consumers' dont have to worry about it. but salt does.
14:52 froztbyte think "how much of $x" type of scenario, given processes/scaling/etc
14:53 litwol 1) change conf, 2) reload service/cmd
14:53 froztbyte state enforcement is fantastic when you have a uniform/predictable setup
14:53 froztbyte when you start having to deal with special snowflakes, the mental gymnastics start
14:54 froztbyte I wish I could say that we should just not have snowflakes, but the cost implications make it unrealistic
14:54 litwol i'm just wondering if this is going into custom state development
14:54 litwol or custom module
14:54 litwol say your business requires something trully unique, so you'd build the custom module/state
14:54 froztbyte litwol: depends what, I guess
14:54 litwol and then in your salt state config you would just say "make it so"
14:55 litwol so your salt, consumer, config is just a state declaration
14:55 froztbyte if you truly do get to the point of exceeding what salt primitives provide
14:55 froztbyte then, well, that's a worthwhile problem imo :)
14:55 froztbyte the salt primitives go pretty ridiculously far
14:56 * litwol nods
14:57 froztbyte I am slightly concerned that the bundled states may be making the same mistake as the python stdlib, tbh
14:57 froztbyte but right now I don't care super much
14:58 litwol example?
14:58 froztbyte http://docs.saltstack.com/en/latest/ref/states/all/salt.states.influxdb_user.html
14:58 froztbyte http://docs.saltstack.com/en/latest/ref/states/all/salt.states.grafana.html
14:59 froztbyte etc
14:59 froztbyte those are things that are much more easily dealt with as "hey look at this popular formula"
14:59 froztbyte otherwise you end up with an incredibly polluted namespace
14:59 slav0nic joined #salt
14:59 froztbyte (hello php)
14:59 litwol i c
15:00 litwol i'm in gentoo land. for me there's "just" php. none of that php5-* shit
15:00 froztbyte but yeah, if it gets to a point that I start to feel really worried about it, I'd do a thing
15:00 litwol but i think i get it
15:00 froztbyte litwol: okay, I can deal with that example
15:01 froztbyte litwol: you know that environment that needs their own special set of useflags, and 3 portage overlays, and god help you if you can't revdep rebuild twice-weekly?
15:01 froztbyte litwol: and then there's 5 of these, all different, and you just want to get drunk?
15:01 froztbyte litwol: that.
15:02 froztbyte (parts of this example /may/ be based on very old gentoo knowledge)
15:02 litwol lol
15:02 litwol froztbyte: my way of solving this is to lxc stuff.
15:03 froztbyte rofl
15:03 litwol froztbyte: am by 'lxc' i trully mean the minimalism of only "sandboxing" "services/apps"
15:03 froztbyte "I deal by not dealing!"
15:03 litwol correct!
15:03 froztbyte completely get that, though
15:03 litwol i avoid emerge conflicts by having no conflicting apps in one "package" container
15:04 froztbyte my history includes dealing with telco/ISP things, which are a ........rather particular set of problems
15:04 froztbyte we had this one system where you couldn't change its "core" IP
15:04 froztbyte because that broke the license
15:04 froztbyte couple mil worth
15:04 litwol lol
15:04 froztbyte so to this day that system is running with its "core" stuff in an isolated little simulated pocket of internet
15:04 litwol clever
15:05 froztbyte because at /the very early start/, it was configured with someone else's IP space as its core iface IP
15:05 froztbyte (by a person who didn't know any better)
15:05 ALLmightySPIFF joined #salt
15:05 froztbyte and then lulz happened
15:07 litwol sounds like historical baggage
15:07 litwol i've noticed that recently. or rather became aware of it.
15:07 froztbyte dude, the operational /mandate/ of ISPs is baggage
15:08 litwol so many brilliant sysops/just-ops stop progressing forward cause they are so bondaged by their employer's baggage and unable to learn new cool/useful techniques
15:08 litwol kinda sad :(
15:08 froztbyte ISPs == terrible
15:08 froztbyte litwol: part of the problem is also just how niche your skills become
15:09 froztbyte like, you can be brilliant and pull off some really cool stuff, but the specific form is only needed in the terrible market that is ISP-country
15:09 froztbyte (telcos are worse than ISPs, fwiw)
15:09 litwol :'(
15:10 froztbyte litwol: it's not all bad
15:10 froztbyte litwol: without the dedicated souls who stick to that environment, everything would tumble down
15:10 litwol for ppl with thick skin it is not bad at all
15:11 litwol but those are too few. the rest trully get psychologically beat up by this
15:11 froztbyte contrary to popular belief, the internet basically runs on blood, sweet, and the missed sleep of crazy engineers
15:11 * litwol not bliend to that
15:11 froztbyte (I'm only about 40% joking)
15:14 emaninpa joined #salt
15:14 napsterX joined #salt
15:30 froztbyte hmm I think I'm double-looping in my state
15:30 * froztbyte makes a note to look at that
15:34 stoogenmeyer_ joined #salt
15:37 bfoxwell joined #salt
15:37 linjan joined #salt
15:44 _JZ_ joined #salt
15:47 GabLeRoux joined #salt
15:57 c10 joined #salt
16:11 masux joined #salt
16:14 masux left #salt
16:15 napsterX joined #salt
16:28 zer0def joined #salt
16:35 EvaSDK joined #salt
16:35 EvaSDK joined #salt
16:40 ALLmightySPIFF joined #salt
16:42 nyx__ joined #salt
16:56 ajw0100 joined #salt
16:56 chiui joined #salt
16:59 jradd joined #salt
17:09 amcorreia joined #salt
17:21 ALLmightySPIFF joined #salt
17:22 linjan joined #salt
17:25 IanV0rn joined #salt
17:26 FeatherKing joined #salt
17:32 sunkist joined #salt
17:35 c10 joined #salt
17:37 c10 joined #salt
17:39 yidhra_ joined #salt
17:50 Heartsbane joined #salt
17:50 Heartsbane joined #salt
17:51 zz_cro joined #salt
17:53 eightyeight joined #salt
17:54 _vimalloc joined #salt
17:56 ekristen joined #salt
18:19 sunkist joined #salt
18:27 sunkist joined #salt
18:35 icflournoy joined #salt
18:36 pix92 joined #salt
18:39 pix92 .
18:52 pravka joined #salt
18:54 cberndt joined #salt
18:54 stooj joined #salt
18:57 Arendtsen Shouldn't it be possible to use pillar data in a file.managed source ?
18:59 mapu joined #salt
19:00 linjan joined #salt
19:08 sunkist1 joined #salt
19:13 sunkist joined #salt
19:18 ekristen joined #salt
19:18 sunkist1 joined #salt
19:24 sunkist joined #salt
19:24 julez joined #salt
19:27 joeto1 joined #salt
19:28 timoguin joined #salt
19:28 scoates joined #salt
19:37 IanV0rn joined #salt
19:48 jradd joined #salt
19:51 aea joined #salt
19:56 edrocks_ joined #salt
20:07 amunger joined #salt
20:24 mage__ joined #salt
20:26 ange joined #salt
20:28 DrParoXysm left #salt
20:40 viq_ joined #salt
20:44 pravka joined #salt
20:45 soren joined #salt
20:57 IanV0rn Is anyone around atm?
20:58 whytewolf for a breif moment. whats up?
20:58 IanV0rn I had a question I posted very early this morning, should I repost it?
20:58 IanV0rn 7am
20:58 whytewolf 7am what timezone?
20:59 IanV0rn GTM
20:59 IanV0rn > how can I have a central master that a few people can control? Do we all have to ssh into that one master?
20:59 IanV0rn > What I'd like is to be able to control the master from my or any of my work macs
20:59 whytewolf salt-api.
20:59 whytewolf write an interface.
21:00 IanV0rn ok, I'll check it out, cheers.
21:03 juanito joined #salt
21:06 Gareth IanV0rn: in the Salt github repo. look for a project called 'pepper', it might be a good starting point for what you want to do.
21:07 IanV0rn salt n pepper, nice. and cheers.
21:22 Tahm joined #salt
21:22 edrocks_ joined #salt
21:33 sunkist1 joined #salt
21:37 jradd joined #salt
21:42 aea joined #salt
21:51 yidhra_ joined #salt
21:53 linjan joined #salt
22:02 rogst joined #salt
22:06 sunkist joined #salt
22:11 FRANK_I joined #salt
22:20 sunkist1 joined #salt
22:21 pravka joined #salt
22:23 jab416171 joined #salt
22:26 sunkist joined #salt
22:34 ajw0100 joined #salt
22:34 mosen joined #salt
22:49 alexhayes joined #salt
22:51 alexhayes I'm using salt master and I'm using a dynamic module to import the bower SLS that's been committed on develop. However upon first run of state.highstate I get the following error: State 'bower.bootstrap' was not found in SLS
22:52 alexhayes This occurs even if I put in a SLS prior to this with: saltutil.sync_all: module.run
23:36 yomilk joined #salt
23:39 timoguin joined #salt
23:41 pdx6 joined #salt
23:48 MatthewsFace joined #salt
23:49 aqua^c joined #salt

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