Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-04-10

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

All times shown according to UTC.

Time Nick Message
00:12 euidzero joined #salt
00:13 paydro joined #salt
00:21 euidzero joined #salt
00:27 paydro joined #salt
00:30 hightekvagabond joined #salt
00:31 paydro joined #salt
00:41 ageorgop joined #salt
00:51 mavhq joined #salt
00:55 hightekvagabond joined #salt
01:04 morissette joined #salt
01:09 hightekvagabond joined #salt
01:11 paydro joined #salt
01:14 kevinquinnyo joined #salt
01:18 catpigger joined #salt
01:26 linjan joined #salt
01:27 paydro joined #salt
01:31 donmichelangelo joined #salt
01:31 plumber joined #salt
01:35 arif-ali joined #salt
01:35 brianfeister 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:51 iceyao joined #salt
01:52 hightekvagabond joined #salt
02:00 mavhq joined #salt
02:19 cberndt joined #salt
02:27 quasiben joined #salt
02:28 quasiben1 joined #salt
02:32 paydro joined #salt
02:44 cberndt joined #salt
02:59 justanotheruser joined #salt
03:05 sauvin joined #salt
03:21 mavhq joined #salt
03:22 racooper joined #salt
03:24 brianfeister joined #salt
03:25 paydro joined #salt
03:31 onlyanegg joined #salt
03:32 mavhq joined #salt
03:46 brianfeister joined #salt
03:51 josuebrunel joined #salt
04:01 mavhq joined #salt
04:01 onlyanegg joined #salt
04:04 vivek_ joined #salt
04:05 vivek_ i 'm receiving this errror very frequently when i m running any command from master " Minion did not return. [Not connected]"
04:05 vivek_ when i checked the minion logs there is no error.\/exception in it & moreover this error got fixed when i restarted the minion
04:05 hemebond vivek_: Are you trying to send a command to an offline minion?
04:06 vivek_ minnions are running
04:06 hemebond If you do "salt-run manage.up" you will see which minions are currently connected.
04:06 onlyanegg joined #salt
04:06 vivek_ i checked the minnion process on respective machines its up & running
04:06 hemebond What does "salt 'myminion' test.ping" show?
04:06 hemebond (when there is a problem that is)
04:09 vivek_ test.ping also didnt return yet i executed the command just now
04:09 vivek_ i have made below changes in the minion & since then i m having an issue. i have a cluster of 2000 nodes
04:09 hemebond If you run the minion in debug mode (stop the service) "salt-minion -l debug" do you see the command coming in?
04:09 vivek_ recon_default: 1000
04:10 vivek_ recon_max: 59000
04:10 vivek_ recon_randomize: True
04:10 vivek_ acceptance_wait_time: 10
04:10 hemebond Oh you've been modifying the minion settings?
04:10 vivek_ acceptance_wait_time_max: 70
04:10 hemebond Did you have problems before you did that?
04:10 vivek_ yes
04:10 vivek_ then i restarted the minions as well
04:11 hemebond I'm afraid I don't know what any of those settings do. You'll have to hope someone else in there has played with those.
04:11 vivek_ arre my minions setting fine which i specifed for a cluster of 2000 nodes ?? & around 1200 minions out of 2000 didnt return ..any idea on this behaviour ?
04:12 vivek_ please suggest
04:13 jfelchner joined #salt
04:14 teatime o hai vivek_.  if you didn't see already, I came across this today and thought it might be relevant to you re: yesterday:   "The minion id is used to generate the minion's public/private keys and if it ever changes the master must then accept the new key…"
04:15 vivek_ oh  thanks _teamtime for the info
04:15 vivek_ i got that
04:15 teatime teamtime :)  I'm a real team player
04:15 vivek_ _teamtime any idea on my current problem which i posted ..can u please advise
04:15 vivek_ _teatime - i agree ..definatly u r  :)
04:16 vivek_ i 'm receiving this errror very frequently when i m running any command from master " Minion did not return. [Not connected]" after i modified the minion setting & did a restart
04:17 vivek_ around 1200 minions out of 2000 didnt return ..any idea on this behaviour ?
04:17 teatime neg; curious about `salt-run manage.up` (on master), and the non-working minions really don't have any errors/etc w/ -l DEBUG  ??
04:18 vivek_ to my surprise there r no errors ,simply restarting the minions fixing the issue
04:18 vivek_ i checked via debug mmode
04:18 vivek_ can u pls review my minion setting which i shared in this chat,,are there correct.. please check
04:20 teatime I'm afraid I also don't use those settings and am inexperienced w/ large numbers of minions
04:21 vivek_ aaah
04:30 teatime after a quick review of the descriptions & defaults, those settings seem sane/safe to me
04:30 mavhq joined #salt
04:31 teatime although there's probably other tuning stuff you'd want to do w/ 2000 minions : 1 master; other people/guides would know inf. more than me there
04:34 quasiben joined #salt
04:36 vivek_ okay
04:37 vivek_ btw, when i execute "salt-run manage.down
04:37 vivek_ this is taking lot of time..
04:37 vivek_ is that ok .?
04:37 teatime yeah I think so
04:37 vivek_ or there is way we can run in debug mode & see what this command is doing
04:37 teatime it takes quite a few seconds for me on my test net w/ like 3 minions
04:38 vivek_ hmm..its been close to 4 mins now since it is still running for my cluster of 2000 nodes
04:38 teatime I think it basically pings each minion tbh
04:38 vivek_ hmm.
04:39 mavhq joined #salt
04:39 teatime there is also manage.alived  "Print a list of all minions that are up according to Salt's presence detection (no commands will be sent to minions)"
04:40 teatime and manage.allowed has exactly the same description text ...
04:41 teatime and so does managed.joined
04:41 mavhq joined #salt
04:42 teatime I guess those are convenience functions / subsets of the functionality of manage.list_state and manage.list_not_state
04:43 cyberviking joined #salt
04:45 teatime so, manage.not_available (or maybe manage.not_alived, I need to find some docs on the states) is what I actually meant to ask for ("no commands will be sent to minions")
04:49 kshlm joined #salt
04:55 paydro joined #salt
04:56 Guest37 joined #salt
05:05 cswang_ joined #salt
05:15 brianfeister joined #salt
05:21 antpa joined #salt
05:34 MeltedLux joined #salt
05:35 jeffspeff joined #salt
05:57 barajasfab joined #salt
06:08 vivek_ _teatime u der
06:11 vivek_ one quick query,, under what circumstances the minion_master.pub key get changed on Minion .. actually i have encountered an situation where the minions which were registered earlier got disconnected from master because of  different pub key of master with them.. this happened after i did some changes in minion config changes & a restart of Master .Minion
06:11 vivek_ what to know the best practice of doing any change at the minion & Master level .. & how & why the minion will have the different Master key
06:12 vivek_ pls advise
06:14 babilen Key is cycled daily, set ping_on_rotate: True
06:15 vivek_ hay Thanks _babilen.. can u share bit more info on this behaviour.. any weblink would be of gre8 use
06:16 babilen Just google for ping_on_rotate
06:22 onlyanegg joined #salt
06:25 barajasfab joined #salt
06:31 punkoivan joined #salt
06:32 punkoivan left #salt
06:47 dyasny joined #salt
06:48 mavhq joined #salt
06:50 evle joined #salt
06:50 mavhq joined #salt
06:59 euidzero_ joined #salt
07:02 Ron11 joined #salt
07:03 mavhq joined #salt
07:04 euidzero_ joined #salt
07:04 Ron11 HI I have encounter some phenomenon in salt. I invoke salt-key -L. and all my minion goto from accepted to unaccepted without I did something to create it. Can anyone tell me what to do to accept them? because I can't
07:05 Ron11 I can add one by one, but I think there is a systematic problem
07:06 euidzero_ joined #salt
07:07 Ron11 after I accept all, I can't do nothing, not ping, not cmd.run 'ls'
07:11 AndreasLutro you probably need to give your minions some time to re-connect
07:11 AndreasLutro there's no reason all your minions should go from accepted to unaccepted unless you removed the keys yourself
07:16 source47 joined #salt
07:19 vivek_ guys ,  please help out in find the solution to my problem .. i m not haviing any clue on why is it happening ...
07:23 vivek__ joined #salt
07:23 vivek__ hi i logged in..
07:23 vivek__ guys ,  please help out in find the solution to my problem .. i m not haviing any clue on why is it happening ...
07:23 vivek__ [ERROR   ] The master key has changed, the salt master could have been subverted, verify salt master [CRITICAL] The Salt Master server's public key did not authenticate! The master may need to be updated if it is a version of Salt lower than 2015.8.8.2, or If you are confident that you are connecting to a valid Salt Master, then remove the master public k The master public key can be found at:
07:25 Ron11 I understand there aren't any reason but it happen and I didn't move them by myself
07:25 Ron11 How can I renew all of them? to
07:25 jfroot_ joined #salt
07:27 teatime babilen: the main master pubkey changes every day?
07:27 dyasny joined #salt
07:27 vivek__ i m getting this error for close to 300 minions.. everytime..have no idea what is wrong..though i enabled i recon setting in minion & ping on rotate =true in master
07:27 vivek__ pls advuse
07:30 Ron11 I don't have a problem like yours I have a problem suddenly in the master
07:30 Ron11 I also remove minion master and reinstall again
07:31 Ron11 and the commands of salt does not work
07:38 vivek__ hm.
07:39 AndreasLutro vivek__: you have to ssh into your minions and remove the master public key manually to get the minion to accept the new key
07:39 AndreasLutro if it happens often then you may have a problem with file permissions? I don't know
07:40 AndreasLutro Ron11: well, salt-key -D will delete all accepted keys and salt-key -A will accept all unaccepted keys, if that's what you're after
07:43 vivek__ _AndreasLutro> yes i did it once but why the same situation reoccurs for other minions.. why is it happening periodically .. is it something related to timeout or other configurations etc..
07:44 vivek__ how does the same minion get a different public key ..once i removed the invalid one & registered it with master
07:47 Vaelatern joined #salt
07:57 mavhq joined #salt
08:02 LostSoul Hello
08:03 LostSoul Do you guys also meet problem after using salt to configure network interfaces on ubuntu?
08:03 mavhq joined #salt
08:04 ivanjaros joined #salt
08:04 LostSoul I have problem that network does restart on it's own and I need to connect to server display output and type ifdown eth0 && ifup eth0
08:04 LostSoul Also I've did sth with salt so big that I can't restore setting :D
08:06 onlyanegg joined #salt
08:06 cberndt joined #salt
08:10 slav0nic joined #salt
08:16 mavhq joined #salt
08:17 LostSoul Anybody around I need help
08:17 LostSoul I mean routes I've set up via salt seems not to work
08:29 markm__ joined #salt
08:29 mavhq joined #salt
08:31 mavhq joined #salt
08:33 Lionel_Debroux_ joined #salt
08:33 cyteen_ joined #salt
08:33 brianfeister joined #salt
08:34 mavhq joined #salt
08:39 LostSoul Is it normal that route add/del not working on ubuntu?
08:41 mavhq joined #salt
08:43 mavhq joined #salt
08:57 Sammichmaker joined #salt
09:02 dmaiocchi joined #salt
09:04 mavhq joined #salt
09:10 mavhq joined #salt
09:15 punkoivan joined #salt
09:15 punkoivan left #salt
09:16 elsmo joined #salt
09:17 dmaiocchi joined #salt
09:32 LostSoul Ok I've found what's going on
09:33 dezet LostSoul: yes, it's normal that STH not working on ubuntu ;-)
09:34 LostSoul Salt somehow parse wrong routes configs and add's strange line to /etc/network/if-up.d/
09:34 LostSoul I will show you
09:38 LostSoul Any idea: http://paste.debian.net/hidden/daba94ba/ ?
09:38 LostSoul What could I've done wrong that Salt is parsing it in 4 lines instead of 1? :)
09:43 evle joined #salt
09:44 LostSoul Ok I think I've got it :)
09:44 Ron11 joined #salt
09:44 dezet LostSoul: it's not a bug of Salt
09:44 dezet you don't need "-" before ipaddr, netmask and gateway
09:45 dezet just replace "- " with two spaces
09:46 favadi joined #salt
09:47 mavhq joined #salt
09:48 LostSoul My bad, thanks man!
09:48 LostSoul I've was also not sure if loop should not be move 2 spaces to right
09:48 LostSoul This  {% for route in routedev.routes  %} -> 2 spaces in right
09:55 elsmo joined #salt
09:55 jhauser joined #salt
09:59 mavhq joined #salt
10:03 Ron11 joined #salt
10:04 Ron11 joined #salt
10:04 source47 joined #salt
10:05 Ron11 joined #salt
10:06 Ron11 joined #salt
10:07 Ron11 joined #salt
10:07 teatime it doesn't matter how that particular line is indented
10:07 teatime just its contents
10:08 teatime something isn't right there though
10:10 teatime nm dezet was precisely correct.
10:19 mavhq joined #salt
10:21 mavhq joined #salt
10:22 brianfeister joined #salt
10:25 dezet LostSoul: it's a jinja loop, it doesn't matter
10:26 dezet what is matter, is a yaml syntax and correct indenting ;-)
10:28 cyborg-one joined #salt
10:28 dezet does*
10:30 ivanjaros joined #salt
10:32 LostSoul Damn..
10:32 LostSoul I just exchanged eth1 with eth0 so I was going wrong ..
10:32 LostSoul Thanks dezet
10:33 LostSoul So I added "-" where I not suppose to and changed interfaces
10:37 dezet ;-)
10:39 mavhq joined #salt
10:42 mavhq joined #salt
10:44 mavhq joined #salt
10:45 brianfeister joined #salt
10:47 teatime joined #salt
10:47 mavhq joined #salt
10:52 renaissancedev joined #salt
10:54 atmosx joined #salt
11:00 LostSoul Thanks dezet
11:00 LostSoul Damn, I feel like network newbie after such cases :P
11:01 mavhq joined #salt
11:03 babilen teatime: The master AES key rotates every 24h. As this triggers a key refresh on the minion the command send to a minion after a key rotation might timeout as the minion will re-auth with the master first. That's why you can set ping_on_rotate so that minions are pinged immediately.
11:05 teatime ok.
11:05 teatime but that doesn't explain minions complaining about master pubkey changing
11:06 teatime although I did see you mention another day that network issues / interrupted connections can falsely trigger that message?
11:09 blarghmatey joined #salt
11:14 mavhq joined #salt
11:16 mavhq joined #salt
11:21 mavhq joined #salt
11:23 babilen teatime: Most of our "Not connected" problems boiled down to network issues
12:01 kevinquinnyo joined #salt
12:03 donmichelangelo joined #salt
12:08 Ron11 joined #salt
12:10 Ron11 joined #salt
12:11 mavhq joined #salt
12:12 Ron1 joined #salt
12:13 Ron1 My new name is Ron1 because Ron11 is registered
12:14 Ron1 Why I can't see the minion in the public list?
12:14 Ron1 this is the first time I install the minion on Centos till now I installed on ubuntu only
12:16 slav0nic joined #salt
12:18 blarghmatey joined #salt
12:19 LostSoul Thanks you too teatime for help yesterday :)
12:23 mavhq joined #salt
12:26 mavhq joined #salt
12:27 Ron1 Anyone?
12:27 Ron1 Can help me to install minion on Centos 7?
12:27 mavhq joined #salt
12:30 blarghmatey joined #salt
12:30 mavhq joined #salt
12:38 keimlink joined #salt
12:39 mavhq joined #salt
12:51 mavhq joined #salt
12:53 felskrone joined #salt
12:55 RonX1X joined #salt
12:55 RonX1X HI, Can anyone tell me if he follow the instruction here are it creates him a minion? http://repo.saltstack.com/#rhel
12:59 mavhq joined #salt
13:05 RonX1X joined #salt
13:14 mavhq joined #salt
13:14 felskrone1 joined #salt
13:15 Muchoz joined #salt
13:32 RonX1X joined #salt
13:36 cyteen_ joined #salt
13:49 scoates joined #salt
13:52 nxf joined #salt
13:53 nxf Hi, I am having problems running salt-ssh against a DigitalOcean droplet with FreeBSD 10.2, it does not use "sudo" even though I set it to "True" in my roster file
13:53 nxf ccccccevibjfkvvubvtrjjvhlnrvvfuucfkhhnvhfrvv
13:53 nxf sorry
14:07 jhauser joined #salt
14:08 onlyanegg joined #salt
14:12 Ron2010 joined #salt
14:13 Ron2010 I have this error, Rendering SLS 'base:nagios.nrpe.plugin' failed: Jinja variable 'dict object' has no attribute 'plugin_dir'. What can I do?
14:17 tharkun joined #salt
14:19 Ron2010 joined #salt
14:24 west575 joined #salt
14:24 antpa joined #salt
14:30 amcorreia joined #salt
14:31 babilen https://github.com/saltstack-formulas/nagios-formula/issues/28
14:31 saltstackbot [#28]title: NRPE plugin looks for plugins and fails | I don't weather to call this a bug - or lack of enough documentation for a newcomer. I will leave it to you to decide on that but here is what is happening when I tried this as a complete noob to Nagios:...
14:31 antpa joined #salt
14:35 Ron2010 Thank you both
14:35 Ron2010 dd a placeholder in nagios/nrpe/files/plugins/ in the repo.. What does it mean?
14:36 Ron2010 Can I fixed it in my local master?
14:36 Ron2010 fix
14:38 Ron2010 babilien?
14:38 Ron2010 babilen
14:38 Ron2010 saltstackbot?
14:39 babilen Yes, place a file in there so that it does exist
14:39 babilen A "placeholder" for some real content.
14:39 Ron2010 ok thank you I will create an empty file to check
14:41 antpa joined #salt
14:44 xMopxShell joined #salt
14:44 Ron2010 salt -G ipv4:'172.23.76.84' state.apply nagios.nrpe,nagios.plugins => Minion did not return. [No response]
14:45 Ron2010 salt -G ipv4:'172.23.76.84' cmd.run 'ls /tmp' => return output
14:45 Ron2010 What can I do?
14:48 mavhq joined #salt
14:49 Ron2010 Any idea babilen?
14:49 antpa joined #salt
14:55 ribx joined #salt
14:56 cheus joined #salt
14:58 ribx hi guys, is there a possibility to have pillar files for host read automatically? just like the the file_root provider does, but with a git repo?
14:59 Ron2010 I created the file in /srv/formulas/nagios-formula/nagios/nrpe/files/plugins/1.txt
14:59 ribx i would like to have a directory /hosts/ and if there is a file inside, with the hostname of the minion, it should be loaded
14:59 Ron2010 It does not work, same error
15:00 AndreasLutro ribx: look into the file_tree external pillar, or write your own external pillar
15:01 ribx AndreasLutro: can I combine file_tree and git?
15:01 Fiber^ joined #salt
15:02 Ron2010 I need to mark that I created also the plugins directory
15:03 Ron2010 It seems like a bug, but how I work around it?
15:04 AndreasLutro ribx: not as far as I know
15:05 ribx AndreasLutro: I would like to stick to upstream solutions. Right now, I have to manage around 20 servers, so a manual solution is absolutly acceptable.
15:05 ribx AndreasLutro: Ok, thank you.
15:06 AndreasLutro ribx: 20 salt masters?
15:09 mavhq joined #salt
15:24 kevinquinnyo joined #salt
15:26 edrocks joined #salt
15:31 ribx AndreasLutro: no, minions
15:32 ribx AndreasLutro: right now, for every new client i have to put an entry into the pillar top.sls to lead the hosts file, thats the only thing that bothers me :)
15:42 AndreasLutro ribx: in your pillar top.sls you could do this:
15:42 AndreasLutro {{ grains.id }}: [ hosts.{{ grains.id }} ]
15:42 AndreasLutro that would include /srv/pillar/hosts/id.of.minion.sls
15:43 AndreasLutro I also think there's something like `include_missing: true` you can add to suppress errors if said sls doesn't exist
15:54 edrocks_ joined #salt
15:58 clayman joined #salt
16:00 Ron2010 Anyone know the answer to my two questions?
16:01 Ron2010 I worked them very hard but there isn't any progress
16:08 ribx AndreasLutro: that looks promising. I could not find an example with grains used inside pillars, I was not sure, what is possible there. Do you have any references? Can I use all the state modules, too?
16:09 punkoivan joined #salt
16:10 AndreasLutro ribx: you can use all the jinja templating you want inside pillars. the difference is that you can't reference other pillars inside pillars, and since pillars are rendered on the master, any execution module calls like salt['cmd.run'] will be ran on the master, no the minino
16:10 AndreasLutro grains should be used sparingly in pillars since they can be tampered with, but the minion id is safe
16:12 ribx AndreasLutro: Ok, I was not sure about that. Someone should extend the Docu about that. Thank you very much!
16:24 antpa joined #salt
16:25 slav0nic joined #salt
16:27 mavhq joined #salt
16:34 mowntan joined #salt
16:34 mowntan joined #salt
16:42 mavhq joined #salt
16:55 euidzero joined #salt
17:08 johnkeates joined #salt
17:14 ivanjaros joined #salt
17:16 ageorgop joined #salt
17:18 hightekvagabond joined #salt
17:24 mavhq joined #salt
17:25 jeffspeff joined #salt
17:27 dmaiocchi joined #salt
17:38 west575_ joined #salt
17:43 hexa- joined #salt
17:49 beardedeagle joined #salt
17:51 beardedeagle joined #salt
17:59 mavhq joined #salt
18:10 onlyanegg joined #salt
18:20 mavhq joined #salt
18:22 duckfez joined #salt
18:25 mavhq joined #salt
18:30 mavhq joined #salt
18:33 Jarus joined #salt
18:37 spankalish joined #salt
18:38 spankalish Can the minion service be watched with the watch command?
18:45 colegatron joined #salt
18:47 babilen Sure
18:49 onlyanegg joined #salt
18:50 spankalish babilen: how?
18:53 spankalish Like how do you watch the minion service for a restart? so to have it fire an event?
18:53 spankalish and this has to be a custom event because I want to use a jinja template to find the host id
18:56 kevinquinnyo hey all, i have a utility function that i use in many different states, the one defined in this gist:  https://gist.github.com/kevinquinnyo/81fb02af7e305d4d37e73963fafc937c  -  In order to keep my code as DRY as possible, what's the best way for me to include this function accross sls files without having to redefine it at the top of each one
18:56 antpa joined #salt
18:57 kevinquinnyo i know that's not great python also -- the function itself could be improved
18:58 kevinquinnyo wait a second here... could i just create a salt module and add that as a function? __salt__['my_utility_module']('get_role_ips', 'web')
19:00 kevinquinnyo hm i think i answered my own question, i'll try it
19:00 antpa joined #salt
19:00 jhauser joined #salt
19:01 anthpa joined #salt
19:03 rmnuvg joined #salt
19:10 brianfeister joined #salt
19:20 avozza joined #salt
19:23 blarghmatey joined #salt
19:27 mavhq joined #salt
19:33 spankalish can anyone tell me how to use the - watch command to watch the minion service for a restart
19:33 spankalish I keep getting errors
19:34 beardedeagle so besides salt, salt-run, salt-ssh and salt-key, what other salt cli commands would you consider "common"
19:35 spankalish I'm using this https://gist.github.com/anonymous/aae229acf0c2c79d2f5a9471d672b110
19:35 spankalish I have my minion restarting
19:36 spankalish but I don't know if the service is minion, salt-minion, or something else
19:37 spankalish I've tried service minion, salt-minion, - pkg minion, salt-minion
19:37 spankalish None work
19:38 onlyanegg joined #salt
19:41 babilen spankalish: All requisites are between states, so you would need a service.running state, that you then reference as "- service: salt-minion"
19:42 babilen But then .. you could just listen to minion start events
19:45 edrocks joined #salt
19:47 s_kunk joined #salt
19:48 iggy beardedeagle: salt-call
19:48 beardedeagle @iggy, sorry should have specified ran from a master setup
19:48 beardedeagle my cli app is pretty much done, just making sure I didn't miss a command that is commonly used that I don't personally use
19:48 iggy you can run that on the master, but I see what you're saying
19:49 iggy that's pretty much it
19:49 beardedeagle werd, thanks
19:50 iggy beardedeagle: http://packages.ubuntu.com/wily/all/salt-master/filelist
19:51 iggy salt-cp apparently
19:51 beardedeagle well I can do things like: nacl '*' cmd.run 'ls -al' cwd="/home" shell="/bin/bash" and nacl-run jobs.lookup_jid jid='20160409133533541879' just tweaking some last minute things
19:51 beardedeagle ah
19:51 beardedeagle good catch, hadn't thought of that
19:52 iggy http://packages.ubuntu.com/xenial/all/salt-syndic/filelist maybe too
19:52 beardedeagle hrm, that will be a fun one to implement since this is all through salt-api. so local file from your local machine to minions. I can see where that would be desirable.
19:54 beardedeagle not sure I can do calls to salt-syndic itself from salt-api
19:56 beardedeagle @iggy: https://docs.saltstack.com/en/latest/ref/cli/
19:57 duckfez joined #salt
19:58 cberndt joined #salt
20:00 mavhq joined #salt
20:03 futuredale joined #salt
20:03 mavhq joined #salt
20:05 dyasny joined #salt
20:12 elsmo joined #salt
20:15 west575 joined #salt
20:17 edrocks_ joined #salt
20:20 mavhq joined #salt
20:35 futuredale joined #salt
20:36 ribx joined #salt
20:42 ekkelett Multiple prereq's chained together should work alright, right?
20:51 treaki joined #salt
20:53 brianfeister joined #salt
20:54 brianfeister joined #salt
20:54 cheus joined #salt
20:57 hemebond ekkelett: Should do.
21:08 rem5 joined #salt
21:11 kevinquinnyo does a salt module not have access to pillar data from an ext_pillar?
21:12 hemebond kevinquinnyo: Should have access as long as you've applied the pillar to the minion.
21:13 kevinquinnyo salt minion_id_here pillar.get cluster  <-- works
21:13 kevinquinnyo but in a state, when i call __salt__['mymodule.my_function']('an_argument')
21:14 kevinquinnyo mymodule's my_function() cannot access __pillar__['cluster']
21:14 kevinquinnyo any idea why?
21:15 hemebond No idea.
21:16 hemebond Have you tried a test state to try and access it?
21:16 kevinquinnyo that's exactly what i'm doing
21:17 hemebond We'd need to see your state.
21:17 kevinquinnyo test/init.sls has runs __salt__['mymodule.my_function']('an_argument') and tries to put the value into a file so i can test if it's working, but it's failing in the module
21:17 kevinquinnyo ok gimme a sec
21:17 kevinquinnyo asnd thanks
21:19 kevinquinnyo https://gist.github.com/kevinquinnyo/315ea9f00d28d94563b8c170d7ce817c  <- this contains the module itself, and the test.sls file
21:21 hemebond And the error occurs on line 16?
21:21 kevinquinnyo yes
21:21 kevinquinnyo File "/var/cache/salt/minion/extmods/modules/tss.py", line 16, in get_role_ips
21:21 kevinquinnyo billing_id = __pillar__['cluster']['client']['billing_id']
21:21 kevinquinnyo KeyError: 'cluster'
21:21 hemebond Have you tried using __salt__['pillar.get']('cluster')?
21:21 kevinquinnyo no let me try that
21:23 mapu joined #salt
21:24 kevinquinnyo hemebond: so i changed the function temporarily to just return that
21:24 kevinquinnyo cluster = __salt__['pillar.get']('cluster')
21:24 kevinquinnyo return cluster
21:25 kevinquinnyo and test.sls succeeds, but cluster was empty
21:25 hemebond Sounds like something is stopping the pillar applying to the minion.
21:25 hemebond What if you do "pillar.item cluster" against the minion?
21:25 kevinquinnyo it works from command line
21:25 hemebond And does it also show up if you do "pillar.items"?
21:25 kevinquinnyo yes
21:26 hemebond They both return the cluster key?
21:26 kevinquinnyo ummmm wait a minute
21:26 kevinquinnyo not it doesnt.
21:26 kevinquinnyo so my ext_pillar must have a syntax error or something.  dang i swear i tested that
21:27 hemebond Okay, might need to refresh pillars with "saltutil.pillar_refresh"
21:27 hemebond Ah
21:27 kevinquinnyo syntax error in ext_pillar .. thanks for the troubleshooting help
21:27 hemebond np
21:29 kevinquinnyo yep working now.  cool
21:30 kevinquinnyo by the way, if i can bug you for one more thing, do you think this is a good idea for me to put some general purpose functions like this into a module
21:30 kevinquinnyo just functions that i find myself needing to use in various states.. or is there a better place for general purpose functions?
21:30 hemebond Definitely. DRY
21:31 kevinquinnyo exactly, ok just making sure there wasnt like a better inert state thing or something where functions could go
21:31 hemebond As far as I know, just putting them into their own module would be fine.
21:31 hemebond Not that I know of.
21:31 onlyanegg joined #salt
21:35 Trauma joined #salt
21:39 ribx joined #salt
21:40 sfz- joined #salt
21:42 cberndt joined #salt
21:51 Antiarc joined #salt
21:56 ribx joined #salt
22:10 CeBe joined #salt
22:10 cheus joined #salt
22:17 brianfeister joined #salt
22:31 justanotheruser joined #salt
22:31 iggy beardedeagle: are you doing something like pepper?
22:32 beardedeagle yes
22:32 beardedeagle but fully featured
22:32 ageorgop joined #salt
22:34 iggy why not just improve pepper?
22:34 iggy (don't get me wrong, I'm sure there are reasons why, just curious what they are)
22:39 zenlot joined #salt
22:41 beardedeagle TBH, I had already half way written this by the time I figured out there was a salt-pepper, activity on that repo seems to come and go in spurts, I wrote mine originally as a middleware for a multi-master ui I wrote and then I just sat click on top of it for the cli app. I also wanted to write it to be fully python 3 compatible from the start.
22:41 antpa joined #salt
22:44 beardedeagle The middleware I wrote takes advantage of async requests as well. doesn't really work for a cli app but if someone tore it out and used with the a web ui it would.
22:47 mosen joined #salt
22:53 oida joined #salt
22:53 beardedeagle basically I would have had to rewrite a lot of salt-pepper, and it was enough that writing it from scratch was less work imo.
22:53 iggy rgr
22:53 animus left #salt
22:53 beardedeagle I'm going to hand it off to the devs once done though
22:53 beardedeagle if they want to use it they can, if not then just me lol
22:55 sauvin joined #salt
22:56 brianfeister joined #salt
23:00 mavhq joined #salt
23:28 quasiben1 joined #salt
23:29 kevinquinnyo joined #salt
23:34 source47 joined #salt
23:36 whatever_sd_ joined #salt
23:41 euidzero joined #salt
23:42 brotatochip joined #salt
23:55 blast_hardcheese joined #salt
23:58 brianvdawson joined #salt

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