Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-03-02

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

All times shown according to UTC.

Time Nick Message
00:00 digitalhero joined #salt
00:04 digitalhero joined #salt
00:05 terratoma joined #salt
00:06 enigma99a joined #salt
00:07 enigma99a hey all, got a question maybe someone might know. I'm running salt 2015.8.1 - ran salt '*' test.version from the master, all came back with 2015.8.1... ran state.highstate and got     Data failed to compile: The function "state.highstate" is running as PID 24838 .....
00:08 enigma99a it seems like the whole thing crashed and now I can't ping any minions.. ideas?
00:09 kevinquinnyo1 joined #salt
00:14 brianfeister joined #salt
00:16 enigma99a restarted the master in debug mode - [DEBUG   ] Failed to authenticate message [ERROR   ] Bad load from minion
00:16 enigma99a looks like most of them came back though, weird
00:19 chequers joined #salt
00:21 nyx_ joined #salt
00:24 quasiben joined #salt
00:25 baweaver joined #salt
00:27 dendazen joined #salt
00:27 TyrfingMjolnir joined #salt
00:30 zzzirk joined #salt
00:31 jim__ separate question
00:32 jim__ if I have some remote minions, and I want to install a different version of the salt-minion package
00:32 jim__ hwo do I restart the salt-minion service after a successful install?
00:33 zzzirk_ joined #salt
00:34 kevops joined #salt
00:35 markm joined #salt
00:35 kevops hey room.  anyone worked with mssql module?
00:38 jim__ so quiet today
00:40 kermit joined #salt
00:40 markm hiya - anyone tried to get gpg renderer to work w/ encrypted values stored in consul as an external pillar ?
00:41 markm consul values read in as yaml appear to interfere with gpg renderer recognizing secrets that need to be descrypted
00:42 _wwwbukolaycom joined #salt
00:42 kevops listening to someone bang away on their keyboard at the saltstack chciago meetup (conf call)
00:43 fracklen joined #salt
00:44 akhter joined #salt
00:44 quasiben joined #salt
00:45 terratoma joined #salt
00:46 baweaver joined #salt
00:47 shaggy_surfer joined #salt
00:49 kevops im not sure what to do with 'mssql' __virtual__ returned false
00:49 kevops pillar data configured and refreshed on minion
00:49 kevops nerblethegertok error
00:51 gimpy2938 joined #salt
00:52 gimpy2938 Any idea how I can create a state which starts a long running process (e.g. dhclient) only once and not every time the state is ran?
00:52 jim__ @gimpy2938 cmd.wait is good for that
00:53 jim__ set a condition looking for the pid, then trigger cmd.wait to start it when the check fails
00:54 gimpy2938 jim__: How can can I do that first part?  How can I see if this dhclient is running?  (note there could be many instances of dhclient, each called with a different interface name)
00:54 iceyao joined #salt
00:55 chequers left #salt
00:56 hal58th gimpy2938: regex?
01:00 noraatepernos joined #salt
01:03 michelangelo joined #salt
01:04 whatapain does anyone know what the salt jid format is? i'm trying to extract a precise timestamp from jid but i don't know what the precision is.  for example, 20160227022946123021 looks like, year=2016, month=02, day=27, hour=02, minute=29,  what about the 46123021?  8 digits of precision of seconds?
01:04 whatapain nevermind!
01:04 whatapain %Y%m%d%H%M%S%f
01:08 iceyao_ joined #salt
01:11 k_hubbard joined #salt
01:12 justanotheruser joined #salt
01:13 jeffspeff joined #salt
01:14 RobertChen117 joined #salt
01:15 iggy gimpy2938: sounds like a job for something other than salt (supervisord, systemd, upstart, etc)
01:16 baweaver joined #salt
01:16 gimpy2938 iggy: Maybe ... was using NetworkManager but it being garbage I'm tired of dealing with it ... may just make my own systemd units pushed out by salt to handle dhclient
01:17 gimpy2938 iggy: ... however this does seems to work, it just doesn't catch the case of dhclient being dead with an old pid file:  https://gist.github.com/anonymous/7526331e972e047fb057
01:32 antpa joined #salt
01:32 keltim joined #salt
01:34 jimklo_ joined #salt
01:37 antpa joined #salt
01:38 quasiben joined #salt
01:38 SunPowered joined #salt
01:39 zengine joined #salt
01:39 k_sze[work] joined #salt
01:42 bujordan joined #salt
01:45 zmalone joined #salt
01:52 bujordan joined #salt
01:54 captain_magnus joined #salt
01:57 iceyao joined #salt
01:58 zzzirk joined #salt
01:59 iceyao_ joined #salt
02:02 RobertChen117 joined #salt
02:02 k_hubbard mmsql module halp?
02:03 k_hubbard mssql...
02:03 brianfeister joined #salt
02:12 flowstate joined #salt
02:13 catpiggest joined #salt
02:16 sarlalian joined #salt
02:19 bujordan joined #salt
02:20 bujordan joined #salt
02:26 brianfeister joined #salt
02:30 donmichelangelo joined #salt
02:34 jhauser joined #salt
02:40 iceyao joined #salt
02:42 neilf__ joined #salt
02:46 jeffspeff joined #salt
02:47 ilbot3 joined #salt
02:47 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.7 | Register for SaltConf16: http://saltconf.com/register/ | Paid support available for open source Salt! https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | Ask with patience as we are volunteers and may not have immediate answers
02:49 ageorgop joined #salt
02:51 RobertChen117 joined #salt
02:58 subsignal joined #salt
02:59 justanot1eruser joined #salt
03:00 zzzirk joined #salt
03:09 writtenoff joined #salt
03:10 RobertChen117 joined #salt
03:13 jim__ joined #salt
03:34 zzzirk joined #salt
03:36 flowstate joined #salt
03:41 bujordan joined #salt
03:50 lemontv_ joined #salt
03:50 anmol joined #salt
03:53 coval3nce joined #salt
03:58 zzzirk joined #salt
04:06 zzzirk joined #salt
04:15 lemontv joined #salt
04:17 hasues joined #salt
04:17 hasues left #salt
04:18 hasues joined #salt
04:19 zengine joined #salt
04:21 jalbretsen joined #salt
04:21 joe_n joined #salt
04:24 hasues left #salt
04:37 flowstate joined #salt
04:47 ajw0100 joined #salt
04:51 kshlm joined #salt
04:55 sarlalian joined #salt
04:55 sarlalia1 joined #salt
04:57 saywhat joined #salt
04:58 bujordan joined #salt
04:59 saywhat hey guys, is it possible to use if statements within a single pillar file? my example is pretty straight forward. three k/v, say a, b and c. I want id matching web* to get 'a'. db* to get 'b' and * to get c
04:59 saywhat It seems as though any minion only is able to read 'c'
04:59 ajw0100 joined #salt
05:01 josuebrunel joined #salt
05:03 iggy if what?
05:03 iggy you should really do your matching in the top file
05:06 saywhat I have a firewall state that I want to apply to all my minions. There are some port rules that apply to some minions and not others, and some that are shared across all the servers
05:06 saywhat It seems to make sense to me just to use a single firewall pillar with all the ports listed and use if/elif to determine what ports will be opened depending on the grain
05:07 onlyanegg joined #salt
05:11 brianfeister joined #salt
05:12 bujordan joined #salt
05:18 kermit joined #salt
05:19 ramteid joined #salt
05:20 opdude_ joined #salt
05:21 iggy You can, you're just replicating the functionality of the top file
05:21 iggy but if that makes more sense to you, go for it
05:21 iggy to actually fix the issue you're having, you'll have to probably paste some code
05:25 saywhat If you could take a look, that would be great.
05:25 saywhat https://gist.github.com/toanctruong/61c7a7e9976fa7355f8c
05:25 iggy you can't match like that
05:25 iggy globs and == don't mix
05:26 iggy you can use something like {% if grains['id'].startswith('api') %}
05:26 iggy this is why I said you'd be replicating functionality ;)
05:27 bujordan joined #salt
05:27 saywhat got it! thank you
05:27 saywhat yeah, I think top file matching is more elegant.
05:33 quasiben joined #salt
05:37 flowstate joined #salt
05:38 ramteid joined #salt
05:41 bujordan joined #salt
05:42 bujordan joined #salt
05:50 favadi joined #salt
05:51 jim__ joined #salt
05:52 bujordan joined #salt
05:53 cyborg-one joined #salt
05:54 kshlm joined #salt
06:09 hasues joined #salt
06:10 hasues left #salt
06:10 RobertChen117 joined #salt
06:18 jimklo joined #salt
06:28 zer0def joined #salt
06:30 jim__ joined #salt
06:38 flowstate joined #salt
06:39 rdas joined #salt
06:42 felskrone joined #salt
06:42 kbaikov joined #salt
06:44 RobertChen117 I found file.manage unzip tar.gz file lose sticky bit, how can I preserv the sticky bit?
06:50 illern joined #salt
06:55 noraatepernos joined #salt
07:07 Miouge joined #salt
07:07 neilf__ joined #salt
07:19 harkx joined #salt
07:19 dariusjs joined #salt
07:19 SVQTQ joined #salt
07:21 mavhq joined #salt
07:22 rominf joined #salt
07:24 mr_chris joined #salt
07:26 jim__ joined #salt
07:35 flowstate joined #salt
07:35 jimklo joined #salt
07:36 evle2 joined #salt
07:37 av_ joined #salt
07:44 sarlalia1 joined #salt
07:44 linjan joined #salt
07:45 sarlalia1 joined #salt
07:47 jbrnds joined #salt
07:48 malinoff joined #salt
07:53 fracklen joined #salt
07:55 bujordan joined #salt
07:55 bujordan joined #salt
07:55 _JZ_ joined #salt
07:59 bujordan joined #salt
08:00 cberndt joined #salt
08:01 atmosx joined #salt
08:05 impi joined #salt
08:06 impi joined #salt
08:06 Rumbles joined #salt
08:08 duncanmv joined #salt
08:09 tawm04 joined #salt
08:11 dgutu joined #salt
08:18 jbrnds2 joined #salt
08:19 MeltedLux joined #salt
08:23 slav0nic joined #salt
08:23 JohnnRun joined #salt
08:25 colttt joined #salt
08:32 akhter joined #salt
08:32 KermitTheFragger joined #salt
08:33 whatissalt joined #salt
08:35 jbrnds joined #salt
08:35 flowstate joined #salt
08:38 josuebrunel joined #salt
08:42 permalac joined #salt
08:44 RobertChen117 joined #salt
08:49 hugokernel left #salt
08:49 kawa2014 joined #salt
08:53 LondonAppDev joined #salt
09:00 oida joined #salt
09:00 permalac joined #salt
09:01 __number5__ joined #salt
09:04 krazyj joined #salt
09:05 krazyj hi all… i have this admins.sls file: https://gist.github.com/joshavant/a51f6aab8a27d2c5bf3c
09:05 krazyj but i get the error: No function declared in state 'josh' in SLS u'users.admins'
09:05 krazyj any thoughts on how i need to format this?
09:06 nomad_fr_ hi
09:06 nomad_fr_ i've trouble with minion and master between 2 different networks that is 'normaly' fully routed and not firewall
09:07 nomad_fr_ on the same network key echange work but on these 2 network there is no key echange
09:08 Miouge joined #salt
09:13 denys joined #salt
09:15 rmnuvg joined #salt
09:17 sfxandy joined #salt
09:18 ryanw joined #salt
09:23 MadHatter42 joined #salt
09:23 ryanw I'm trying to import a sls as yaml but I'm unable to get the values from it can anyone point me in the right direction? http://hastebin.com/tuliyugaqa.hs
09:25 ryanw this is in the pillar
09:26 s_kunk joined #salt
09:33 dmaiocchi joined #salt
09:34 pooogles joined #salt
09:36 flowstate joined #salt
09:42 GreatSnoopy joined #salt
09:43 cberndt joined #salt
09:46 bujordan joined #salt
09:49 bujordan joined #salt
09:50 bujordan joined #salt
09:50 deniszh joined #salt
09:52 malinoff joined #salt
09:53 brianfeister joined #salt
09:59 jhauser joined #salt
09:59 keimlink joined #salt
10:02 eyckelboom joined #salt
10:07 jbrnds joined #salt
10:25 jbrnds joined #salt
10:29 illern joined #salt
10:36 nomad_fr_ so I make some change on my test procedure, it's seems that it's not a network problem
10:36 illern joined #salt
10:36 flowstate joined #salt
10:36 nomad_fr_ but maybe the ubuntu minon client doesn't work with my debian version
10:37 nomad_fr_ of master
10:37 nomad_fr_ my master is salt-master 2015.5.3 (Lithium)
10:37 hajhatten joined #salt
10:38 nomad_fr_ and my not working minion is salt-minion 2015.8.7 (Beryllium)
10:38 nomad_fr_ is this normal ?
10:43 eyckelboom nomad_fr_: Don't think so, see https://docs.saltstack.com/en/latest/faq.html#id13
10:44 eyckelboom nomad_fr_: A master that's newer than minion seems ok, but minions being newer than master is not guaranteed.
10:46 nomad_fr_ eyckelboom: I tried to downgrad
10:46 nomad_fr_ I tried with salt-minion 0.17.5
10:46 nomad_fr_ but it seems to be the same
10:47 nomad_fr_ I'm going to lunch I come back after
10:50 N-Mi joined #salt
10:56 RobertChen117 joined #salt
10:59 hajhatten are there any screenshots out form the enterprise web ui?
10:59 bujordan joined #salt
10:59 hajhatten *from
11:00 mortis ✔ 12:00 ~/repos/saltstack [ dev | ⚑ 4 ] $ git log | grep fuck | wc -l
11:00 mortis 15
11:00 mortis :o
11:01 mortis thats not too bad
11:01 amcorreia joined #salt
11:02 jim_ joined #salt
11:03 mortis out of 2434 commits :)
11:04 goal joined #salt
11:11 goal is there any reason why a custom grain in _grains would not be available during the first highstate when a new minion starts+authenticates, given that the docs guide of 'syncing custom types on minion start' has been configured with reactor and sync_grains.sls
11:16 AndreasLutro goal: my experiments indicated that reactors don't necessarily run in order and don't wait for eachother. I use a single reactor that calls an orchestrator to make sure everything is done in order, and that seems to work
11:22 aqua^c joined #salt
11:22 inad923 joined #salt
11:25 RobertChen117 joined #salt
11:29 nomad_fr_ it was version problem
11:29 nomad_fr_ I just make it work
11:30 Rebus joined #salt
11:34 pooogles joined #salt
11:36 flowstate joined #salt
11:38 ashmckenzie joined #salt
11:41 RobertChen117 joined #salt
11:42 brianfeister joined #salt
11:45 mr_chris joined #salt
11:51 abednarik joined #salt
11:53 Azid joined #salt
11:54 blue0ctober joined #salt
11:54 tvinson joined #salt
11:55 fredvd joined #salt
12:00 adelcast joined #salt
12:00 bujordan joined #salt
12:00 Miouge_ joined #salt
12:05 brianfeister joined #salt
12:05 jim_ joined #salt
12:10 akhter joined #salt
12:15 mortis whats the point of the salt nagiosmodule really? i dont get it .... you put some config in the pillars, the plugins are executed by salt and returned to the master and not really used for anything
12:15 mortis oO
12:15 rawzone joined #salt
12:15 mortis is the point that you are supposed to set up a returner for the nagios-server?
12:16 Miouge joined #salt
12:16 xmj joined #salt
12:16 xmj moin
12:16 xmj How do i debug a template's context?
12:19 RobertChen117 joined #salt
12:20 babilen mortis: You can do whatever you want with it
12:21 babilen xmj: You render it and see if it results in what you expect?
12:21 * babilen is missing context there ...
12:21 mortis babilen: i guess the question turned out a bit silly :)  ...im looking for a way to generate nagiosconfig based on salt-data
12:21 babilen *ba-dum-tsh*
12:21 xmj well, i solved my problem by actually opening my eyes
12:21 babilen mortis: As in nagios nrpe checks on the minions?
12:22 xmj but is there a way that when salt-call fails to render a template, I can have it show the variables it actually did find ?
12:22 mortis babilen: no, i dont like nrpe, but thats another discussion
12:22 babilen .. but?
12:22 mortis babilen: trying to find a smart way of generation service and host checks based on grains, pillars and a cmdb
12:22 mortis generating even
12:23 babilen mortis: So "automatic checks" based on deployed services?
12:23 mortis something like that :)
12:23 mortis if has_nginx then monitor
12:23 mortis etc
12:23 mortis and that info is in the states and pillars
12:24 mortis so i would likely have to query the database and then parse the slses and finally write some config
12:24 babilen mortis: I don't think that there is anything readily available, but people in here have done something like that.
12:24 mortis or maybe better off just having the minions putting everything in a db first
12:24 babilen Can't remember who it was though :-/
12:24 mortis babilen: ah yeah, couldnt find anything about it
12:25 mortis nrpe is a paint to maintain, so we're not using that
12:25 babilen Fair enough
12:25 fracklen joined #salt
12:25 mortis i did make a wrapper to run plugins via salt tho
12:25 mortis using peers
12:25 xmj left #salt
12:25 mortis i cant type today
12:28 babilen mortis: I'll let you know if I manage to remember the name
12:28 mortis babilen: hehe cool :)
12:28 mortis dont worry too much about it
12:29 mortis i think im gonna let the minions run a script to update our cmdb via an api, telling it what's running there and stuff
12:29 mortis and then generate nagiosconfig based on that
12:30 denys joined #salt
12:31 ggoZ joined #salt
12:32 jim_ joined #salt
12:33 Miouge joined #salt
12:34 fracklen joined #salt
12:36 zengine joined #salt
12:36 flowstate joined #salt
12:39 quasiben joined #salt
12:46 numkem joined #salt
12:48 jim_ joined #salt
12:59 mdupont joined #salt
13:03 EvaSDK hello there
13:04 EvaSDK I'm trying to do something that sounds simple but cannot get it to work for some reason
13:04 EvaSDK I want to pass some pillar data as a jinja template context
13:04 EvaSDK but salt complains about Unable to manage file: Jinja variable 'collections.OrderedDict object' has no attribute 'bla'
13:04 EvaSDK however state.show_sls does show the dict properly so I can see the bla attribute is there
13:05 illern joined #salt
13:05 EvaSDK on alt 2015.5.3 (Lithium)
13:06 jim_ joined #salt
13:06 EvaSDK my question is: "is there a way to pass pillar data (a dict in this case) and have it used jinja dict access style (with dots) or am I screwed" ?
13:12 iceyao joined #salt
13:12 s_kunk joined #salt
13:13 abednarik joined #salt
13:16 anmol joined #salt
13:20 Kelsar joined #salt
13:22 rominf joined #salt
13:22 jim_ joined #salt
13:22 flowstate joined #salt
13:24 JohnnyRun joined #salt
13:25 west575 joined #salt
13:32 EvaSDK ok so my problem might be that - context: {'something': { nested_dict }} and - defaults: {'something': { some other nested_dict }} are not actually merged
13:33 EvaSDK which seems odd as there is all kind of merges everywhere else in salt
13:35 renaissancedev joined #salt
13:35 jfred joined #salt
13:40 jim_ joined #salt
13:45 numkem joined #salt
13:47 Hetman joined #salt
13:47 gh34 joined #salt
13:49 subsignal joined #salt
13:50 dendazen joined #salt
13:52 dyasny joined #salt
13:53 _Cyclone_ joined #salt
13:55 nbari joined #salt
13:55 nbari hi all, is there a way to run a sate only once at boot time ?
13:56 subsigna_ joined #salt
13:58 toastedpenguin joined #salt
13:59 nbari or how to retry a salt-call state.highstate at boottime until all recipies are evaluated
14:01 rubenb joined #salt
14:03 djural joined #salt
14:05 shiriru joined #salt
14:05 babilen nbari: You can define startup states (and why do you think that re-running the saltstack 'fixes' it?)
14:06 nbari problem I notice is that when I boot the instance it tries to fetch conntent, but only after i do a salt-call state.highstate everything works
14:07 babilen Why does it "try to fetch content" ?
14:07 babilen Wherefrom?
14:07 nbari for example I have a state that tries to install,run haproxy
14:08 DammitJim joined #salt
14:09 babilen Sure, but why would that run when the minion completes booting?
14:09 nbari this is the output http://pastebin.com/WKEjFjSP
14:09 babilen Join the blue ribbon campaign and eliminate pastebin.com usage! Use one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … to make the web a better place!
14:10 nbari but now that you mention it I was assuming that at boot time the first time salt starts it does a state.highstate
14:10 nbari but I think no
14:11 nbari if is the first run of the server/minion how to ensure a highstate is run ?
14:13 nbari where to put the startup_states
14:14 nbari is that on the minion ?
14:15 babilen https://docs.saltstack.com/en/latest/ref/states/startup.html
14:15 babilen And no, the minion doesn't automagically run a highstate
14:16 babilen (unless you configured it to)
14:16 nbari many thanks
14:16 nbari I will create a new images with this
14:16 babilen You can do that via reactors or startup states
14:22 aqua^c joined #salt
14:23 nbari is there something faster than the startup_states: highstate ?
14:23 anmol joined #salt
14:23 baoboa joined #salt
14:37 N-Mi joined #salt
14:38 BitBandit joined #salt
14:39 babilen nbari: Faster in what way? Not running any states is definitely fast, but I'm sure that that is not what you meant
14:40 mpanetta joined #salt
14:42 malinoff joined #salt
14:44 nbari I creatd a new image with just the file minion and this contents: startup_states: highstate
14:45 nbari but seems not to be working
14:45 zzzirk joined #salt
14:45 nbari I removed the pki and minion.id directories
14:45 AdamSewell joined #salt
14:49 favadi joined #salt
14:50 Lee- I'm new to salt, having only been messing with it for a couple weeks here and there, but I'm struggling with understanding how to use the salt.modules.git.clone. I have created a sls file, but I get Comment: State 'git.clone' was not found in SLS 'drush' Reason: 'git.clone' is not available.
14:50 Lee- It's not clear to me what I need to do. I also tried salt.modules.git.clone, I tried doing include: - git. And many variations, but I just haven't sorted it out. Also as you can imagine, searching google with terms like "saltstack" and "git" don't exactly give me the type of results I'm looking for. So what are the sort of prerequisits to using git.clone?
14:52 honestly git.clone is an execution module, not a state
14:52 Netwizard joined #salt
14:52 honestly I don't know if there is a state that uses that module to have a git repo checked out somewhere
14:52 honestly But probably
14:53 zzzirk_ joined #salt
14:53 nbari how to force/ensure startup_states: highstate is called ?
14:54 Lee- here's my top.sls and drush.sls files so maybe it's more clear: https://gist.github.com/anonymous/be6fb7967a79323f43e9
14:55 andrew_v joined #salt
14:55 abednarik joined #salt
14:56 Lee- ok execution module, so i need to use module.run as part of this?
14:57 catpig joined #salt
14:58 toastedpenguin joined #salt
15:00 racooper joined #salt
15:00 Brew joined #salt
15:01 digitalhero joined #salt
15:02 Lee- alright looks like I have it working using the following drush.sls: https://gist.github.com/anonymous/dd6805f763309394842d   I'd have no idea the distinction of state vs execution module if honestly hadn't told me it was an execution module. Thanks!
15:02 toastedpenguin joined #salt
15:04 flowstate joined #salt
15:05 flowstate joined #salt
15:07 digitalhero joined #salt
15:11 kaptk2 joined #salt
15:12 zzzirk joined #salt
15:13 Muchoz joined #salt
15:18 zzzirk_ joined #salt
15:19 fracklen joined #salt
15:21 spiette joined #salt
15:21 sfxandy hi everyone
15:26 zmalone joined #salt
15:27 JohnnyRun joined #salt
15:30 Zachary_DuBois joined #salt
15:31 maoli joined #salt
15:31 Netwizard joined #salt
15:31 maoli hello
15:31 kshlm joined #salt
15:32 maoli Currently I manually set a header in my managed files to show where is the orginal on my salt master. Can I generate a such header? e.g. using jinja
15:33 pooogles_ joined #salt
15:34 duncanmv is it possible to have multiple tops modules?
15:42 EvaSDK for those interested in my earlier explained issue, it seems that defaults and context are not really merged at least not when the structure is not described exactly defined the same way
15:42 EvaSDK I'll open a ticket later
15:42 zzzirk joined #salt
15:43 berserk joined #salt
15:44 elwoodTX joined #salt
15:46 zzzirk joined #salt
15:47 Glasswalker In the develop branch (2016.3.0) the new salt.states.rsync, does it allow for example remote rsync:// urls as source? Or only local filesystem?
15:47 jartsu joined #salt
15:48 flowstate joined #salt
15:50 perfectsine joined #salt
15:52 fracklen joined #salt
15:53 berserk joined #salt
15:54 flowstate joined #salt
15:56 zzzirk joined #salt
15:57 flowstate joined #salt
16:00 dmaiocchi joined #salt
16:00 flowstate joined #salt
16:07 spiette_ joined #salt
16:09 malinoff joined #salt
16:09 deus_ex joined #salt
16:09 flowstate joined #salt
16:10 AndreasLutro Glasswalker: I don't know, but note that 2016.3 is its own branch now, it's not develop
16:11 nbari joined #salt
16:11 nbari joined #salt
16:12 Glasswalker AndreasLutro: It was released?
16:13 favadi joined #salt
16:14 elwoodtx2 joined #salt
16:14 AndreasLutro no, but it's still its own branch
16:14 lkannan_ joined #salt
16:15 rubenb_ joined #salt
16:15 goki joined #salt
16:15 Kelsar joined #salt
16:15 goki joined #salt
16:15 cpowell joined #salt
16:16 rodr1c joined #salt
16:16 rodr1c joined #salt
16:16 theanalyst joined #salt
16:16 jfred joined #salt
16:17 kahiru joined #salt
16:17 synical joined #salt
16:17 mrbobbytables joined #salt
16:17 cpowell joined #salt
16:20 jimklo joined #salt
16:20 flowstate joined #salt
16:20 smakar joined #salt
16:20 mihait joined #salt
16:21 flowstate joined #salt
16:21 ramblinpeck joined #salt
16:22 logandg joined #salt
16:30 digitalhero joined #salt
16:31 abednarik joined #salt
16:47 Muchoz joined #salt
16:49 dfinn joined #salt
16:49 favadi joined #salt
16:55 Fiber^ joined #salt
17:06 VR-Jack joined #salt
17:06 jeffspeff joined #salt
17:08 JohnnyRun joined #salt
17:09 JohnnyRun joined #salt
17:09 pppingme joined #salt
17:14 jimklo_ joined #salt
17:14 mavhq joined #salt
17:16 impi joined #salt
17:22 fracklen joined #salt
17:24 onlyanegg joined #salt
17:27 writtenoff joined #salt
17:28 fracklen joined #salt
17:29 bujordan joined #salt
17:30 bujordan joined #salt
17:30 JohnnyRun joined #salt
17:31 jeffspeff I'm wanting to write something for windows minions that shows the user a progress bar with status and current state/task being executed by salt on that machine. I'm fairly familiar with c#.net but not that familiar with python or the inner workings of the salt minion. I would put this project  on github and contribute it back to the community if someone familiar with salt python and windows would help out. suggestions?
17:32 Icefoz Simple way might be able to set the minion to verbose, read the minion's log, and display something based on that.
17:34 jeffspeff on windows, everything for salt is installed in c:\salt which for security reasons a user must have admins rights to access. in my use-case, the users do not have admin rights to anything related to salt
17:34 jeffspeff our users don't have admin rights at all
17:35 jeffspeff i'm thinking something in the windows minion sending the information to a process which is running as the currently logged on user.
17:37 LondonAppDev joined #salt
17:37 quix joined #salt
17:39 cheus joined #salt
17:42 fracklen_ joined #salt
17:42 digitalhero joined #salt
17:44 digitalhero joined #salt
17:45 linjan joined #salt
17:46 zzzirk joined #salt
17:47 sfxandy ok, seeing some strange behaviour with multi-master set up.  Pillar appears to be out of sync .... have tried refreshing Pillar but to no avail...
17:48 rojem joined #salt
17:50 tawm04 joined #salt
17:50 conan_the_destro joined #salt
17:51 sfxandy really strange bit is that if I compare the Pillar results, the one appears to be the inverse of the other i.e. whats missing in one Pillar when executed from one of the masters is present on the other masters Pillar and vice versa
17:52 bowhunter joined #salt
17:52 zmalone Many people avoid multi-master for reasons like that, although I don't recall pillar having problems, I thought it was grains.
17:52 sfxandy hmmmm
17:54 oida joined #salt
17:55 Lionel_Debroux_ joined #salt
17:56 molen3 joined #salt
17:57 molen3_ joined #salt
17:57 housemouse139 joined #salt
17:57 digitalhero joined #salt
17:58 fracklen joined #salt
18:01 ajw0100 joined #salt
18:03 abednarik joined #salt
18:08 andrew_v_ joined #salt
18:09 dlam joined #salt
18:09 jim_ joined #salt
18:11 deniszh left #salt
18:14 fracklen joined #salt
18:14 shaggy_surfer joined #salt
18:17 shaggy_surfer joined #salt
18:18 atmosx joined #salt
18:19 atmosx Hello, how can I ping hosts *.c2.* and *.c3.* ?
18:19 atmosx salt '*.c{2,3}.*' test.ping will do?
18:19 atmosx salt '*.c?.*' test.ping !
18:20 cberndt joined #salt
18:22 DammitJim joined #salt
18:23 spiette joined #salt
18:25 rm_jorge joined #salt
18:26 mdasilva joined #salt
18:26 xMopxShell joined #salt
18:26 flowstate joined #salt
18:26 mdasilva hello all, can anyone tell me what is the recommended release for debian jessie? is it 2014.1.13? seems old
18:27 tweakism the current stable release
18:27 tweakism 2015.8.3 I think?
18:27 hal58th salt '*.c[2-3].*' or '*.c[2.3].*   I think the second one works atmosx
18:28 hal58th Just get on latest, 2015.8.7 mdasilva.
18:28 fracklen_ joined #salt
18:28 hal58th mdasilva: http://repo.saltstack.com/#debian
18:28 mdasilva hal58th: thanks i was looking at http://debian.saltstack.com/
18:29 tweakism and yeah, the newest package is actually 2015.8.7+ds-1
18:29 hal58th wow that should delete that page
18:29 mdasilva is there any incompatibilies coming from 2014.1?
18:30 tweakism probably.
18:30 hal58th Not that I can recall but it's always good to test
18:30 mdasilva so setup a second master
18:31 beardedeagle joined #salt
18:31 hal58th I was thinking more client side, or snapshots
18:31 hasues joined #salt
18:32 hasues left #salt
18:32 mdasilva k going to snapshot and test this out
18:32 mdasilva thanks guys
18:43 fracklen joined #salt
18:44 akhter joined #salt
18:46 mdupont joined #salt
18:50 aw110f joined #salt
18:54 PredatorVI joined #salt
18:56 PredatorVI Jinja scope question:  If I have a line at the top of state1.sls:  "{% set project_name = 'myproject' %}"  and then I include:  state2.sls, should state2.sls be able to use 'proejct_name'?
18:56 bujordan joined #salt
18:57 PredatorVI If not, is there some other way for a state to set values used by another included state?
18:58 PredatorVI without pillars
18:58 fracklen joined #salt
19:03 sarlalia1 joined #salt
19:04 babilen http://jinja.pocoo.org/docs/dev/templates/#import-visibility
19:04 blasted joined #salt
19:05 flowstate joined #salt
19:06 flowstate joined #salt
19:06 kalessin joined #salt
19:06 ryanlraines joined #salt
19:06 MadHatter42 joined #salt
19:07 blasted Q: can you use states directly from gitfs_remotes: in /srv/formulas/example-formula/example/init.sls if you simply add them to /srv/salt/top.sls as base: '*': - example ?
19:08 baweaver joined #salt
19:09 babilen What does "use" mean in this context?
19:09 blasted "apply state"
19:10 babilen You want to apply the "example" state in "example/init.sls" ?
19:10 babilen That would be a bit circular
19:10 ryanlraines joined #salt
19:10 babilen Could you maybe add a few more details?
19:11 ryanlraines Hello, I can't confirm/deny its possible to manually trigger a job
19:11 digitalhero joined #salt
19:11 tweakism babilen: re-read what he wants
19:11 ryanlraines I have a scheduled job, but I would like to manually trigger it.
19:12 babilen tweakism: I've done that :) Still not exactly sure
19:12 coval3nce joined #salt
19:12 blasted instead of adding example to /srv/salt/exmaple/init.sls you add a gitfs_remotes: as https://myrepo/example-formula.git
19:12 blasted next you want that example state to be applied to minions
19:12 coval3nce if custom state or execution modules are created with the same name as a built-in module, will the custom one always take precedence?
19:12 tweakism babilen: he wants to know if he can, in /srv/salt/top.sls, reference a state state from a gitfs_remote
19:12 babilen Sure, that works (if you have that formula as GitFS remote and if it contains example/init.sls), blasted
19:12 blasted yup
19:13 blasted then why do I always get: error state no avail if I add that name to /srv/salt/top.sls, or nothing if I do not add it there?
19:13 babilen blasted: Yes, you can reference states in GitFS remotes.
19:14 noraatepernos joined #salt
19:14 mdasilva has anyone run into an issue with pyopenssl object has no attribute 'PROTOCOL_SSLv3' when upgrading salt-master?
19:15 blasted so let's just say that remote is from saltstack-formulas having a regaulr directory structure like: example/init.sls what would be the trick to getting the state data applied
19:15 babilen "- example" in your top.sls
19:15 felskrone joined #salt
19:15 blasted i tried to add it to /srv/pillar/example/sls based on pillar.example to no avail
19:15 patarr joined #salt
19:16 blasted you mean /srv/salt/top.sls ?
19:16 cheus joined #salt
19:16 babilen /srv/pillar/example/sls ? That would be for pillar data and, yes, I do mean /srv/salt/top.sls (or a top.sls in one of your GitFS remotes)
19:16 tweakism I wish pillars and states did not both use the 'top.sls' name
19:17 blasted * that should have been example.sls
19:17 ageorgop joined #salt
19:17 sarlalia1 left #salt
19:18 tjones2 joined #salt
19:18 blasted No matching sls found for 'example' in env 'base'
19:18 cyborg-one joined #salt
19:19 babilen blasted: Assuming you correctly configured gitfs_remotes and further assuming that you referenced a git repository with a example/init.sls in there you would be able to reference that state as "- example" in your top.sls
19:19 mdasilva was an issue with requests; pip install --upgrade requests  solved the issue
19:19 fracklen joined #salt
19:19 cliluw joined #salt
19:19 babilen If that doesn't work for you then there must be an error somewhere and it would probably be easiest to work with *actual* configuration and actual errors to debug it.
19:19 blasted well the repo git pulled ok
19:20 blasted i.e the files and dirs are found in /srv/formulas
19:20 blasted so i think that part is cool
19:20 babilen What does /srv/formulas have to do with this?
19:20 babilen Are you cloning formulas locally rather than using GitFS and did you configure file_roots to also include /srv/formulas ?
19:21 blasted oh sorry that is from before
19:21 blasted let me do a cleanup
19:22 denys joined #salt
19:22 * babilen hands blasted http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, …
19:23 blasted so in other words i need to comment out [remove] file_roots: base: - /srv/formulas
19:24 blasted done
19:24 babilen No, you can use that as well if you want to. You can mix & match different file_roots and gitfs_remotes as you like
19:24 babilen It would make sense to remove it if you don't want to use it though
19:24 blasted yes i do not want
19:25 blasted and now i get the same error: No matching sls found for 'example' in env 'base'
19:26 andrew_v joined #salt
19:26 MindDrive joined #salt
19:26 kawa2014 joined #salt
19:27 blasted to clarify my question in part: do I need any example.sls in /srv/salt [base] ?
19:28 bujordan joined #salt
19:28 blasted i am expecting salt to "recognize that the example/init.sls is coming from the repo"
19:28 babilen Correct
19:28 blasted is this wrong?
19:29 blasted hmm not happening
19:31 babilen paste actual data
19:31 blasted what data would you like to see?
19:32 bowhunter joined #salt
19:32 blasted [root@saltmastercentos7 salt]# salt --versions-report Salt Version:            Salt: 2015.8.7  Dependency Versions:          Jinja2: 2.7.2        M2Crypto: 0.21.1            Mako: Not Installed          PyYAML: 3.11           PyZMQ: 14.7.0          Python: 2.7.5 (default, Jun 17 2014, 18:11:42)            RAET: Not Installed         Tornado: 4.2.1             ZMQ: 4.0.5            cffi: 0.8.6        cherrypy: Not Installed        date
19:32 blasted ok let go to gist
19:32 blasted https://gist.github.com/stevei101/65c9f7cc26f75111e658
19:34 babilen It would be fantastic if you could include your gitfs_remotes configuration, the state run, output of "salt 'someminion' cp.list_master" and anything else that you think pertains to the problem
19:34 blasted here is the tree: https://gist.github.com/stevei101/7dd942ad7c8165ac021e
19:36 blasted here is the minion debug log: https://gist.github.com/stevei101/b4f1d5034fce53688f48
19:36 digitalhero joined #salt
19:37 babilen You have jenkins.bak and not jenkins.sls in your state tree
19:37 babilen Rename that and it should find jenkins
19:38 grumm_servire joined #salt
19:38 babilen (which wouldn't be a gitfs remote though)
19:39 jebise joined #salt
19:39 akhter joined #salt
19:41 blasted here is the master: https://gist.github.com/stevei101/0f151ada2354860e128e
19:41 blasted yes we do not want a state in /srv/salt for that since it is repoed in gitfs
19:42 lazybear_ joined #salt
19:42 blasted btw i also used this with (gitfs_remotes) root: jenkins and see the same behavior
19:42 blasted without*
19:42 jebise anyone know if a trial/demo of saltstack enterprise exists?
19:43 iggy jebise: I think SSE has lots of sales people at this point
19:45 blasted the init.sls for jenkins: https://raw.githubusercontent.com/saltstack-formulas/jenkins-formula/master/jenkins/init.sls
19:45 duncanmv joined #salt
19:45 jebise funny - they don't seem to return telephone calls (or answer them for that matter) ;)
19:45 iggy jebise: in that case... jfindlay ^
19:46 digitalhero joined #salt
19:47 babilen blasted: That looks fine (apart from the "- root: jenkins") -- You did restart the master? You might want to run the master in debug mode and run "salt-run fileserver.update"
19:49 blasted ok this is the highstate forr that minion: https://gist.github.com/stevei101/d0bcbe2edf4cfe700b0f
19:50 blasted well caveat that the rest of of it is in /srv/salt so jenkins is really the only gitfs being tested
19:50 blasted yes i restarted master
19:50 ryanlraines I have a scheduled job, but I would like to manually trigger it. Is that possible?
19:52 iggy ryanlraines: there's not a way to tell salt "it is X time, do whatever you would normally do now"
19:52 iggy but if it's a state, you can just state.apply foo.state
19:54 blasted this is the /srv/salt/top.sls: https://gist.github.com/stevei101/973634d36ad1f4878eb0
19:55 blasted this is the /srv/pillar/top.sls:  https://gist.github.com/stevei101/0267d7890892ddfb11f2
19:57 patarr joined #salt
19:57 edrocks joined #salt
19:58 blasted so it is a credentials issue:  [ERROR   ] Exception 'credential does not implement interface' caught while fetching gitfs remote
19:59 josuebrunel joined #salt
20:00 forrest joined #salt
20:01 fracklen joined #salt
20:01 babilen blasted: Great, glad you looked at the master log
20:03 edrocks joined #salt
20:04 blasted thanks for your help babilen
20:13 joe_n joined #salt
20:13 FreeSpencer What do you guys use to unit test your stuff? Somebody said something a few months ago about it being written in ruby. Any ideas?
20:15 iggy kitchen sync?
20:15 iggy https://github.com/simonmcc/kitchen-salt
20:17 digitalhero joined #salt
20:18 MadHatter42 joined #salt
20:23 baweaver joined #salt
20:24 joe_n joined #salt
20:25 patarr Is there a debug flag in salt to enable a settrace statement?
20:26 mdasilva joined #salt
20:26 digitalhero joined #salt
20:27 babilen patarr: You can pass "-ldebug" to both salt-master and salt-minion
20:27 patarr babilen, doesn't that just modify the log level?
20:28 ryanlraines how do a state.apply a state that isn't under base, but under another env
20:28 ryanlraines envname.foo.state?
20:29 conan_the_destro joined #salt
20:29 babilen patarr: It does, yeah
20:33 baweaver joined #salt
20:38 sfxandy joined #salt
20:40 ajw0100 joined #salt
20:43 bujordan joined #salt
20:43 blarghmatey joined #salt
20:43 GreatSnoopy joined #salt
20:45 ryanlraines iggy: I state.apply for my job state, but that just checks the schedule to ensure the job is scheduled, it doesn't seem to kick off the job.
20:51 whatapain joined #salt
20:53 whatapain does anyone know why when i do a test.ping --return syslog i get an error in the master saying 'Returner 'syslog' not found'?  I am able to execute --return syslog for other commands, test.ping seems to be the other module that's affected.
20:54 iggy ryanlraines: you'll probably want to gist some code to give us an idea of what you're doing
20:56 digitalhero joined #salt
20:56 digitalhero joined #salt
21:01 ryanlraines let me try to explain without an example - I have a job that runs a script once a day - I don't want to wait til the configured time, I want to run the job manually, ad hoc, for testing.
21:03 Rumbles joined #salt
21:05 flowstate joined #salt
21:08 tjones2 joined #salt
21:12 whatapain how is there no reboot or restart functionality with the digital_ocean provider?
21:12 cro whatapain: not even as an action?
21:13 cliluw joined #salt
21:13 whatapain cro: nope
21:14 whatapain [INFO    ] 'digital_ocean.reboot()' is not available. Not actioning...
21:14 whatapain cro: even though the API specifically has a reboot function https://developers.digitalocean.com/documentation/v2/#reboot-a-droplet
21:17 mdasilva after upgrading to 2015.3 my minion is throwing a 'object has no attribute is_proxy' (salt.utils.is_proxy())
21:17 mdasilva any idea what could cause this?
21:17 DammitJim I would like to place an ssh key on multiple servers
21:17 mdasilva this only happens when sending a job from the salt mastion, a salt-run from the client doesn't expeirence this error
21:17 DammitJim but the user's .ssh folder doesn't exist yet
21:18 DammitJim what is the appropriate way to do this? I think normally a user gets created automatically when one logs on to the server?
21:18 babilen DammitJim: Create it or just use the users-formula
21:18 DammitJim users-formula?
21:18 babilen https://github.com/saltstack-formulas/users-formula
21:19 DammitJim users.profile ?
21:20 babilen https://github.com/saltstack-formulas/users-formula/blob/master/users/init.sls#L147 -- .ssh related state(s)
21:20 babilen But just use the formula
21:25 whatapain does anyone know why when i do a test.ping --return syslog i get an error in the master saying 'Returner 'syslog' not found'?  I am able to execute --return syslog for other commands, test.ping seems to be the other module that's affected.\
21:25 DammitJim will file.directory create parent folders as needed with makedirs: True ?
21:29 babilen DammitJim: Just use the formula ;)
21:30 thomaswoo joined #salt
21:30 thomaswoo Has anyone pinged the team that maintains docs about the page reloads on window resize?
21:30 shaggy_surfer joined #salt
21:30 woodtablet joined #salt
21:32 thomaswoo not a huge deal, but just wanted to fyi that it kills the ability to ctrl+f in opera
21:32 thomaswoo and any other extension that operates in a similar manner
21:34 woodtablet hello all
21:35 woodtablet i have like 100 nodes, and the job cache filled up all my inodes (so millions of files). i have changed the default job cache from the commented out 24 hours to 1 hour, but do i really need a job cache ?
21:38 teryx510 joined #salt
21:39 AndreasLutro woodtablet: if you want to look up past jobs (especially relevant for reactors etc), you do - but you might want to use another cache like redis
21:39 teryx510 Anyone played around with beacons on windows? Wrote a custom beacon, works on linux, "Unable to process beacon" on windows.
21:40 Netwizard joined #salt
21:44 digitalh_ joined #salt
21:45 ajw0100 joined #salt
21:45 abednarik joined #salt
21:46 woodtablet andreaslutro - but what do i use this cache for ?
21:48 AndreasLutro woodtablet: afaik, just so you can `salt-run jobs.lookup_jid`
21:49 woodtablet AdndreasLutro - ok, i ll keep an hour then, i was debating deleting it all
21:49 woodtablet hehe
21:49 cwyse joined #salt
21:49 quasiben joined #salt
21:51 AndreasLutro we do stuff like automatically run highstates at night time - I'd hate not being able to look up the results of them
21:52 Heartsbane joined #salt
21:52 Heartsbane joined #salt
21:52 perfectsine joined #salt
21:54 iggy whatapain: was it in the v1 api? If not, it was probably just missed when porting.
21:55 jhauser joined #salt
21:57 bujordan joined #salt
22:03 baweaver joined #salt
22:07 bujordan joined #salt
22:10 DammitJim babilen, does that work for domain users, too?
22:11 fracklen joined #salt
22:12 digitalhero joined #salt
22:14 woodtablet AndreasLutro - I may have fallen on to this but, but I already deleted the files. https://github.com/saltstack/salt/issues/10443
22:14 saltstackbot [#10443]title: Jobs cache: keep_jobs not deleting old files | Hello, ...
22:14 flowstate joined #salt
22:26 BradThurber joined #salt
22:27 perfectsine joined #salt
22:29 kermit joined #salt
22:29 amcorreia joined #salt
22:30 fracklen joined #salt
22:35 baweaver joined #salt
22:36 joe_n joined #salt
22:36 spiette joined #salt
22:37 ericsysmin joined #salt
22:41 zenlot_away joined #salt
22:43 digitalhero joined #salt
22:45 mdasilva_ joined #salt
22:46 brianfeister joined #salt
22:47 joe_n joined #salt
22:49 rmnuvg joined #salt
22:49 rem5 joined #salt
22:55 perfectsine joined #salt
22:56 joe_n joined #salt
22:58 west575 joined #salt
23:00 zmalone joined #salt
23:14 digitalhero joined #salt
23:14 perfectsine joined #salt
23:15 freeaks joined #salt
23:17 rideh joined #salt
23:20 tampakrap joined #salt
23:25 ajw0100 joined #salt
23:33 jfelchner joined #salt
23:35 flowstate joined #salt
23:36 whatapain iggy: i can't seem to get ahold of v1 api documentation but it's entirely possible it was never in v1. i submitted a github issue for it.
23:37 iggy if I needed to reboot my DO server, I'd probably go ahead and add support
23:37 iggy or just salt do-server system.reboot
23:38 mihir joined #salt
23:38 PredatorVI I have multiple states that define `{% set project_name = '<name>' %}` where <name> is unique per state.  These states include a shared state that uses the value of 'project_name'. If I simply 'include' the shared state, it says 'project_name' is undefined.  If I do {% include 'sharedState.sls' %} I get multiple 'Detected conflicting IDs...' errors.  Is there a way to do what I need so that I can a
23:38 PredatorVI pply multiple states that include my sharedState.sls?
23:39 bhosmer joined #salt
23:39 whatapain iggy: yea i'm working on implementing on my own.  it has to be at the digital ocean api level because the host is no longer accessible
23:40 iggy ouch
23:42 tweakism joined #salt
23:45 baweaver joined #salt
23:46 bujordan joined #salt
23:46 nate_c joined #salt
23:51 berserk_ joined #salt
23:53 shaggy_surfer joined #salt
23:55 aqua^c joined #salt

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