Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-03-18

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

All times shown according to UTC.

Time Nick Message
00:01 subsignal joined #salt
00:08 edrocks joined #salt
00:12 bhosmer_ joined #salt
00:18 baweaver joined #salt
00:20 aqua^c joined #salt
00:21 kliquori joined #salt
00:25 ninjada_ joined #salt
00:26 ninjada joined #salt
00:29 mdasilva joined #salt
00:29 duende joined #salt
00:34 mosu_ joined #salt
00:34 edrocks_ joined #salt
00:34 brianfeister joined #salt
00:36 baweaver joined #salt
00:37 west575_ joined #salt
00:41 hoonetorg joined #salt
00:47 misconfig joined #salt
00:48 mdasilva joined #salt
00:51 duende left #salt
00:59 racooper joined #salt
01:03 mdasilva joined #salt
01:07 muep_ joined #salt
01:10 kliquori joined #salt
01:10 edrocks__ joined #salt
01:19 RobertChen117 joined #salt
01:24 sagerdearia joined #salt
01:35 TyrfingMjolnir joined #salt
01:37 k_sze[work] joined #salt
01:38 edrocks joined #salt
01:41 quasiben joined #salt
01:41 edrocks_ joined #salt
01:43 iceyao joined #salt
01:45 iceyao joined #salt
01:46 bobby_ joined #salt
01:49 elektrix joined #salt
01:54 CampusD joined #salt
01:55 mdasilva joined #salt
01:55 CampusD Hi all, had a quick question about state file inclusion
01:58 CampusD Is there way to include multiple files from a directory in one line
01:59 CampusD Your help is appreciated
02:00 bhosmer joined #salt
02:00 hemebond CampusD: Are you talking about the include: thing?
02:00 CampusD Yep
02:00 quasiben joined #salt
02:00 CampusD Like regex
02:00 hemebond And do you mean "put the list of files ...
02:00 hemebond ah
02:00 hemebond I doubt it.
02:01 CampusD Instead 50 include line just one
02:01 hemebond You're not really including files... it's a bit like importing Python modules.
02:01 hemebond You could put your includes into one file and include the include file.
02:02 hemebond You could use a jinja variable to add the includes.
02:02 CampusD I thought of that lime a top file
02:03 CampusD Sorry like I meant
02:03 hemebond it really all depends on whether or not the list changes at all.
02:03 hemebond How much granularity you need.
02:04 hemebond But it sounds like importing a jinja variable would do it.
02:04 mohae joined #salt
02:07 elektrix joined #salt
02:07 CampusD_ joined #salt
02:07 CampusD_ Thanks
02:08 CampusD_ I guess I'll do a pillar dictionary and then load it into the var
02:11 quasiben joined #salt
02:12 edrocks__ joined #salt
02:23 brianfeister joined #salt
02:24 ninjada joined #salt
02:25 writtenoff joined #salt
02:29 freeaks joined #salt
02:34 rem5 joined #salt
02:34 rhodgin joined #salt
02:36 sagerdearia joined #salt
02:40 quasiben joined #salt
02:41 catpigger joined #salt
02:41 rem5 joined #salt
02:42 Antiarc_ joined #salt
02:46 TyrfingMjolnir joined #salt
02:46 evle joined #salt
02:47 brianfeister joined #salt
02:47 iggy include (in states, not in pillars) supports globbing
02:48 quasiben1 joined #salt
02:59 bhosmer joined #salt
03:09 justanotheruser joined #salt
03:10 joe_n joined #salt
03:10 Guest4044 joined #salt
03:11 kliquori joined #salt
03:14 ht joined #salt
03:14 edrocks_ joined #salt
03:15 ht left #salt
03:16 RobertChen117 joined #salt
03:16 totte joined #salt
03:16 irctc560 joined #salt
03:22 choopooly joined #salt
03:24 beardedeagle joined #salt
03:42 antpa joined #salt
03:45 SunPowered joined #salt
03:45 edrocks joined #salt
03:48 iceyao_ joined #salt
03:57 RobertChen117 joined #salt
03:58 cliffstah joined #salt
03:59 kliquori joined #salt
04:07 fracklen joined #salt
04:10 antpa joined #salt
04:11 rem5 joined #salt
04:12 ninjada_ joined #salt
04:17 ITChap joined #salt
04:27 anmol joined #salt
04:37 RobertChen117 joined #salt
04:49 writteno1 joined #salt
04:53 jnials joined #salt
04:54 josuebrunel joined #salt
04:55 MTecknology joined #salt
04:55 JPaul joined #salt
04:56 tampakrap joined #salt
04:56 Cottser joined #salt
04:56 jnials joined #salt
04:57 freelock joined #salt
05:00 bhosmer joined #salt
05:02 emid joined #salt
05:06 pppingme joined #salt
05:14 stooj joined #salt
05:15 sauvin joined #salt
05:18 edrocks_ joined #salt
05:20 RobertChen117 joined #salt
05:21 davisj joined #salt
05:29 fracklen joined #salt
05:32 MK_FG joined #salt
05:35 kshlm joined #salt
05:51 zz_Cidan joined #salt
05:51 Cidan joined #salt
05:55 fracklen_ joined #salt
06:01 kliquori joined #salt
06:12 antpa joined #salt
06:12 linjan joined #salt
06:20 ninjada joined #salt
06:24 fracklen joined #salt
06:25 rdas joined #salt
06:28 felskrone joined #salt
06:29 antpa joined #salt
06:37 ninjada joined #salt
06:39 mavhq joined #salt
06:47 kliquori joined #salt
06:48 bhosmer joined #salt
06:49 RobertChen117 joined #salt
06:50 mavhq joined #salt
06:59 mavhq joined #salt
07:09 cliffstah joined #salt
07:17 joe_n joined #salt
07:20 capricorn_1 joined #salt
07:20 Lutz_ joined #salt
07:34 RobertChen117 joined #salt
07:38 RobertChen117 joined #salt
07:41 keimlink joined #salt
07:42 bhosmer joined #salt
07:49 kliquori joined #salt
07:50 KermitTheFragger joined #salt
08:06 dmaiocchi joined #salt
08:15 impi joined #salt
08:20 elsmo joined #salt
08:26 RobertChen117 joined #salt
08:26 ninjada joined #salt
08:28 lungaro joined #salt
08:30 RobertChen117 joined #salt
08:31 fracklen joined #salt
08:34 GreatSnoopy joined #salt
08:36 jinkyu joined #salt
08:42 mavhq joined #salt
08:44 josuebrunel joined #salt
08:45 ronnix joined #salt
08:46 josuebrunel joined #salt
08:49 remyd1 Hi
08:49 remyd1 I have a simple states
08:49 remyd1 user.present
08:50 remyd1 http://paste.debian.net/416484/
08:50 kliquori joined #salt
08:50 remyd1 It overwrites my user definition
08:51 remyd1 although I just want to check if he exists
08:51 fredvd joined #salt
08:51 AndreasLutro remyd1: which os is the minion running on?
08:51 remyd1 It removes the groups associated to the user, with just a group name with the same name as username
08:52 remyd1 Ubuntu 15.04
08:52 fgimian joined #salt
08:53 remyd1 So I need to put the whole definition of the user just to check if he is present ?
08:54 AndreasLutro it would've helped if you just said "the user groups are getting removed"
08:54 AndreasLutro if you look here https://docs.saltstack.com/en/latest/ref/states/all/salt.states.user.html#salt.states.user.present there's an argument called "remove_groups" which defaults to True
08:56 remyd1 Ahhhh ok ^^
08:56 remyd1 sorry
08:58 ronnix joined #salt
08:58 krymzon joined #salt
08:59 remyd1 Thx
09:00 VSpike XenophonF: what environment do your salt masters reside in? Do you have some in each?
09:01 VSpike If the masters control themselves, how do you make changes to your masters with your dev->test->stg->prd flow?
09:02 peters-tx joined #salt
09:02 VSpike XenophonF: Also thinking the other problem I can see with your arrangement is that any throwaway test or experiment becomes permanent, because you have to push it to your central repo to make it happen
09:04 VSpike XenophonF: wondering how that works out in practice - whether it's a problem or not. Because you have to work locally and push to see an effect, I think you lose the benefit of git that you can branch and throw away, or tidy up messy history, etc
09:04 anmol joined #salt
09:04 VSpike Maybe it's not a problem in practice
09:07 slav0nic joined #salt
09:09 geomacy joined #salt
09:09 dmaiocchi joined #salt
09:10 fracklen joined #salt
09:12 fracklen joined #salt
09:13 LondonAppDev joined #salt
09:13 fracklen joined #salt
09:13 N-Mi joined #salt
09:13 N-Mi joined #salt
09:16 lero joined #salt
09:17 Rumbles joined #salt
09:19 impi joined #salt
09:21 remyd1 joined #salt
09:25 atmosx joined #salt
09:25 dgutu joined #salt
09:30 bhosmer joined #salt
09:35 kliquori joined #salt
09:42 ravenx joined #salt
09:45 Mopilo joined #salt
09:46 ravenx anyone know why my 'salt '*' git.current_branch /home/ravenx/gitrepo'  works, but when i go:  'salt '*' git.describe /home/ravenx/gitrepo' it returns nothing.
09:53 minion3219 joined #salt
09:55 keimlink joined #salt
09:56 minion3219 left #salt
09:57 edrocks joined #salt
09:57 remyd1 I have a strange issue. I have a peace of sls like that : http://paste.debian.net/416504/ and it return something like http://paste.debian.net/416505/
09:58 remyd1 I think I have an error in the way I call ssh.host_keys in my state file
10:01 babilen That doesn't appear to be the complete state
10:02 remyd1 http://paste.debian.net/416506/
10:02 remyd1 I had to anonymize datas :)
10:04 thehaven joined #salt
10:06 remyd1 it works without the state block for known_host, but obviously, that did not work exactly as I want (the known_host content is not added)
10:11 babilen remyd1: I think you want to indent line 12 two more spaces
10:12 remyd1 babilen: same issue
10:13 babilen What is the error message you get now?
10:13 babilen (and did you make sure that you are working with a current state?)
10:15 remyd1 http://paste.debian.net/416511/
10:15 remyd1 after running "salt '*' saltutil.sync_all"
10:17 remyd1 I tried to change encoding, that did not change
10:17 remyd1 the result
10:17 babilen Please remove line 1-23, run "salt-run fileserver.update" and try again.
10:19 ronnix joined #salt
10:19 remyd1 I commented everything except the ssh_known block
10:19 remyd1 and I had the same issue
10:20 remyd1 http://paste.debian.net/416514/
10:20 babilen That can't be, because it is complaining about line 3 .. if you remove all of that the error message *can not* contain "/etc/backuppc/www.pl:" (unless hostinfo['SaltHostname'] is /etc/backuppc/www.pl)
10:21 remyd1 (and the for loop)
10:21 babilen So, the error isn't the same as you get "www.exemple.com" rather than "/etc/backuppc/www.pl:" now
10:21 babilen Not sure if that's progress :)
10:22 remyd1 ^^
10:23 babilen fwiw, you might want to quote the key on line 30
10:23 remyd1 It seems it is missing an empty line after the host key
10:23 remyd1 will try that
10:23 yuhlw_ does someone have a complete small example on how "salt -i" works ?
10:23 babilen I am still surprised that the state worked with the indentation of context though
10:24 remyd1 babilen: key: "{{ salt['ssh.host_keys']('/etc/ssh')["rsa.pub"] }}"
10:24 remyd1 ?
10:24 remyd1 It is the same result
10:25 babilen remyd1: Simplify it even more and use the actual values .. then add pillar lookups back into it
10:25 Mopilo one question about salt-call. from your experience how long does the minion wait on your installation on step ....Re-using SAuth for ('/etc/salt/pki/minion', .... mine minions are connected via GPRS data channel
10:25 babilen yuhlw_: What does that do?
10:26 yuhlw_ babilen: I'v see the "-I" option on the man of salt, but I've no idea on how this works !
10:26 babilen Mopilo: Five milliseconds (give or take 4)
10:26 babilen yuhlw_: Ah "-I" not "-i" :)
10:27 babilen yuhlw_: https://docs.saltstack.com/en/latest/topics/targeting/pillar.html has some information
10:27 yuhlw_ babilen: yeah :) salt caps("-i")
10:28 babilen I typically use compound matching at that point with I@ though -- https://docs.saltstack.com/en/latest/topics/targeting/compound.html
10:28 yuhlw_ babilen: it is sad the they choose the name salt. I found it difficult to find info on the net. I often use .sls to find solution, but salt is definetely not a so good idea.
10:28 edrocks_ joined #salt
10:28 Nazzy joined #salt
10:28 babilen yuhlw_: Just use "saltstack" in lieu of "salt" in your query
10:29 yuhlw_ babilen: thanks for the information.
10:29 babilen Otherwise you find information on https://en.wikipedia.org/wiki/Molten_salt_reactor :)
10:30 babilen remyd1: You probably also want to quote line 22
10:30 babilen (and 17)
10:30 babilen How did that ever work?
10:30 yuhlw_ babilen: reading the docs it misses the example of the pillar. It gives the command but not the pillar used.
10:31 remyd1 babilen: I do not know. It worked ^^
10:31 babilen yuhlw_: The pillar is somekey:specialvalue
10:31 remyd1 However I found an error
10:31 babilen mmh?
10:31 remyd1 I target 2 hosts to apply that state
10:32 babilen Do you?
10:32 remyd1 conflicting ID for ssh_known_host rule
10:32 yuhlw_ babilen, thank you. I must go, I'll give a look later on
10:32 remyd1 however I can not rename this rule
10:32 babilen Why not?
10:32 remyd1 because it needs the hostname as rulename
10:33 babilen So pass it as "- name" ?
10:33 babilen .. and generate a unique id
10:33 remyd1 https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ssh_known_hosts.html
10:34 remyd1 Uh ?
10:34 sfxandy joined #salt
10:34 babilen Yeah, you're right
10:34 sfxandy hey all
10:34 zerthimon joined #salt
10:35 babilen remyd1: So essentially "foo_bar_id_something_unique: ssh_known_hosts.present: -name: example.com - key: 'some_key_from_that_host_foo' ..."
10:36 sfxandy is there anyway you can temporarily ignore salt minions that are disconnected for a reason (in our case three VMs have been accidentally shutdown for disposal)?  the obvious way I guess is to delete the keys n the Salt master via salt-key.  any more "clever" methods?
10:37 remyd1 Ah ok, I understood
10:37 kliquori joined #salt
10:37 babilen sfxandy: You could automate that, but you can't really ignore them .. don't think so. I was looking for a "maintenance mode" some time last year and didn't find any. Maybe that changed though.
10:38 SpX joined #salt
10:38 sfxandy babilen, could the keys be moved from /etc/salt/pki/master/minions/ into the /etc/salt/pki/master/minons/minions_pre folder to effectively "unaccept" them?
10:38 remyd1 babilen: It works ! Thx ;)
10:39 Mopilo babilen: thanks for the info..  any idea why a minion would wait for 20sec or even timeout when doing salt-call ....Re-using SAuth for ('/etc/salt/pki/minion', ....
10:39 babilen sfxandy: I guess that would be an option, yeah
10:39 sfxandy will try it babilen and report back
10:39 babilen Mopilo: The only occasion I ever ran into that was when we had some network troubles
10:40 babilen sfxandy: You might then be able to automate *that* with presence_events even ..
10:40 babilen remyd1: Did that also solve the rendering error?
10:40 remyd1 Yes
10:40 sfxandy babilen, that worked beautifully
10:40 remyd1 Do not know why exactly
10:43 Mopilo babilen: thanks will keep on looking
10:44 babilen sfxandy: Perfect -- Unfortunately there is no function for that in https://docs.saltstack.com/en/latest/ref/wheel/all/salt.wheel.key.html
10:44 sfxandy babilen, have just put together a "maintenance mode" orchestration which passes in a list of minions via command-line pillar
10:45 babilen remyd1: Well, there was obviously something wrong with the way you generated that state id. Given that you changed the actual error message it is hard to say what went wrong though.
10:45 rubenb joined #salt
10:47 babilen sfxandy: Nice, mind sharing it? Sounds useful :)
10:47 Mopilo does saltstack need to use the dns name for master on minions ? I am using ip address in the /etc/salt/minion config file
10:47 kawa2014 joined #salt
10:47 babilen Using IP is fine
10:47 babilen Mopilo: Are you working on unreliable networks?
10:48 sfxandy babilen, yeah will throw it your way later ..... its on my works laptop which is behind a North Korean firewall!!
10:48 Mopilo GPRS 1Mgbps , ping between 50ms and 700 ms
10:48 babilen sfxandy: Yeah, no rush .. ta!
10:49 Mopilo GPRS 1Mgbps , ping between 50ms and 700 ms master<> minion
10:49 Mopilo rsync or wget would transefer files with no problem, with filesizes 20mgb or 50mgb
10:50 babilen Mopilo: So yes .. I have no experience with that unfortunately. What is the actual problem you encounter? Does it just hang there? Sounds as if it tries to re-use a connection established earlier that might no longer be working.
10:50 babilen https://github.com/saltstack/salt/issues/26888
10:50 Mopilo i used tcpdump and there is tcp retransmissions in the dump
10:51 babilen That would be my guess and is the direction in which I would investigate
10:52 babilen But still: what is the actual problem? You simply asked "how long does the minion wait on your installation on step ....Re-using SAuth for ('/etc/salt/pki/minion', .." which sort of implies that yours waits longer or that there is *something* wrong that you like to fix.
10:53 babilen I'm simply guessing that it hangs there or that you have other problems, but maybe you really just want to know how long that step takes.
10:53 babilen If so we might be able to come up with exact measurements, but my feeling is that you are actually trying to solve a "minion can't really talk to master" problem
10:56 babilen You could look into https://docs.saltstack.com/en/develop/topics/transports/tcp.html if you have transport related problems
10:57 babilen https://docs.saltstack.com/en/latest/ref/configuration/master.html#transport would be the corresponding setting
10:57 babilen But before I continue giving advice on what I *guess* is the problem, I'll wait for the actual error :)
10:59 edrocks joined #salt
11:02 Rebus joined #salt
11:03 N-Mi joined #salt
11:03 N-Mi joined #salt
11:03 ravenx can someone help me with salt and the git module?
11:04 babilen Probably
11:04 ravenx anyone know why my 'salt '*' git.current_branch /home/ravenx/gitrepo'  works, but when i go:  'salt '*' git.describe /home/ravenx/gitrepo' it returns nothing.
11:04 ravenx that is the issue i'm having :/ quite confsued.
11:04 SunPowered joined #salt
11:05 babilen What command is the minion running when you do that .. and what exactly is "nothing" ? What do you get when you run "git describe" in /home/ravenx/gitrepo ?
11:09 evle joined #salt
11:09 amcorreia joined #salt
11:12 remyd1 babilen: actually, the formula works but it does not work s I needed. The known_host file on the host in not in the good state. I modified my state to http://paste.debian.net/416530/ but I still have some troubles to connect by ssh from my backuppc server to my minion. It continues to tell me that the authenticity of key... can't be established...
11:14 ravenx babilen: well i don't get a response back.
11:14 ravenx it just lists my host names and that's it
11:16 ravenx okay, so when i do that in the directory, via command line
11:16 ravenx it says "fatal: No annotated tags can describe <hash>"
11:16 ravenx "However, there were unannotated tags: try --tags."
11:17 mavhq joined #salt
11:19 bhosmer joined #salt
11:19 _Cyclone_ joined #salt
11:20 kawa2014 joined #salt
11:21 kawa2014 joined #salt
11:26 kawa2014 joined #salt
11:30 kawa2014 joined #salt
11:32 inire joined #salt
11:35 geomacy joined #salt
11:37 VSpike With this module call https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.file.html#salt.modules.file.line is there a special format for the regex, e.g. for match?
11:37 VSpike I see in the example they have after="hosts:.*?"
11:38 VSpike That "?" seems out of place, so I wonder if it is doing something special
11:38 kliquori joined #salt
11:40 VSpike This seems wrong https://bpaste.net/show/16def369b2a2
11:41 hemebond VSpike: Which version are you using?
11:42 hemebond nvm
11:42 hemebond I see it in the paste now
11:42 _Cyclone_ joined #salt
11:50 armyriad joined #salt
11:50 VSpike hemebond: I think that might be not available on Windows
11:54 VSpike file.replace can do the same job, in the case
11:58 amcorreia joined #salt
12:04 rem5 joined #salt
12:07 ggoZ joined #salt
12:07 ninjada joined #salt
12:17 cyborg-one joined #salt
12:18 bhosmer joined #salt
12:19 rhodgin joined #salt
12:19 quasiben joined #salt
12:20 antpa joined #salt
12:21 ninjada joined #salt
12:22 LondonAppDev joined #salt
12:23 kliquori joined #salt
12:25 metalseargolid joined #salt
12:30 antpa joined #salt
12:30 akhter joined #salt
12:40 quasiben joined #salt
12:49 TooLmaN joined #salt
12:49 geomacy joined #salt
12:51 edrocks joined #salt
12:52 LondonAppDev joined #salt
12:53 kliquori joined #salt
12:54 LondonAppDev__ joined #salt
12:56 ronnix joined #salt
12:58 numkem joined #salt
12:59 choopooly joined #salt
13:00 jhauser_ joined #salt
13:00 CeBe joined #salt
13:01 misconfig joined #salt
13:02 teryx5101 joined #salt
13:04 gh34 joined #salt
13:09 DammitJim joined #salt
13:10 ronnix joined #salt
13:16 tkharju joined #salt
13:19 quasiben joined #salt
13:20 tkharju joined #salt
13:29 mavhq joined #salt
13:29 _JZ_ joined #salt
13:33 quasiben joined #salt
13:34 jhauser_ joined #salt
13:37 ws2k33 joined #salt
13:40 antpa joined #salt
13:43 cpowell joined #salt
13:44 cpowell_ joined #salt
13:46 iceyao joined #salt
13:47 quasiben joined #salt
13:47 rhodgin joined #salt
13:55 remyd1 in fact, my solution could not work
13:55 LondonAppDev joined #salt
13:56 remyd1 I would need a way to execute a state on some different minions at the same time
13:56 xmj joined #salt
13:56 pfallenop joined #salt
13:56 xmj moin
13:57 LondonAppDev__ joined #salt
13:57 xmj if in a jinja2 template distributed via salt i have a {% if foo is defined %} {{ foo }} {% endif %} pattern, what could cause salt to print 'None' instead of the actual 'foo' value?
13:58 jerredbell joined #salt
13:59 dyasny joined #salt
14:02 AndreasLutro xmj: None is the actual 'foo' value
14:03 impi joined #salt
14:07 LondonAppDev joined #salt
14:07 andrew_v joined #salt
14:11 xmj I thought I excluded *that* case by setting foo to either something, or ''
14:12 remyd1 Hey how do you manage your knwon host files between a minion server and a minion client ? I am stuck with this headache problem. I would need to run a state to run on both the minion server (which is a backuppc server) to add a line in known_hosts ssh file and a state on the client to retrieve its public key...
14:14 AndreasLutro remyd1: mine data
14:14 mapu joined #salt
14:14 edrocks joined #salt
14:16 antpa joined #salt
14:17 quix joined #salt
14:17 remyd1 AndreasLustro: you mean you store everything in a pillar for example ?
14:18 AndreasLutro pretty sure I wrote mine, not pillar
14:18 remyd1 ok
14:19 bhosmer joined #salt
14:19 remyd1 Thx, it is exactly what I need
14:20 animus joined #salt
14:20 MadHatter42 joined #salt
14:20 mavhq joined #salt
14:20 qman__ I implemented the client side (machine to back up) but I haven't implemented anything for the backuppc server yet
14:21 remyd1 I have a formula qman if you want
14:21 quasiben joined #salt
14:21 XenophonF Mopilo: maybe using raet (udp) will work better than 0mq (tcp) over those GPRS links?
14:21 remyd1 just need to play with known_host
14:21 qman__ That would be swell if you wouldn't mind
14:22 qman__ I can share my known hosts bit too, it'll just be a few mnutes
14:22 remyd1 Ok, otherwise, I found an interesting salt function ssh.set_known_host
14:22 qman__ Oh wait, I only have the authorized keys bit
14:22 losh joined #salt
14:23 qman__ Was thinking backwards
14:26 wych joined #salt
14:26 rhodgin joined #salt
14:27 dendazen joined #salt
14:42 xmj can i do {% if foo is not None %} in jinja?
14:43 khaije1 joined #salt
14:43 xmj and under which conditions would it yield different results than {% if foo is defined %} ?
14:46 babilen foo: None
14:46 xmj None counts as defined ?
14:47 quasiben joined #salt
14:49 quasiben1 joined #salt
14:50 hasues joined #salt
14:50 hasues left #salt
14:57 writtenoff joined #salt
15:04 noraatepernos joined #salt
15:06 grumm_servire joined #salt
15:07 LondonAppDev__ joined #salt
15:10 remyd1 I try to put options in module.run in a state file, but that does not work (it is for ssh.set_known_host)
15:10 quasiben joined #salt
15:10 remyd1 I tried kwargs, arg, opts, arg
15:10 sagerdearia joined #salt
15:11 remyd1 the ret result is always hostname argument required
15:19 amcorreia joined #salt
15:19 ninjada joined #salt
15:19 slav0nic any ETA for 2016.3 version?
15:20 StolenToast I'm receiving 7 or 8 responses from individual nodes, though I checked and they each only have one key in PKI
15:20 mavhq joined #salt
15:23 StolenToast it's not consistent, sometimes 1 return from a node, sometimes 5
15:24 StolenToast oh 5 minions, why is that
15:24 Brew joined #salt
15:27 rhodgin joined #salt
15:31 beardedeagle joined #salt
15:33 quix_ joined #salt
15:36 remyd1 https://groups.google.com/forum/#!topic/salt-users/VX4wtVZfRG4
15:36 animus joined #salt
15:37 cmercier joined #salt
15:37 cmercier Hi, I'm looking for some help, i'm trying to improve the firewalld module
15:38 cmercier I had 2 new parameters but apparently salt doesn't recognize it because i get an error : 'runtime' and 'persist' are invalid keyword arguments for 'firewalld.present'. If you were trying to pass additional data to be used in a template context, please populate 'context' with 'key: value' pairs. Your approach will work until Salt Carbon is out. Please update your state files.
15:39 cmercier Here is my fork of salt : https://github.com/cmercier/salt.git
15:40 fracklen joined #salt
15:42 hightekvagabond joined #salt
15:42 AndreasLutro you can just put your forked firewalld.py module in _modules, you don't have to fork all of salt
15:42 zhihan joined #salt
15:43 AndreasLutro also... if you modified the exectution module, you still need to modify the state module if you want that change reflected
15:43 zhihan Hi, how do I configure the salt-master using state files? Do I run a minion there and treat it as any other minions, or there are special ways to run state files on salt-master?
15:44 ashirogl joined #salt
15:44 AndreasLutro zhihan: you'd run a minion on the master yes
15:45 zhihan I see.
15:45 zhihan Thanks.
15:45 cmercier Ok i will try this method to test. I modified both module and state of course
15:45 cmercier thnaks
15:50 CheKoLyN joined #salt
15:51 VSpike In the states top.sls, if a host matches more than once, do the states included by that match get run within the environment they match in?
15:51 VSpike In other words, is the enviroment scoped by state file, or by host?
15:52 AndreasLutro if top.sls matches the same sls in 2 different environments, the sls will be ran twice
15:52 VSpike What about two different sls?
15:52 AndreasLutro if top.sls matches the same sls multiple times within the same environment, the sls will be ran once
15:53 AndreasLutro then the sls will be rendered once each within their respective environments
15:53 edrocks joined #salt
15:53 VSpike Gotcha - so the enviromnent is per sls, rather then per host
15:54 AndreasLutro mmmyeah
15:55 mavhq joined #salt
15:57 VSpike right, so if my top.sls looks like this at the moment https://bpaste.net/show/3983d59eaf0d .. and I have a pillar item which indicates which env a machine belongs to .. and I want to make my states all execute within the desired env...
15:57 VSpike then the only way to that is to repeat that lot N times (once per env) adding a pillar condition to each match?
15:58 VSpike I suppose I could use Jinja to do it
15:59 AndreasLutro mmm you could try {{ saltenv }} instead of base
15:59 AndreasLutro I don't use environments though so I don't really know
16:00 numkem joined #salt
16:00 VSpike No, I've avoided them so far :)
16:01 dgutu joined #salt
16:02 AndreasLutro I never did figure out if state and pillar envs were correlated. if not, you could set a pillar variable "env" and use that instead of base in the state top.sls
16:02 AndreasLutro that's probably bad practice or something though
16:07 bhosmer joined #salt
16:13 VSpike AndreasLutro: I don't think they are related, but that always confused me too
16:13 VSpike hey, that's a pretty neat idea
16:14 ravenx anyone know why my 'salt '*' git.current_branch /home/ravenx/gitrepo'  works, but when i go:  'salt '*' git.describe /home/ravenx/gitrepo' it returns nothing.
16:15 quix joined #salt
16:15 codewaffle joined #salt
16:18 mapu_ joined #salt
16:18 babilen ravenx: Did you answer my earlier questions?
16:20 onlyanegg joined #salt
16:21 dmaiocchi joined #salt
16:24 quasiben joined #salt
16:25 edrocks_ joined #salt
16:25 ravenx yeah i did
16:26 ravenx okay, so when i do that in the directory, via command line
16:26 nimbleark joined #salt
16:26 ravenx it says "fatal: No annotated tags can describe <hash>"
16:28 quix joined #salt
16:30 mavhq joined #salt
16:30 deus_ex joined #salt
16:31 nimbleark joined #salt
16:34 mavhq joined #salt
16:36 nimbleark joined #salt
16:36 spuder joined #salt
16:45 sjorge joined #salt
16:45 sjorge joined #salt
16:48 wise0wl joined #salt
16:49 sfxandy joined #salt
16:50 wise0wl Hello Folks.  I need to test out the new 2016 release candidate, and was HOPING that you all had a prebuilt set of RPMs somewhere, instead of me having to build it myself.  If so, could you point me in the right direction?
16:50 oida joined #salt
16:51 wise0wl I *could* run the bootstrap, buuuuuuuuuut :| you know
16:51 wise0wl RPM upgrades would be easier
16:57 ageorgop joined #salt
16:59 mavhq joined #salt
17:00 ravenx wise0wl:  https://github.com/jordansissel/fpm
17:02 amcorreia joined #salt
17:14 tracphil joined #salt
17:14 hightekvagabond joined #salt
17:14 Lutz_ joined #salt
17:14 Lutz_ hey there. I want to set different configurations via pillar, depending on which network segment the minion is located.
17:14 tracphil Is there anyway for salt to create a cronjob to execute a script every third Sunday?
17:15 Lutz_ How can I achieve this with jinja?
17:17 Lutz_ tracphil:https://github.com/bechtoldt/saltstack-cron-formula ;https://docs.saltstack.com/en/latest/ref/states/all/salt.states.cron.html
17:18 Lutz_ but cron itself is not able to do a job "every 3rd Sunday"...
17:18 Lutz_ imho
17:18 tracphil Lutz_: I was kind of going off of this http://www.unix.com/302446777-post7.html?s=1f357feb6f93f2b005dc1438b8e7c1ae
17:18 sc250024 joined #salt
17:19 Lutz_ nice :)
17:20 tracphil I think it will do it, however not sure if salt's daymonth will let me use a hyphen like 22-28
17:20 tracphil we shall find out :D
17:20 sc250024 Would anyone mind tackling an LVM question?
17:20 sc250024 If I'm using the states here: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.lvm.html
17:21 sc250024 What's the 'require' syntax like?
17:21 sc250024 Like if I need a physical volume to be created before the volume group is created, what am I requiring exactly?
17:21 PeterO joined #salt
17:21 sc250024 '- require \n - lvm: /dev/sdb' ?
17:22 AndreasLutro sc250024: you're requiring another state?
17:22 sc250024 Yeah
17:22 sc250024 First state is creating the PV
17:22 sc250024 using 'lvm.pv_present`
17:22 sc250024 But the volume group depends on the PV being created first
17:22 AndreasLutro are you referring to the example? asking how you would add requires to that?
17:23 sc250024 Yeah, usually I require 'file' or 'pkg'
17:23 AndreasLutro right, well, it's the exact same
17:23 AndreasLutro "file" and "pkg" are just the module bit of the state function
17:23 AndreasLutro i.e. require: [ file: myfile ] corresponds to a file.(managed|recurse|whatever)
17:25 ronnix joined #salt
17:25 CeBe joined #salt
17:26 BradThurber joined #salt
17:26 UtahDave joined #salt
17:32 Lutz_ nobody here using a different config, depending on which network the minion is? I dont know how todo this
17:35 sc250024 AndreasLutro, can I send you a GIthub Gist?
17:35 AndreasLutro sc250024: sure
17:35 babilen Lutz_: Target by subnet/ip address?
17:36 noraatepernos joined #salt
17:37 sc250024 AndreasLutro: https://gist.github.com/sc250024/c9a241640e21aa1568a3
17:37 Lutz_ yes. something like: return "bla" if my network is 192.168.1.0/24, return "foo" if my network is "10.0.17.0/22", else return "baz"
17:37 BradThurber salt-cloud question: Is it possible to specifiy what order salt-cloud should process creation of hosts in a salt-cloud map file?
17:38 sc250024 AndreasLutro, the questions marks are where I'm confused
17:38 AndreasLutro sc250024: your pvcreate_vacasa_diskgroup state at the top is using the function "lvm.pv_present". that means you need to put "lvm: pvcreate_vacasa_diskgroup" as the requirement - see how they correlate?
17:38 sc250024 Right, I got it
17:38 sc250024 Thank you!
17:38 babilen Lutz_: So, would targetting by subnet/ip address work for what you have in mmind?
17:38 AndreasLutro this rule extends to all states
17:39 sc250024 AndreasLutro, got it, thank you!
17:39 rem5 joined #salt
17:39 babilen Lutz_: I am referring to https://docs.saltstack.com/en/latest/topics/targeting/ipcidr.html in case that wasn't clear
17:40 Lutz_ perfect!
17:41 babilen Also https://docs.saltstack.com/en/latest/topics/targeting/compound.html if you haven't read that yet
17:41 Lutz_ babilen: i searched for hours. thanks
17:41 babilen np
17:42 * AndreasLutro removes all state type specifications in requirements in preparation for 2016.3
17:44 sc250024 What does?
17:44 sc250024 Targeting?
17:51 sjorge joined #salt
17:51 sjorge joined #salt
17:54 nidr0x joined #salt
17:55 tedski joined #salt
17:55 bhosmer joined #salt
17:58 ahammond any news on Boron's release?
17:59 catpig joined #salt
18:02 Heartsbane joined #salt
18:02 Heartsbane joined #salt
18:03 ronp_usa joined #salt
18:06 iggy it's not June yet
18:07 ahammond iggy :)
18:07 sjorge joined #salt
18:07 sjorge joined #salt
18:10 Fiber^ joined #salt
18:10 mapu joined #salt
18:11 impi joined #salt
18:25 atmosx joined #salt
18:26 mavhq joined #salt
18:30 baweaver joined #salt
18:30 losh joined #salt
18:33 losh hi, i'm trying to apply an old patch against the latest develop branch of salt in order to run salt-ssh on a proprietary system that is FreeBSD based.  It's got python 2.6.1 available with no possibilty of pip install etc.  Or compiler for that matter.  I'm getting an exception for a missing module OrderedDict.  Does anyone know how could I work around this issue?
18:33 xmj yes, use proper FreeBSD instead :)
18:34 josuebrunel joined #salt
18:34 losh xmj: nice humour ... nope I don't have that option available to me. :P
18:34 inire stop trying to access Juniper lower level stuff with the FreeBSD system stuff?
18:34 xmj easy_install?
18:34 losh inire: nice guess, not juniper
18:34 losh xmj: let me check ..
18:34 xmj netgate filers then
18:34 losh To save the guessing .. it's EMC OneFS.
18:35 AndreasLutro OrderedDict is not a module, it's a class in the collections module
18:35 xmj lol - i was close
18:35 AndreasLutro so maybe download the collections module for 2.6 manually somehow?
18:35 losh AndreasLutro, you're right, my bad.  here's the exception message
18:35 losh ImportError: No module named ordereddict
18:36 AndreasLutro though it should already be in
18:36 AndreasLutro well that's odd
18:37 AndreasLutro ah
18:37 losh AndreasLutro, tips?
18:37 AndreasLutro salt tries importing the collections module but falls back to the ordereddict module
18:37 AndreasLutro you need to find a way to install either one
18:38 losh I find a python-pure implementation, if I added that into the tiny.tar.gz, would that be sufficient for salt-ssh?
18:38 losh /find/found/
18:38 xmj have you considered contacting your vendor about supplying you a version that works with salt?
18:38 AndreasLutro probably
18:39 losh xmj: salt officially unsupported.  But I want to use salt, so I'm going it alone.
18:40 losh AndreasLutro, thanks, if there's a chance it'll work, I'll give it a try.
18:41 baweaver joined #salt
18:49 DammitJim joined #salt
18:49 akhter joined #salt
18:52 cyborg-one joined #salt
18:58 akhter joined #salt
18:59 Netwizard joined #salt
19:05 xmj is there a way i can run salt-call state.highstate without having the highstate refreshed from the salt master?
19:06 cpowell joined #salt
19:07 izibi is there any solution for managing shared keys between services with salt? ideally with support for automated rollovers
19:08 GreatSnoopy joined #salt
19:09 xmj --local maybe :)
19:09 iggy wouldn't that be nice
19:16 Rumbles joined #salt
19:17 StolenToast edit the date on the top file to be the same as the one on the minion
19:17 StolenToast profit
19:34 cpowell_ joined #salt
19:35 fracklen joined #salt
19:40 clouddale joined #salt
19:41 Gareth anyone know if there are any more 2015.8 releases planned before 2016.3 is released?
19:42 subsignal joined #salt
19:44 subsignal joined #salt
19:50 rem5 joined #salt
19:52 digitalhero joined #salt
19:53 ajw0100 joined #salt
19:53 DammitJim how do I set update-alternatives with salt?
19:58 Gareth DammitJim: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.alternatives.html
19:59 DammitJim something is not right when I am using that
19:59 Gareth oh?
19:59 noraatepernos joined #salt
20:00 DammitJim nevermind, now it is
20:01 DammitJim WEIRD!
20:01 DammitJim thanks
20:01 babilen ...
20:01 Gareth no worries :)
20:02 bhosmer_ joined #salt
20:04 atmosx joined #salt
20:07 Gibzon joined #salt
20:08 Gibzon hello, could anyone send me a build of 2016.3 for win64? i tried building it myself but i get many errors :(
20:11 mavhq joined #salt
20:13 XenophonF Gibzon: i'd be happy to share my build procedures with you
20:13 XenophonF just a moment - gotta clean them up a little
20:16 Gibzon thanks XenophonF
20:19 XenophonF Gibzon: https://gist.github.com/xenophonf/c2351f8af80d3231b547
20:19 XenophonF at some point i'll make my own salt-minion installer, with blackjack, and hookers
20:20 XenophonF but until then you'll need to actually create the c:\salt directories yourself and use something like srvany plus instsrv to run salt-minion as a service
20:21 fracklen joined #salt
20:22 Gibzon i was following the instructions from https://github.com/saltstack/salt-windows-dev
20:22 Gibzon on a windows 2012 server, could that be an issue?
20:25 Gibzon i get this error http://paste.nubity.com/0ae81c78daa69402.tex
20:29 jim_ joined #salt
20:30 ashirogl joined #salt
20:31 baweaver joined #salt
20:33 edrocks joined #salt
20:34 pwhack joined #salt
20:35 fracklen joined #salt
20:35 baweaver joined #salt
20:41 pwhack joined #salt
20:44 baweaver joined #salt
20:45 Rumbles joined #salt
20:47 jim_ I'm having some trouble getting a pillar object into my template
20:47 jim_ state: http://pastebin.com/ff91WtWU
20:47 jim_ pillar: http://pastebin.com/fA3jqxC1
20:50 jim_ template: http://pastebin.com/rFXKFz43
20:56 digitalhero joined #salt
20:56 bhosmer joined #salt
21:05 digitalhero joined #salt
21:05 fracklen joined #salt
21:05 ashirogl joined #salt
21:05 jim_ the error I get 'Jinja variable dict object has no attribute config'
21:06 jim_ but in my pillar, it's all there
21:06 XenophonF no idea Gibzon
21:07 XenophonF saltstack's own build instructions don't work for me
21:07 dmaiocchi joined #salt
21:07 losh AndreasLutro, I managed to work around the OrderDict issue but now I'm hitting a new problem.  ERROR   ] An un-handled exception was caught by salt's global exception handler: ImportError: No module named msgpack
21:07 XenophonF build_msi has its own issues, too
21:08 losh Am I correct in understanding that the target host doesn't have the required msgpack module?
21:09 babilen losh: yes
21:10 losh babilen: does salt-ssh not attempt to deliver msgpack-pure as part of the thin.tar.gz?
21:11 AndreasLutro last I checked, msgpack is optional for salt-ssh, you can probably ignore the logged error
21:11 babilen losh: What is the actual error you are trying to fix?
21:12 losh babilen, http://pastebin.com/S57nk8ej
21:13 losh AndreasLutro, the msgpack error is raising an exception which causes salt-ssh to fail.
21:15 grumm_servire joined #salt
21:21 fracklen joined #salt
21:22 thehaven_ joined #salt
21:22 |Fiber^| joined #salt
21:23 voileux_ joined #salt
21:23 dh__ joined #salt
21:23 zhen1 joined #salt
21:24 leev_ joined #salt
21:24 Xenophon1 joined #salt
21:25 chamunks- joined #salt
21:25 pjs_ joined #salt
21:25 nomad_fr joined #salt
21:25 AndreasLutro that's unfortunate... you should open a github issue for that
21:25 giany joined #salt
21:25 norii joined #salt
21:25 the_lalelu joined #salt
21:25 oeuftete joined #salt
21:25 Yoda-BZH joined #salt
21:26 _beardedeagle joined #salt
21:26 Yoda-BZH joined #salt
21:26 cwright joined #salt
21:26 ekkelett joined #salt
21:26 scc joined #salt
21:26 rideh joined #salt
21:26 buhman joined #salt
21:26 losh AndreasLutro : yeah, i've read over a few of them.  I'll hack on it a bit more before I decide to submit something if at all.
21:27 monokrome joined #salt
21:27 eichiro joined #salt
21:27 zsoftich1 joined #salt
21:27 mschiff joined #salt
21:27 mschiff joined #salt
21:27 jY joined #salt
21:27 marcinkuzminski joined #salt
21:27 jfred joined #salt
21:27 eliasp joined #salt
21:29 kutenai joined #salt
21:31 kaictl joined #salt
21:32 baweaver joined #salt
21:35 edrocks_ joined #salt
21:39 evaryont joined #salt
21:40 ageorgop joined #salt
21:40 keimlink joined #salt
21:40 VR-Jack joined #salt
21:41 SheetiS joined #salt
21:41 evaryont Hi #salt! Is there a reason that `salt-call pillar.get foo` on a client and `salt '*client01*' pillar.get foo` would return different data?
21:42 gtmanfred maybe?
21:42 gtmanfred have you done a saltutil.pillar_refresh on the minion before calling salt '*client...
21:43 gtmanfred iirc, the salt-call refereshes everything immediately, but might not update the information in the running salt-minion daemon
21:43 gtmanfred if you do the pillar_refresh, and it doesn't change, then I have no idea
21:43 evaryont just tried again, no change, still different
21:44 evaryont along with the pillar_refresh
21:44 linjan joined #salt
21:45 gtmanfred nothing else immediately comes to mind
21:53 evaryont jfindlay: could this be related to the pillar merging issues that have arisen recently? You seem to be active on github in those tickets
21:56 onlyanegg joined #salt
21:57 jfindlay I know there have been a few pillar issues recently related to that but I have not investigated why this is happening
21:57 jorah-neil-list joined #salt
22:04 Rumbles joined #salt
22:08 felskrone joined #salt
22:09 linjan joined #salt
22:12 whatapain joined #salt
22:14 whatapain does anyone know how if i can add arbitrary keys and values in a salt-cloud map file?
22:14 whatapain s/how/how or/
22:15 gtmanfred you can
22:15 whatapain without using a grain
22:15 gtmanfred what are you trying to add?
22:15 gtmanfred so, you should be able to set anything that goes in the misc cloud config file
22:15 whatapain gtmanfred: i'd like to add the ssh key as a value associated to a host so i can reference it later
22:15 whatapain but i don't want that information being set at the minion, just trying to use the cloud map file as a source of record
22:16 gtmanfred i don't think you can do that
22:16 gtmanfred anything that you put in there is going to be used when it tries to create the server
22:16 whatapain and it will fail if it reads a keyword it doesn't recognize?
22:17 gtmanfred i think it will
22:17 whatapain k, lemme test and confirm
22:19 whatapain it's deploying without issue...
22:22 gtmanfred aight, well then good :)
22:22 VR-Jack2 joined #salt
22:23 whatapain gtmanfred:  :) we'll see if it finishes and if that data is stored somewhere on the node.  if not we're good!
22:24 gtmanfred if it isn't under grains: or minion: it shouldn't be put on the node i don't think
22:25 mavhq joined #salt
22:25 tkharju joined #salt
22:26 kliquori joined #salt
22:29 UtahDave i believe gtmanfred is correct.
22:32 gtmanfred i am a smart cookie
22:32 rodr1c joined #salt
22:33 baweaver joined #salt
22:36 Eugene I want a cookie
22:38 phrik joined #salt
22:38 gtmanfred phrik: give Eugene cookie
22:38 phrik Eugene: gtmanfred wanted you to have this cookie.
22:38 Eugene Omnomnom
22:38 phrik left #salt
22:40 zenlot6 joined #salt
22:40 whatapain gtmanfred: yea, everything looks ok. thanks!
22:44 bhosmer joined #salt
22:45 pfallenop joined #salt
22:45 pfallenop joined #salt
22:45 rem5 joined #salt
22:46 gtmanfred cool
22:46 gtmanfred will keep that in mind for the future :)
22:50 UtahDave left #salt
22:52 TyrfingMjolnir joined #salt
22:53 digitalhero joined #salt
22:57 joe_n joined #salt
22:58 jeddi joined #salt
22:59 ashirogl joined #salt
22:59 baweaver joined #salt
23:01 spuder joined #salt
23:03 ashirogl1 joined #salt
23:08 edrocks joined #salt
23:09 ingslovak joined #salt
23:11 SheetiS joined #salt
23:14 ninjada joined #salt
23:14 NeckBeardPrince joined #salt
23:19 phila_ joined #salt
23:23 phila joined #salt
23:27 Nazca__ joined #salt
23:28 wt joined #salt
23:31 phila_ joined #salt
23:31 wt Is there a way to have per-environment setting for gitfs? For example, I would like to have git+ssh://github.com/repo1's "master" branch be the base environment. I'd like to have git+ssh://github.com/repo2's "staging" branch as the staging environment. I don't want any other branches exposed (like the "master" branch from repos).
23:32 CampusD joined #salt
23:44 bhosmer joined #salt
23:44 Xenophon1 unfortunately, i don't think there's a way to map environment names to branch names
23:46 kliquori joined #salt
23:47 timoguin joined #salt
23:50 i90rr joined #salt
23:51 wt That's too bad.
23:51 wt I love to have my stage environment be my base (master) branch + my staging branch
23:52 wt so that the staging branch is able to override the base branch in the staging environment
23:53 timoguin joined #salt

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