Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-05-07

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

All times shown according to UTC.

Time Nick Message
00:24 oida joined #salt
00:32 DEger joined #salt
00:38 oida joined #salt
00:43 wendall911 joined #salt
00:43 jdipierro joined #salt
00:49 oida joined #salt
01:00 oida joined #salt
01:03 nikdatrix joined #salt
01:13 oida joined #salt
01:13 Nahual joined #salt
01:14 nikdatrix joined #salt
01:24 canci joined #salt
01:33 edrocks joined #salt
01:34 canci joined #salt
01:41 zerocoolback joined #salt
01:53 zerocoolback joined #salt
01:55 ryoya joined #salt
02:00 pbandark joined #salt
02:16 sp0097 joined #salt
02:20 eichiro joined #salt
02:23 asyncsec joined #salt
02:31 renoirb joined #salt
02:42 stooj joined #salt
02:52 stooj joined #salt
02:57 DEger joined #salt
03:00 stooj joined #salt
03:05 * MTecknology is missing something..
03:05 nikdatrix joined #salt
03:07 MTecknology I have http://dpaste.com/0ZRT4YB and I'm getting 'Unable to manage file: Jinja variable 'str object' has no attribute 'get''  Why is opts a string?!  (pillar data: http://dpaste.com/1CX4QCS)
03:10 ivanjaros joined #salt
03:10 stooj joined #salt
03:16 nikdatrix joined #salt
03:16 stooj joined #salt
03:28 stooj joined #salt
03:36 stooj joined #salt
03:39 MTecknology oooooooh......
03:52 cro joined #salt
03:53 stooj joined #salt
03:58 stooj joined #salt
04:05 MTecknology There we go!!!  Here we go... https://gist.github.com/MTecknology/4e6b9cc1a5dcdaa9ae6243e97806adc0
04:07 Shados joined #salt
04:07 MTecknology I don't know if I like this or not, but I at least know this pillar data could be easily turned into a python file that builds the same data structure from an inventory management system.
04:12 renoirb joined #salt
04:18 stooj joined #salt
04:27 zerocoolback joined #salt
04:34 stooj joined #salt
05:07 nikdatrix joined #salt
05:11 mosen joined #salt
05:18 nikdatrix joined #salt
05:26 gmoro joined #salt
05:36 edrocks joined #salt
05:42 zerocoolback joined #salt
05:42 jas02 joined #salt
05:45 jdipierro joined #salt
05:52 neil_ joined #salt
06:01 MTecknology Does jinja not let me do this?  {% for grp in [ x.replace('-nodes', '') for x in nodes.keys() if x.endswith('-nodes') ] %}
06:03 nkuttler MTecknology: try #pocoo ?
06:06 neil__ joined #salt
06:08 whytewolf MTecknology: no, list comprehensions are not supported
06:08 whytewolf http://jinja.pocoo.org/docs/2.9/faq/#isn-t-it-a-terrible-idea-to-put-logic-into-templates
06:09 MTecknology grrrrr
06:09 whytewolf if you need them there is a render engine that DOES support them
06:09 whytewolf ;)
06:10 DEger joined #salt
06:11 MTecknology I can break it into jinja logic, it's just a time where list compression was the prettiest option
06:14 whytewolf there are many times in jinja when list compression would be a prettier solution ... and faster
06:23 ivanjaros joined #salt
06:24 MTecknology Is there such thing as salt-cloud -m network.map --test?
06:24 MTecknology the --test is the part I'm not seeing
06:25 MTecknology I suppose it prompts by default before making changes.. that's good enough.
06:26 MTecknology whytewolf: you happen to know anything about salt-cloud?
06:26 zulutango joined #salt
06:31 whytewolf thought there was a "dry run" setting
06:32 whytewolf hummm guess i was wrong
06:33 whytewolf been a long while since i used salt-cloud. it's support of openstack has been a big thorn in my side.
06:35 zerocool_ joined #salt
06:35 whytewolf gtmanfred work on openstack shade gives me hope of being able to use salt-cloud in the future
06:51 rem5 joined #salt
06:52 rem5 joined #salt
06:57 MTecknology OMFG!!!!!
06:58 oida joined #salt
06:58 whytewolf ?
06:58 MTecknology http://dpaste.com/3PPY8BE
06:59 MTecknology The only difference between cloud.map and test.map is test removes the non-working proxmox stuff.
07:00 MTecknology that is so absolutely exactly the exact thing I hoped it would showt
07:00 MTecknology show*
07:00 whytewolf ahh
07:00 MTecknology hoped... not expected
07:01 cyteen joined #salt
07:02 MTecknology The proxmox stuff still has TODO as the user and password so I kinda expected it to fail.
07:04 MTecknology whytewolf: I'm allowed to be excited by this, yes?
07:05 APLU joined #salt
07:07 whytewolf I don't see why you wouldn't be. things working is a good thing
07:10 MTecknology My dream for like the last half a year has been inventory-defined infrastructure.
07:11 MTecknology Rather than inventory finding ways to be an accurate reflection of reality, you go to your inventory system, update it, and wait for it to tell you the server exists as defined.
07:14 MTecknology If you decide you want 30 dev boxes, it'd look like   for i in {23..52}; do ./add_vm -vlan lab salttest$i.domain.tld; done   then you'd generate 30 API requests that added 30 VM's to inventory and a job was queued to refresh inventory to reality mapping (make reality match inventory).
07:14 whytewolf hehe very nice
07:16 jas02 joined #salt
07:16 oida joined #salt
07:20 nikdatrix joined #salt
07:22 om2_ joined #salt
07:22 candyman88 joined #salt
07:29 prg3 joined #salt
07:38 prg3 joined #salt
07:58 prg3 joined #salt
08:02 viq MTecknology: and what do you use as inventory?
08:02 MTecknology viq: right now.. https://gist.github.com/MTecknology/4e6b9cc1a5dcdaa9ae6243e97806adc0
08:02 MTecknology eventually... racktables looks pretty sexy
08:03 neilf__ joined #salt
08:05 viq thanks
08:05 MTecknology if you want an enterprisey solution, there's always Device42
08:09 viq I have like 10 bookmarked ;) clusto, collins, ralph, I guess you could use reclass for that...
08:10 MTecknology oh? I never put much effort into finding alternatives
08:11 MTecknology I figured I'll set with a static and managed .sls for the moment and it's salt so replacing this yaml renderer with a python renderer that pulls this data from some web api would just be a pretty simple python exercise.
08:13 MTecknology Right now, I'm working on the actual heavy lifting. Adding a web api to build the same data/data_structure seems pretty simple in comparison.
08:14 viq oh, and https://www.i-doit.org/ and https://www.combodo.com/itop-193 look pretty interesting, from a tiny bit of playing around with their demos
08:15 viq As with them, IIRC, if you define dependencies (yes, it is a lot of work), you can issue queries what will be affected by downtime of a component
08:20 MTecknology I think it's bed time. I have salt-cloud -hard --m digitalocean.map offering to do exactly what I expect with all of my DO droplets. I have salt authenticating with my deploy proxmox box. This seems like an excellent time to pass out. Good night!
08:22 sjorge joined #salt
08:28 prg3 joined #salt
08:36 prg3 joined #salt
08:38 zerocoolback joined #salt
08:52 rem5 joined #salt
09:09 DEger joined #salt
09:11 nikdatrix joined #salt
09:20 pbandark joined #salt
09:22 nikdatrix joined #salt
09:26 ivanjaros joined #salt
09:27 ronnix joined #salt
09:34 vlebo joined #salt
09:41 vlebo hi all
09:42 vlebo i have installed latest salt-master and salt-cloud on ubuntu 16.04 and for some reaseon when creating machines with salt cloud it does not change hostname to minion id
09:44 vlebo on salt 2016.3.4 (Boron) works fine but on salt-cloud 2016.11.3 (Carbon) it does not .. has anything changed in bootsrap script?
09:44 vlebo my profiles are the same
09:44 vlebo working on AWS
09:52 Inveracity joined #salt
10:12 aldevar joined #salt
10:42 candyman88 joined #salt
10:53 rem5 joined #salt
11:03 Praematura joined #salt
11:13 nikdatrix joined #salt
11:15 amcorreia joined #salt
11:17 DEger joined #salt
11:21 shoemonkey joined #salt
11:31 treaki joined #salt
11:39 zerocool_ joined #salt
11:48 jdipierro joined #salt
11:53 zulutango joined #salt
12:13 al joined #salt
12:14 akitada joined #salt
12:36 Drunken_Panda ls:qexit
12:40 DEger joined #salt
12:54 rem5 joined #salt
13:03 inetpro joined #salt
13:05 pppingme joined #salt
13:15 nikdatrix joined #salt
13:17 cyborg-one joined #salt
13:21 fracklen joined #salt
13:26 nikdatrix joined #salt
13:40 fracklen joined #salt
14:24 shoemonkey joined #salt
14:32 Flash joined #salt
14:33 Flash Hello, looking for help
14:33 Flash I have to maintain a state variable, preferably at Master
14:34 Flash based on some events (say, apache on a minion goes down), want to update the status
14:34 Drunken_Panda can use a salt runner to respond to a beacon for that :D
14:35 Drunken_Panda becon to watch apache send to message bus runner to watch for message and update a variable
14:35 Drunken_Panda on the master
14:35 Flash Thankyou
14:35 Flash I am looking to see if I can use pillars/grains/mine
14:36 Flash to store this state variable
14:36 Flash pillars are in files, dont want to update the files
14:36 Drunken_Panda pillars are ment to store confidental data
14:36 Drunken_Panda grains are ment to store statuc
14:36 Drunken_Panda static
14:37 Flash is there anything to maintain dynamic values?
14:37 Drunken_Panda mine could work could even write a mine function to query apache
14:37 Drunken_Panda then you could run this mine function to return apache alive: True / false
14:38 Drunken_Panda across your infrastructure
14:38 Drunken_Panda or a single node
14:38 Flash ok
14:38 Drunken_Panda but you could then query the mine function in your states
14:39 Drunken_Panda I mean with apache you can just use salt to quwey if its running
14:39 Flash how to update value in a mine on an event
14:40 Flash say, I detect apache is down
14:40 Flash dont want to wait for mine_interval
14:40 Drunken_Panda can call a mine refresh using the reactor
14:40 Drunken_Panda watching a bracon
14:40 Drunken_Panda *beacon
14:40 Flash ok
14:40 Flash havent had breakfast, and bacon sounds good
14:41 Drunken_Panda salr was ment to be called bacon :(
14:41 Drunken_Panda *salt
14:41 Flash oh really.. salted bacon
14:41 Flash even better
14:41 Drunken_Panda i really wish I could of deployed bacon stack across my infrastructure
14:41 Flash lol
14:42 Flash am trying to think through your suggestion
14:42 Flash from what I see.. I need to hardcode the arguments into mine_functions
14:43 Drunken_Panda yea the name salt came from lotr twin towers when gimlie mentions salted pork while the creator of saltstack was in a flue induced trance aparently ( atleast thats what I was told at salt training :D)
14:43 Flash :)
14:44 Flash say, I have a module, my_apache_state
14:44 Flash and has function, update_state(cur_state)
14:44 Flash in a pillar file, mine_functions.sls, say I define the following
14:45 Flash my_apache_state.update_alive:
14:45 Drunken_Panda whys that in a pillar
14:45 Flash my_apache_state.update_down:
14:45 Drunken_Panda you want to push that into a state?
14:45 Flash you can define list of mine_functions in pillar file
14:45 Flash right?
14:46 Flash let me take a step back
14:46 Flash what I am trying to acheive is,
14:46 Drunken_Panda pillars ment for sensitive data such as passwords
14:46 Flash I have two web servers, each running apache
14:47 Drunken_Panda yup
14:47 rem5 joined #salt
14:47 Flash I want to maintain a flag in the master,
14:47 Flash to indicate if they are alive or down
14:47 Flash I dont want to query them every minute
14:47 Flash instead, as mentioned by you, watching a reactor or something
14:48 Drunken_Panda youd set a beacon up on each apache server
14:48 Flash when an even occurs, want to update the flag appropriately
14:48 Drunken_Panda to notify the master when an event happens
14:48 Flash agree..
14:48 Flash where do I maintain the flag
14:48 Drunken_Panda that will send an event to the zeromq message bus
14:48 Flash like a global variable
14:48 Flash I want to do something like
14:49 Drunken_Panda what are you going to do with this variable
14:49 Flash salt * mine.get * my_apache_state.get_state
14:49 Flash to print the value of the variable
14:50 Flash not much for now, other than, show latest know status
14:50 Drunken_Panda right so in the reactor
14:50 Drunken_Panda when you get a message saying apache down
14:50 Flash ok
14:50 Drunken_Panda youll want to ask the mine to update
14:50 Drunken_Panda then when you query it will have changed
14:51 Drunken_Panda alternativly you could just dump it to a file on master
14:51 Drunken_Panda or send an email
14:51 Flash ok
14:51 Drunken_Panda or curl to kick of some orch somewhere
14:52 Flash salt does not have an easy global state, am I wrong on that?
14:52 Flash mine seems to be it, but have not figured out how to update it on demand, with custom values
14:53 Drunken_Panda you mean like a system health report ?
14:53 Flash yes
14:53 Drunken_Panda for all minions
14:53 Flash some subset
14:53 Drunken_Panda theres no built in but you could very easly create one
14:53 Flash ok
14:54 Flash am trying to avoid going to database
14:54 Flash am ok not having failover/persistence
14:54 Drunken_Panda use some dashboard software or somthing with an api and just write to that when somthing changes
14:54 Flash ok, appreciate it man
14:54 Drunken_Panda dashing died unfortunatly but that was amazing for this stuff
14:54 Drunken_Panda using curls to update dashboard metrics :D
14:54 Flash what is it, was it part of salt?
14:55 Drunken_Panda na an independent project 1 mo
14:55 Flash ok
14:55 Drunken_Panda http://dashing.io/
14:55 Drunken_Panda use that wnd post to it and youll have a system health dashboard powered by the reactor
14:56 Flash ok
14:56 Flash looks like a good one
14:56 Flash Thankyou for the suggestion
14:57 Drunken_Panda the reactors real power is in fixing stuff for you
14:57 Drunken_Panda for example I have a beacon setup to monitor VM disks
14:57 Drunken_Panda if they hit a threshold
14:57 cyteen joined #salt
14:58 Drunken_Panda they are automatically cleaned up if that threshold is still hit I get an message in our chat client and it gets extended
14:58 Drunken_Panda by salt
14:58 Flash agree, kind of auto fix to the extent possible
14:58 Drunken_Panda can do some real cool stuff like auto scale aswell
14:59 Drunken_Panda if webfarm hits 80% cpu add more web servers
14:59 Drunken_Panda if hits 50 dcom webservers
15:00 Flash agree
15:00 Flash Thanks for the inputs!
15:00 Flash Thanks for pointing me to Dashing
15:01 Flash will see explore it a little later
15:01 Flash Have a good sunday!
15:05 cyborg-one joined #salt
15:08 edrocks joined #salt
15:12 noobiedubie joined #salt
15:24 candyman88 joined #salt
15:24 prg3 joined #salt
15:27 nikdatrix joined #salt
15:39 shoemonkey joined #salt
15:45 edrocks_ joined #salt
16:16 dnull joined #salt
16:16 shoemonkey joined #salt
16:32 noobiedubie joined #salt
16:35 Rumbles joined #salt
16:58 Praematura joined #salt
17:09 DEger joined #salt
17:20 jas02 joined #salt
17:29 nikdatrix joined #salt
17:31 sp0097 joined #salt
17:32 sp0097 joined #salt
17:32 sp0097 joined #salt
17:33 sp0097 joined #salt
17:34 sp0097 joined #salt
17:35 sp0097 joined #salt
17:40 ronnix joined #salt
17:40 ivanjaros joined #salt
17:43 dnull joined #salt
17:51 LeProvokateur joined #salt
17:56 jab416171 joined #salt
18:06 cyborg-one joined #salt
18:06 jab416171 joined #salt
18:07 prg3 joined #salt
18:10 noobiedubie joined #salt
18:11 jas02 joined #salt
18:14 fracklen joined #salt
18:19 jab416171 joined #salt
18:24 Inveracity joined #salt
18:30 jas02 joined #salt
18:40 Praematura joined #salt
18:52 fracklen joined #salt
18:54 edrocks joined #salt
19:18 oida joined #salt
19:20 nikdatrix joined #salt
19:28 oida joined #salt
19:31 nikdatrix joined #salt
19:35 aldevar joined #salt
19:39 fracklen joined #salt
19:42 fracklen joined #salt
19:42 jcristau joined #salt
19:44 dnull joined #salt
19:51 jdipierro joined #salt
19:53 oida joined #salt
19:54 justanotheruser joined #salt
20:01 jas02 joined #salt
20:01 nidr0x joined #salt
20:02 dnull joined #salt
20:12 DEger joined #salt
20:13 Guest27750 joined #salt
20:24 GnuLxUsr joined #salt
20:38 shoemonkey joined #salt
20:48 PowerSprayer joined #salt
20:59 shoemonkey joined #salt
21:22 nikdatrix joined #salt
21:44 Rumbles joined #salt
21:50 edrocks joined #salt
21:52 fracklen joined #salt
22:04 dober joined #salt
22:04 dober joined #salt
22:11 rgrundstrom_ joined #salt
22:11 Udkkna_ joined #salt
22:12 Mogget_ joined #salt
22:12 Corey_ joined #salt
22:12 leev_ joined #salt
22:12 xet7 joined #salt
22:13 Shirkdog_ joined #salt
22:13 benner_ joined #salt
22:16 rubenb_ joined #salt
22:16 Laogeodritt| joined #salt
22:17 stupidnic joined #salt
22:20 euidzero joined #salt
22:20 CeBe_ joined #salt
22:21 gmacon_ joined #salt
22:21 weylin- joined #salt
22:21 izrail_ joined #salt
22:21 dwfreed_ joined #salt
22:21 jerrcs- joined #salt
22:21 edgr- joined #salt
22:21 mr_kyd- joined #salt
22:23 TRManderson joined #salt
22:23 shalkie joined #salt
22:23 c4rc4s joined #salt
22:39 hemebond joined #salt
22:41 cyteen joined #salt
22:42 swills joined #salt
22:42 Edgan joined #salt
22:42 drags joined #salt
22:42 carlwgeorge joined #salt
22:42 packeteer joined #salt
22:42 Puckel_ joined #salt
22:42 supermike_ joined #salt
22:43 swills joined #salt
22:51 exegesis joined #salt
23:01 antpa joined #salt
23:19 nidr0x joined #salt
23:24 nikdatrix joined #salt
23:28 antpa joined #salt
23:35 nikdatrix joined #salt
23:42 DEger joined #salt
23:43 antpa joined #salt
23:52 shoemonkey joined #salt
23:52 jdipierro joined #salt

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