Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-06-20

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

All times shown according to UTC.

Time Nick Message
00:08 stooj joined #salt
00:14 onlyanegg joined #salt
00:18 p3rror joined #salt
00:33 flowstate joined #salt
00:37 KajiMaster joined #salt
00:40 Lee- joined #salt
00:47 amcorreia joined #salt
01:04 iceyao joined #salt
01:24 iceyao joined #salt
01:26 k_sze[work] joined #salt
01:27 k_sze[work] What's the cleanest way I can setup a "production" file_roots and a "development" or "testing" file_roots?
01:28 k_sze[work] And what's the easiest way for me to tell the salt master which one to use?
01:31 flowstate joined #salt
01:33 isntall joined #salt
01:46 nmadhok joined #salt
01:46 stooj_ joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.5.10, 2015.8.10, 2016.3.1 | 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:49 catpiggest joined #salt
01:55 iggy k_sze[work]: use different masters?
01:59 nmadhok joined #salt
02:01 k_sze[work] but then I would need to switch my minion between masters, no?
02:14 onlyanegg joined #salt
02:19 aarontc joined #salt
02:20 stooj joined #salt
02:29 iceyao joined #salt
02:35 stooj joined #salt
02:37 Zachary_DuBois joined #salt
02:39 iggy do you have minions moving from dev to qa to prod?
02:39 iceyao joined #salt
02:41 sauvin joined #salt
02:43 ramteid joined #salt
02:44 dendazen_ joined #salt
02:56 Zhen joined #salt
03:06 DEger joined #salt
03:09 k_sze[work] iggy: all of our minions are pretty much prod.
03:10 k_sze[work] We don't have the resource yet to dedicate a minion as test.
03:11 k_sze[work] So far I have been doing my development in just one production file_roots on the master, which is not idea.
03:11 k_sze[work] s/idea\./ideal/
03:11 iggy go masterless?
03:11 iggy it sounds like you're in a unique position
03:12 iggy I doubt you'll find a perfect solution to your problem
03:13 iggy if you wanted to use multiple masters, you could put the same keys on each one, so moving the minions around would just be a matter of changing the minion config
03:13 iggy you could also use salt's environment's, but I usually advise against that
03:14 k_sze[work] "masterless" as in, make a copy of the file_roots on the minion, develop there, and call salt-call --local there to test?
03:15 iggy yeah
03:16 k_sze[work] By the way, is there a neat way to track the configuration of each minion? We version control our file_roots using git, it would be nice if there is a way to track, on each minion, what was the latest commit used, and whether everything was successful.
03:17 k_sze[work] s/latest/last/
03:17 k_sze[work] You see what I mean?
03:18 iggy not built into salt
03:18 iggy I think we wrote a grain to do that (or an ext_pillar... not sure
03:24 kshlm joined #salt
03:31 flowstate joined #salt
03:48 sagerdearia joined #salt
03:49 nmadhok joined #salt
04:02 hasues joined #salt
04:02 hasues left #salt
04:04 Edgan joined #salt
04:15 onlyanegg joined #salt
04:33 AlexLau joined #salt
04:36 nmadhok1 joined #salt
04:37 AvengerMoJo joined #salt
04:38 AvengerMoJo anyone get some example for pydsl or pyobjects to get access to salt modules?
04:39 nmadhok joined #salt
04:40 hamsham joined #salt
04:43 armguy joined #salt
05:04 nmadhok joined #salt
05:06 nmadhok1 joined #salt
05:07 nmadhok joined #salt
05:09 keimlink joined #salt
05:21 Jogfat joined #salt
05:21 AvengerMoJo pydsl sys.modules['salt.loaded.ext.module.my_mod'] doesn't seem to be working
05:30 flowstate joined #salt
05:31 DEger joined #salt
05:33 iggy AvengerMoJo: I think it's just __salt__['module.function']() like in the py renderer
05:37 Sammichmaker joined #salt
05:37 calvinh joined #salt
05:40 felskrone joined #salt
05:46 rdas joined #salt
05:47 AvengerMoJo iggy: thanks, let me try :)
05:48 AvengerMoJo pysdl key = __pillar__.get('key') doesn't work either .. I wonder what I did wrong :)
05:50 AvengerMoJo .... it is working sorry
05:50 kalessin joined #salt
05:55 apofis joined #salt
05:58 eliasp joined #salt
05:59 colttt joined #salt
06:01 KajiMaster joined #salt
06:04 nmadhok joined #salt
06:08 AvengerMoJo iggy: your __salt__['module.function']() seem to able to point to the function, but it won't let me pass parameter
06:08 AvengerMoJo iggy: any idea?
06:08 Jogfat joined #salt
06:18 duncanmv joined #salt
06:18 AvengerMoJo iggy: thanks ... somehow it is working now ... not sure what was wrong
06:24 DEger joined #salt
06:27 macheck joined #salt
06:28 netcho joined #salt
06:29 KermitTheFragger joined #salt
06:32 slav0nic joined #salt
06:32 duncanmv_ joined #salt
06:32 flowstate joined #salt
06:36 kawa2014 joined #salt
06:39 yuhlw joined #salt
06:39 nmadhok joined #salt
06:40 onlyanegg joined #salt
06:42 nmadhok joined #salt
06:46 fracklen joined #salt
06:47 fracklen joined #salt
06:51 fracklen joined #salt
06:51 onlyanegg joined #salt
06:58 Elsmorian joined #salt
07:03 evle1 joined #salt
07:04 iceyao_ joined #salt
07:07 iceyao joined #salt
07:07 davromaniak joined #salt
07:08 JPT joined #salt
07:11 riceandbeans left #salt
07:11 Ixan left #salt
07:27 JohnnyRun joined #salt
07:28 dkrae joined #salt
07:30 flowstate joined #salt
07:39 keimlink joined #salt
07:42 ronnix joined #salt
07:43 krymzon joined #salt
07:52 nmadhok joined #salt
07:55 bdrung_work joined #salt
07:56 Electron^- joined #salt
07:57 linjan_ joined #salt
08:00 deniszh joined #salt
08:02 rem5 joined #salt
08:03 kbaikov joined #salt
08:16 przemek_ joined #salt
08:19 dmaiocchi joined #salt
08:20 s_kunk joined #salt
08:26 dmaiocchi joined #salt
08:26 mavhq joined #salt
08:30 flowstate joined #salt
08:33 permalac joined #salt
08:33 lero joined #salt
08:39 mikecmpbll joined #salt
08:40 tuxick documentation suggests file.managed downloads file from master, can't it simply be used to edit file installed by package?
08:45 ws2k3 joined #salt
08:46 AndreasLutro tuxick: no, file.replace may be what you want for that
08:47 tuxick ok, figures
08:53 onlyanegg joined #salt
08:56 AvengerMoJo in pydsl how do you declear stage require another stage ?
09:00 Ayo joined #salt
09:01 subsignal joined #salt
09:02 Elsmorian joined #salt
09:04 __alex joined #salt
09:11 CeBe1 joined #salt
09:13 toanju joined #salt
09:25 Edgan joined #salt
09:28 fredvd joined #salt
09:30 flowstate joined #salt
09:39 guardianJ joined #salt
09:41 dkrae1 joined #salt
09:41 fredvd joined #salt
09:42 haaj joined #salt
09:50 kbaikov joined #salt
09:51 guardianJ left #salt
09:53 DEger joined #salt
09:55 cyborg-one joined #salt
09:57 ronnix joined #salt
09:59 _mel_ joined #salt
10:06 haaj_ joined #salt
10:09 __alex joined #salt
10:21 netcho hi all, trying to configure salt-api
10:22 netcho when i try to connect to it localy or remote i get connection refused.... no fw included
10:22 haaj joined #salt
10:26 impi joined #salt
10:28 Oddnewfi joined #salt
10:29 Oddnewfi Morning - can I bother someone for some help with deploying Tomcat web apps...?
10:30 flowstate joined #salt
10:32 netcho looks like salt-api http server is not working
10:32 netcho service is running though...
10:34 nmadhok joined #salt
10:41 colegatron hi. I am using salt for some time with a masterless approach. now I'm going to move to master-minion approach and I am just curious if you can manage the minions only from the master or there is change to manage them from some another server
10:42 colegatron I ask this because I am going to setup some jobs on rundeck which need remotely run some states on remote servers
10:44 Oddnewfi I guess everyone is busy - so leaving the question... Using tomcat.war_deployed. the war deploys with the correct context name, but is copied the filesystem with extra ##'s in the name. We care about the actually .war name, as well as the context
10:47 Oddnewfi Seems to be to do with versions - but would can't quite work out where its picking them up from
10:52 AndreasLutro Oddnewfi: reading the source code, it seems like the ## are part of the output from tomcat's API
10:52 AndreasLutro look at salt/modules/tomcat.py's ls function
10:53 Oddnewfi Thank you - yes having a read also - seems to be pesky Tomcat that is actually doing it.... pesky cat - thank you for your help
10:57 kbaikov joined #salt
10:57 felskrone how do i access classes defined in modules like the class 'baz' described here https://docs.saltstack.com/en/2015.8/ref/modules/index.html#private-functions ? i tried salt classname.func __salt__['classname.func']() but neither works (undefined function)
10:58 AndreasLutro felskrone: your class needs a __call__ function, and it's salt['modulename.classname'
10:58 AndreasLutro felskrone: your class needs a __call__ function, and it's salt['modulename.classname']()
10:58 AndreasLutro stupid return key
11:01 netcho how do i start cherrypy server?
11:02 AndreasLutro service salt-api start
11:02 felskrone what about the methods of my class like __salt__['modulename.classname.test']
11:02 AndreasLutro no, you can only access the __call__ function
11:02 AndreasLutro as far as I know anyway
11:03 felskrone hrm, that wont do, damn
11:03 netcho AndreasLutro: service is running but denies my connections
11:04 AndreasLutro lsof -i -n | grep salt-api
11:04 AndreasLutro and check the salt-api logs
11:05 SWA joined #salt
11:08 felskrone let my try a different approach: i have a module with several globals variables which salt does not import (to make them available to other modules). what options do i have to make the globals available to other modules with salt?
11:08 netcho AndreasLutro: lsof -i -n | grep salt-api  returns nothing
11:09 AndreasLutro felskrone: could those variables be put in the minion config instead?
11:10 felskrone nah, its a pretty dynamic modules. who uses globals anyway… really annoying to work with
11:10 AndreasLutro who uses globals indeed
11:11 felskrone the author is rather new to python and salt, and now im trying to clean up but the salt loader is rather strict :-)
11:12 AndreasLutro even as someone experienced with python, salt's module system is kinda unintuitive tbh
11:17 Hazelesque joined #salt
11:17 amcorreia joined #salt
11:27 colegatron there is anyway to manage minions from other server than master?
11:28 netcho from other minions
11:30 flowstate joined #salt
11:33 colegatron really? how it is possible? I am thinking on the permissions
11:34 colegatron if anyone, from any minion could run states it would not be so safe, so sure there is something I am missing on security configuration
11:36 netcho needs to be allowed... it is called peering
11:36 netcho https://docs.saltstack.com/en/latest/ref/peer.html
11:37 AndreasLutro what do you want to do colegatron?
11:37 netcho peering is just to run commands from other minions..
11:38 netcho AndreasLutro: solved my problem
11:38 netcho needed to run salt-api manualy
11:38 colegatron AndreasLutro, I am going to setup a master and multiple minions. also want one server (btw will be also a minion) is running Rundeck.
11:39 colegatron I need this Rundeck run states on other servers, but don't want any other server (or process if possible) be able to run states on other servers
11:39 AndreasLutro could set up rundeck to talk through salt-api I suppose
11:39 colegatron netcho, tnx I'll see.
11:40 colegatron salt-api. will read too.
11:40 colegatron but I've found another problem with my pillar configuration. I have a pillar key "cfg" which is a big tree of configuration keys and values
11:41 colegatron the idea is run from Rundeck states like "salt-call state.sls _processes.setup-website pillar='{"cfg":{"website":{"version":"abc"}}}'
11:42 colegatron but then I've found the state failing because the pillar cfg:website:git_repo has been deleted during the pillar merge
11:42 AndreasLutro that's a bug that was only recently fixed iirc
11:43 colegatron it is in some stable branch?
11:43 colegatron or it is dev/master?
11:43 AndreasLutro don't remember
11:43 colegatron ok. i'll have to find it
11:47 lero joined #salt
11:48 colegatron tnx!
12:01 abednarik joined #salt
12:04 deus_ex joined #salt
12:09 felskrone why  would 'salt-call pillar.get webspace:name' return 'testname' (which is correct) but the very same call in a module '__pillar__.get('webspace:name') return None? im i wrong to expect this to work?
12:11 AndreasLutro __pillar__ is just a python dictionary, it's not the same as the pillar.get module function
12:12 felskrone yeah, i know, but i figured that it would be populated after a sync which does not seem to be the case
12:12 AndreasLutro sync?
12:12 felskrone saltutil.sync_all
12:13 AndreasLutro that would have 0 effect
12:13 AndreasLutro in this context
12:13 felskrone i noticed :-)
12:13 AndreasLutro salt-call pillar.get is the same as __salt__['pillar.get'], not the same as __pillar__.get
12:15 deus_ex joined #salt
12:15 rbjorklin joined #salt
12:16 SWA joined #salt
12:17 bx2 joined #salt
12:17 Cottser joined #salt
12:18 iggy joined #salt
12:19 futuredale joined #salt
12:19 honestly joined #salt
12:19 snaggleb joined #salt
12:19 felskrone AndreasLutro: thx for the lesson, its working now :-)
12:20 emid joined #salt
12:20 vilitux joined #salt
12:21 Karunamon joined #salt
12:23 netcho when i use salt-api and connect from cli on my jenkins server it works fine, but when i try to authenticate from jenkins job (same server) i het error:
12:23 Lee- joined #salt
12:23 netcho Client error: Auth Error: net.sf.json.JSONException: JSONObject["return"] is not a JSONArray.
12:23 netcho Client error: Auth Error: net.sf.json.JSONException: JSONObject["return"] is not a JSONArray.
12:23 netcho Client error: Auth Error: net.sf.json.JSONException: JSONObject["return"] is not a JSONArray.
12:23 netcho Client error: Auth Error: net.sf.json.JSONException: JSONObject["return"] is not a JSONArray.
12:23 netcho Client error: Auth Error: net.sf.json.JSONException: JSONObject["return"] is not a JSONArray.
12:23 patrek joined #salt
12:23 west575 joined #salt
12:23 netcho sorry for multipel paste
12:24 upb joined #salt
12:27 linjan_ joined #salt
12:28 debian112 left #salt
12:29 Ayo_ joined #salt
12:29 hoonetorg joined #salt
12:30 iceyao joined #salt
12:30 flowstate joined #salt
12:32 wangofett joined #salt
12:36 _W_ joined #salt
12:37 rem5 joined #salt
12:46 akio joined #salt
12:47 dendazen joined #salt
12:49 wangofet1 joined #salt
12:50 colegatron AndreasLutro, pillar merge is on 2016.3.
12:50 TooLmaN joined #salt
12:51 drawsmcgraw joined #salt
12:51 dmaiocchi joined #salt
12:51 colegatron do someone knows 2016.3.1 keeps backward compatibility or it is broken in someway?
12:53 wangofet1 joined #salt
12:55 rem5 joined #salt
12:57 dyasny joined #salt
12:59 gh34 joined #salt
12:59 permalac_ joined #salt
12:59 dmaiocchi joined #salt
13:01 upb joined #salt
13:05 dkrae joined #salt
13:10 irctc384 joined #salt
13:10 numkem joined #salt
13:10 TooLmaN joined #salt
13:11 irctc384 hey guys, I have a runner which is making a call to a built-in runner "jobs.last_run" but isn't returning any job results, whereas in the command line when I run "salt-run" it works fine
13:13 irctc384 the Python call to the built-in runner is being made like this "last_run = runner.cmd('jobs.last_run', [None, None, None, 'state.sls', 'G@role:myrole'])"
13:13 irctc384 and the CLI call is being made like this "salt-run jobs.last_run target="G@role:myrole" function=state.sls"
13:14 gtmanfred irctc384: if you are in a runner, you can just use __salt__['jobs.last_run'](target='G@role:myrole', function='state.sls')
13:15 gtmanfred just like you can in modules, runners have access to all the other runner modules through dunder salt (__salt__)
13:15 abednarik joined #salt
13:15 gtmanfred does the __salt__ method work instead of the runner.cmd?
13:16 gtmanfred https://github.com/saltstack/salt/blob/develop/salt/loader.py#L811-L817
13:16 gtmanfred that is where it loads the runners as __salt__
13:17 mapu joined #salt
13:18 M-liberdiko joined #salt
13:19 kawa2014 joined #salt
13:21 om joined #salt
13:21 Guest23276 left #salt
13:23 om2 joined #salt
13:23 evle1 joined #salt
13:25 irctc384 gtmanfred: that's helpful thank you, but no it doesn't seem to solve my problem :(
13:26 permalac_ Hello guys, I'm here again. :)   I don't understand how to use salt to execute a powershell on windows without installing a salt minion on it.
13:27 babilen permalac_: Why do you think that it would be possible?
13:27 irctc384 ah, there must be a race condition because when I run my runner via CLI after the orchestration run has finished then it works
13:30 permalac__ joined #salt
13:31 flowstate joined #salt
13:31 permalac__ babilen, last week a guy comented that using a proxy minion could be done, but I did not understand how.
13:36 babilen permalac__: Those are normally for "dumb" devices on which you can't run a minion
13:38 bx2 joined #salt
13:40 onlyanegg joined #salt
13:41 permalac__ babilen, so Windows needs a Minion, you can not run winexe from outside the windows box. And that's it.  Makes sense, sad, but makes sense .
13:43 M-MadsRC joined #salt
13:45 numkem joined #salt
13:46 babilen permalac__: There might be a way, but that would require you to access the box otherwise. Do you know if salt-ssh is usable with Windows?
13:46 permalac__ babilen, From my understanding  salt-ssh requires ssh and python, so you need that installed on the windows box. Which is not nice either.
13:46 numkem joined #salt
13:47 numkem joined #salt
13:47 ajv joined #salt
13:48 eliasp joined #salt
13:48 permalac__ babilen, maybe with some foo magick like this => http://serverfault.com/questions/638659/managing-windows-powershell-from-linux-terminal
13:49 tapoxi joined #salt
13:50 tapoxi hi #salt, anyone using Hashicorp Vault to encrypt pillar data? any suggested methods? I'm on 2016.3.0
13:51 euidzero joined #salt
13:52 babilen tapoxi: Did you read up on https://docs.saltstack.com/en/develop/ref/sdb/all/salt.sdb.vault.html and https://docs.saltstack.com/en/develop/ref/pillar/all/salt.pillar.vault.html ?
13:53 kawa2014 joined #salt
13:55 DEger joined #salt
13:57 rem5 joined #salt
13:58 tapoxi babilen that's in carbon
13:58 tapoxi unfortunately
14:00 AvengerMoJo pydsl how to require just another state?
14:02 babilen tapoxi: Is it that hard to backport those modules?
14:02 Tanta joined #salt
14:04 numkem joined #salt
14:05 abednarik joined #salt
14:06 MaZ- joined #salt
14:07 zmalone joined #salt
14:09 debian112 joined #salt
14:12 tapoxi babilen I'm a little new to saltstack, are most modules safe to drop into an older version?
14:12 flowstate joined #salt
14:18 jeddi joined #salt
14:19 shalkie joined #salt
14:19 west575 joined #salt
14:22 dfinn joined #salt
14:23 babilen tapoxi: It's impossible to say in general
14:23 al joined #salt
14:23 west575 joined #salt
14:24 tapoxi well I'll give it a shot, thanks babilen
14:24 babilen Have a look, those are the modules I think off when it comes to vault in saltstack
14:24 tuxick meh, why not simply have multiple pattern/rpl for same file?
14:25 tuxick in file.replace that is
14:25 babilen I would manage the entire file as soon as I need that
14:26 tuxick manage how?
14:26 babilen file.managed
14:28 tuxick that starts with "source"
14:28 tuxick the bit i didn't want
14:29 babilen Why not?
14:29 tuxick because i just want to modify a config file that comes with package
14:30 babilen Yes, and I'm saying that *I* would manage the entire file if I get to the point where multiple changes are necessary.
14:30 rem5_ joined #salt
14:30 tuxick hm
14:30 babilen Not only because the configuration doesn't rely on some state being present on the minion, but also because it allows for easy additions/changes in the future
14:31 tuxick hm
14:31 tuxick got a point
14:31 tuxick ok, i won't waste time on this now and go for managed :)
14:32 bluenemo joined #salt
14:32 debian112 joined #salt
14:32 babilen In a way it boils down to "If foo is given, do bar" vs "Do bar"
14:33 hasues joined #salt
14:34 brew joined #salt
14:35 tuxick just spent over a year learning ansible, now at new job they want salt so got a bit of trouble adjusting :)
14:36 hasues left #salt
14:37 tuxick hmm running that shows complete diff between original and replacement, bit odd
14:37 mikecmpb_ joined #salt
14:38 TooLmaN joined #salt
14:39 cro_ joined #salt
14:40 babilen tuxick: Why is that odd?
14:40 babilen What would you prefer?
14:41 kaptk2 joined #salt
14:41 babilen https://docs.saltstack.com/en/latest/ref/configuration/master.html#state-output -- I set that to "mixed" typically, you might like "terse"
14:42 flowstate joined #salt
14:45 tuxick babilen: it's replacing a file, so why bother with content? that'd be output for file.replace
14:45 tuxick but ok
14:45 tuxick i'll make it terse!
14:48 babilen tuxick: Because you are interested in changes deployed to your files in the future
14:48 tuxick hm
14:48 teryx510 joined #salt
14:54 dmaiocchi joined #salt
14:57 teryx5101 joined #salt
14:58 west575_ joined #salt
14:58 teryx510 joined #salt
14:59 deus_ex joined #salt
15:05 skinnejo joined #salt
15:13 west575 joined #salt
15:16 mikecmpbll joined #salt
15:19 west575_ joined #salt
15:19 Jogfat joined #salt
15:23 edrocks joined #salt
15:24 west575 joined #salt
15:25 corichar joined #salt
15:30 dendazen Guys i have this state
15:30 dendazen https://gist.github.com/anonymous/46e991c8421691fc4e8b0bbbcfb0af01
15:30 dendazen and i get an error
15:31 abednarik joined #salt
15:31 dendazen https://gist.github.com/anonymous/11591e977d2709a01596c27be741aaca
15:31 tapoxi joined #salt
15:31 gtmanfred dendazen: you shouldn't need the x
15:31 dendazen can someone take a look?
15:32 gtmanfred in the tar_options
15:32 gtmanfred i think that is just for the extra ones like z or J
15:32 dendazen oh only z?
15:32 dendazen ok.
15:32 dendazen let me try
15:33 gtmanfred yeah, looking at the examples, you just have to add the extra options, it is extracting so it knows to use x
15:34 _JZ_ joined #salt
15:35 dendazen Thank you.
15:35 dendazen I will try
15:39 eliasp joined #salt
15:40 Rumbles joined #salt
15:40 gtmanfred yeah, i think that is the problem, cause it looks like it cant' find the .tar file, which would make sense if it is trying to extract, and the xxz is run, and tar fails, then it wouldn't extract and that wouldn't exist
15:41 dendazen changed just to z and still same error
15:42 impi joined #salt
15:46 kawa2014 joined #salt
15:46 Aleks3Y joined #salt
15:51 eliasp_ joined #salt
15:56 drawsmcgraw left #salt
16:04 SheetiS joined #salt
16:04 gladiatr joined #salt
16:10 west575_ joined #salt
16:18 user098741 joined #salt
16:18 adeschamps joined #salt
16:21 onlyanegg joined #salt
16:21 writtenoff joined #salt
16:26 woodtablet joined #salt
16:27 inad922 joined #salt
16:30 aasirc joined #salt
16:33 nidr0x joined #salt
16:36 Edgan joined #salt
16:36 om2 joined #salt
16:43 Edgan joined #salt
16:45 om2 joined #salt
16:48 kawa2014 joined #salt
16:49 abednarik joined #salt
16:51 eliasp joined #salt
16:54 LotR joined #salt
16:57 ageorgop joined #salt
17:01 haaj joined #salt
17:01 whitenoise joined #salt
17:05 punkoivan joined #salt
17:06 punkoivan joined #salt
17:06 edrocks joined #salt
17:06 edrocks joined #salt
17:06 punkoivan joined #salt
17:07 dendazen guys why do i get this eror
17:07 dendazen https://gist.github.com/anonymous/43665c3deb760d6fd2c5bd8622a07112
17:07 dendazen ID '/server/core/download' in SLS 'environments.nextgen.configurations' contains multiple state declarations of the same type
17:08 ronnix joined #salt
17:08 punkoivan joined #salt
17:11 Bryson joined #salt
17:13 vodik if i have something that retreives configuration (config.get), does that piece of config have to live in the minion's config file? or can it be on the master's config file?
17:13 vodik i'm having trouble with the later, but things i'm reading online aren't exactly super clear on this
17:15 mikecmpbll joined #salt
17:19 s_kunk joined #salt
17:36 Ayo joined #salt
17:38 punkoivan left #salt
17:40 west575 joined #salt
17:41 impi joined #salt
17:43 cableninja joined #salt
17:46 cableninja Anyone have any suggestions for an alternative to gitfs? I'm having a hell of a time getting it working. We have 2 locations, and want to keep both masters in sync. The original idea was gitfs, but we've been unable to get it working
17:48 lero joined #salt
17:51 LtLefse I tried using svnfs (yeah yeah I'm old) but ran into too many bugs. Now I just use a plain file backend that gets updated by an svn postcommit hook.
17:51 LtLefse not elegant but it works
17:53 brew joined #salt
17:53 cableninja LtLefse, so basically you use gitfs (just not git), but manually?
17:54 LtLefse I use subversion, but Salt doesn't know about it, Salt just sees files
17:55 cableninja right
17:55 cableninja (thus the manual bit) :)
17:55 LtLefse right
17:55 cableninja sounds like thats what we'll end up doin then :s
17:55 cableninja gitfs makes me want to punch things in the face
17:57 west575_ joined #salt
18:04 ageorgop joined #salt
18:05 Vinod_ joined #salt
18:05 Vinod_ Hi salt
18:05 Vinod_ anyone here?
18:05 winsalt joined #salt
18:06 babilen Vinod_: Not sure
18:06 winsalt hey all, does anyone know if you can add a timeout value to orchestration commands, like you can on the command line
18:07 Vinod_ I want to submit my salt formula to github
18:07 babilen winsalt: https://docs.saltstack.com/en/latest/ref/configuration/master.html#timeout could be used I guess
18:07 Vinod_ can anyone suggets me steps for that?
18:07 babilen Vinod_: The best approach is to write a mail to the salt-users mailing list. Somebody will then fork your repository.
18:08 babilen What kind of formula is it?
18:08 cableninja Strange, I just saw salt doing a gitfs update, but I still cant salt '*' state.apply test.saltfs
18:10 babilen cableninja: What does that do?
18:10 cableninja No matching sls found for 'test.saltfs' in env 'base'
18:11 babilen But you have test/saltfs.sls or test/saltfs/init.sls in your GitFS repo and you already ran "salt-run fileserver.update" ?
18:11 cableninja but I was watching salt-master in debug, and saw this: http://pastie.org/10884375
18:12 cableninja salt-run fileserver.update threw a bunch of exceptions just now
18:12 cableninja test/saltfs.sls is in the repo, and it also has a top file in it
18:13 cableninja http://pastie.org/10884376
18:13 cableninja state.apply still fails
18:15 Joe630 If I'm using winrm for windows installs, is smb still needed?
18:15 cableninja afaik thats how salt talks to the windows fs
18:16 punkoivan joined #salt
18:16 punkoivan left #salt
18:16 babilen cableninja: I guess we'd also have to see your config. I am using gitpython and never had a problem. Couple of people ran into issues with pygit2, but that should work also AFAIK
18:16 babilen You might want to drop caches and restart the master
18:18 fracklen joined #salt
18:21 woodtablet I have read the best practices, but still have questions. I have a few large groups of machines (20-50) and lots of individual snow flakes 250-300 machines that still use many of same defaults for ssh and ldap, so I am looking for some recommendations for my top.sls states and pillars. I having a touch time thinking of a way of having default settings pillar and these other groups / snow flakes because i cant merge pillars. Suggestions ?
18:22 Joe630 joined #salt
18:22 woodtablet s/touch/tough/
18:23 georgemarshall joined #salt
18:23 debian112 joined #salt
18:24 west575 joined #salt
18:26 woodtablet bascially i would want a way for the groups or snowflakes an easy way to override the default pillar settings
18:28 babilen woodtablet: Why can't you merge pillars?
18:29 babilen https://docs.saltstack.com/en/latest/ref/configuration/master.html#pillar-source-merging-strategy
18:30 woodtablet babilen: I swore i thought i have used many a saltstack formula, where it says you cant merge pillars, let me click that loveeeelly link
18:32 woodtablet babilen: example https://github.com/saltstack-formulas/iptables-formula
18:32 babilen (also note "merge lists" setting)
18:32 babilen well ..
18:33 babilen That statement might have been true in the past, but it definitely isn't anymore
18:33 woodtablet ahhh, i see
18:33 woodtablet good to know, reading your link with excitement
18:34 woodtablet babilen: Thanks, I think I can do this now!!
18:35 nidr0x joined #salt
18:36 babilen cool :)
18:36 woodtablet babilen: I can use overwrite and !aggregate I think to do what i want to do,  will need to play with it to get a good grasp of the behavior and if i can intermix the 2
18:37 Brew joined #salt
18:38 toanju joined #salt
18:39 babilen woodtablet: There's also pillarstack and many other external pillars that might help you: https://docs.saltstack.com/en/latest/ref/pillar/all/ -- You can also write them in Python yourself which might help if you are familiar with that. Just implement run() and return whatever dict you deem appropriate.
18:39 babilen But with pillar merging + list merging enabled you typically get pretty far.
18:42 robbintt_ joined #salt
18:43 woodtablet babilen: i am very familiar with python. How do I run() it ? I want to start testing this behavior.. I guess I could make a salt state that just prints the pillar items, or is there a better way ?
18:44 ageorgop joined #salt
18:45 cableninja babilen, I'm using gitpython, what part of the config do you need to see? the whole salt-master or ?
18:45 cableninja sorry, multitasking is not my forte today
18:46 jesusaur joined #salt
18:47 druonysus joined #salt
18:47 robbintt joined #salt
18:48 Joe630 joined #salt
18:49 Joe630 cableninja: winrm takes over if you use it, I think?
18:49 babilen woodtablet: You essentially just define foo.sls in your pillar file_roots, then start with "#!py" and implement "def run()" in it. You return a dictionary from it that will be a treated as a pillar. You have access to __grains__ and __opts__ and so on (see https://docs.saltstack.com/en/latest/topics/development/dunder_dictionaries.html) in *function scope*
18:50 babilen woodtablet: You can't reference __grains__ in module scope as it will be monkey patched after it has been imported.
18:50 babilen (and other dunder dicts)
18:51 babilen woodtablet: https://docs.saltstack.com/en/latest/ref/renderers/ has more on renderers (py is just one)
18:52 woodtablet babilen: hmm ok i ll start reading and playing, thanks babilen
18:53 babilen Have fun :)
18:55 CeBe joined #salt
18:55 deniszh joined #salt
18:57 salt_nasty joined #salt
18:58 lorengordon joined #salt
18:58 salt_nasty hey all - quick question i'm having trouble finding an answer to (i'm not 100% sure how to word it, and am not finding anything w/ google)
18:58 mikecmpbll joined #salt
18:58 salt_nasty how can i run a highstate for all states under a specific file root?
18:59 salt_nasty for example, i have two lines under file_roots, and i want to run all states from line 1, but none from line 2
19:03 salt_nasty joined #salt
19:04 llua using the openssh formula https://github.com/saltstack-formulas/openssh-formula are you able to override the service it starts via pillar?
19:06 Brew joined #salt
19:08 babilen llua: openssh:lookup:service
19:08 llua ah, thanks
19:08 babilen Ah, looks as if it doesn't implement that
19:09 babilen Ah, no it does.
19:09 llua i was trying openssh: { service: ... }
19:09 babilen https://github.com/saltstack-formulas/openssh-formula/blob/master/openssh/map.jinja#L49
19:09 keimlink joined #salt
19:09 babilen llua: The values in the os_map are typically overridden in foo:lookup:entry_in_map_jinja
19:09 babilen It is the "lookup table" (hence the name)
19:10 babilen Some formulas conflate those values that users don't normally want to touch and those that they do, but the common approach is to reserve "foo:lookup" for overriding those platform specific defaults that you rarely want to tinker with
19:12 llua good to know, thanks again
19:12 zero_shane joined #salt
19:19 komputes_ joined #salt
19:21 Muchoz joined #salt
19:24 Muchoz_ joined #salt
19:30 flowstate joined #salt
19:34 mward Good afternoon everyone.  Is there a way to reference the salt state tree within Jinja, i.e. "{% if salt://nagios/files/nrpe.cfg exists %}"?
19:35 mward Here's a pastebin example of what I'm trying to do: http://pastebin.com/w4xMTdib
19:36 mward Oooh, just as I sent that, I caught in the corner of my eye in the docs that you can supply multiple values to "source", and it will fallback to the first one that exists.
19:36 mward Nevermind! :)
19:41 mikecmpbll joined #salt
19:42 SheetiS joined #salt
19:43 SheetiS1 joined #salt
19:45 TyrfingMjolnir joined #salt
19:47 flowstate joined #salt
19:52 DCovello joined #salt
19:54 aharvey joined #salt
19:56 DCovello oes anyone have any experience using the salt event_return_whitelist feature? I have enabled it within my master config with the salt/auth and salt/fileserver/gitfs/update events enabled in conjunction with a custom returner I have written, however my salt-master is still passing all events to my event_returner and not just the whitelisted ones.
19:57 manji joined #salt
19:58 keltim joined #salt
19:58 aharvey https://gist.github.com/adamcharvey/fe83d0d5ce3d63eda88e5f533c7d7cc6 Switching from provider: openstack to driver: nova.  When I kick off salt-cloud -p profile-name host-name it is spamming the living heck out of nova-api and (This openstack issue aside) I am having to stop nova-api on a controller node in the cluster for it to go through.  My question is: Is there a method to slow down the rate of recommunications?  Example of spamminess:
19:58 aharvey https://gist.github.com/adamcharvey/0a015dda33246fdb2bd332cb7962f46d
19:59 salt_nasty is it a bug that i'm not getting pillar values returned from multiple directories listed under pillar_roots?
19:59 salt_nasty my pillar_roots config looks like this: https://gist.github.com/mcruger/cbbcc0b6890f6f790513e2482b410e20
19:59 salt_nasty i only get values returned for whichever directory is listed first, but not both directories
20:00 aharvey and you’ve saltutil.pillar_refresh’d your hosts?
20:00 salt_nasty yes
20:01 salt_nasty i've also restarted salt-master after changing the ordering of the directories
20:01 g4rlic joined #salt
20:01 aharvey kk - obvious question #2 your /etc/salt/master is default?
20:01 salt_nasty the top files seem to be configured correctly as well, since i do get the correct values returned for whichever directory is listed first
20:01 aharvey meaning no entries appropriate to it that may stomp on /etc/salt/master.d/pillar_roots if that’s how you’re setting it up
20:02 aharvey My hunch is your hosts aren’t matching against whatever is in pillar entry #2 but will leave that one open for more seasoned to respond to
20:02 g4rlic quick question: using periods in Salt Pillar key names.  Good idea, bad idea?  It *works* (at least in the version of salt we use), but is it a good idea?
20:03 salt_nasty correct, no entries that should stomp on pillar roots
20:03 g4rlic Given that periods are, in states, a directory separator.
20:04 salt_nasty @aharvey i had the same hunch, until i switched the order of my pillar_root directories, then the minions show the values for what was previously entry #2
20:06 beardedeagle joined #salt
20:07 salt_nasty i have the same setup for file_roots, and it works just fine
20:07 salt_nasty as in, i can run states from either directory listed under the file_root without issue
20:08 edrocks joined #salt
20:08 beardedeagle @jfindlay: is dmurphy accross from you right now?
20:11 buxy joined #salt
20:11 buxy can anyone with an ubuntu minion confirm me that the "osmajorrelease" grain contains a version string like "16.04" ?
20:18 dzzb joined #salt
20:27 dzzb I have a service which needs to be run with a specific environment variable present. The content of this environment variable is sensitive and dynamic, so it will need to be resolved by the Salt master
20:27 dzzb I believe I can do this by writing an external pillar -- but would anyone with SSH access to this server be able to grab this value from the pillar?
20:27 Tanta osrelease: 12.04
20:27 Tanta not sure what 'osmajorrelease' is, my minion doesn't have that grain
20:28 aharvey joined #salt
20:28 DCovello @buxy my 14.04 ubuntu minion does not have 'osmajorrelease' either only 'osrelease' : 14.04
20:29 ageorgop joined #salt
20:30 hasues joined #salt
20:30 hasues left #salt
20:31 mohae_ joined #salt
20:35 zmalone joined #salt
20:39 onlyanegg joined #salt
20:39 zero_shane @buxy - I don't have "osmajorrelease" in my ubuntu 16.04 minion either - I do have the following: https://gist.github.com/anonymous/b2829b131024c8a3983783f4c7d3175f
20:39 buxy Tanta, DCovello, zero_shane: ok thanks
20:41 mward Is it possible to glob match for package names to install?  The obvious doesn't work: e.g. pkg.installed:  - name: nagios-plugins*
20:42 buxy you helped me to fix my PR: https://github.com/saltstack-formulas/salt-formula/pull/234
20:42 saltstackbot [#234][OPEN] Use repo.saltstack.com in salt.pkgrepo for Debian-based distributions | repo.saltstack.com handles all currently supported Debian releases as well...
20:45 Ayo joined #salt
20:47 londo joined #salt
20:48 west575 joined #salt
20:54 deniszh joined #salt
20:57 Brew joined #salt
21:03 Elsmorian joined #salt
21:08 druonysus joined #salt
21:09 om joined #salt
21:09 onlyanegg joined #salt
21:19 woodtablet babilen: you still around ?
21:20 ronp_usa1 joined #salt
21:22 woodtablet anyone familiar with sls files that written in py ?
21:22 Muchoz joined #salt
21:22 woodtablet i mean using the pyrender
21:26 skinnejo joined #salt
21:26 hasues joined #salt
21:27 rsys joined #salt
21:30 bantone is there something in salt that is the opposite of require for a package
21:31 bantone essentially I want to check if a package was installed on my minions, and if so I want to remove it
21:31 bantone trying to remove a secondary package manager that is on some loadbalancer servers
21:31 g4rlic left #salt
21:32 bantone oh pkg.remove
21:32 woodtablet bantone: purged
21:32 bantone *pkg.removed
21:32 bantone pkg.purged ?
21:33 zero_shane @bantone - https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.purged
21:33 woodtablet looks to be very similar, purged and removed
21:33 woodtablet bantone: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html
21:34 zero_shane in the context of Ubuntu based distro - "remove" deletes the package(s), but does not nuke any associated configuration information/directories/files
21:34 bantone great
21:34 zero_shane while "purge" removes the package and deletes associated information related to configuration, etc. of the package
21:35 bantone probably needs to purge it
21:35 mikecmpbll joined #salt
21:35 zero_shane note that a purge operation can fail, if there are non package maintained files or directories in directories managed by the package
21:36 bantone you don't have an example do you
21:36 bantone ah gotcha
21:36 bantone just proposing some ideas
21:44 Joe630 When I'm launching windows instances with salt-cloud, it's hitting via SMB.  I have winrm configured.  Is this a normal error?
21:45 Joe630 [DEBUG   ] Exception: SMB SessionError: STATUS_NO_SUCH_FILE({File Not Found} The file %hs does not exist.)
21:45 eliasp joined #salt
21:57 nidr0x joined #salt
21:58 aharvey joined #salt
21:59 lero joined #salt
22:04 abednarik joined #salt
22:10 onlyanegg joined #salt
22:12 neogenix joined #salt
22:12 neogenix Hello! I would like to use a grain, within a custom grain. Anyone have any good patterns for doing so?
22:13 neogenix I've managed to create a pretty spectacular recursion :)
22:15 Muchoz_ joined #salt
22:17 sjmh joined #salt
22:18 MindDrive joined #salt
22:20 zmalone left #salt
22:24 amcorreia joined #salt
22:31 onlyanegg joined #salt
22:36 zenlot6 joined #salt
22:36 fannet_ joined #salt
22:40 om joined #salt
22:42 cableninja neogenix, can you elaborate? you can simply reference your custom grain in your SLS
22:42 cyborg-one joined #salt
22:44 Sammichmaker joined #salt
22:50 neogenix cableninja: I'd like to refer to grains.get manufacturer in another grain, to make some logic choices about setting another grain.
22:51 isntall joined #salt
22:51 isntall joined #salt
22:51 keimlink joined #salt
22:51 sarlalian joined #salt
22:53 hasues left #salt
22:58 Brew joined #salt
23:02 p3rror joined #salt
23:03 aharvey joined #salt
23:06 mackripeum joined #salt
23:07 skinnejo joined #salt
23:07 mikecmpbll joined #salt
23:09 woodtablet babilen: nevermind, figured it out.. I didnt realize the py render example didnt work out of the box. so i was thinking i did something else wrong
23:12 Edgan joined #salt
23:24 teryx510 joined #salt
23:31 Qwazerty joined #salt
23:34 Qwazerty joined #salt
23:35 Qwazerty joined #salt
23:36 Qwazerty joined #salt
23:37 Qwazerty joined #salt
23:49 amcorreia joined #salt
23:52 SheetiS joined #salt
23:53 repl1cant so, is the tcp transport available to use? I can'
23:54 repl1cant t seem to find any doc's on it
23:57 Joe630 what's the divverence between "provider" and "driver" outside of spelling?  If I do this: "Please convert your cloud provider configuration files to use 'driver'." what else do I need to fix?
23:58 p3rror joined #salt

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