Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-09-18

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

All times shown according to UTC.

Time Nick Message
00:03 mike25de gettting out of banks is always good
00:03 mike25de working there is stressful
00:03 mike25de find the balance :)
00:10 omie888777 joined #salt
00:17 cyborg-one joined #salt
00:20 onlyanegg joined #salt
00:22 tiwula joined #salt
00:23 GMAzrael joined #salt
00:35 justan0theruser joined #salt
00:39 omie888777 joined #salt
00:48 swa_work joined #salt
00:52 JawnAuz When setting a schedule from master.d/schedule.conf do I need to use something other than state.sls with an arg: [name_of_state]? Doesn't seem to be running and not sure how to check for schedules from the master.
00:54 JawnAuz https://gist.github.com/anonymous/b262d9581239cdd8cb8c808d0f6272a9
00:57 GMAzrael joined #salt
00:57 brent_ joined #salt
01:21 Shirkdog joined #salt
01:29 Zachary_DuBois joined #salt
01:30 k_sze left #salt
01:32 k_sze[work] joined #salt
01:54 ilbot3 joined #salt
01:54 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.7, 2017.7.1 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers
01:56 XenophonF JawnAuz: what version of Salt are you running?
01:56 XenophonF There was a bug related to this fixed in 2016.3.
01:57 XenophonF I assume you restarted the master to apply the schedule.
01:57 XenophonF OH
01:58 GMAzrael joined #salt
01:58 XenophonF You're running the schedule on the master.
01:59 XenophonF So you have to use the state runner.
02:00 XenophonF state runner module, I mean
02:00 XenophonF https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.state.html
02:00 XenophonF there is no sls function there.
02:06 packeteer joined #salt
02:13 dxiri joined #salt
02:45 JPT joined #salt
02:47 evle joined #salt
03:00 rickflare joined #salt
03:07 choke joined #salt
03:15 choke joined #salt
03:26 zerocoolback joined #salt
03:27 jesusaur joined #salt
03:42 GMAzrael joined #salt
03:46 justanotherus3r joined #salt
03:47 justan0theruser joined #salt
04:04 GMAzrael joined #salt
04:18 justanotheruser joined #salt
04:19 justanotheruser joined #salt
04:25 beardedeagle joined #salt
04:28 DanyC joined #salt
05:05 GMAzrael joined #salt
05:34 omie88877777 joined #salt
05:42 Guest73 joined #salt
06:01 colttt joined #salt
06:08 jas02 joined #salt
06:14 do3meli joined #salt
06:14 do3meli left #salt
06:15 eseyman joined #salt
06:22 DanyC joined #salt
06:23 golodhrim|work joined #salt
06:24 gnomethrower joined #salt
06:34 felskrone joined #salt
06:36 zerocoolback joined #salt
06:45 OliverUK joined #salt
06:47 OliverUK joined #salt
06:48 OliverUK joined #salt
06:49 OliverUK joined #salt
06:51 felskrone1 joined #salt
07:04 zulutango joined #salt
07:06 Guest73 joined #salt
07:07 GMAzrael joined #salt
07:09 mbologna joined #salt
07:10 johnj joined #salt
07:13 rgrundstrom joined #salt
07:13 rgrundstrom Good morning
07:13 aldevar joined #salt
07:16 Ricardo1000 joined #salt
07:19 toanju joined #salt
07:22 zerocoolback joined #salt
07:22 darioleidi joined #salt
07:26 robman joined #salt
07:27 AvengerMoJo joined #salt
07:29 zerocoolback joined #salt
07:30 OliverUK joined #salt
07:32 OliverUK joined #salt
07:36 AvengerMoJo joined #salt
07:39 yuhl joined #salt
07:39 Guest73 joined #salt
07:40 toanju joined #salt
07:45 Arendtsen joined #salt
07:46 rawzone joined #salt
07:50 DanyC joined #salt
07:51 _KaszpiR_ joined #salt
07:58 DanyC joined #salt
07:59 DanyC joined #salt
08:00 harisokanovic|cl joined #salt
08:00 harisokanovic|cl joined #salt
08:07 GMAzrael joined #salt
08:09 bdrung_work joined #salt
08:11 Hybrid joined #salt
08:11 johnj joined #salt
08:12 pbandark joined #salt
08:12 zerocoolback joined #salt
08:12 zerocoolback joined #salt
08:16 permalac joined #salt
08:30 Hybrid joined #salt
08:32 permalac joined #salt
08:33 Mattch joined #salt
08:54 hoonetorg joined #salt
08:59 citaret joined #salt
09:01 citaret Is salt-cloud capable of creating instance of amazon lightsail?
09:08 GMAzrael joined #salt
09:10 johnj joined #salt
09:19 toanju joined #salt
09:25 tsmc joined #salt
09:26 mikecmpbll joined #salt
09:39 JohnnyRun joined #salt
09:40 zerocool_ joined #salt
09:45 sjorge joined #salt
10:00 harisokanovic|cl joined #salt
10:02 JohnnyRun joined #salt
10:09 GMAzrael joined #salt
10:11 johnj joined #salt
10:15 jhauser joined #salt
10:38 jor joined #salt
10:39 klaas joined #salt
10:40 toofoo[m] joined #salt
10:40 pbandark1 joined #salt
10:42 whyzgeek joined #salt
10:42 nledez joined #salt
10:42 nledez joined #salt
10:45 harisokanovic|cl joined #salt
10:53 gmoro joined #salt
11:03 harisokanovic|cl joined #salt
11:11 GMAzrael joined #salt
11:12 johnj joined #salt
11:13 defsdoor joined #salt
11:14 defsdoor hi - it is possible to create a user with a locked password using users/users formula ?
11:17 felskrone joined #salt
11:18 felskrone joined #salt
11:21 GMAzrael joined #salt
11:23 jas02 joined #salt
11:35 ecdhe joined #salt
11:50 megamaced joined #salt
11:53 Hybrid joined #salt
11:55 aldevar left #salt
11:57 GMAzrael joined #salt
12:00 ahrs joined #salt
12:01 rawzone^ joined #salt
12:06 GMAzrael joined #salt
12:10 onlyanegg joined #salt
12:10 Nahual joined #salt
12:12 JohnnyRun joined #salt
12:12 JohnnyRun joined #salt
12:13 johnj joined #salt
12:16 pualj joined #salt
12:16 marwel should be possible, depends on the lock, on freebsd i just needed to put the locked password in quotation chars
12:18 marwel btw, did anyone try to use salt-ssh with the salt-formula to install a salt-minion?
12:18 marwel i just get jinja map errors thrown at me
12:18 marwel when i try to apply the state with an already installed minion, it works fine
12:27 ikarpov joined #salt
12:27 honestly the cmd state docs say that instead of cmd.watch you should use cmd.run with onchange, and in cmd.run it says "use cmd.wait if you want to use the watch requisite". uh, what?
12:27 honestly https://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html#salt.states.cmd.run
12:29 honestly I guess https://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html#should-i-use-cmd-run-or-cmd-wait clarifies it, kinda
12:33 rawzone joined #salt
12:35 cwright joined #salt
12:42 toanju joined #salt
12:44 justanotheruser joined #salt
12:53 evle1 joined #salt
12:56 gh34 joined #salt
13:06 shoemonkey joined #salt
13:14 johnj joined #salt
13:15 ssplatt joined #salt
13:17 numkem joined #salt
13:40 XenophonF Does anyone know the difference between selinux.fcontext_policy_applied and selinux.fcontext_policy_present?
13:40 XenophonF https://docs.saltstack.com/en/latest/ref/states/all/salt.states.selinux.html
13:41 XenophonF do I need to call fcontext_policy_applied after running an fcontext_policy_present state?
13:44 alvinstarr joined #salt
13:45 Hybrid1 joined #salt
13:48 mchlumsky joined #salt
13:55 mchlumsky joined #salt
14:04 csmule joined #salt
14:04 squishypebble joined #salt
14:05 dxiri joined #salt
14:08 Hybrid joined #salt
14:12 kait joined #salt
14:13 cgiroua joined #salt
14:14 Ricardo1000 joined #salt
14:16 johnj joined #salt
14:31 heaje joined #salt
14:38 Hybrid joined #salt
14:46 armin joined #salt
14:46 armin hi. is there an easy way to determine when a highstate ran the last time?
14:46 zerocool_ joined #salt
14:47 Hybrid joined #salt
14:49 Cumulo741 joined #salt
14:56 DanyC joined #salt
14:57 hexa- armin: salt-run jobs.list_jobs
14:58 armin hexa-: am i correct salt-run only exists on a master but not on a minion?
14:58 hexa- correct
14:59 armin hexa-: so on a minion no way to determine if nothing was logged?
14:59 hexa- not sure, logs maybe?
15:01 mikecmpbll what's the recommended way to structure stuff where i have lots of separate states that require something common, like build-essential package ?
15:02 mikecmpbll i've only done requisite states within the state same file before, is it any different if they're in a separate file
15:04 hexa- just include the common state file and use it as you would if it were in the same file
15:04 mikecmpbll ah, include. of course. thanks
15:08 debian112 joined #salt
15:09 tellendil joined #salt
15:09 dev_tea joined #salt
15:09 debian112 left #salt
15:16 GMAzrael joined #salt
15:17 johnj joined #salt
15:18 Shirkdog joined #salt
15:26 choke joined #salt
15:26 Guest73 joined #salt
15:26 schemanic joined #salt
15:38 XenophonF I recommend against using include/extends and cross-SLS dependencies except in special cases.
15:38 XenophonF SLS files should be self-contained, IMO
15:39 cyteen joined #salt
15:40 XenophonF If you're installing stuff in a given SLS that needs build-depends too, use pkg.installed's pkgs kwarg to specify the complete list of required packages
15:41 XenophonF or fix the dependencies in the package you're installing---it should require the build-essential package
15:42 Guest73 joined #salt
15:43 XenophonF I only use include/extend to glue together separate formulas, and then only because I might need to add requisites (e.g., a stage change notification triggering a service restart).
15:43 debian112 joined #salt
15:44 XenophonF s/build-depends/build-essentials/
15:45 tellendil joined #salt
15:47 JawnAuz XenophonF, reply to answer from last night about running Schedule from Master -- Does that mean if I want to run a few states on a schedule, I need to put them into an orchestration structure and run them with state.orchestrate?
15:47 stankmack joined #salt
15:49 sarcasticadmin joined #salt
15:49 tellendil joined #salt
15:49 magz0r joined #salt
15:50 sstodd7532 joined #salt
15:53 DanyC joined #salt
15:57 magnus2 joined #salt
15:57 tiwula joined #salt
15:58 ritz joined #salt
16:00 jas02 joined #salt
16:01 jas02 joined #salt
16:03 dvdmuckle joined #salt
16:10 kswee joined #salt
16:15 XenophonF that's correct
16:15 XenophonF you're executing that schedule inside the salt-master process
16:15 XenophonF so you can only do salt-master-y kinds of things
16:15 XenophonF state.sls is a salt-minion-y kind of thing
16:16 XenophonF you can schedule stuff on minions too, of course
16:16 XenophonF for example - https://github.com/irtnog/salt-states/blob/development/sched/patch.sls
16:17 XenophonF that runs this SLS on the specified schedule - https://github.com/irtnog/salt-states/blob/development/patch-linux.sls
16:18 johnj_ joined #salt
16:18 XenophonF alternatively, I wrote this orchestration that runs the patch-linux SLS from the Salt Master - https://github.com/irtnog/salt-states/blob/development/orch/patch-linux.sls
16:19 XenophonF so if I were scheduling patch installs via the master's scheduler, I'd have it call state.orchestrate with 'patch-linux' as the function argument
16:31 squishypebble joined #salt
16:32 pualj joined #salt
16:37 JawnAuz Thanks! I'll keep that in mind. I initially tried to get my minions to run the schedule via pillar data but the schedules wouldn't sync, even though other pillar data would. I'm using GitFS so I decided to go the Master schedule route to try that. Will continue.
16:37 JawnAuz Will study example and sounds like it should work. :)
16:50 jas02 joined #salt
16:52 jmb13562 joined #salt
16:55 squishypebble joined #salt
16:56 onlyanegg joined #salt
16:59 sjorge joined #salt
17:08 sstodd7532 left #salt
17:08 sstodd7532 joined #salt
17:09 sstodd7532 Is anyone familiar with using the STATES.WIN_PKI Module?
17:09 Edgan joined #salt
17:10 asyncsec joined #salt
17:10 whytewolf just ask the question, don't ask if someone knows. if someone knows they will answer. even if they don't know the module before you ask
17:10 armyriad joined #salt
17:12 sstodd7532 I am trying to use it to import a certificate for a domain controller but it fails with the message "The specified network password is not correct." It does not appear to be passing in the password to the powershell commands and I am wondering if anyone has seen this or knows a way to get it working? Or is this an issue I should take to the SaltStack github page?
17:13 icebal joined #salt
17:18 asyncsec joined #salt
17:19 johnj_ joined #salt
17:22 wavded joined #salt
17:22 XenophonF oh there's a states.win_pki??!!
17:22 XenophonF hang on sstodd7532 I'm looking at that right now
17:22 jas02 joined #salt
17:23 sstodd7532 Thanks. I thought that it was working in the state that I wrote a few months ago, but trying to run it recently its not working.
17:28 sstodd7532_ joined #salt
17:29 XenophonF hm, the PowerShell code looks good from here
17:29 swills_ joined #salt
17:29 XenophonF Can you post the actual error return or scrubbed debug logs to gist.github.com or something?
17:29 sstodd7532_ Looking into the debug, I got the powershell code, and I dont see it passing in the password for the certificate
17:30 sstodd7532_ I will get tehm posted one sec
17:30 XenophonF It happens here - https://github.com/saltstack/salt/blob/v2017.7.1/salt/modules/win_pki.py#L291
17:31 XenophonF assuming you are running 2017.7.1
17:32 cyborg-one joined #salt
17:32 sstodd7532_ xenophonF we have a blocker in our network so we are still running 2016.11.5
17:34 sstodd7532_ https://gist.github.com/sstodd7532/ff1eff3999133fa7c3a46e803ce75f8b
17:34 swa_work joined #salt
17:41 ahrs joined #salt
17:43 asyncsec joined #salt
17:43 DammitJim joined #salt
17:43 DammitJim1 joined #salt
17:44 csmule Is there a way to identify the file a formula is executing from?  My generic state.apply is applying a formula and no clue how it's even being called. :)
17:46 impi joined #salt
17:47 jas02 joined #salt
17:48 sstodd7532_ XenophonF: this is the link to the line of code that we are running currently. https://github.com/saltstack/salt/blob/2016.11/salt/modules/win_pki.py#L210
17:49 sstodd7532_ It looks like it should be appending the password but I dont see it in the debug output
17:50 csmule Is it possible for a minion to cache a formula?  I have no formulas for this minion but I keep seeing it try to execute a formula I use to have.
17:52 whytewolf csmule: first check your top on the minion
17:52 whytewolf second are you using gitfs?
17:52 csmule whytewolf: I am using gitfs but more just experimental for a couple modules.
17:53 XenophonF sstodd7532_: that's inside get_cert_file, which calls the X509Certificate2 constructor at that location
17:53 jhauser joined #salt
17:53 whytewolf csmule: state.show_top
17:54 XenophonF sstodd7532_: specifically, this version of the constructor - https://msdn.microsoft.com/en-us/library/ms148424(v=vs.110).aspx
17:54 csmule Ah! That's helpful whytewolf.  That's giving me a lead! thank you.
17:55 XenophonF oh what a sec - it's calling the Import method instead
17:55 XenophonF hang on let me rtfm
17:56 XenophonF so this is the method it's calling - https://msdn.microsoft.com/en-us/library/ms148442(v=vs.110).aspx
17:57 sstodd7532_ xenophonF: As I am looking over the code that I linked to, I dont think that its actually running the code that should append the password. If it did would we have not seen it in the output that I pasted in the gist? I think that its failing on the if statement and running the else statement instead which does nothing with a password.
17:57 XenophonF sstodd7532_: are you sure you specified the password?
17:58 XenophonF maybe run state.show_sls <SLS-ID> on that minion, make sure the state definition's being parsed correctly
17:59 XenophonF you might want to strip out any special characters in the password, too
17:59 sstodd7532_ I guess there could be an issue in the state that I wrote to import the cert, but I am able to run a pillar.get on the server and it returns the password correctly
17:59 XenophonF or escape it with |yaml_encode
17:59 XenophonF _definitely_ escape it with |yaml_encode then
18:00 XenophonF so in the state def, do something like `- password: {{ salt.pillar.get('pkcs12key')|yaml_encode }}
18:00 XenophonF `
18:00 XenophonF show_sls will print out the state data structure after all processing
18:01 sjorge joined #salt
18:01 XenophonF and you're importing a PKCS#12 file, right?
18:01 sstodd7532_ yes
18:01 XenophonF so did you set cert_format to 'pfx'?
18:01 sstodd7532_ yep
18:02 csmule_ joined #salt
18:03 lazybear joined #salt
18:06 XenophonF hm
18:06 XenophonF well i got nothing then
18:06 XenophonF i'd double check the output of show_top just in case
18:06 XenophonF maybe upgrade to 2017.7 if you can and try again
18:07 XenophonF but other than than, maybe open a new issue on github
18:07 sstodd7532_ I am trying the yaml_encode and will let you know. I have to wait for my pull request to get approved by my admins
18:07 _KaszpiR_ joined #salt
18:09 peke joined #salt
18:15 wavded joined #salt
18:20 johnj_ joined #salt
18:22 XenophonF you could run state.single from the command line to test it that way, too
18:22 ikarpov_ joined #salt
18:22 XenophonF that'd bypass the Pillar key lookup
18:22 noraatepernos joined #salt
18:27 asyncsec joined #salt
18:28 JawnAuz So riddle me this: I'm using two different gitfs remotes, one with roots and one without roots defined. Does that affect how salt:// looks for matching files? I thought salt:// would try the first repo, then move onto the next to find matching files?
18:28 whytewolf it should combine them into a single filesystem
18:29 gtmanfred no, it will just look through each remote, and once it finds the file you specify, it will return that one
18:29 doubletwist Ok what am I missing here: http://paste.lopsa.org/217
18:29 doubletwist error is "Too many functions declared in state 'file' in SLS 'my-scripts'
18:29 gtmanfred can you provide the full error?
18:30 gtmanfred in a dpaste or gist please
18:30 whytewolf doubletwist: - clean: true
18:30 gtmanfred bah, :+1:
18:30 doubletwist oops
18:30 gtmanfred good catch whytewolf
18:31 __peke__ joined #salt
18:31 doubletwist yup that did it.
18:31 doubletwist Could have sworn I'd typed that whole line out :)
18:32 sstodd7532_ XenophonF: I just ran the state.show_sls and it looks like its pulling the password correctly but its still failing with the same message as before. Also checked the password, there are no spec chars in it.
18:32 whytewolf easy mistake to make. i know i have missed things several times
18:35 nixjdm joined #salt
18:35 sstodd7532_ XenophonF: this is also before I added the yaml_encode you suggested. I just looked at the state in the cache on the server and it didnt get the updated code.
18:40 cyteen joined #salt
18:41 csmule joined #salt
18:45 ChubYann joined #salt
18:46 GMAzrael joined #salt
18:47 csmule How do I list the salt master formula files? I can't eremmber the dang command. List something...
18:48 whytewolf cp.list_master
18:48 whytewolf really formulas are just sets of states they are not seperate
18:49 csmule whytewolf: I want to see the files pulled in from gitfs.
18:50 whytewolf well there is salt-run fileserver.file_list backend=gitfs
18:50 csmule that's it! thank you again.
18:50 whytewolf sorry i mean backend=git
18:53 noraatepernos joined #salt
18:55 squishypebble joined #salt
18:57 xet7 joined #salt
18:59 evilet joined #salt
19:00 __peke__ joined #salt
19:01 pualj_ joined #salt
19:08 oida_ joined #salt
19:09 pualj_ joined #salt
19:12 Edgan Anyone had the issue with jinja variables coming out u'string', u'string2'? I need a way to de-unicode a jinja variable.
19:13 squishypebble1 joined #salt
19:15 whytewolf str(variable) ???
19:15 whytewolf just a guess
19:16 whytewolf or was that variable|string
19:17 whytewolf in short. recast the unicode object as a string
19:17 hashwagon joined #salt
19:17 Edgan whytewolf: I found mention of {{ pillar.unicode.variable.decode('utf-8') }}, but decode doesn't work on a dict
19:19 Neighbour You could create a custom module that imports salt.utils to_str
19:19 Neighbour (or salt.utils.stringutils.to_str if you're using a very new version of salt)
19:20 whytewolf a dict... of coarse. i have many ways for a list.
19:21 johnj_ joined #salt
19:21 whytewolf map(str,listData)
19:21 whytewolf ect
19:21 Edgan Neighbour: I am using the latest
19:22 Edgan Neighbour: how would I use salt.utils.stringutils.to_str?
19:36 GMAzrael joined #salt
19:39 DanyC joined #salt
19:40 doubletwist I haven't found one, so I'm guessing nobody has a nice, easy formula available for registering hosts to spacewalk?
19:44 whytewolf i don't think their is one. although i think SuSE has some custom modules they wrote for it.
19:44 whytewolf s/their/there
19:44 whytewolf wow wtf was my mind on that one
19:45 gmoro joined #salt
19:47 doubletwist Hrm. Ok. looking into it. Otherwise I'll have to write my own and it will NOT be pretty :0
19:47 doubletwist :)
19:48 bushelofsilicon joined #salt
19:52 GMAzrael joined #salt
19:53 schemanic joined #salt
19:54 jas02 joined #salt
19:57 jas02 joined #salt
20:05 nixjdm joined #salt
20:07 doubletwist is it possible to put something like - /srv/formulas/*   in the master config and ahve it auto read it on start?
20:07 J0hnSteel joined #salt
20:08 cliluw joined #salt
20:17 hashwagon joined #salt
20:17 bushelofsilicon anyone have an example of using state.apply in a module.run state?
20:18 whytewolf ...
20:19 cliluw joined #salt
20:21 asyncsec joined #salt
20:21 ivo_ joined #salt
20:22 johnj_ joined #salt
20:23 ivo_ joined #salt
20:24 bushelofsilicon whytewolf: haha, I think it make sense to do. Unless I should just do it in jinja
20:24 whytewolf in what way does it make sense? there is orchestration or includes for that sort of thing
20:25 jhauser joined #salt
20:28 noraatepernos joined #salt
20:31 bushelofsilicon whytewolf: when I looked at orchestration it didn't seem like what I'm looking for. Event fires from minion which maps to the reactor sls file where the state is applied to another minion
20:32 whytewolf you are looking to run a state.apply with in a state.apply.
20:32 whytewolf that won't work
20:35 bushelofsilicon whytewolf: hmm, well the docs said that reactor sls shouldn't really do anything, so that's why I thought I'd do that
20:36 whytewolf what
20:37 doubletwist how do I reference the salt minionid in a variable? or am I better off using the grain for fqdn?
20:37 whytewolf opts.id
20:38 whytewolf or grains['id']
20:39 whytewolf https://docs.saltstack.com/en/latest/ref/states/vars.html#opts
20:39 sarcasticadmin joined #salt
20:40 felskrone joined #salt
20:40 bushelofsilicon "Rendering Reactor SLS files MUST be simple and quick. The new process started by the worker threads can be long-running"
20:42 whytewolf key word. rendering
20:43 whytewolf rendering is the converting of jinja into a state
20:43 whytewolf [or python into a state]
20:43 whytewolf or any of the rendering engines into a state
20:43 Hybrid joined #salt
20:44 whytewolf also the next sentance ". Using the reactor to fire an orchestrate runner would be ideal."
20:45 doubletwist http://paste.lopsa.org/218    - call works from the command line, but not from a state
20:47 whytewolf doubletwist: salt.runner is only good on a master
20:47 doubletwist ah
20:47 whytewolf [it is an orchestration state]
20:48 doubletwist Guess I need to figure out how that works then :)
20:48 doubletwist I need to  check the spacewalk server to see if the client is registered. If not, then register it. If so [and it returns an ID] I need to verify that the ID listed in /etc/sysconfig/rhn/systemid matches
20:48 whytewolf or salt the minion, [little known fact. you can use orchestration states from a minion on the master]
20:48 wavded joined #salt
20:49 whytewolf s/minion/master
20:49 whytewolf sounds like you want a reactor
20:49 doubletwist quite possibly
20:50 doubletwist I love how I keep running into an issue where the 3rd thing I try to do with any CM requires every complex option available to make it work. Makes the learning curve rather steep :)
20:50 y0t3ht joined #salt
20:51 whytewolf oh I'm not saying you can't do it with other things. just that a reactor might make it better.
20:51 bushelofsilicon whytewolf: ah, so if I want to run another sls I need to do it through orchestration, or I should just put what I need in the reactor sls
20:52 whytewolf bushelofsilicon: yes. i perfer orchestration as it lets me build complex chains. [even if they hit the same server]
20:54 whytewolf lunch time
20:57 bushelofsilicon doubletwist: I know what you mean
20:58 swills joined #salt
20:58 swills joined #salt
20:59 noraatepernos joined #salt
21:02 squishypebble joined #salt
21:04 csmule_ joined #salt
21:05 Hybrid joined #salt
21:15 doubletwist So the reactor doc says "Ractor SLS files are stored in the same location as State SLS files" - does this mean I should include a spacewalk specific reactor in /srv/formulas/spacewalkclient-formula/spacewalk-client/reactor/init.sls ?
21:15 doubletwist or that I should have something like /srv/reactors/spacewalk-client set as one of the file_roots?
21:21 asyncsec joined #salt
21:22 nixjdm joined #salt
21:23 onlyanegg joined #salt
21:23 johnj_ joined #salt
21:25 shanth joined #salt
21:30 doubletwist Not think I get how to call the reactor. But I'm not sure I understand how I can do this logic in a reactor sls file
21:32 doubletwist the logic being, I need to use the spacewalk api to query spacewalk system.getId. If the ID exists and matches what's in /etc/sysconfig/rhn/systemid - then don't do anything.
21:33 doubletwist If it exists and doesn't match systemid, then force a reregistration. And if the ID doesn't exist at all, just register it
21:36 shanth has anyone gotten salt to work with a windows minion? i cant for the life of me get it to run a pkg refresh salt -G 'os:windows' pkg.refresh_db it just returns all 0's
21:37 shanth i set this in my master winrepo_dir: '/usr/local/etc/salt/states/win/repo' and i downloaded the repo salt-run winrepo.update_git_repos - why is nothing happening when i try to refresh db?
21:38 doubletwist Or would I basically have to do this in python?
21:42 doubletwist or I guess a simpler Q is - how do I make use of data returned by a state [such as salt.runner spacewalk.api]?
21:42 ivo_ joined #salt
21:45 jhauser joined #salt
21:51 doubletwist Guess it's not so simple a q :)
21:53 ivo_ joined #salt
21:57 Guest73 joined #salt
21:57 onlyanegg joined #salt
22:20 nixjdm joined #salt
22:22 tkojames joined #salt
22:24 johnj_ joined #salt
22:24 WesleyTech joined #salt
22:25 tkojames So I  run salt test.version on my master and get back minion versions the problem is I run the commmand salt-minion --version on the minion itself and I get different version number for the salt minion. Any ideas why this occuring? Maybe salt is not updating something when I re run the commands? Thanks!
22:31 jhauser joined #salt
22:43 mikecmpbll joined #salt
22:48 jhauser joined #salt
22:59 tiwula joined #salt
23:01 icebal joined #salt
23:14 Bryson joined #salt
23:20 mechleg tkojames: i can think of two things that first come to mind: either you updated the salt-minion at some point and have not restarted into the new process yet, or the salt-minions that are currently running are using a salt-minion binary that is not in your default $PATH.
23:21 nixjdm joined #salt
23:24 noraatepernos joined #salt
23:25 johnj_ joined #salt
23:40 tkojames mechleg super helpful thank you!
23:49 satishwin joined #salt
23:52 dyllie joined #salt
23:56 dyllie_ joined #salt

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