Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-09-05

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

All times shown according to UTC.

Time Nick Message
00:18 armyriad joined #salt
00:34 Nahual joined #salt
00:44 XenophonF MTecknology: i'd love to get updated salt pkgs for the raspberry pi
00:45 west575_ joined #salt
00:46 iggy XenophonF: http://repo.saltstack.com/#raspbian isn't new enough?
00:46 kus joined #salt
00:46 XenophonF holy crapy
00:47 XenophonF wget -O - https://repo.saltstack.com/apt/debian/8/armhf/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
00:47 XenophonF whoops wrong window
00:47 XenophonF i had no idea
00:47 iggy it was announced on the salt-announce list a while back
00:48 iggy (which is super low traffic and worth subscribing)
00:48 XenophonF subscribing now
00:53 John_Kang joined #salt
00:57 edrocks joined #salt
01:02 MTecknology oh, shiny!
01:13 esharpmajor joined #salt
01:16 onlyanegg joined #salt
01:17 badon joined #salt
01:19 cyborg-one joined #salt
01:19 agentnoel joined #salt
01:24 catpigger joined #salt
01:28 qman__ joined #salt
01:29 MTecknology the mighty powerful raspberry pi... start installing salt-minion, walk away, make food, fix my clock, come back... still installing
01:31 ronrib joined #salt
01:35 Vaelatern Which pi?
01:35 Vaelatern The single cored one?
01:39 MTecknology yup
01:39 MTecknology it's the 2B+ ... I think
01:39 whitenoise joined #salt
01:40 DEger joined #salt
01:40 Vaelatern Oh that one, yeah. Got one of the B+ses, the one just after they started condoning overclocking
01:40 Vaelatern Served owncloud off of it, running on Funtoo
01:41 MTecknology I'm trying to set it up as a backdoor device into my network
01:46 MTecknology http://p.lustfield.net/net_overview.svg -- the rpi will fill the "OOB Mgmt" role
01:46 MTecknology vzw->verizonwireless
01:46 DEger_ joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.8.12, 2016.3.3 | 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:54 sp0097 joined #salt
01:55 chutzpah joined #salt
02:00 ZachLanich joined #salt
02:02 sjmh joined #salt
02:11 bastiand1 joined #salt
02:18 fannet joined #salt
02:19 sp0097 joined #salt
02:23 fconcklin joined #salt
02:26 nicksloan joined #salt
02:31 DEger joined #salt
02:34 pipamc joined #salt
02:35 swa_work joined #salt
02:37 ninjada joined #salt
02:46 mikea MTecknology I've got a minion setup on my rpi also
02:46 mikea it's a 2+
02:47 MTecknology what are you using it for?
02:47 mikea I have a temperature probe on it in my garage
02:47 mikea so I know when it's too damn hot to 3d print
02:48 mikea which is basically all summer
02:48 mikea https://io.adafruit.com/mikeadamz/rpi
02:50 evle joined #salt
02:53 _beardedeagle joined #salt
02:56 beardedeagle joined #salt
03:03 schemanic_ joined #salt
03:03 schemanic_ hi
03:03 schemanic_ I'm having a hard time with the users salt formula
03:04 schemanic_ I keep getting     Data failed to compile:
03:04 schemanic_ ----------
03:04 schemanic_ Rendering SLS 'base:users' failed: Jinja variable 'None' has no attribute 'items'
03:04 schemanic_ I'm fairly certain that my pillar is set up properly and refreshed
03:15 schemanic joined #salt
03:17 schemanic Anyone awake?
03:22 onlyanegg joined #salt
03:24 iggy schemanic: gist the pillar output
03:25 schemanic_ sure thing iggy. hang tight
03:27 schemanic_ https://gist.github.com/anonymous/984ba8d41d329092ade5510b6e04cda7
03:28 iggy I meant the output from pillar.get
03:28 schemanic_ sorry, I'm a bit green still. is that on the master or the minion?
03:29 iggy omg... so much jinja
03:29 iggy schemanic: on the minion run `salt-call pillar.get users`
03:30 schemanic_ I should point out that when I do a minimal user config with just the fullname it seems to work
03:31 iggy and can you gist more of the error? I feel like there should be a little more context about what's failing
03:32 systo joined #salt
03:32 schemanic_ iggy, that was the error I got on the master
03:32 iggy oh
03:33 iggy in that case, on the minion, `salt-call -l debug state.sls users` will give you more info
03:35 schemanic_ iggy, here's the pillar output from the minion
03:35 schemanic_ https://gist.github.com/anonymous/0935bebef74c1c8b87daafaa06a93fa0
03:37 iggy can you do the other command too? I think it'll tell us where things are going wrong
03:37 schemanic_ I did actually. It seems there are files it cant find. perhaps a pathing issue wit my formula. let me gist that now
03:38 schemanic_ https://gist.github.com/anonymous/5c02f8e94b07f07ae0c6f76c91626853
03:38 iggy the formula's definitely like being at the top level
03:39 iggy hmm, possibly somewhere in map.jinja, let me look at the code
03:40 schemanic_ my /etc/salt/master has this in it:
03:40 schemanic_ file_roots:
03:40 schemanic_ base:
03:40 schemanic_ - /srv/salt
03:40 schemanic_ - /srv/formulas
03:41 schemanic_ if I have /srv/formulas/users/init.sls that should work yes? it works that way for the sudoers formula
03:42 iggy yeah, that's right
03:43 justanotheruser joined #salt
03:43 schemanic_ damnit what is it then
03:44 wangofett joined #salt
03:44 schemanic_ I think it might be a problem in my pillar
03:44 schemanic_ when I make the pillar really really simple, it works
03:46 iggy try commenting out the `ssh_known_hosts` line from your pillar
03:46 sjmh joined #salt
03:46 iggy then salt-call saltutil.refresh_pillar and the then state.sls thing again
03:49 schemanic_ That got me farther! It looks like it didn't like having those items without specifics
03:49 schemanic_ however now a bunch of states have failed
03:50 iggy yeah, they aren't checking for None in the jinja (bad practice)
03:50 schemanic_ can you elaborate on what happened?
03:51 schemanic_ you mean to say that the jinja needs to be looking for the lack of a property yes?
03:51 iggy it was trying to loop over something that wasn't iterable
03:52 iggy and the only check is if the key exists in the user (it should check to see if the key exists and is iterable)
03:52 iggy that could be due to the iterable function in jinja being fairly new
03:54 schemanic_ is that .iteritems instead of .items?
03:56 iggy both
03:56 iggy it's trying to call .items() on NoneType
03:56 iggy it would happen either way
03:57 iggy it needs to be changed to see if those keys exist in user and if they are iterable
03:57 iggy but like I said, the iterable test is relatively new
03:57 iggy it should be safe to use now
03:58 iggy the big holdout was  rhel6 which should be losing favor to rhel7
04:00 MTecknology rhel6.. this hip new OS that just won't stop
04:01 schemanic Sigh. Amazon for me
04:04 MTecknology iggy: you happen to know anything about deploying host to host ipsec w/ salt that you're willing to share?
04:05 iggy never done ipsec
04:05 MTecknology how about the same question for ovpn?
04:05 iggy no
04:05 iggy I told you we use tinc
04:05 MTecknology oh, forgot
04:05 iggy and that's not even done by salt (it's done by the provisioning system)
04:07 MTecknology you use tinc the same way I use ovpn; and I don't have salt stick the ovpn keys in place either
04:08 MTecknology tinc looks like it could be easily deployed w/ salt
04:09 * MTecknology hugs iggy :D
04:14 iggy it's super easy
04:15 schemanic joined #salt
04:41 schemanic_ Hey iggy, I never said thanks - I really appreciate the pointer
04:42 iggy it's all working now?
04:45 schemanic_ yeah it is - I've got it all set up. I haven't fixed the methodology problem in the formula, but I've got it properly appending my keys and I've got my users split out according to admins and revoked users, so thats getting me much farther
04:53 MTecknology tinc looks weird to deploy w/ salt
04:59 edrocks joined #salt
05:03 pfc joined #salt
05:04 iggy it's a package and a config file... shouldn't be too hard
05:06 schemanic joined #salt
05:22 om joined #salt
05:29 MTecknology and certs
05:30 MTecknology making tinc work with salt will almost exactly mimic how I distribute backup keys :D
05:38 fconcklin joined #salt
05:40 * MTecknology also has a bit of an odd use case
05:40 justanotheruser joined #salt
05:49 DEger joined #salt
05:54 agentnoel joined #salt
05:54 agentnoel joined #salt
06:04 colttt joined #salt
06:07 ronrib joined #salt
06:12 ttrumm joined #salt
06:16 kojiro joined #salt
06:19 ttrumm_ joined #salt
06:20 fannet joined #salt
06:28 haam3r joined #salt
06:47 sjohnsen joined #salt
06:56 ronnix joined #salt
06:57 fracklen joined #salt
06:59 om joined #salt
07:00 ravenx joined #salt
07:00 ravenx if i have salt in a virtualenv
07:00 ravenx /opt/virtenv/bin/saltminion
07:00 ravenx is it supposed to be run as root
07:00 ravenx or as it's own user
07:00 hvn joined #salt
07:00 hvn joined #salt
07:00 ravenx my guess would be root...right?
07:01 ravenx cuz it needs access to a lot of things on the server
07:01 ravenx grains, os info
07:01 ravenx etc
07:03 DEger joined #salt
07:05 fconcklin joined #salt
07:17 JohnnyRun joined #salt
07:19 dariusjs joined #salt
07:19 fracklen I'm seeing strange behaviour with mine... If two salt operators happen to run 'salt \* mine.update' at about the same time, some of the mine files become corrupted. Is it possible that there's a race condition in the master, handling the mine events?
07:20 Inver joined #salt
07:27 martoss joined #salt
07:29 beardedeagle joined #salt
07:33 auzty joined #salt
07:34 silver310_ joined #salt
07:35 silver310_ Hello, can someone tell me if there are any dependencies for SALT.BEACONS.NETWORK_SETTINGS
07:35 ninjada joined #salt
07:35 silver310_ my minion is unable to load it
07:41 babilen silver310_: Did you take a look at the code and its imports already?
07:42 silver310_ ok so i ran salt-minion in debug mode and found out i need the python module "psutil"
07:42 babilen You also need pyroute2
07:42 babilen (as per the code)
07:42 kbaikov joined #salt
07:43 silver310_ i've installed it, but i still get the same error, also that module is needed for network_stats, i can't see any files for network_settings
07:43 babilen You installed psutil?
07:43 silver310_ yes
07:43 babilen But not pyroute2 ?
07:43 silver310_ i did not see ant ImportError for pyroute2
07:44 babilen Well, did you look at the code for beacons.network_settings already?
07:44 silver310_ there is no such file!
07:44 babilen (no is a perfectly acceptable answer)
07:45 babilen I'm not implying that you should have done it or anything, but I don't want to talk about things you checked out already
07:45 silver310_ i'm looking in /usr/lib/python2.7/dist-packages/salt/beacons
07:45 babilen So you have not?
07:45 silver310_ no
07:45 babilen Good, okay
07:45 fannet joined #salt
07:46 silver310_ according to the salt logs there was an import error for "/usr/lib/python2.7/dist-packages/salt/beacons/network_info.py"
07:46 babilen https://github.com/saltstack/salt/blob/2016.3/salt/beacons/network_settings.py
07:46 babilen That's the code for network_settings and it imports pyroute2 on line 11
07:47 babilen To me it looks as if you don't have that module at all. Which version of salt are you running on your minion? (salt-call --versions-report)
07:47 silver310_ goddamn it my script installed an older version
07:48 babilen Your script?
07:48 silver310_ 2015
07:48 silver310_ just an installation script for minions
07:48 silver310_ sorry for the trouble
07:48 babilen You are aware of salt-bootstrap?
07:48 silver310_ nope
07:49 babilen https://docs.saltstack.com/en/latest/topics/tutorials/salt_bootstrap.html
07:49 silver310_ thanks i'll check it out
07:49 babilen I tend to install individual minions with salt-ssh and the salt-formula .. most boxes are installing salt during their bootstrap procedure though
07:50 babilen Have fun! Don't forget to install pyroute2 if you want to use the network_settings beacon
07:50 silver310_ thanks!
07:57 hvn joined #salt
07:57 hvn joined #salt
07:59 ttrumm joined #salt
08:03 kbaikov joined #salt
08:06 ttrumm_ joined #salt
08:09 dariusjs joined #salt
08:09 lero joined #salt
08:12 dariusjs joined #salt
08:13 fconcklin joined #salt
08:13 silver310_ on another note, I'm having issues with salts external authentication system, for some reason I can use salt-api with my credentials, but when I run "salt -a pam '*' test.ping" it does not work
08:14 ravenx right now i want to make my laptop at work, (my work's laptop and network) as a master
08:14 armyriad joined #salt
08:15 ravenx i've a feeling that if i make the /etc/salt/minion config:
08:15 ravenx master:  domainip
08:15 ravenx then that means all laptops and computers on my work network would have the ability to accept the keys, no?
08:15 armyriad joined #salt
08:16 kojiro joined #salt
08:16 ravenx and that is not the behavior that i want.  so my question is, if i put that domain as master, is there anyway to make sure that only my laptop is the master?
08:28 sknebel joined #salt
08:31 dariusjs joined #salt
08:33 babilen ravenx: https://docs.saltstack.com/en/latest/ref/configuration/minion.html#security-settings
08:33 babilen But a master on a laptop is something I wouldn't recommend
08:36 ravenx babilen: how come?
08:37 babilen Minions tend to be unhappy when their master is away
08:37 ravenx aaaah
08:37 ravenx it is better to find a dedicated server
08:38 q1x joined #salt
08:38 babilen I'd say so, yeah
08:47 Rumbles joined #salt
08:47 ronnix_ joined #salt
08:51 ronnix joined #salt
09:02 edrocks joined #salt
09:06 ravenx in my top.sls i have a:    superenv1:  'server1':  - testpingstate
09:06 ravenx when i go:  salt state.highstate saltenv=superenv1 it complains taht i don't have a salt minion passed into my command line arg.
09:06 N-Mi joined #salt
09:06 N-Mi joined #salt
09:06 ravenx if i go:       salt 'server1' state.highstate saltenv=superenv1, then it works.
09:07 ravenx what is the point of specifying 'server1' as a minion in the top.sls then?
09:07 ravenx i thought that it would be read from my top.sls file.  when i do:  `salt state.highstate saltenv=superenv1` it should look at the top.sls and think "apply - testpingstate to 'server1', no?
09:15 ttrumm joined #salt
09:15 fconcklin joined #salt
09:19 babilen ravenx: No, that's not how it works. You run "state.highstate" (or state.apply) on the minions you specify. The top.sls simply decides which states are being applied to the minion(s)
09:20 babilen Environments in salt are rather painful and you might want to reconsider using them btw
09:21 ravenx what is a good alternative to environments?
09:21 ravenx and how come they are rather painful?
09:22 keimlink joined #salt
09:23 babilen What would you use environments for?
09:23 ravenx well, i have a server hwihc is for monitoring
09:24 ravenx and i want a "one command" solution
09:24 ravenx to make sure everything is up to date
09:24 ravenx for that one server, i'd probably say i have about 8-10 states
09:24 ravenx if, one day, i want to change something within the state, say, a user is no longer on that server:   salt 'tools' state.highstate  should fix it no?
09:25 ravenx provided that i edited the file i want
09:25 babilen What does that have to do with environments?
09:25 ravenx isnt' environments on a server-role basis
09:25 ravenx that is my tools server, so i would like to make a tools environment
09:25 babilen No, not at all
09:25 ravenx unless that is not how you do environments
09:26 babilen What you are thinking of is handled by targeting in salt -- https://docs.saltstack.com/en/develop/topics/targeting/
09:26 ninjada joined #salt
09:27 babilen You can assign 'roles' in various ways (e.g. by using a certain naming scheme + minion_id globbing, defining roles in pillars or grains (insecure), nodegroups, ...)
09:27 ravenx aah
09:27 ravenx so you're saying if i have multiple tools servers:  tools1 and tools2:
09:27 ravenx i can do:   salt "tools*" state.sls weeee
09:27 babilen The idea behind environments is rather one of a software development model in that you have states in different "stages" (e.g. 'production', 'development', 'qa', ...)
09:28 ravenx aah i see.
09:28 ravenx however, the problem here is that i have 8 states or so
09:28 babilen Unfortunately using environments is prone to problems and inconsistencies .. I believe some work has been done in that area, but you really don't need them if all you care about is targeting of boxes
09:28 babilen Why is having 8 states a problem?
09:29 ravenx my next question then is:  how can do i all 8 states at once?
09:29 babilen "at once" ?
09:29 ravenx i do not want to go:  salt 'tools*' state.sls state1
09:29 ravenx then  salt 'tools*' state.sls state2
09:29 ravenx so on and so forth.
09:29 babilen Surely not. You define the states/SLS you want to target to a minion in the top.sls and then run state.highstate/state.apply on that minion
09:30 impi joined #salt
09:30 ravenx but if i use the top.sls, isn't that going back to environments then?
09:38 fleaz joined #salt
09:44 ninjada joined #salt
09:52 viq joined #salt
09:53 impi joined #salt
10:14 fredvd joined #salt
10:19 ttrumm joined #salt
10:22 ttrumm_ joined #salt
10:27 keimlink joined #salt
10:27 dariusjs joined #salt
10:37 ninjada joined #salt
10:43 Rumbles joined #salt
10:45 impi joined #salt
10:57 keimlink joined #salt
11:00 Rumbles joined #salt
11:00 losh joined #salt
11:02 keimlink joined #salt
11:05 armin joined #salt
11:05 DEger joined #salt
11:09 deei joined #salt
11:14 amcorreia joined #salt
11:16 fconcklin joined #salt
11:18 raeven When you use service.running, where do you specify the commandline args for the service?
11:26 ravenx in the init.d/ scripts :D
11:29 ninjada joined #salt
11:38 netcho joined #salt
11:38 rootforce joined #salt
11:41 ttrumm joined #salt
11:42 bergei hi, I get this execption when running salt-run virt.migrate https://gist.github.com/anonymous/ee29e271dcf6f05a24052abd6c5ae925 has anyone seen this before? my google foo returns nothing
12:00 ttrumm_ joined #salt
12:00 ninjada joined #salt
12:00 Rumbles joined #salt
12:04 JPT joined #salt
12:08 badon joined #salt
12:09 deus_ex joined #salt
12:16 DEger joined #salt
12:27 babilen bergei: https://github.com/saltstack/salt/issues/35982
12:27 saltstackbot [#35982][OPEN] salt-run virt.migrate fails with exception occurred in mixins.py and virt.py | I have a fully working salt virt environment, only virt.migrate fails....
12:28 babilen (googled for: "origin_host = list(origin_data.keys())[0]")
12:28 babilen It also appears that the reported of that bug uses the same nickname as you! What a coincidence!
12:29 babilen *reporter
12:32 ttrumm joined #salt
12:35 ttrumm_ joined #salt
12:36 teryx510 joined #salt
12:36 bergei babilen: :)
12:37 ttrumm__ joined #salt
12:40 fredvd joined #salt
12:55 keimlink joined #salt
13:05 edrocks joined #salt
13:10 ninjada joined #salt
13:14 ninjada_ joined #salt
13:19 west575 joined #salt
13:23 XenophonF ok so the saga of generating xml configs from yaml/jinja continues
13:23 XenophonF and it's mostly going ok
13:23 XenophonF the question i have is, the xml is kind of ugly
13:24 XenophonF so is it possible to define a new renderer that could pipe the XML file to xmllint or something?
13:24 XenophonF i assume that the top of the template would have a shebang like `#! jinja|xml` or whatever i call the renderer
13:25 XenophonF am i on the right track or is there a better way?
13:25 fleaz joined #salt
13:26 nicksloan joined #salt
13:29 babilen XenophonF: Sounds like a decent approach
13:30 babilen Might want to use suitable Python modules
13:30 roock joined #salt
13:30 bastiandg joined #salt
13:33 catpig joined #salt
13:40 ttrumm joined #salt
13:43 Morrolan joined #salt
13:43 perfectsine joined #salt
13:43 jhauser joined #salt
13:43 racooper joined #salt
13:55 rootforce joined #salt
14:06 whitenoise joined #salt
14:07 dariusjs joined #salt
14:10 kojiro joined #salt
14:16 babilen
14:18 XenophonF well, i'm guaranteed to have xmllint installed, because that's a dependency of the software i'm installing/configuring
14:18 XenophonF the pythonic way would be lxml, i guess
14:19 XenophonF i could add that to the pkg.installed state
14:21 armonge joined #salt
14:26 mattp_ you can run an execution module from a yaml/jinja using {{ salt['cmd.run']() }} for example
14:27 mattp_ how do I do the same in an orch file to a specific minion? ie from master, run the above on a specific minion
14:28 EnricoHBlade joined #salt
14:30 johnkeates joined #salt
14:31 EnricoHBlade left #salt
14:38 Mattch joined #salt
14:39 fracklen joined #salt
14:40 johnkeates joined #salt
14:41 marie1972 joined #salt
14:42 marie1972 left #salt
14:42 sp0097 joined #salt
14:42 fracklen_ joined #salt
14:43 fracklen joined #salt
14:44 sjmh joined #salt
14:46 Rumbles joined #salt
14:49 mbrgm joined #salt
14:59 justanotheruser joined #salt
15:07 johnkeates joined #salt
15:15 lero joined #salt
15:18 fconcklin joined #salt
15:21 mbrgm left #salt
15:26 keimlink joined #salt
15:28 lovecraftian joined #salt
15:32 perfectsine_ joined #salt
15:35 ninkotech joined #salt
15:36 autofsckk joined #salt
15:43 nonades_ joined #salt
15:44 dh__ joined #salt
15:45 phx__ joined #salt
15:45 Shirkdog_ joined #salt
15:45 sarlalian joined #salt
15:45 mikepea_ joined #salt
15:45 rootforce joined #salt
15:46 chamunks- joined #salt
15:46 twodayslate_ joined #salt
15:46 supermike__ joined #salt
15:46 kojiro joined #salt
15:46 sknebel_ joined #salt
15:47 copelco_ joined #salt
15:47 karlthane_ joined #salt
15:47 monrad_ joined #salt
15:47 CaptTofu_ joined #salt
15:48 ixxs joined #salt
15:48 themacproguy joined #salt
15:48 ajolo_ joined #salt
15:48 mirko joined #salt
15:48 coldbrew- joined #salt
15:48 mschiff_ joined #salt
15:48 ventris joined #salt
15:48 cswang_ joined #salt
15:48 xMopxShe- joined #salt
15:48 MikaT_ joined #salt
15:48 arif-ali_ joined #salt
15:48 ange__ joined #salt
15:48 Zaunei_ joined #salt
15:48 douardda joined #salt
15:48 gpampara- joined #salt
15:48 twiedenbein_ joined #salt
15:49 ze- joined #salt
15:49 simmel joined #salt
15:49 kiorky joined #salt
15:49 froztbyt1 joined #salt
15:49 netzvieh joined #salt
15:49 garphy`aw joined #salt
15:49 auzty joined #salt
15:49 tmkerr joined #salt
15:49 codehotter joined #salt
15:49 sknebel joined #salt
15:50 Morrolan joined #salt
15:51 stupidnic joined #salt
15:51 LordOfLA joined #salt
15:51 justanotheruser joined #salt
15:51 Xevian joined #salt
15:52 TomJepp joined #salt
15:53 TyrfingMjolnir joined #salt
15:53 shawnbutts joined #salt
15:53 agentnoel joined #salt
15:53 agentnoel joined #salt
15:54 Ryan_Lane joined #salt
15:54 moy joined #salt
15:55 dh joined #salt
15:58 sp0097 left #salt
15:59 mihait joined #salt
15:59 hexa- joined #salt
15:59 ninkotech joined #salt
16:00 systemdave joined #salt
16:00 amy_ joined #salt
16:01 smakar joined #salt
16:01 justyns joined #salt
16:02 doriftoshoes joined #salt
16:02 ramblinpeck joined #salt
16:03 amy__ joined #salt
16:04 sp0097 joined #salt
16:04 ToeSnacks joined #salt
16:04 Awesomecase joined #salt
16:05 bstaz joined #salt
16:05 bmcorser joined #salt
16:05 bVector joined #salt
16:07 froztbyte joined #salt
16:08 amcorreia joined #salt
16:10 Number6 part
16:10 Number6 left #salt
16:14 jesusaur joined #salt
16:17 justanotheruser joined #salt
16:22 mattp_ how do I do the same in an orch file to a specific minion? ie from master, run the above on a specific minion
16:22 mattp_ you can run an execution module from a yaml/jinja using {{ salt['cmd.run']() }} for example
16:24 perfectsine joined #salt
16:27 mattp_ how do I act on the content of a change? ie, if I have a watch on a directory, but I want to act on a specific file if that file changes
16:43 Armadillo joined #salt
16:44 Jarus joined #salt
17:07 edrocks joined #salt
17:23 impi joined #salt
17:24 cyborg-one joined #salt
17:26 ronnix joined #salt
17:27 fracklen joined #salt
17:30 pmcg joined #salt
17:42 systo joined #salt
17:45 ZachLanich joined #salt
17:47 MTecknology heh.. is it possible to just stick the contents of a file into the mine?
17:47 sp0097 joined #salt
17:49 kojiro joined #salt
17:49 Lionel_Debroux joined #salt
17:49 colegatron_origi joined #salt
17:53 twork_ joined #salt
17:54 armonge_ joined #salt
17:55 fconcklin joined #salt
18:02 MTecknology mattp_: I can't think of any way to try to pick out within sls which file it was that changed, but __salt__ might be able to access that changes dict...
18:02 MTecknology or maybe __context__
18:04 * MTecknology shuts up.. isn't being helpful
18:05 amy_ joined #salt
18:07 fracklen joined #salt
18:13 MTecknology interesting... it looks like I might need to write a custom grain for the contents of this file so that I can use grains.item to store the file contents in mine
18:13 godlike joined #salt
18:19 GreatSnoopy joined #salt
18:22 haam3r joined #salt
18:22 DEger joined #salt
18:26 ageorgop joined #salt
18:30 babilen MTecknology: cmd.run + cat?
18:30 babilen mattp_: You want to have a state for that file then. Or look into beacons and react to inotify events
18:36 MTecknology babilen: would would it look like to pull something like that out of the mine? I couldn't figure it out
18:38 babilen Normal mine.get call, I guess
18:39 babilen https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.gpg.html#salt.modules.gpg.get_key might also help for gpg keys
18:45 DEger joined #salt
18:46 jhujhiti joined #salt
18:52 Sammichmaker joined #salt
18:52 Sammichmaker joined #salt
18:52 Sammichmaker joined #salt
18:59 systo joined #salt
19:12 kus joined #salt
19:18 ageorgop joined #salt
19:25 DEger joined #salt
19:29 perfectsine joined #salt
19:35 dylan joined #salt
19:40 amy_ joined #salt
19:49 kojiro joined #salt
20:01 Edgan joined #salt
20:01 dh__ joined #salt
20:02 nebuchad` joined #salt
20:02 sjmh joined #salt
20:03 nshttpd_ joined #salt
20:03 renoirb_ joined #salt
20:04 gadams_ joined #salt
20:05 penguinp1wernz joined #salt
20:06 simonmcc_ joined #salt
20:07 Hazelesque_ joined #salt
20:10 alrayyes joined #salt
20:11 godlike joined #salt
20:11 ramblinpeck joined #salt
20:11 hexa- joined #salt
20:11 Zachary_DuBois joined #salt
20:11 monrad joined #salt
20:11 copelco joined #salt
20:11 manji joined #salt
20:11 czchen joined #salt
20:11 McNinja joined #salt
20:11 munhitsu_ joined #salt
20:11 djural joined #salt
20:11 izibi joined #salt
20:11 OliverMT joined #salt
20:11 samkottler joined #salt
20:11 lkannan joined #salt
20:11 hillna joined #salt
20:11 boogibugs joined #salt
20:12 ronrib joined #salt
20:12 badon joined #salt
20:13 wm-bot4 joined #salt
20:13 jfelchner joined #salt
20:14 CeBe joined #salt
20:16 cswang joined #salt
20:22 munhitsu_ joined #salt
20:23 ramblinpeck joined #salt
20:24 Awesomecase joined #salt
20:24 samkottler joined #salt
20:24 lkannan joined #salt
20:25 OliverMT joined #salt
20:27 djural joined #salt
20:33 sjmh joined #salt
20:34 raspado joined #salt
21:09 dh joined #salt
21:10 edrocks joined #salt
21:33 kojiro joined #salt
21:42 lero joined #salt
21:42 Zachary_DuBois joined #salt
21:47 sjmh_ joined #salt
21:48 ZachLanich joined #salt
21:51 systo joined #salt
22:13 Deliant joined #salt
22:21 sjmh joined #salt
22:35 Edgan jfindlay: gtmanfred: either of you around?
22:55 ninjada joined #salt
22:55 ninjada joined #salt
23:02 systo joined #salt
23:08 Deliants joined #salt
23:11 ninjada joined #salt
23:13 hasues joined #salt
23:13 hasues left #salt
23:16 komputes joined #salt
23:19 nicksloan joined #salt
23:20 lero joined #salt
23:47 amcorreia joined #salt
23:54 kojiro joined #salt

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