Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-04-02

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

All times shown according to UTC.

Time Nick Message
00:00 Agustin hi guys! Quick question. Is it possible to specify more than one path as root in gitfs_remotes?
00:03 _AndrewPashkin_ joined #salt
00:03 Agustin like this
00:03 Agustin https://gist.github.com/Northwood128/b7e68af97fa48a5ebe427cac45f04ce7
00:06 minesskyline joined #salt
00:08 CampusD Hi @chingadero , I'll give it a try, thanks
00:09 chingadero @CampusD I don't think it's going to work. It seems file_exists looks for the file on the minion. I think that's what iggy means.
00:09 digitalhero joined #salt
00:10 CampusD i see, make sense
00:12 CampusD i think I'll try adding custom grain on the minion and then include based on that
00:12 CampusD if the minion has the custom grain/value then include
00:12 CampusD that should work, right?
00:13 chingadero @CampusD I'm still new to this, but I believe so.
00:14 CampusD thanks for the help, my internet is going away for a bit, chau
00:15 chingadero Is there a way to get the private IP addresses created by SecondaryPrivateIpAddressCount in an ec2 cloud profile in a state file?
00:18 chingadero I'm trying to add the IPs to /etc/network/interfaces.d/eth0.cfg  via salt after the instance is created, but I can't figure out how to get the IPs from salt-cloud into a jinja template for file.managed.
00:19 hemebond chingadero: Isn't there a module, possibly an external module, that makes AWS properties available as grains?
00:20 spuder joined #salt
00:22 beardedeagle @hemebond pretty sure there is
00:28 hosttor joined #salt
00:29 brotatochip joined #salt
00:30 polyidus joined #salt
00:33 djgerm how would one see what states they've historically applied to minions?
00:33 djgerm i guess there's no way but to…. search through your event logs?
00:33 hemebond djgerm: The master job cache.
00:33 hemebond cache?
00:34 djgerm ah.
00:34 beardedeagle Jid's
00:34 hemebond Or for a particular minion, possibly the log.
00:34 hemebond The minion log.
00:34 djgerm a million dollar idea, and I told my trainer I think: a UI on top of the job cache like grafana
00:35 hemebond djgerm: Oooh, you could make an Elasticsearch returner
00:35 beardedeagle Saltpad reads the job cache
00:35 hemebond beardedeagle: Can you easily pull out info on a particular minion?
00:35 hemebond From the job cache?
00:36 beardedeagle As long as you know the jid. Runners are great for it.
00:36 djgerm yeah you could make all sorts of amazing dashboards
00:37 chingadero hemebond: solved using https://github.com/saltstack/salt-contrib/blob/master/grains/ec2_info.py, thanks
00:37 beardedeagle The ES one is an idea
00:37 hemebond chingadero: Good luck :-)
00:37 chingadero left #salt
00:39 cberndt joined #salt
00:40 Lee- joined #salt
00:42 lemur joined #salt
00:43 beardedeagle It would be great if I could call a web hook from a state.  Something like state.webhook pillar={whatever}
00:43 hemebond Isn't that kind of what the reactor could do?
00:44 hemebond A state applies, triggers an event, reactor calls the webhook.
00:44 minesskyline so, noob question: is the tutorial on the salt website recommended for learning, or do you ladies/gents have a better recommendation?
00:44 RobSpectre joined #salt
00:44 kliquori joined #salt
00:44 beardedeagle Sorry I meant runner
00:44 nani_desu joined #salt
00:44 hemebond minesskyline: I think the tutorial is pretty good.
00:44 hemebond minesskyline: Though take a bit of time to understand YAML if you don't already.
00:45 beardedeagle Because then you could postlowadapter with local_async client
00:45 beardedeagle And return a jid
00:45 beardedeagle Track a webhooks progress outside of debug.
00:47 minesskyline @hemebond right on, i will continue to check it out
00:47 Zhen joined #salt
00:47 hasues joined #salt
00:49 hasues left #salt
00:55 cberndt joined #salt
00:56 matt_ joined #salt
01:06 ageorgop joined #salt
01:11 spuder_ joined #salt
01:13 polyidus joined #salt
01:17 iceyao joined #salt
01:19 aqua^c joined #salt
01:30 flowstate joined #salt
01:31 s_kunk joined #salt
01:33 flowstate joined #salt
01:40 tkharju joined #salt
01:46 kliquori joined #salt
01:46 inire joined #salt
01:47 brotatochip joined #salt
01:47 euidzero joined #salt
01:54 brotatochip joined #salt
01:57 beardedeagle joined #salt
02:00 brotatochip joined #salt
02:08 beardedeagle hmm...new libcloud
02:21 ninjada joined #salt
02:24 rem5 joined #salt
02:24 racooper joined #salt
02:28 ninjada joined #salt
02:30 quix joined #salt
02:31 kliquori joined #salt
02:36 barajasfab joined #salt
02:38 nZac joined #salt
02:39 XenophonF ha HA: my jinja template renders properly!
02:49 digitalhero joined #salt
02:58 quix joined #salt
03:05 elepantz joined #salt
03:05 beardedeagle (•̀ᴗ•́)و
03:14 justanotheruser joined #salt
03:16 jfelchner joined #salt
03:26 jfred joined #salt
03:32 onlyanegg joined #salt
03:33 kliquori joined #salt
03:35 danderson is there an easy way to define utility wrappers around states? I'd like to define a state that's a combination of a couple file.managed and a service.running, instead of having to copy/paste those definitions
03:35 danderson but afaict, the only way to do something like that is to write a custom state from scratch
03:35 danderson am I missing something?
03:37 teatime well you can do stuff dynamically with jinja
03:38 danderson that works within a single sls file, but not across files
03:40 teatime I guess I don't understand exactly what you want
03:41 teatime but ultimately you can write python that generates arbitrary state data, so everything is possible.
03:41 josuebrunel joined #salt
03:41 danderson so, what I'm trying to achieve is that in my base state, I have a basic firewall configuration that imports configuration from a directory.
03:42 danderson Then, in other states that install services, I want them to drop an appropriate firewall snippet in that directory, and add a dependency on the firewall service defined in base
03:42 danderson so that they can open up ports as needed.
03:42 teatime I see, perhaps require_in requisites would help you
03:43 teatime or just putting your data in pillar and having states that get generated based on pillar
03:43 danderson Currently, I do this by copying the same file.managed throughout a bunch of states, which is ugly - when what I'd really like is https://paste.alt.tf/e32b1f
03:44 danderson and have that custom state do the appropriate file mangling, so I have that logic in just one place
03:44 danderson so, IIUC, putting the data in pillar means I have to manually manage the set of ports that are open in pillar, independently of what services the states install
03:45 Zhen joined #salt
03:46 teatime not necessarily, if you have a list of services to install in pillar, you can have a single mapping of services → ports in pillar too
03:46 teatime to use the actual syntax you provided, you'd have to create a custom state module.
03:47 danderson how does that interact with top.sls then? It sounds like that's working against the state -> machine assignment logic in there?
03:48 danderson okay, so for what I have in mind, I do need to write a state module - and from reading a bug, I've found how to call other states from a custom state of mine
03:48 danderson I'm still interested in whether my plan is making sense... I'm worried I'm doing it wrong :)
03:48 nZac joined #salt
03:49 teatime correct, doing it w/ pillars usually means putting the .sls that processes that part of pillar as mapped to '*'
03:49 teatime salt is very flexible and TMTOWTDI
03:50 danderson yeah, I get that impression. In general I like that, but given that I'm just getting started, I tend to get a bit lost still :)
03:50 teatime I feel your pain.
03:50 danderson speaking of which, reading http://make.rafflecopter.com/clean-salt-states.html it looks like jinja macros might be a simpler way to achieve what I'm trying to do
03:51 teatime as for whether writing your own state modules makes sense
03:51 danderson time to experiment, I guess.
03:51 teatime I still don't follow exactly what you want, but writing state modules can usually be avoided
03:51 teatime there's probably some other way to do it
03:51 teatime but that doesn't mean it necessarily doesn't make sense
03:53 danderson so, I just published on github: https://github.com/danderson/saltplayground/ . Might still not be crystal clear to follow, but it might help
03:54 danderson in the base state, I install ferm (firewall helper), drop a common base configuration on the machine, and create a ports.d directory.
03:54 teatime lol I am probably too sleepy to comprehend
03:55 danderson then in the saltmaster state, I add a file to the ports.d directory, which adds a config snippet for the firewall
03:55 danderson heh, fair enough, you've given me plenty to think about
03:55 danderson I'll go experiment and see what works best for me
03:55 danderson thanks!
03:56 teatime you may be right about jinja macros tho
03:56 teatime I haven't used them.
04:00 _JZ_ joined #salt
04:15 dayid joined #salt
04:21 euidzero joined #salt
04:28 xurong joined #salt
04:35 anmol joined #salt
04:37 Matum joined #salt
04:52 flowstate joined #salt
05:05 cyborg-one joined #salt
05:09 jalbretsen joined #salt
05:12 _JZ_ joined #salt
05:19 sauvin joined #salt
05:20 kliquori joined #salt
05:22 anmol joined #salt
05:27 msn joined #salt
05:27 zenlot6 joined #salt
05:35 euidzero joined #salt
05:40 nZac joined #salt
05:40 spuder joined #salt
05:53 flowstate joined #salt
05:54 impi joined #salt
06:00 aw110f joined #salt
06:02 xenoxaos joined #salt
06:02 aw110f_ joined #salt
06:10 msn so i have everything working except I need to execute salt-call state.highstate manually, how do I setit up to run automaticlaly regularly
06:14 iggy depends
06:14 iggy cron, salt scheduler, reactor, there are tons of ways you can do it
06:15 msn if minion is running then?
06:20 aqua^c joined #salt
06:23 Nazzy joined #salt
06:29 onlyanegg joined #salt
06:31 mavhq joined #salt
06:34 impi joined #salt
06:37 punkoivan joined #salt
06:38 punkoivan left #salt
06:42 rem5 joined #salt
06:47 iceyao joined #salt
06:53 flowstate joined #salt
06:54 antpa joined #salt
07:00 evle1 joined #salt
07:00 nZac joined #salt
07:01 mavhq joined #salt
07:07 Rumbles joined #salt
07:12 mosu_ joined #salt
07:15 josuebrunel joined #salt
07:18 JohnnyRun joined #salt
07:21 anmol joined #salt
07:23 ajw0100 joined #salt
07:27 dariusjs joined #salt
07:27 antpa joined #salt
07:35 antpa joined #salt
07:43 antpa joined #salt
07:48 joe__n joined #salt
07:51 elektrix joined #salt
07:51 beardedeagle I am on a pr roll tonight.
07:54 flowstate joined #salt
07:54 mavhq joined #salt
07:58 impi joined #salt
08:05 murkey i read a pr earlier
08:08 kliquori joined #salt
08:17 beardedeagle lol
08:19 euidzero joined #salt
08:22 felskrone joined #salt
08:25 josuebrunel joined #salt
08:40 euidzero joined #salt
08:41 keimlink joined #salt
08:43 slav0nic joined #salt
08:45 dmaiocchi joined #salt
08:52 flowstate joined #salt
08:53 jchen joined #salt
08:53 jchen left #salt
08:55 Dev-Tts joined #salt
08:55 Dev-Tts someone here is a unity 3d programmer ?
08:56 honestly a recruiter would tell me I should put "unity 3d expert" on my resume because I've touched it once
08:57 honestly and also played KSP
08:57 honestly so definitely!
08:59 teatime lol
08:59 beardedeagle Ive played with it a little
09:01 euidzero joined #salt
09:02 nZac joined #salt
09:03 mavhq joined #salt
09:07 keimlink joined #salt
09:09 mavhq joined #salt
09:14 favadi joined #salt
09:27 ninjada joined #salt
09:31 joe__n joined #salt
09:33 joe__n joined #salt
09:33 catpig joined #salt
09:34 jfelchner joined #salt
09:37 iceyao joined #salt
09:38 ninjada joined #salt
09:43 joe_n joined #salt
09:45 mavhq joined #salt
10:01 Guest3020 joined #salt
10:01 Guest3020 http://shrinkmy.com/lJn7D5Tq
10:07 kawa2014 joined #salt
10:10 kliquori joined #salt
10:19 joe_n joined #salt
10:21 Rumbles joined #salt
10:21 deus_ex joined #salt
10:22 joe_n joined #salt
10:31 ninjada joined #salt
10:45 keimlink_ joined #salt
10:52 flowstate joined #salt
10:56 kliquori joined #salt
11:11 impi joined #salt
11:16 sxar joined #salt
11:21 iceyao joined #salt
11:22 euidzero joined #salt
11:25 west575 joined #salt
11:32 elsmo joined #salt
11:35 rem5 joined #salt
11:50 sxar joined #salt
11:53 flowstate joined #salt
11:57 josue joined #salt
12:15 mavhq joined #salt
12:19 quasiben joined #salt
12:28 linjan joined #salt
12:28 mavhq joined #salt
12:37 Tertain joined #salt
12:44 nZac joined #salt
12:53 flowstate joined #salt
12:58 kliquori joined #salt
13:07 mavhq joined #salt
13:09 mavhq joined #salt
13:33 mavhq joined #salt
13:39 josue joined #salt
13:45 kliquori joined #salt
13:46 keimlink joined #salt
13:48 mavhq joined #salt
13:50 cyborg-one joined #salt
13:53 flowstate joined #salt
14:07 elsmo joined #salt
14:08 spuder joined #salt
14:19 nidr0x joined #salt
14:19 keimlink joined #salt
14:28 JohnnyRun joined #salt
14:33 mavhq joined #salt
14:36 mavhq joined #salt
14:38 ninjada joined #salt
14:50 drawsmcgraw left #salt
14:52 mavhq joined #salt
14:53 flowstate joined #salt
14:53 ivanjaros joined #salt
14:54 jscharber joined #salt
14:58 tristianc joined #salt
15:01 mavhq joined #salt
15:03 josuebrunel joined #salt
15:10 mavhq joined #salt
15:13 iceyao joined #salt
15:14 cyberviking joined #salt
15:21 ivanjaros joined #salt
15:22 cyberviking joined #salt
15:24 spuder_ joined #salt
15:24 keimlink joined #salt
15:25 cyberviking joined #salt
15:28 cyberviking joined #salt
15:29 Lionel_Debroux joined #salt
15:34 hightekvagabond joined #salt
15:35 johnkeates joined #salt
15:42 johnkeates joined #salt
15:45 APLU joined #salt
15:47 kliquori joined #salt
15:48 stanchan joined #salt
15:52 flowstate joined #salt
15:56 slav0nic joined #salt
16:01 mavhq joined #salt
16:05 dmaiocchi joined #salt
16:08 vpm joined #salt
16:10 oida joined #salt
16:15 mavhq joined #salt
16:23 mavhq joined #salt
16:31 sauvin joined #salt
16:34 kliquori joined #salt
16:34 antpa joined #salt
16:38 SheetiS joined #salt
16:59 Rumbles joined #salt
17:04 aw110f joined #salt
17:04 Nazca joined #salt
17:06 aw110f_ joined #salt
17:09 punkoivan joined #salt
17:19 anmol joined #salt
17:20 euidzero joined #salt
17:37 punkoivan joined #salt
17:46 slav0nic joined #salt
17:48 kliquori joined #salt
17:55 RobSpectre joined #salt
17:57 ageorgop joined #salt
18:01 amcorreia joined #salt
18:02 xmj moin
18:03 xmj does salt have a state for freebsd jails?
18:11 nZac joined #salt
18:11 polyidus joined #salt
18:30 keimlink joined #salt
18:33 sxar_ joined #salt
18:38 sxar joined #salt
18:48 nZac joined #salt
18:49 kliquori joined #salt
18:50 impi joined #salt
18:56 iggy xmj: full list of states: https://docs.saltstack.com/en/latest/salt-modindex.html#cap-s
18:56 xmj thx
18:56 xmj i found that someone implemented an iocage state and a module half a year ago
18:57 xmj which would be massively out of date but easily rewritable :-)
19:07 ajw0100 joined #salt
19:07 mavhq joined #salt
19:07 llua didn't take them long to notice sh was painful to create iocage with.
19:10 Muchoz joined #salt
19:14 Eugene 9
19:14 Eugene 6+
19:14 Eugene Thanks, dog
19:15 xmj llua: i sense this is driven by some bullshit reasons
19:15 xmj but, offtopic :)
19:22 Hsje joined #salt
19:23 Hsje http://oortr.com/YmU5NT
19:37 nZac joined #salt
19:38 nZac joined #salt
19:46 justanotheruser joined #salt
19:53 beardedeagle joined #salt
19:54 impi joined #salt
19:58 dabb joined #salt
20:00 alexlist joined #salt
20:03 favadi joined #salt
20:13 favadi joined #salt
20:21 quasiben joined #salt
20:24 kliquori joined #salt
20:48 mavhq joined #salt
21:00 oida joined #salt
21:01 mapu joined #salt
21:21 jeffspeff joined #salt
21:25 kliquori joined #salt
21:39 sjorge joined #salt
21:39 sjorge joined #salt
21:40 sjorge joined #salt
21:40 sjorge joined #salt
21:43 sjorge joined #salt
21:43 sjorge joined #salt
21:44 sjorge joined #salt
21:44 sjorge joined #salt
22:11 baffle joined #salt
22:12 kliquori joined #salt
22:19 justanotheruser joined #salt
22:20 linjan_ joined #salt
22:31 spuder joined #salt
22:32 spuder_ joined #salt
22:39 zenlot joined #salt
22:55 ninjada joined #salt
22:56 ninjada joined #salt
22:56 yomilk joined #salt
23:06 joe_n joined #salt
23:07 hightekvagabond joined #salt
23:14 mavhq joined #salt
23:30 danderson left #salt
23:30 jeffspeff joined #salt
23:45 mohae joined #salt
23:51 oida joined #salt

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