Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-04-23

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

All times shown according to UTC.

Time Nick Message
00:03 envintus joined #salt
00:15 Knuta tvinson: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sec-Making_Persistent_Changes_to_a_GRUB_2_Menu_Using_the_grubby_Tool.html
00:15 Knuta tvinson: check if grubby exists in RHEL 5 as well, you might be in luck
00:15 kevinquinnyo1 joined #salt
00:15 flowstate joined #salt
00:16 tvinson Knuta: i don't think 5 or 6 even have grub2
00:18 envintus joined #salt
00:18 Knuta tvinson: just checked on a Centos 6.7 machine I have access to, it had grub-0.97-94.el6.x86_64 and grubby-7.0.15-7.el6.x86_64 installed.
00:19 Knuta tvinson: so added bonus, the grubby approach might make you support both versions of grub!
00:19 tvinson Knuta: yeah i'll check it out, thanks
00:19 nZac joined #salt
00:30 meekrab joined #salt
00:32 pipps joined #salt
00:33 kevinquinnyo1 https://github.com/simonmcc/kitchen-salt/  <- Has anyone used this?  I'm looking for a good process on testing.  My salt code base has grown to the point that it requires it at this point(probably should have been started a long time ago)
00:35 kevinquinnyo1 Just looking for some general suggestions
00:40 tvinson kevinquinnyo1: i haven't tried it yet, the virtustream guys were talking about testing at the conference. they've got formulas in separate git repos that have test plans using vagrant, fabric and tox built in. then they've got a build server that tells them when stuff is broken. i don't think the videos are posted it but you should check that out too.
00:42 kevinquinnyo1 tvinson: that's what i had in mind
00:42 kevinquinnyo1 i'll try to find that video if they post it
00:43 west575 joined #salt
00:43 kevinquinnyo1 i think for now i'm just going to write the basics before this thing gets out of hand -- i definiely need some intgration testing on my custom code, some of which is pretty ugly right now
00:44 kevinquinnyo1 i also started using custom runners, to do some basic "funtional testing" -- like making an http request after state run to make sure something appears -- simple stuff
00:47 envintus joined #salt
00:50 pipps joined #salt
00:58 ajspa joined #salt
01:05 edrocks joined #salt
01:05 west575 joined #salt
01:13 bVector join #salt-dev
01:14 bVector or is this the devvyest salt-dev there is?
01:16 meekrab joined #salt
01:18 pipps joined #salt
01:20 racooper joined #salt
01:25 brianfeister joined #salt
01:28 jeffspeff joined #salt
01:35 ajspa joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.8.8, 2016.3.0rc2 | SaltConf16: http://saltconf.com/register/ | 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:52 nZac joined #salt
01:55 iceyao joined #salt
02:01 meekrab joined #salt
02:16 nZac joined #salt
02:17 meekrab joined #salt
02:22 meekrab joined #salt
02:29 quasiben joined #salt
02:30 meekrab joined #salt
02:40 meekrab joined #salt
03:00 quasiben joined #salt
03:08 edrocks joined #salt
03:15 brianfeister joined #salt
03:29 subsignal joined #salt
03:30 josuebrunel joined #salt
03:34 cpowell joined #salt
03:38 brianfeister joined #salt
04:01 abruanese joined #salt
04:12 armguy joined #salt
04:17 hasues joined #salt
04:18 hasues left #salt
04:22 quasiben joined #salt
04:26 favadi joined #salt
04:31 envintus joined #salt
04:44 meekrab joined #salt
04:47 meekrab joined #salt
04:50 meekrab joined #salt
04:52 ninjada joined #salt
04:55 gladiatr joined #salt
04:59 meekrab joined #salt
05:02 bltmiller joined #salt
05:03 AndyW_ joined #salt
05:04 beneggett joined #salt
05:05 AndyW_ Hey all was hoping someone could give me a quick answer to a question I can't seem to find a clear answer in the reading I've been doing. I've been interested in looking at starting doing some basic work with network automation and initially had been interested in Ansible but have started to get interested in SaltStack. The question I have seems so simple but I can't find a clear answer on it anywhere:
05:06 AndyW_ Are the Minions in SaltStack the actual machines you are intending to manage and make automated changes to or are they jump points from which you connect to the machines you want to automate and manage?
05:07 hemebond AndyW_: The Salt minion is installed on the device you want to manage.
05:07 hemebond Though there are mechanisms for managing remote devices.
05:08 AndyW_ Interesting. OK. I was hoping they acted as nodes from which I would SSH to other machines such as the way Ansible works. So I could have a Minion at each location for example that would push configuration changes to my network gear etc...
05:08 AndyW_ Sounds like that is not the design intent then
05:08 hemebond For that I think you can use salt-proxy
05:08 meekrab joined #salt
05:08 hemebond Salt Proxy Minion
05:08 hemebond "Proxy minions are a developing Salt feature that enables controlling devices that, for whatever reason, cannot run a standard salt-minion."
05:09 hemebond https://docs.saltstack.com/en/latest/topics/proxyminion/index.html
05:10 AndyW_ Interesting! This may be what I needed
05:10 sauvin joined #salt
05:11 AndyW_ Thanks! I'll do more reading on this. I appreciate the quick response!
05:11 hemebond Good luck :-)
05:12 edrocks joined #salt
05:12 AndyW_ Thanks!
05:33 favadi joined #salt
05:51 sfz- joined #salt
05:51 bantone hm...this dual 27 in setup is kinda intimidating
05:52 favadi joined #salt
05:56 AndrewPashkin joined #salt
05:58 felskrone joined #salt
06:01 AndrewPashkin joined #salt
06:02 teatime Oliver____: Did you figure out your issue with roles and pillars ?
06:03 ninjada joined #salt
06:04 armyriad joined #salt
06:09 smcquay joined #salt
06:15 meekrab joined #salt
06:18 Garyx joined #salt
06:33 envintus joined #salt
06:45 aw110f joined #salt
06:48 aw110f_ joined #salt
06:51 subsignal joined #salt
06:54 ninjada joined #salt
06:57 intr1nsic joined #salt
07:09 ivanjaros joined #salt
07:14 edrocks joined #salt
07:15 slav0nic joined #salt
07:19 manji joined #salt
07:29 ninjada joined #salt
07:36 cpowell joined #salt
07:40 dmaiocchi joined #salt
07:46 manji joined #salt
07:52 morissette joined #salt
08:08 Fiber^ joined #salt
08:15 josuebrunel joined #salt
08:17 CeBe joined #salt
08:29 ninjada joined #salt
08:30 dyasny joined #salt
08:34 AndrewPashkin joined #salt
08:41 ivanjaros joined #salt
08:43 beneggett joined #salt
09:08 Trauma joined #salt
09:17 edrocks joined #salt
09:26 samed joined #salt
09:38 subsignal joined #salt
09:50 lero joined #salt
09:56 garphy`aw joined #salt
09:57 nidr0x joined #salt
10:13 dmaiocchi joined #salt
10:19 edrocks joined #salt
10:21 om joined #salt
10:21 nidr0x joined #salt
10:22 dmaiocchi joined #salt
10:26 nidr0x joined #salt
10:28 josuebrunel joined #salt
10:29 nidr0x joined #salt
10:32 nidr0x joined #salt
10:34 nidr0x joined #salt
10:56 catpig joined #salt
11:02 lionel joined #salt
11:13 envintus joined #salt
11:18 pipps joined #salt
11:22 rogst joined #salt
11:38 cpowell joined #salt
11:40 subsignal joined #salt
11:44 kevinquinnyo joined #salt
12:10 envintus joined #salt
12:11 IndyRob joined #salt
12:17 envintus joined #salt
12:22 edrocks joined #salt
12:25 IndyRob Anyone know if they will be releasing slides from SaltConf, or already have?
12:35 slav0nic joined #salt
12:36 amcorreia joined #salt
12:39 hemebond I'm assuming (hoping) they'll publish some videos of some of the talks afterwards like they've done previously.
12:46 lws joined #salt
12:49 Garyx joined #salt
12:52 josuebrunel joined #salt
12:53 cyborg-one joined #salt
12:54 Garyx joined #salt
12:54 om joined #salt
13:01 jettero I wanna try to use the salt-cloud stuff. I was thinking of doing it with ec2 first, cuz it's easy... but I have a ton of (slow, sometimes broken) resources at cloud-at-cost that cost me nothing more, now that I've already bought them.
13:02 jettero So I'm planing to write a driver for cac, cuz they have REST API. First, I'm looking for one that's already out there, but the search for "salt-cloud" "cloud at cost" driver is proving troublesome.
13:02 jettero Anyone aware of a driver for this?
13:03 lero joined #salt
13:13 armyriad joined #salt
13:17 Garyx joined #salt
13:19 favadi joined #salt
13:21 LeProvokateur joined #salt
13:24 kawa2014 joined #salt
13:25 CeBe joined #salt
13:32 rem5 joined #salt
13:38 lero joined #salt
13:39 bluenemo joined #salt
13:40 CeBe joined #salt
13:42 subsignal joined #salt
13:51 ninjada joined #salt
13:58 Garyx joined #salt
14:02 rem5 joined #salt
14:04 ninjada joined #salt
14:05 lero joined #salt
14:16 favadi joined #salt
14:16 tharkun joined #salt
14:21 Garyx joined #salt
14:24 edrocks joined #salt
14:30 quasiben joined #salt
14:36 writtenoff joined #salt
14:41 quasiben joined #salt
14:53 yidhra joined #salt
14:54 ninjada joined #salt
15:01 keimlink joined #salt
15:01 mapu joined #salt
15:04 mapu joined #salt
15:07 Guest25239 joined #salt
15:14 envintus joined #salt
15:27 mowntan joined #salt
15:34 ivanjaros joined #salt
15:39 cpowell joined #salt
15:44 subsignal joined #salt
15:51 punkoivan joined #salt
15:51 rem5 joined #salt
16:07 subsignal joined #salt
16:12 josuebrunel joined #salt
16:14 abednarik joined #salt
16:28 edrocks joined #salt
16:30 Jimlad__ joined #salt
16:48 crunchbite joined #salt
16:49 crunchbite is anyone here familiar with the mongodb ext_pillar?
16:50 newjersey joined #salt
16:54 keldwud_ joined #salt
16:58 rem5 joined #salt
17:06 stooj joined #salt
17:10 quasiben joined #salt
17:10 smcquay joined #salt
17:15 rem5 joined #salt
17:27 meekrab joined #salt
17:33 punkoivan joined #salt
17:38 subsignal joined #salt
17:40 lero joined #salt
17:41 CampusD joined #salt
17:44 vivek joined #salt
17:44 vivek hi
17:44 Guest88789 i want to get the list of IP's of all minions which r unable to connect to Master. & for thatt using below command
17:44 Guest88789 salt-run  manage.not_alived show_ipv4=True
17:45 Guest88789 but this is showing only minion ids
17:45 Guest88789 not theirr IP's
17:45 Guest88789 is there a way i can get /list of all IP's of the minions which r unable to connect to master
17:46 Guest88789 pls suggest
17:48 viq joined #salt
17:48 viq joined #salt
17:49 edrocks joined #salt
17:53 lero__ joined #salt
17:57 CampusD you could pass those ids to the network function,  "salt minion_id network.ip_addrs"
18:00 rem5 joined #salt
18:00 Guest88789 this didnt work
18:00 Guest88789 it return the below messge :-
18:00 Guest88789 Minion did not return. [Not connected]
18:00 Guest88789 +++++++++++++++++++++++
18:01 Guest88789 i want to get the list of IP's for MINIONS which r currently showing down in >>>  salt-run  manage.down >>
18:01 Guest88789 command
18:04 CampusD there might be  way to use jinja to feed your results from your command into the other command
18:04 CampusD salt {{ minion_id }} network.ipaddrs
18:05 CampusD not sure if you can do it from the CLI
18:06 Guest88789 again..network.ipaddrs will return results if minions r connected..
18:07 Guest88789 my minions r not connected..suppose tthe minion process is down  on some of the nodes..then how to get the IP's of all minions which r showing in down state when running "salt-run manage.down" command
18:08 lero joined #salt
18:13 CampusD i understand now, not sure if there is a way
18:15 mavhq joined #salt
18:20 mowntan joined #salt
18:21 AndreasLutro Guest88789: try salt-run manage.list_state state=up show_ipv4=true
18:22 mapu joined #salt
18:23 AndreasLutro if you need very specific data like this I think the best approach is to just write a custom runner, it's not very difficult
18:25 edrocks_ joined #salt
18:30 edrocks joined #salt
18:31 Guest88789 Thanks AndreasLutro .. but with this also i m not getting list of down Minions
18:31 Guest88789 ip's
18:32 edrocks__ joined #salt
18:32 AndreasLutro hmm, try state=available instead
18:32 AndreasLutro Show minions being in specific state that is one of 'available', 'joined', 'allowed', 'alived' or 'reaped'.
18:32 Guest88789 how to write custom runner as u suggested .. AndreasLutro.. any linsk
18:32 AndreasLutro or any of those
18:32 AndreasLutro https://docs.saltstack.com/en/latest/ref/runners/
18:33 edrocks___ joined #salt
18:35 Guest88789 i saw that documentation ,, but what is the difference betwen all thesse states ..>  'available', 'joined', 'allowed', 'alived' or 'reaped'
18:35 Guest88789 isnt the 'available' 'alive' 'allowed' means the same thing ?
18:35 Guest88789 is there any difference betwen these states ?
18:36 AndreasLutro I don't know :)
18:38 Guest88789 ahhh.. :)
18:41 ageorgop joined #salt
18:41 sagerdearia joined #salt
18:42 edrocks joined #salt
18:45 rem5 joined #salt
18:49 traph_ joined #salt
18:50 dyasny joined #salt
18:56 subsignal joined #salt
18:57 zer0def joined #salt
19:02 CampusD question, how do I reference a jinja variable inside a pillar.get call? double quotes ?
19:02 CampusD {% set var = 'some_value' %}
19:02 CampusD {{ salt['pillar.get']('foo:"var":baz', 'qux') }}
19:02 Eugene You can use pillar['foo'] directly
19:03 CampusD I was to be able to set a default value in case of not defined or empty
19:03 CampusD sorry, "I want to" I meant
19:03 CampusD {{ salt['pillar.get']('foo:"var":baz', 'default_value') }}
19:04 AndreasLutro 'foo:' ~ var ~ ':baz'
19:04 AndreasLutro ~ being the string concatenation operator
19:04 CampusD perfect, I'll give it a try, thanks so much
19:05 rem5 joined #salt
19:09 tristianc joined #salt
19:11 rem5 joined #salt
19:16 LeProvokateur joined #salt
19:16 ageorgop joined #salt
19:18 mavhq joined #salt
19:20 keldwud_ joined #salt
19:23 pid1 joined #salt
19:26 meekrab joined #salt
19:29 west575 joined #salt
19:33 lero joined #salt
19:35 tristianc joined #salt
19:40 cpowell joined #salt
19:43 mavhq joined #salt
19:44 abednarik joined #salt
19:49 Muchoz joined #salt
20:06 beardedeagle joined #salt
20:19 punkoivan left #salt
20:21 nethershaw joined #salt
20:25 meekrab joined #salt
20:25 catpig joined #salt
20:28 stinky joined #salt
20:31 GreatSnoopy joined #salt
20:33 edrocks_ joined #salt
20:51 brianfeister joined #salt
20:58 subsignal joined #salt
21:08 mrueg joined #salt
21:19 Eureka703 joined #salt
21:22 kevinquinnyo joined #salt
21:23 hasues joined #salt
21:23 hasues left #salt
21:33 newjersey joined #salt
22:04 jpeach joined #salt
22:05 jpeach I'm working on a patch that will deprecate some module methods
22:05 jpeach what release number do I put in for that?
22:15 jfindlay jpeach: two major releases
22:15 jfindlay probably oxygen, right?
22:16 * jfindlay tries to remember the order of chemical elements
22:16 jpeach so if current release is 2015.8.8, two majoe releases is 2017.0 ?
22:18 meekrab joined #salt
22:18 jfindlay jpeach: see https://docs.saltstack.com/en/latest/topics/development/deprecations.html
22:18 jfindlay you can just put in 'Oxygen'
22:18 jpeach ok thanks
22:18 jfindlay rather than try to guess the release date
22:19 jpeach fwiw I haven't used salt for a few years; I'm just making an RFC change to fix https://github.com/saltstack/salt/issues/32752
22:19 saltstackbot [#32752]title: Update the trafficserver module to use traffic_ctl | ### Description of Issue/Question...
22:19 jpeach oh thanks saltstackbot
22:21 jpeach so my next task is probably to figure out how to write some unit tests :)
22:21 subsignal joined #salt
22:22 jfindlay https://docs.saltstack.com/en/latest/topics/development/tests/unit.html
22:23 jfindlay you should be able to copy a unit test file from a similar module as a starting point
22:23 meekrab joined #salt
22:24 jpeach thanks jfindlay!
22:25 jfindlay sure
22:31 newjersey joined #salt
22:34 meekrab joined #salt
22:36 edrocks joined #salt
22:38 zenlot joined #salt
22:40 cyborg-one joined #salt
22:46 writteno1 joined #salt
22:55 jfindlay jpeach: do you know if there is a reason to use raw subprocess calls rather than `__salt__['cmd.run']`?
22:56 jfindlay with trafficserver?  `cmd.run` gives you a much higher level interface to system commands
22:57 bluenemo joined #salt
23:00 stooj joined #salt
23:03 manji joined #salt
23:10 brianfeister joined #salt
23:19 writtenoff joined #salt
23:26 dajones70 joined #salt
23:27 nZac joined #salt
23:30 dajones70 I am setting up salt with gitfs folling the "Git Fileserver Backend Walkthrough".  'salt-run fileserver.envs sources=True' shows base under git: but my cache dir is empty.
23:31 jfindlay the cache dir won't get data until you start using the fileserver
23:33 dajones70 I have a very simple top.sls with * pointing to common then a simple state in the common/init.sls which worked as a regular file backend.
23:34 dajones70 I setup a file.managed for /tmp/managed_by_salt but my minions are not picking up this change even though I have verified the common/init.sls has been updated in the base repo.
23:36 dajones70 BTW, Saltconf16 was excellent!
23:37 dajones70 Any ideas on commands I can run to tshoot this?  I have searched the Salt docs and Googled everything I can think of.
23:39 dajones70 Kinda new to salt but I am trying hard to read the docs before asking a dumb question.
23:41 meekrab joined #salt
23:47 dajones70 Well, nevermind.  I think I found the problem with base being implicitly mapped to master.  Set gitfs_base to base and now it's working as expected.
23:53 jpeach jfindlay: no, I just used subprocess because that code was already there .... will see whether cmd.run will work ...
23:54 ageorgop joined #salt
23:57 stooj joined #salt
23:57 jfindlay dajones70: nice.  I had a great time too.  Salt *should* have a polite community, so no questions are dumb :-)
23:58 jfindlay jpeach: no problem.  You don't have to do that, but this particular instance of custom subprocess has been on my list of things to clean up and I was curious about whether there was a reason
23:59 dajones70 My gitfs cache hash dir is still empty and now my state fails with "file not found".
23:59 jfindlay hmm, that is interesting

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