Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-11-15

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

All times shown according to UTC.

Time Nick Message
00:03 mehakkahlon joined #salt
00:08 mehakkahlon joined #salt
00:13 mehakkahlon joined #salt
00:18 mehakkahlon joined #salt
00:23 mehakkahlon joined #salt
00:25 jtd joined #salt
00:28 mehakkahlon joined #salt
00:33 mehakkah_ joined #salt
00:36 nafg_ joined #salt
00:38 mehakkahlon joined #salt
00:38 Bryson joined #salt
00:43 mehakkahlon joined #salt
00:45 SheetiS joined #salt
00:47 hightekvagabond joined #salt
00:48 mehakkahlon joined #salt
00:53 mehakkahlon joined #salt
00:58 mehakkahlon joined #salt
01:01 zzzirk joined #salt
01:03 mehakkahlon joined #salt
01:08 mehakkahlon joined #salt
01:11 fsteinel_ joined #salt
01:13 mehakkahlon joined #salt
01:13 Suresh joined #salt
01:15 Suresh Hello everyone!. I am working on a writeup on comparing saltstack vs ansible. Can someone (experienced in both) mention how does salt compare to ansible?
01:16 _Cyclone_ joined #salt
01:18 mehakkahlon joined #salt
01:23 mehakkahlon joined #salt
01:28 mehakkah_ joined #salt
01:33 mehakkahlon joined #salt
01:38 Jimlad joined #salt
01:38 mehakkahlon joined #salt
01:43 mehakkah_ joined #salt
01:48 mehakkahlon joined #salt
01:53 mehakkahlon joined #salt
01:58 mehakkahlon joined #salt
02:01 hemebond Suresh: There are quite a few blog articles that compare the two.
02:03 mehakkahlon joined #salt
02:08 mehakkahlon joined #salt
02:13 mehakkahlon joined #salt
02:18 mehakkahlon joined #salt
02:23 mehakkahlon joined #salt
02:28 mehakkahlon joined #salt
02:33 mehakkahlon joined #salt
02:35 av_ joined #salt
02:36 Suresh ok
02:36 hemebond I haven't used Ansible myself so I can't comment. But I have read a fair number of articles and blog posts that compare the two in some way.
02:37 Suresh Matt Jaynes wrote a book on comparing chef, puppet, ansible and salt. http://mattjaynes.com/
02:37 hemebond I don't know what features Ansible has but I don't _believe_ it has things like the reactor/event system that Salt does.
02:37 hemebond Nor does it have an agent.
02:37 Suresh I do not have much time to buy and read the book
02:38 mehakkahlon joined #salt
02:40 racooper joined #salt
02:43 catpiggest joined #salt
02:45 mehakkahlon joined #salt
02:45 fivehole joined #salt
02:48 mehakkahlon joined #salt
02:51 symphorien joined #salt
02:53 mehakkahlon joined #salt
02:54 KajiMaster joined #salt
02:58 mehakkahlon joined #salt
03:03 mehakkahlon joined #salt
03:08 mehakkahlon joined #salt
03:12 kitplummer joined #salt
03:13 mehakkahlon joined #salt
03:14 Suresh joined #salt
03:18 mehakkahlon joined #salt
03:21 ageorgop joined #salt
03:23 mehakkahlon joined #salt
03:28 mehakkahlon joined #salt
03:33 mehakkahlon joined #salt
03:38 mehakkahlon joined #salt
03:43 mehakkahlon joined #salt
03:45 bhosmer_ joined #salt
03:48 mehakkahlon joined #salt
03:53 mehakkahlon joined #salt
03:58 zzzirk joined #salt
03:58 mehakkahlon joined #salt
04:03 mehakkahlon joined #salt
04:04 zzzirk joined #salt
04:06 cpowell joined #salt
04:08 rsmacapinlac joined #salt
04:08 mehakkahlon joined #salt
04:10 chadhs joined #salt
04:13 mehakkahlon joined #salt
04:17 zzzirk joined #salt
04:18 mehakkahlon joined #salt
04:22 malinoff joined #salt
04:23 mehakkahlon joined #salt
04:24 hightekvagabond joined #salt
04:28 moogyver joined #salt
04:28 mehakkahlon joined #salt
04:33 mehakkahlon joined #salt
04:35 danemacmillan joined #salt
04:36 quix joined #salt
04:38 KajiMaster joined #salt
04:38 mehakkahlon joined #salt
04:42 notnotpe_ joined #salt
04:43 mehakkahlon joined #salt
04:46 rmnuvg joined #salt
04:46 Micromus joined #salt
04:46 CaptainMagnus joined #salt
04:46 ]V[ joined #salt
04:46 jcastle joined #salt
04:47 viq joined #salt
04:47 SWAT joined #salt
04:48 mehakkahlon joined #salt
04:49 SheetiS joined #salt
04:49 phpdave11 joined #salt
04:51 garphy`aw joined #salt
04:53 mehakkahlon joined #salt
04:57 armguy joined #salt
04:59 mehakkahlon joined #salt
04:59 mack22 joined #salt
04:59 deus_ex joined #salt
05:00 netcho joined #salt
05:04 mehakkahlon joined #salt
05:09 mehakkahlon joined #salt
05:14 mehakkahlon joined #salt
05:19 mehakkahlon joined #salt
05:24 mehakkahlon joined #salt
05:28 malinoff joined #salt
05:29 mehakkahlon joined #salt
05:34 mehakkahlon joined #salt
05:39 mehakkahlon joined #salt
05:43 fivehole joined #salt
05:44 mehakkahlon joined #salt
05:44 larsfronius joined #salt
05:45 bhosmer joined #salt
05:49 mehakkahlon joined #salt
05:54 mehakkahlon joined #salt
05:59 mehakkahlon joined #salt
06:02 sontek left #salt
06:04 mehakkah_ joined #salt
06:06 zzzirk joined #salt
06:07 xDamox joined #salt
06:09 mehakkahlon joined #salt
06:13 DanyC joined #salt
06:14 mehakkahlon joined #salt
06:19 mehakkahlon joined #salt
06:21 xDamox joined #salt
06:24 mehakkahlon joined #salt
06:29 mehakkahlon joined #salt
06:32 KajiMaster joined #salt
06:34 mehakkahlon joined #salt
06:36 sunkist joined #salt
06:39 mehakkahlon joined #salt
06:44 mehakkah_ joined #salt
06:49 mehakkahlon joined #salt
06:54 subsignal joined #salt
06:54 DanyC joined #salt
06:54 mehakkah_ joined #salt
06:55 vstoniest joined #salt
06:58 viq joined #salt
06:59 mehakkahlon joined #salt
07:04 mehakkahlon joined #salt
07:09 mehakkah_ joined #salt
07:14 mehakkahlon joined #salt
07:19 mehakkahlon joined #salt
07:24 mehakkahlon joined #salt
07:27 felskrone joined #salt
07:29 mehakkahlon joined #salt
07:34 mehakkahlon joined #salt
07:37 s_kunk joined #salt
07:39 mehakkahlon joined #salt
07:44 mehakkahlon joined #salt
07:46 bhosmer_ joined #salt
07:49 mehakkahlon joined #salt
07:54 rotbeard joined #salt
07:54 mehakkahlon joined #salt
07:59 mehakkahlon joined #salt
08:02 jimklo joined #salt
08:04 mehakkahlon joined #salt
08:06 malinoff joined #salt
08:08 thehaven joined #salt
08:09 mehakkahlon joined #salt
08:14 mehakkahlon joined #salt
08:19 mehakkahlon joined #salt
08:24 mehakkahlon joined #salt
08:29 mehakkahlon joined #salt
08:34 mehakkahlon joined #salt
08:39 mehakkahlon joined #salt
08:44 mehakkahlon joined #salt
08:45 otter768 joined #salt
08:46 informant1 joined #salt
08:47 robawt joined #salt
08:49 Erik_____ joined #salt
08:49 mehakkahlon joined #salt
08:49 Erik_____ hi all anyone working with reactore?
08:52 slav0nic joined #salt
08:53 cyborg-one joined #salt
08:55 Fiber^ joined #salt
08:56 subsignal joined #salt
09:01 rogst joined #salt
09:01 Vynce joined #salt
09:16 Gi0 joined #salt
09:16 larsfronius joined #salt
09:19 nidr0x joined #salt
09:31 thalleralexander joined #salt
09:39 ziro` joined #salt
09:41 jimklo joined #salt
09:43 hightekvagabond joined #salt
09:45 Erik______ joined #salt
09:47 bhosmer_ joined #salt
09:54 Bryson joined #salt
10:01 whytewolf Erik______: Next time just ask the question upfront. someone might be more included to answer. or at least help debugging. anyway. what kind of issue are you having?
10:04 babilen .oO( He probably genuinely wants to know if anybody had ever worked with reactors before )
10:05 whytewolf :P
10:06 * whytewolf gets kind of gruff at 2am.
10:09 aurynn 2am is definitely grumpytime
10:09 babilen No, asking for the actual issue was exactly the right thing to do. The "anyone ..." questions are so common (and so pointless) that we have a factoid for them in #debian
10:12 whytewolf I really wish neutron didn't have so many one off config files... makes setting it up such a pain.
10:29 Erik______ whytewolf: i am trying to make it work with ec2 autoscale
10:29 Erik______ can you point me to a step by step guide?
10:31 whytewolf closest thing to a guide would be this. https://docs.saltstack.com/en/latest/topics/reactor/
10:33 whytewolf there really isn't anything step by step for reactors. except find what the event you want to trigger on is. setup reactor to call a reactor state based on that event. and have your returners setup to logg something somewhere or you will never know what is happening
10:34 Erik______ thanks
10:38 Erik______ do you know how to setup the master to get events from https?
10:41 whytewolf Erik______: there isn't anything like that built into saltstack by default. however you could build a python script or REST API that does it. https://docs.saltstack.com/en/latest/topics/event/index.html
10:41 bastiandg joined #salt
10:42 whytewolf for working with the REST API https://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.html
10:46 otter768 joined #salt
10:53 Erik______ Ok i am trying to set rest_cherrypy on port 8080 but after restarting the master service i dont see the port is listening
10:53 whytewolf you also need to install salt-api and restart it
10:55 Erik______ ok installing salt-api
10:56 whytewolf okay, and I am going to bed before i fall asleep on my keyboard .... again
10:56 Erik______ :-) thaks for the help
10:58 oida joined #salt
10:58 Erik______ i setup on master config rest_cherrypy:   port: 8080   host: 0.0.0.0   webhook_url: /hook   webhook_disable_auth: True
10:58 Erik______ restarted the master and cant see in netstat 8080
10:58 Erik______ salt-api is installed
10:59 subsignal joined #salt
11:03 Erik______ looks like now its working i didnt set disable ssl
11:04 jimklo joined #salt
11:07 oida joined #salt
11:17 ajw0100 joined #salt
11:24 Erik_____ joined #salt
11:28 oida joined #salt
11:39 oida joined #salt
11:44 slav0nic joined #salt
11:48 bhosmer_ joined #salt
11:49 indy80 joined #salt
11:55 chiui joined #salt
11:56 oida joined #salt
12:03 CeBe joined #salt
12:05 jimklo joined #salt
12:07 oida joined #salt
12:16 amcorreia joined #salt
12:18 oida joined #salt
12:47 otter768 joined #salt
12:52 oida joined #salt
13:01 subsignal joined #salt
13:03 cyborg-one joined #salt
13:07 jimklo joined #salt
13:07 jhauser joined #salt
13:11 markm joined #salt
13:19 oida joined #salt
13:36 oida joined #salt
13:46 mehakkahlon joined #salt
13:49 bhosmer joined #salt
13:57 oida joined #salt
14:08 jimklo joined #salt
14:18 larsfronius joined #salt
14:19 sjorge joined #salt
14:19 sjorge joined #salt
14:23 CeBe1 joined #salt
14:27 cpowell joined #salt
14:33 vaguelyNothere joined #salt
14:38 CeBe joined #salt
14:44 kitplummer joined #salt
14:48 moeyeb Morning!
14:48 moeyeb I'm thinking this isn't normal, right? http://i.imgur.com/gBsCUCP.png
14:48 otter768 joined #salt
14:49 moeyeb I've set worker_threads: 5
14:55 is_null left #salt
15:03 subsignal joined #salt
15:03 ziro` joined #salt
15:06 oida joined #salt
15:09 jimklo joined #salt
15:14 creppe joined #salt
15:16 oida joined #salt
15:26 saltstackbot [reddit-saltstack] 'win_repo' __virtual__ returned False - Salt 2015.8.1 https://www.reddit.com/r/saltstack/comments/3swi2v/win_repo_virtual_returned_false_salt_201581/ - 2015-11-15 - 15:22:44
15:27 oida joined #salt
15:30 indispeq joined #salt
15:30 malinoff joined #salt
15:33 joshin joined #salt
15:33 joshin joined #salt
15:36 elsmo joined #salt
15:41 ggoZ joined #salt
15:48 oida joined #salt
15:49 bhosmer joined #salt
15:56 colegatron joined #salt
16:02 denys joined #salt
16:05 oida joined #salt
16:11 jimklo joined #salt
16:21 indy80 joined #salt
16:27 oida joined #salt
16:38 oida joined #salt
16:44 zzzirk joined #salt
16:46 numkem joined #salt
16:47 kitplummer joined #salt
16:49 otter768 joined #salt
16:54 indispeq joined #salt
16:58 hightekvagabond joined #salt
17:00 oida joined #salt
17:05 subsignal joined #salt
17:07 Fiber^ joined #salt
17:11 jimklo joined #salt
17:12 bfoxwell joined #salt
17:13 int joined #salt
17:15 elsmo joined #salt
17:28 oida joined #salt
17:28 elsmo joined #salt
17:29 mehakkah_ joined #salt
17:30 indy80 joined #salt
17:32 nafg joined #salt
17:33 indy80 left #salt
17:44 DanyC joined #salt
17:44 maduro joined #salt
17:48 vaguelyNothere left #salt
17:48 ajw0100 joined #salt
17:49 stevej joined #salt
17:50 bhosmer joined #salt
18:05 dyasny joined #salt
18:06 subsignal joined #salt
18:08 quix joined #salt
18:18 johnkeates joined #salt
18:29 slav0nic joined #salt
18:30 DanyC joined #salt
18:50 RandyT_ toastedpenguin: when you are around, would like to ask you a couple of questions about your web.sls gist: https://gist.github.com/toastedpenguin/c76513c4d6aa24cd90c3
18:50 otter768 joined #salt
18:51 RandyT_ I've been trying to do something similar for past week and continue to run into issues. Curious if you are running this via reactor, orchestrate, ...
18:53 kitplummer joined #salt
18:55 DanyC hi, say i have a ntp client state which is highstated. How can the ntp clients(minions) inject the ntp servers IPs ? I can't pull the ntp server IPs from pillar as is unknown upfront (only during NTP server creation)
18:55 DanyC mine doesn't work as i doubt minions can "discover" other minions IP
18:56 joyrida08 joined #salt
18:59 iggy DanyC: one way: have your ntp servers have a grain (i.e. roles:ntpserver) and query mine data using that grain
19:01 DanyC iggy: can ntp client (say minion 1) query and pull the grain of the ntp servers ?i thought mine is only available to Master
19:01 iggy no, minions can query the mine
19:01 DanyC iggy: ah cool, my bad
19:01 iggy (it's actually not straight forward to use mine on the master)
19:03 cyborg-one joined #salt
19:03 DanyC iggy: another option i was thinking was to kind of be able to "inject" the ntp servers IP (after the VMs are up) into pillar and let minions follow the normal flow. I'm using salt cloud so not sure if that brings any benefit
19:03 joyrida08 joined #salt
19:03 iggy you could use the pillar wheel module to do that
19:04 lionel joined #salt
19:04 DanyC iggy: cool, thanks for the tip !!
19:04 ageorgop joined #salt
19:05 LotR why can't you put the ntp server ip in the mine?
19:06 LotR that's not different from putting minion IPs in the mine so you can build a /etc/hosts file from them, is it?
19:07 DanyC LotR: so let me give you the full picture - so i have the public ntp servers defined pillar. For private subnet i install few NTP servers (which is configured upstream using the Pillar ntp server) and then i have my own servers where the ntp.conf should be configured wiht the IPs of the internal NTP servers.
19:09 DanyC LotR: so to put it into mine the internal NTP servers (after the VMs were spun up) i could try (never done it before) if my ntp clients will be able to query for the mine data
19:11 oida joined #salt
19:11 clintberry joined #salt
19:15 jimklo joined #salt
19:15 DanyC LotR: has i misunderstood ?
19:15 LotR DanyC: check the hostsfile formula to see how it creates a /etc/hosts from the mine. I used to add a state to all my minions to create the required mine functions. you could do the same for just your ntp servers, and then do something similar as the formula does to populate your minions ntp.conf
19:15 clintber_ joined #salt
19:16 DanyC LotR: right, thanks for the tip!
19:16 DanyC i do have your, iggy so i should be good
19:16 DanyC much thanks both
19:16 LotR just make sure you have the mine updated
19:17 DanyC LotR: do you know if in latest version there is still problem with mine stale data?
19:18 LotR I'm running from debian distro packages, so I'm never on the latest version
19:18 DanyC ah, i see
19:19 LotR you get stale data even after you run salt '*' mine.update ?
19:20 DanyC LotR: not yet but read other issues on GitHub
19:23 LotR I'm still pretty much a n00b, but I don't think I've run into problems. you can set mine_interval too, so I guess there's some sort of wait before minions update their mine data
19:27 elsmo joined #salt
19:28 tristianc joined #salt
19:29 jhauser joined #salt
19:30 jhauser joined #salt
19:30 oida joined #salt
19:33 DanyC LotR: how do you set the mine_interval ? it sucks is only avialble on the minion cfg - not being able to set it via pillar/ grain
19:34 mik__R joined #salt
19:34 LotR DanyC: I just added it to minion config through the same state I used to add the mine functions I needed
19:39 DanyC LotR: ah so your mine function is stored on minion cfg or pillar? also fyi https://github.com/saltstack/salt/issues/11501
19:39 saltstackbot [#11501]title: Pillar-based Salt mine doesn't refresh mine on pillar_refresh | See https://groups.google.com/forum/#!topic/salt-users/Gp_3lTu89Ho....
19:40 LotR and then something like this to restart the minion for the mine to take effect I guess https://docs.saltstack.com/en/latest/faq.html#linux-unix
19:40 LotR I hadn't bothered with that last bit, since I don't have many minions
19:41 LotR DanyC: I put the mine config in /etc/salt/minion.d with a state
19:41 DanyC LotR: right, so you push the mine fct to minion cfg, i get it
19:51 bhosmer joined #salt
19:52 bfoxwell joined #salt
20:01 TyrfingMjolnir joined #salt
20:02 sunkist joined #salt
20:07 subsignal joined #salt
20:10 ageorgop joined #salt
20:16 jimklo joined #salt
20:20 larsfronius joined #salt
20:21 ashman joined #salt
20:24 ziro` joined #salt
20:26 ajw0100 joined #salt
20:29 tristianc joined #salt
20:29 zsoftich2 joined #salt
20:34 aidalgol joined #salt
20:51 otter768 joined #salt
20:55 kitplummer joined #salt
20:55 haam3r joined #salt
20:59 ageorgop joined #salt
20:59 denys joined #salt
21:13 ziro` joined #salt
21:17 jimklo joined #salt
21:33 clintberry joined #salt
21:41 colegatron joined #salt
21:43 ageorgop joined #salt
21:48 subsignal joined #salt
21:52 bhosmer_ joined #salt
22:00 drawsmcgraw left #salt
22:01 CeBe joined #salt
22:05 Bryson joined #salt
22:05 sbogg joined #salt
22:19 jimklo joined #salt
22:27 clintberry joined #salt
22:29 aidalgol npm.install on a Windows 7 minion isn't installing globally.  Is anyone able to reproduce this?
22:29 hemebond aidalgol: I can't test it for you but it sounds familiar.
22:29 hemebond I think someone was in there a week or two ago saying the same thing.
22:29 aidalgol hmm
22:33 johnkeates joined #salt
22:34 rocket_ joined #salt
22:39 zzzirk joined #salt
22:52 otter768 joined #salt
22:57 thalleralexander joined #salt
22:57 kitplummer joined #salt
22:58 voileux joined #salt
22:59 opensource_ninja joined #salt
23:04 ashmckenzie joined #salt
23:06 hackel joined #salt
23:09 aidalgol joined #salt
23:12 jondonas joined #salt
23:20 jimklo joined #salt
23:22 chequers joined #salt
23:23 chequers hi, I have a question about pillar data layout. I want to add a key that changes value based on the environment. Should I change the key's value using jinja (based on environment), or make the key a hash that contains keys for each environment, along with a default value?
23:23 chequers (or is there some third option)
23:25 hemebond chequers: If you're using different environments you probably want to use the Salt environment stuff.
23:25 hemebond But it depends on how you define your environments.
23:27 chequers sorry, just using environments as short hand. I'm actually defining remote syslog destinations differently based on the server's role
23:30 hemebond Well, I'm not sure what you mean with the key hash, but using Jinja to provide a different key sounds fine.
23:30 joyrida08 joined #salt
23:34 chequers here's an example https://gist.github.com/alexjurkiewicz/c8bb42514f2119ff71ed
23:38 hemebond chequers: Hmm, I'd probably have different pillar files for each role that overrides.
23:38 chequers sorry, how would that work?
23:38 hemebond Also, it's usually better to use a lookup
23:39 hemebond Well, in your pillar top.sls you apply, e.g., db.sls if the role is db
23:39 hemebond or a web.sls if the role is web
23:39 chequers oh, so basically duplicate the logic of my state top.sls, but for pillar top.sls?
23:40 hemebond Yeah
23:40 Segfault_ joined #salt
23:41 chequers so I'd do something like include syslog.sls for '*' but syslog-web for web and etc?
23:41 hemebond Well, web.sls can include all custom pillar stuff for the web role.
23:42 hemebond So you could have /srv/salt/pillars/roles/web.sls
23:42 hemebond and /srv/salt/pillars/roles/db.sls
23:42 chequers and default.sls?
23:42 hemebond Yip
23:42 hemebond (though that wouldn't necessarily be a role)
23:43 chequers that makes sense
23:43 chequers hm, where should defaults go then?
23:43 hemebond possibly /srv/salt/pillars/default.sls
23:44 hemebond I usually call it base.sls or global.sls
23:44 hemebond See https://docs.saltstack.com/en/latest/topics/pillar/#pillar-namespace-merges
23:45 chequers oh, Remember: conflicting keys will be overwritten in a non-deterministic manner!
23:45 chequers so I wouldn't actually want default values? If I have a value that's the same in 9/10 roles but different in the 10th, I should explicitly specify it in each?
23:48 hemebond Oh, didn't know about that. That's a bit shit.
23:50 hemebond In that case, use a lookup based on the grain
23:50 indispeq joined #salt
23:50 hemebond See the "Good example" under https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#light-conditionals-and-looping
23:50 hemebond The one using grains.os_family
23:51 hemebond That's a much better way than using if statements
23:52 bhosmer joined #salt
23:53 mosen joined #salt

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