Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-05-05

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

All times shown according to UTC.

Time Nick Message
00:08 devops joined #salt
00:11 pdayton joined #salt
00:22 flowstate joined #salt
00:31 mosen joined #salt
00:32 quasiben joined #salt
00:33 ajw0100 joined #salt
00:39 jeddi joined #salt
00:40 devops joined #salt
00:48 ssplatt joined #salt
00:52 quasiben joined #salt
00:54 brianfeister joined #salt
00:55 bVector ahammond: what do you mean by targeting functionality
00:56 bVector if you mean minion targeting, then no, you'd have to use a runner to coordinate that
00:57 bVector (execution modules already know what machine their on and only run on a single box)
00:57 bVector they're*
00:57 flowstate joined #salt
01:02 cpowell joined #salt
01:02 subsignal joined #salt
01:16 ninjada joined #salt
01:17 flowstate joined #salt
01:20 mrueg joined #salt
01:24 lws Are there hooks for health-checks on nodes when running a command in batch mode?
01:24 lws IE: I am upgrading a kernel across my infra.  How do I ensure machines are coming back online before moving on?
01:26 ssplatt joined #salt
01:29 iggy that's really not what batch mode is for
01:29 iggy you'd be better off writing a runner or something
01:32 ahammond bVector well... running from the cli, or an orchestration, I can do some fairly clever targeting. is that functionality available in an execution module? Can I for example say "does this ID match this (target, target_type)"
01:33 iggy execution modules don't do targetting... salt targets execution modules (functions) at targetted hosts
01:34 bVector if you write your own execution module, you can early exit based on parameters you pass in, but I don't think thats built into most (any) execution modules
01:40 mosen is there a module to force a mine function to run on a particular minion?
01:41 mosen sorry im just lazy, found the relevant module
01:41 mosen :)
01:46 catpigger joined #salt
01:51 donmichelangelo joined #salt
01:53 ahammond my reactor driven orchestration is saying     The function "state.orchestrate" is running as PID 28670 and was started at 2016, May 04 18:50:05.830277 with jid 20160504185005830277
01:53 ahammond I'm guessing that there's an issue with firing multiple reactors concurrently or some-such?
02:07 ageorgop joined #salt
02:16 jvblasco joined #salt
02:17 Diaoer joined #salt
02:19 flowstate joined #salt
02:19 writtenoff joined #salt
02:23 ssplatt joined #salt
02:23 ninjada joined #salt
02:43 evle joined #salt
02:47 _JZ_ joined #salt
03:09 beardedeagle joined #salt
03:12 ninjada joined #salt
03:13 sjmh joined #salt
03:16 favadi joined #salt
03:17 flowstate joined #salt
03:23 racooper joined #salt
03:46 hasues joined #salt
03:48 estahn joined #salt
03:55 aw110f joined #salt
03:55 rem5 joined #salt
03:58 aw110f_ joined #salt
04:03 ninjada trying to run the ec2 custom grains from salt-contrib
04:03 ninjada which all import boto.ec2 but whenever i call the grains, via master or salt-call, i get an error unable to load module boto.ec2
04:04 ninjada its installed fine though, and i can manually run python and run everything from the grain fine.
04:04 ninjada any idea how to troubleshoot that?
04:05 ninjada no idea why salt's failing to load the modules
04:08 devops_ joined #salt
04:13 onlyanegg joined #salt
04:15 pipps joined #salt
04:16 flowstate joined #salt
04:30 terratoma joined #salt
04:34 hasues left #salt
04:36 subsignal joined #salt
04:38 ninjada ah seems salt's running python 2.6 and i need to be running 2.7
04:42 ninjada how does one switch salt master or minions to use python 2.7 instead of 2.6?
04:44 jfindlay ninjada: what distro?
04:44 ninjada amazon linux
04:45 jfindlay hm, that one can be tricky
04:46 jfindlay did you install packages or from pip/git?
04:46 ninjada i remember it was quite a headache to configure python when setting up my master on amazonlinux
04:46 mowntan joined #salt
04:47 ninjada rpm i think
04:51 ninjada ahh via epel repo, but yeah i remember it needed some fixing with python
04:52 jfindlay `rpm -qa | grep salt` should tell you for sure
04:52 kshlm joined #salt
04:52 jfindlay what version of salt?
04:52 ninjada salt-master-2015.5.8-1.el6.noarch
04:53 jfindlay we host upstream packages for amazon linux at https://repo.saltstack.com/#amzn
04:53 jfindlay not sure if that will help your situation
04:53 ninjada installing a master from scratch might be the best bet?
05:04 cpowell joined #salt
05:05 jfindlay if it ends up using python2.6 again you'll be in the same situation
05:05 jfindlay also, it's likely the minion you need to be concerned about if you're getting a python version mismatch between salt and boto
05:09 iceyao joined #salt
05:13 iceyao_ joined #salt
05:17 flowstate joined #salt
05:28 scooby2 joined #salt
05:33 devtea joined #salt
05:38 iggy `pip2.6 install boto` maybe?
05:47 iceyao joined #salt
05:48 Ruzzy joined #salt
05:48 Ruzzy hello
05:49 rdas joined #salt
05:53 jvblasco joined #salt
06:01 viq joined #salt
06:01 cpowell joined #salt
06:02 viq joined #salt
06:04 aw110f joined #salt
06:16 brianfeister joined #salt
06:16 iceyao_ joined #salt
06:22 flowstate joined #salt
06:22 viq joined #salt
06:29 colegatron joined #salt
06:38 jvblasco joined #salt
06:39 subsignal joined #salt
06:51 brotatochip joined #salt
06:59 wych joined #salt
07:03 Zhen joined #salt
07:08 aw110f_ joined #salt
07:17 flowstate joined #salt
07:20 _JZ_ joined #salt
07:23 kawa2014 joined #salt
07:23 losh joined #salt
07:28 TyrfingMjolnir joined #salt
07:29 jY joined #salt
07:29 ninjada_ joined #salt
07:30 viq joined #salt
07:39 dgutu joined #salt
07:40 manji joined #salt
07:56 impi joined #salt
08:01 Rumbles joined #salt
08:01 punkoivan joined #salt
08:04 brianfeister joined #salt
08:12 rrei joined #salt
08:17 flowstate joined #salt
08:19 GreatSnoopy joined #salt
08:26 dmaiocchi joined #salt
08:27 brianfeister joined #salt
08:28 cpowell joined #salt
08:33 tvinson joined #salt
08:36 punkoivan joined #salt
08:44 subsignal joined #salt
08:45 ninjada joined #salt
08:50 GreatSnoopy joined #salt
08:50 theanalyst joined #salt
08:51 dmaiocchi joined #salt
08:52 Sylvain31 joined #salt
08:52 ivanjaros joined #salt
08:57 kows joined #salt
09:00 yomilk joined #salt
09:03 alxf joined #salt
09:04 jvblasco_ joined #salt
09:16 Garyx joined #salt
09:16 punkoivan left #salt
09:17 flowstate joined #salt
09:19 favadi joined #salt
09:23 estahn joined #salt
09:27 ivanjaros joined #salt
09:30 adongy joined #salt
09:47 slav0nic joined #salt
10:01 ninjada joined #salt
10:06 JohnnyRun joined #salt
10:09 orion Hi. If I made a commit to pillar and I am using gitfs, what should I do to make the data available on the next highstate?
10:09 orion Should I do `salt-run fileserver.update`? Or will that only refresh the salt states?
10:09 Ayo joined #salt
10:10 orion Should I do saltutil.clear_cache? What about saltutil.refresh_pillar? If so, do I target the salt-master or the minion?
10:13 Rumbles joined #salt
10:14 babilen the minion
10:14 estahn joined #salt
10:15 orion babilen: You're saying that if I have a host, say, web01-prod, and I update one of its pillar values, I should do "salt 'web01-prod' saltutil.refresh_pillar", right?
10:17 flowstate joined #salt
10:20 klaas joined #salt
10:23 babilen indeed
10:28 cpowell joined #salt
10:32 linelevel joined #salt
10:32 klaas joined #salt
10:36 Trauma_ joined #salt
10:40 madpenguin joined #salt
10:45 estahn joined #salt
10:47 subsignal joined #salt
10:49 rrei hey guys
10:49 Kruge joined #salt
10:49 Kruge hi
10:49 rrei is it just me or does the bootstrap script not work anymore?
10:49 Kruge rrei: It works, under specific circumstances
10:50 rrei I can't get it to work
10:50 rrei I had it working fine until yesterday
10:50 Kruge I had to mangle it when trying to deploy onto Ubuntu 16.04 to stop it adding the PPAs and to just use the Ubuntu packages
10:51 rrei I'm using it through vagrant
10:51 rrei with the vagrant salt provider
10:51 rrei to install salt and salt-ssh onto a vm
10:51 rrei the command that is failing is "/tmp/bootstrap_salt.sh  -p salt-ssh -M -N git 2015.8"
10:51 rrei gives me a timeout when attempting to clone salt
10:52 Kruge Does the VM have network connectivity? DNS?
10:52 rrei but if I try to shallow clone salt manually it does work
10:52 rrei yes, it does have internet access
10:52 rrei besides, I haven't changed my vagrantfile
10:52 Kruge Bizzare
10:53 Kruge You could always write your own
10:53 rrei and it was working before, I thought perhaps it was something broken on the bootstrap script
10:53 AndreasLutro I would never put any trust in a 6000 line shell script
10:54 rrei I was using it fine until yesterday... :(
10:54 Kruge On a slightly related note, is it possible to define routes in a cloud profile?
10:55 rrei besides manually cloning salt (which i could do successfully), I tried manually downloading and running the bootstrap script with the same parameters and it failed at the same point
10:55 rrei so it led me to think that the script is now broken
10:55 Kruge rrei: If you're using salt-cloud, try sticking -l debug on the end
10:56 rrei nope, not using salt-cloud
10:56 rrei besides the problem is that i can't even install salt :(
10:57 Kruge Perhaps work through the script to find the step it's failing on, and then work out why it is failing
10:59 apofis joined #salt
11:00 apofis_ joined #salt
11:01 rrei I'll try that
11:01 rrei though i'm no bash expert
11:03 rrei okay, seems i got lucky and got the problem on my first guess :D
11:03 Kruge That was quick!
11:03 rrei just a bit more to confirm
11:03 rrei nah, I'm not looking into the script yet, just tried a crazy guess to see if it works
11:03 rrei tried adding the '-G' parameter to the script
11:04 rrei and now it can clone the repo
11:04 rrei using https instead of git://
11:07 rrei f$%!k yeah!
11:07 rrei lady lucks smiles upon me :D
11:08 yomilk joined #salt
11:11 yomilk_ joined #salt
11:13 rem5 joined #salt
11:15 ronnix joined #salt
11:16 Rumbles joined #salt
11:16 quasiben joined #salt
11:17 josuebrunel joined #salt
11:27 sk_0 joined #salt
11:40 ninjada joined #salt
11:43 dmaiocchi joined #salt
11:50 west575 joined #salt
11:53 madpenguin joined #salt
11:58 lero joined #salt
12:04 amcorreia joined #salt
12:07 akhter joined #salt
12:11 ninjada joined #salt
12:16 iceyao joined #salt
12:22 PuppyPoker joined #salt
12:28 lero joined #salt
12:39 XenophonF joined #salt
12:41 envintus joined #salt
12:42 bowhunter joined #salt
12:43 ssplatt joined #salt
12:47 cyborg-one joined #salt
12:47 seba__ joined #salt
12:49 gh34 joined #salt
12:55 numkem joined #salt
12:59 subsignal joined #salt
13:00 subsigna_ joined #salt
13:04 madpenguin joined #salt
13:09 squishypebble joined #salt
13:09 rrei joined #salt
13:11 TooLmaN joined #salt
13:14 deus_ex joined #salt
13:35 ferbla joined #salt
13:38 favadi joined #salt
13:43 west575_ joined #salt
13:44 AdamSewell joined #salt
13:45 jfelchner_ joined #salt
13:46 hosttor joined #salt
13:46 ninjada joined #salt
13:47 davisj Anyone know of a more salty alternative to {{ salt['cmd.run']('date') }} ?
13:47 flowstate joined #salt
13:48 * davisj shelling out is for the weak
13:52 AndreasLutro {{ null | strftime(...) }}
13:52 AndreasLutro dirty jinja hack
13:54 zenlot6 joined #salt
13:59 rem5 joined #salt
13:59 flowstate joined #salt
14:00 davisj AndreasLutro: cool! What am I missing. I get "Jinja veriable 'null' is not defined"
14:03 AdamSewell joined #salt
14:04 yomilk joined #salt
14:05 mpanetta joined #salt
14:06 XenophonF joined #salt
14:06 jerredbell joined #salt
14:07 pdayton joined #salt
14:08 ninjada joined #salt
14:08 cpowell joined #salt
14:10 AdamSewell joined #salt
14:10 davisj oh, I can do "|default(strftime(..))", But then strftime is also undefined
14:12 davisj I guess I was hoping for some built in jinja or salt convenience funtion to get the date.
14:13 zmalone joined #salt
14:14 _JZ_ joined #salt
14:15 honestly make your own!
14:15 honestly custom module are really very easy, you just make a _modules folder and drop python files in it
14:15 tharkun joined #salt
14:16 AndreasLutro davisj: might be "none"
14:16 AndreasLutro {% set date = none | strftime('%Y-%m-%d') %}
14:16 AndreasLutro is what I've got in one of my templates
14:19 davisj honestly: thanks for the suggestion. I've done the custom mod thing before, just seemed overkill in this instance.
14:19 davisj AndreasLutro: It works! Thanks!
14:19 honestly I've done so much jinja hackery
14:20 honestly you start off thinking "it's not worth making a module for this, it's gotta be doable in jinja"
14:20 honestly and then you spend a whole day trying to beat jinja into submission and it just makes you angry and the end result is a really ugly hack
14:21 davisj honestly: I hear you. I'm still trying to move past the anger phase of the "why wasn't Mako the default" grief cycle.
14:23 mapu joined #salt
14:24 jvblasco_ joined #salt
14:24 squishypebble joined #salt
14:24 hasues joined #salt
14:25 hasues left #salt
14:25 tharkun joined #salt
14:28 rem5 joined #salt
14:32 spuder joined #salt
14:33 AdamSewell joined #salt
14:34 [Kernel_Panic] Hi All!
14:34 west575 joined #salt
14:37 spuder_ joined #salt
14:38 DammitJim joined #salt
14:39 ahammond honestly I've only recently discovered the awesomeness of execution modules. As a result, I've been going entirely the other way: "I'm gonna put this in a module and it'll be cool"
14:40 ahammond so now I'm discovering how much fun it is to have to sync modules all the time...
14:40 rem5 joined #salt
14:45 jrklein joined #salt
14:48 perfectsine joined #salt
14:48 teryx510 joined #salt
15:00 Brew joined #salt
15:04 flowstate joined #salt
15:05 yomilk joined #salt
15:06 brotatochip joined #salt
15:16 envintus joined #salt
15:17 flowstat_ joined #salt
15:17 Sylvain31 Hi, is there some constraint to manange /etc/salt/minion config file from within salt itself? after bootstrap i want to apply some change, and salt seem to be the good tool for that too. ;)
15:19 DammitJim no constraints
15:19 subsignal joined #salt
15:20 nebuchadnezzar joined #salt
15:20 RandyT joined #salt
15:20 mapu joined #salt
15:23 scoates joined #salt
15:24 flebel joined #salt
15:24 sk_0 joined #salt
15:24 NightMonkey joined #salt
15:25 AdamSewell joined #salt
15:29 Sylvain31 DammitJim: ok go for it. :)
15:33 ninjada joined #salt
15:38 Shirkdog joined #salt
15:41 richerVE joined #salt
15:41 richerVE hello
15:43 richerVE I'm having troubles with the x509 module, there's one parameter that maybe I don't know how to use: "ca_server"
15:45 AdamSewell joined #salt
15:46 west575_ joined #salt
15:47 kaptk2 joined #salt
15:48 ssplatt joined #salt
15:48 ivanjaros joined #salt
15:51 jeddi joined #salt
15:55 Slimmons joined #salt
15:57 Slimmons If I'm using archive.extracted, on a source where it's getting the latest version of a file, how do I handle the source_hash?  Since the hash will change every time the version changes?
15:57 brianfeister joined #salt
15:57 Slimmons or should I always target a specific version
15:58 AndreasLutro Slimmons: host the source hash at some url which can change in tandem with the archive
15:59 Slimmons cool, I didn't see that source_hash can take in a url
16:02 radhac Hey all, salt nooby here....is there a way to have a state become persistent/enforced?  For instance, if a package if removed, the state will automatically reinstall said package?
16:04 honestly when you run the state, it'll reinstall the package.
16:04 honestly but salt doesn't do continuous monitoring.
16:05 perfectsine joined #salt
16:06 AdamSewell joined #salt
16:06 flowstate joined #salt
16:07 Rumbles joined #salt
16:07 ssplatt joined #salt
16:07 radhac honestly: thank you :)
16:12 AdamSewell joined #salt
16:22 envintus joined #salt
16:22 ssplatt joined #salt
16:22 AdamSewell joined #salt
16:25 writtenoff joined #salt
16:26 rem5 joined #salt
16:27 flowstate joined #salt
16:27 aw110f joined #salt
16:30 bltmiller joined #salt
16:30 aw110f_ joined #salt
16:31 linjan joined #salt
16:32 dmaiocchi joined #salt
16:32 AdamSewell joined #salt
16:33 nZac joined #salt
16:33 Slimmons I'm getting a certificate invalid error for an archive.extracted, but it doens't look like the cert is invalid for the site (and this state was working a week ago).  https://gist.github.com/Slimmons/67dee8111db8e6e38eefe7d91c00c3a6
16:33 Slimmons any ideas?
16:34 west575 joined #salt
16:34 Fiber^ joined #salt
16:34 Ayo joined #salt
16:39 west575_ joined #salt
16:39 rihannon joined #salt
16:39 AdamSewell joined #salt
16:42 AndreasLutro Slimmons: old version of salt?
16:45 west575 joined #salt
16:47 AdamSewell joined #salt
16:49 toastedpenguin joined #salt
16:49 dezertol joined #salt
16:50 Slimmons 2015.5.3
16:50 AndreasLutro anything stopping you from upgrading?
16:51 Slimmons not really, I can move to 5.8, but not 2016
16:52 Slimmons to be honest, I thought i was on 5.8, but double checked when you asked.  That will probably fix it
16:52 Slimmons thx
16:53 rem5 joined #salt
16:53 AdamSewell joined #salt
16:54 ssplatt joined #salt
16:59 ssplatt joined #salt
17:00 jnials I have pygit2 running on Ubuntu 14.04 with 2015.8.8.  If I use an ssh key with no password it works fine, if I use a password, it fails to authenticate the ssh session.
17:01 jnials Any clue on debugging/resolving this?
17:03 teryx510 joined #salt
17:05 armguy joined #salt
17:05 AndreasLutro jnials: does your version of pygit2 support ssh key passwords, does salt support passing such an argument to pygit2, and do you even need the passphrase in the first place
17:06 ageorgop joined #salt
17:06 jnials AndreasLutro:  Yes, it supports ssh key passwords (0.24), I'm assuming salt supports it, and while I don't need a passphrase in testing, when I move this to production I will need pass-phrases.
17:07 yomilk joined #salt
17:07 Muchoz joined #salt
17:07 jnials This may help: https://gist.github.com/jnials/b6771eee79559d8ddbe32bc7e4384dd2
17:07 amcorreia joined #salt
17:07 Slimmons I cannot find the new method of upgrading saltstack.  I bookmarked it at home, but my bookmarks aren't syncing for some reason.  Can anybody point me to the upgrade method that doesn't involve the ppa?
17:07 Slimmons I think the docs for upgrading should have a link at the bottom tot he docs
17:07 Slimmons the new docs
17:07 salty_solution joined #salt
17:07 zmalone Slimmons: https://repo.saltstack.com/
17:08 Slimmons thanks
17:08 AdamSewell joined #salt
17:09 impi joined #salt
17:09 AndreasLutro jnials: if it doesn't work, increase your master log level and file an issue - though I would say that the password is stored in plaintext in a config file, rendering it useless
17:09 madpenguin joined #salt
17:11 jnials Yeah, a discussion I've had with members of my team.
17:11 jnials OK.  Thanks.
17:14 AdamSewell joined #salt
17:15 tristianc joined #salt
17:15 teryx5101 joined #salt
17:17 hal58th jnials, you have debian based systems?
17:18 teryx510 joined #salt
17:18 cnk joined #salt
17:18 hal58th sorry, that question was for Slimmons
17:19 Slimmons yes hal58th, it's ubuntu
17:20 hal58th I have an sls I wrote that you may find useful. one minte
17:20 Slimmons thx
17:22 rem5 joined #salt
17:23 hal58th You can run this sls manually on all the hosts you want to upgrade. Needs slight tweaking for it to work because of my IF statements
17:23 hal58th http://pastebin.com/WS3dX6wX
17:24 pipps joined #salt
17:26 Slimmons thanks, i'll look into that tonight.
17:27 M-liberdiko joined #salt
17:32 jnials Heh.  So apparently if you specify the passphrase and there isn't one on the ssh key, it works.  That should probably throw up.  I'll add that to the bug I am working on.
17:32 AdamSewell joined #salt
17:32 Slimmons AndreasLutro: the upgrade fixed all my problems.  Thanks!
17:33 josuebrunel joined #salt
17:35 ninjada joined #salt
17:38 Hivlaher joined #salt
17:41 AdamSewell joined #salt
17:50 Eugene joined #salt
17:50 rodr1c joined #salt
17:50 rodr1c joined #salt
17:52 jwon joined #salt
17:52 Muchoz joined #salt
17:56 ageorgop joined #salt
17:57 packeteer joined #salt
17:58 irctc337 joined #salt
17:58 drawsmcgraw joined #salt
17:58 irctc337 Hi, question from novice. How do I tell salt-master to install BLAH.RPM to minion ?
17:58 flebel joined #salt
17:59 ahammond are there any best practices around debugging reactors, especially around the event data? My current problem is that I have salt-cloud events I'm replaying for testing and the reactor works (finds the new host IP in the event data) in test. when I put it in production, it doesn't seem to find the same data. Help?
18:00 dezertol @irctc337 do you mean with a state or with the command line?
18:00 ssplatt joined #salt
18:00 irctc337 with state
18:01 irctc337 ssplatt: I have a RPM and want to run the installation on minion1
18:01 dezertol https://docs.saltstack.com/en/latest/topics/tutorials/starting_states.html
18:02 dezertol the first example is the apache package
18:03 irctc337 got it. thanks -
18:03 dezertol the Tutorials have been re-done recently and they are actually pretty good...
18:03 dezertol https://docs.saltstack.com/en/latest/topics/tutorials/walkthrough.html
18:04 Slimmons if i had a massive config file, that I wanted to use file.managed for, but inside of that file, i had several places where I needed to list the minions ip, is there a way to do that with source, or do I have to write the entire config file out in contents?
18:04 west575_ joined #salt
18:04 Slimmons in the docs, it looks like source without variables, and writing out the whole thing in contents is the only way, just making sure
18:04 AndreasLutro Slimmons: you could use jinja includes, or file.accumulate
18:05 AndreasLutro "source without variables"?
18:05 dezertol you can put the a "template" of the file on your salt server and template with Jinja using the salt mine options to populate the ips
18:05 Slimmons "source without variables" is my ass backwards way of saying a static file
18:05 Slimmons file.managed.source
18:06 AndreasLutro do you mean the source argument to the file.managed state?
18:06 Slimmons yeah, but your answer of using jinja includes is exactly what I was looking for
18:07 AndreasLutro just add "- template: jinja" and you can use full jinja templating inside the config file source
18:07 Slimmons so something like source: /salt://myfile.txt - template: jinja
18:07 Slimmons under file.managed
18:08 AdamSewell joined #salt
18:08 AndreasLutro not exactly... just look up examples in the file state docs I'm sure you'll find some
18:09 Slimmons so badass.  That's exactly what I needed, thanks
18:18 tpegbert joined #salt
18:20 envintus joined #salt
18:22 west575 joined #salt
18:30 ssplatt joined #salt
18:36 perfectsine joined #salt
18:36 fracklen joined #salt
18:39 wise0wl joined #salt
18:39 manji joined #salt
18:39 Shirkdog joined #salt
18:43 AdamSewell joined #salt
18:44 manji joined #salt
18:46 aw110f joined #salt
18:46 Shirkdog joined #salt
18:46 Shirkdog joined #salt
18:51 apofis joined #salt
18:52 invalidexception joined #salt
18:57 woodtablet joined #salt
18:59 rem5 joined #salt
19:00 alxf joined #salt
19:01 perfectsine joined #salt
19:02 LeProvokateur joined #salt
19:08 yomilk joined #salt
19:08 envintus joined #salt
19:09 radhac Hey all, any idea how network.managed handles static configuration of network interfaces on RHEL systems?  does it create a static file in /etc/sysconfig/network-scripts/ ?
19:11 madpenguin joined #salt
19:14 AdamSewell joined #salt
19:15 gtmanfred radhac: yes
19:15 radhac Great, thanks gtmanfred
19:21 Rumbles joined #salt
19:23 vaelen joined #salt
19:24 kevinquinnyo salt 'web*something.com and not web1-*something.com' test.ping
19:24 kevinquinnyo that should do what i think right?  if there were a web2, web3, web4, it should target only them?
19:24 kevinquinnyo it's targeting nothing for me
19:24 gtmanfred yes
19:25 gtmanfred you have to use compound matching to use the and
19:25 gtmanfred salt -C
19:25 iggy -C
19:25 kevinquinnyo ohhhh
19:25 kevinquinnyo right
19:25 kevinquinnyo thanks
19:25 kevinquinnyo tgt_type: compound
19:25 kevinquinnyo if in an orchestration or something
19:25 gtmanfred yeah
19:27 ahammond I have an execution module that would really like to be called in jinja and receive a dict as a parameter. Can I pass this directly or do I need to flatten it to json first and then load it from json in the function?
19:30 AndreasLutro ahammond: no need to do anything with the dict
19:32 ahammond AndreasLutro is there any way to pass a dict from the command line using salt-call my.module a b where a should be a dict?
19:33 AndreasLutro sure, just make sure it's valid yaml
19:33 AndreasLutro salt-call my.module {foo: bar} b
19:34 ahammond are execution modules available in reactors?
19:35 ahammond if not, what is? :)
19:36 AndreasLutro should be
19:36 AndreasLutro not sure if it'll execute on the master or minion though
19:37 XenophonF how might i set the storage type of an rds instance to "standard" a/k/a "magnetic" using boto_rds?
19:37 XenophonF there doesn't seem to be a "storage_type" parameter
19:38 AdamSewell joined #salt
19:39 dmaiocchi joined #salt
19:39 amcorreia joined #salt
19:41 ahammond AndreasLutro doesn't seem to be in reactor... so orchestration it is.
19:44 hasues joined #salt
19:48 nebuchadnezzar joined #salt
19:49 morissette joined #salt
19:52 jfelchner joined #salt
19:52 pipps joined #salt
19:53 ronnix joined #salt
19:55 ajw0100 joined #salt
19:56 ageorgop joined #salt
19:57 flowstate joined #salt
19:57 AdamSewell joined #salt
19:57 XenophonF does salt-bootstrap still refer to the old epel-release-7-5 package?
19:57 XenophonF i just got an error trying to deploy centos :(
20:02 AdamSewell joined #salt
20:02 invalidexception Who should I hit up for getting traction on pulls to saltstack-formulas? Have had pulls for updating msdtc-formula and rdp-formula sitting for a couple of weeks.
20:04 XenophonF yay salt-cloud -u to the rescue
20:08 west575 joined #salt
20:12 knine joined #salt
20:13 perfectsine joined #salt
20:15 perfectsine_ joined #salt
20:19 iggy invalidexception: the problem is... none of us use Windows
20:20 ajw0100 joined #salt
20:23 iggy and your description is non-obvious to people that don't use Windows (i.e. I just had to go look up what the reflection param did... and I'm still not sure what the impact of changing that would be)
20:25 TyrfingMjolnir joined #salt
20:27 AdamSewell joined #salt
20:28 Eugene XenophonF - yeah; as I've noted before the right URL is https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
20:29 Eugene You should be able to `yum localinstall` that URL and then run the bootstrap
20:30 Eugene Though it looks like the newest bootstrap-salt.sh(in develop) uses 7-6.... that's still not right
20:31 Eugene (it's also not good practice to be using `rpm -Uvh`, as yum/dnf will whine about the RPMDB being altered.... but that's a longer story)
20:32 higuita joined #salt
20:33 higuita any way to test substring in jinja, something like this  {% if "server-A.*" in host %}
20:34 josuebrunel joined #salt
20:36 brianfeister joined #salt
20:36 Shirkdog joined #salt
20:36 Slimmons Can you think of any reason a file transferred via file.managed would break json syntax?  any invisible magic I can't see?  I'm transferring a json file for pm2 to a server, and when I go to start pm2, it says the syntax is invalid...but if I copy paste the file contents into the new file, it works...
20:38 higuita do a diff between the files and check what is different
20:39 Slimmons diff returns nothing other than an ip address change
20:39 higuita maybe some linefeed/carrier return in the wrong place or a BOM marker in the start of the file (pro tip: do not use notepad... even better, do not use windows) :)
20:40 Slimmons yeah, I'm not using any windows right now
20:40 higuita do a file on both files
20:41 Slimmons lol, i found it
20:41 Slimmons you know how all the blank lines on vim show as ~
20:41 Slimmons on the far left
20:41 Slimmons apparently I had a ~ at the end of the file
20:41 Slimmons and just never saw it
20:41 sjorge joined #salt
20:41 GreatSnoopy joined #salt
20:41 Slimmons even on the diff, I just saw it and thought nothing of it
20:41 Slimmons sigh
20:41 Slimmons thx
20:45 pipps joined #salt
20:55 pipps joined #salt
20:55 zmalone joined #salt
20:56 DammitJim joined #salt
20:56 DammitJim is there a way to do file.managed and get the file from another server?
20:56 DammitJim if so, does one have to have a samba mount or something or are there other options?
20:57 AdamSewell joined #salt
21:00 yomilk joined #salt
21:02 nZac joined #salt
21:05 brotatochip joined #salt
21:06 pipps99 joined #salt
21:09 pipps joined #salt
21:11 higuita use wget/curl/rsync
21:12 higuita or mount or synlink the file on the saltmaster
21:12 madpenguin joined #salt
21:12 higuita i know no way to get the file from remote location, but i'm also no salt expert :D
21:13 invalidexception iggy: Just updated the PR with links to the reg state, which has notes about the deprecation of the parameter in question.
21:13 pipps joined #salt
21:15 ws2k3 joined #salt
21:17 hasues left #salt
21:17 Rumbles joined #salt
21:20 AdamSewell joined #salt
21:21 kevinquinnyo one of these days i'm going to look into why salt's tab-completion is so go-awful slow and try to fix it
21:21 kevinquinnyo cache those tab complete words in ram or something
21:26 spuder joined #salt
21:26 nZac joined #salt
21:29 pipps joined #salt
21:30 yomilk joined #salt
21:30 spuder I'm a chef user, but chef orchestration is weak. Is there a way to use salt to orchestrate chef runs?
21:30 ajw0100 joined #salt
21:32 yomilk joined #salt
21:34 rmnuvg joined #salt
21:36 dezertol @spuder you can use salt's cmd.run to execute shell scripts.. so.... I would guess it's doable ..
21:36 ninjada joined #salt
21:36 kevinquinnyo spuder: there is an orchestrate runner
21:37 kevinquinnyo if you're wanting to target specific hosts and run things (states for example) on several hosts in a specific order
21:37 zmalone joined #salt
21:37 rem5 joined #salt
21:38 spuder I found this: https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chef.html#salt.modules.chef.client
21:38 kevinquinnyo nice
21:38 spuder I don't know the salt terminoligy, but would I need to "bootstrap" every node to a salt master and a chef server?
21:38 kevinquinnyo now make salt call chef, which then calls salt ;)
21:39 spuder Or could the salt orchestrator use ssh/winrm to execute the calls?
21:39 kevinquinnyo salt-ssh is agentless i think, but it needs python 2.6 minimum, i'm not 100% sure on that though
21:40 jvblasco joined #salt
21:40 spuder To make things even more complicated, we are a windows shop. I assume salt works on windows.
21:40 kevinquinnyo it does but i've never tried it on windows so i can't speak to it
21:40 pipps joined #salt
21:40 dezertol it's python .. so as long as you can run python on the box your good to go
21:42 coval3nce joined #salt
21:44 coval3nce anyone know if its possible to do neutron lbaas setup as part of salt-cloud with openstack?
21:45 yomilk joined #salt
21:46 brianfeister joined #salt
21:51 iggy invalidexception: the problem with removing deprecated options is what does that do to salt releases where it isn't deprecated? You've just changed the behavior of the formula for everyone
21:52 AdamSewell joined #salt
21:53 fracklen joined #salt
21:55 iggy invalidexception: or at least that how it generally works... I know next to nothing about windows
21:59 AdamSewell joined #salt
21:59 pipps joined #salt
22:02 pipps joined #salt
22:03 pipps joined #salt
22:03 invalidexception iggy: On the rdp-formula, having reflection set doesn't actually do anything, since the rdp registry entries aren't under the Software key (reflection only affects those that are), and I included them by mistake when I originally wrote the formula, so it's safe to remove them.
22:03 ageorgop1 joined #salt
22:04 iggy put that in the ticket next time ;)
22:04 invalidexception For the msdtc-formula, you have a fair point.
22:04 rem5 joined #salt
22:05 iggy I'll merge it anyway because... well, I altready broke one formula this week... another notch on the belt
22:06 invalidexception I'll update the PR comment for the sake of completeness.
22:06 iggy also, thanks for writing windows formulas... it's something people ask about a lot
22:06 iggy but there aren't enough people using it who are handy with formulas
22:06 woodtablet hey everyone, yesterday someone in here (#salt) was saying they were going to quit their job because they were going to force chef on them, but that got me to thinking... We are looking for a sysadmin in the LA area, I would like some salt folks in the LA area to apply, message me if you are interested. I like #salt peeps =D
22:08 iggy he's in SD I think
22:08 woodtablet i know, others told him that there were jobs in LA
22:08 iggy but I already called dibs on LA peeps
22:08 woodtablet Bahhh
22:08 woodtablet share man, share =D
22:08 iggy ;)
22:09 iggy woodtablet: what part of LA are you in?
22:10 woodtablet iggy: pasadena, you ?
22:10 iggy Playa Vista (silicon beach)
22:11 woodtablet iggy: ok, you get the West side, I ll take the east side
22:11 iggy fair enough
22:12 iggy nobody over there wants to drive all the way over here to work for... whatever company it is I work for this week
22:13 woodtablet never heard it as silicon beach, but for all the devops jobs I see out there its a fitting name
22:14 ahammond we're hiring in Menlo Park area (silicon valley), specifically looking for salt people to do salty stuff. devops with a concentration on the dev side.
22:15 ahammond speaking of which, I've got salt-cloud to the point where it spins up a server in the cloud, but it's not connecting to my salt master. I'm guessing I've got to put my pub-key on the salt master and add it to the list of keys so I can ssh to the new instance and debug, right?
22:15 iggy woodtablet: yeah, that's what realtors started calling it so they could mark up the houses even more when google/facebook/MS moved in
22:15 ahammond or... is there a salt-cloud --give-me-root-baby minion_id
22:16 iggy ahammond: the last time I followed the directions for salt-cloud, it had you setup keys that were setup... but I think that was with DO
22:16 iggy not sure if that's a general requirement
22:16 ahammond iggy I'm workign with DO right now.
22:17 Rumbles joined #salt
22:17 woodtablet ahammond: doesnt salt-cloud provider & profile setup ask for ssh keys for root ?
22:17 coval3nce How do you guys see salt-cloud competing/comparing to things like terraform?
22:17 woodtablet what is DO ?
22:17 iggy the keys had to be put on the minion via the cloud provider
22:17 ahammond Digital Ocean
22:17 woodtablet ah
22:18 iggy ahammond: if you didn't have keys setup, the minion installation (and thus salt-cloud) would fail
22:18 hal58th joined #salt
22:18 ahammond iggy keys were set up, it connected to the minion and says it installed salt. I also set minion: master to my salt master's IP.
22:18 iggy to ssh to it, just make sure you are telling ssh to use the priv key on the master (i.e. ssh -i /etc/salt/some/path/to/key.priv $minion)
22:19 ahammond iggy that's a though. :)
22:19 hal58th woodtablet: hey that was me that was talking about leaving. I'm in San Diego and I don't plan on leaving unfortunately. LA is just so blah.
22:19 woodtablet hal58th: I know, you and your fabulous weatherrrr
22:20 jfelchner_ joined #salt
22:20 woodtablet hal58th: pasadena's pretty nice though ^_~
22:20 hal58th It's more about the slightly better traffic and the wonderful amount of craft beer and lastly family :P
22:22 rem5 joined #salt
22:22 zmalone joined #salt
22:22 kevinquinnyo atlanta here.  recently moved to a condo directly across from my office.  my commute is 45 seconds
22:23 kevinquinnyo beat that
22:23 dezertol http://www.latimes.com/local/lanow/la-me-ln-san-andreas-fault-earthquake-20160504-story.html
22:23 dezertol not sure I'd be looking to move there
22:23 dezertol just saying
22:24 flowstate joined #salt
22:24 ahammond kevinquinnyo I have a 20 to 60 minute commute on the 101 (depending on traffic, of course). Yay!
22:25 ahammond I'm just assuming here that salt-bootstrap will run on centos 7.2... that's not crazy, right?
22:25 flowstate joined #salt
22:26 ahammond and... I look in /etc/yum.repos.d and don't see SaltStack
22:29 linjan joined #salt
22:31 woodtablet ahammond: it might not.. you might need to pull the dev salt-bootstrap
22:31 woodtablet ahammond: are you getting any gpg-key rpm problem ?
22:32 ahammond nope, it doesn't seem to be bootstrapping at all.
22:32 ahammond strangely, it says it is.
22:32 woodtablet stop hating on LA, I want a coworker =p
22:32 woodtablet lol
22:32 woodtablet ahamand: what is ?
22:33 ahammond woodtablet salt-cloud says "Salt installed on ah-test1" but when I ssh to the new box, there's no salt there.
22:33 ahammond or... at least no packages and no repospec file.
22:35 bltmiller joined #salt
22:35 woodtablet ahammond: here try this: # salt-cloud --no-deploy -p ec2-centos-7 jmoney-centos-7
22:36 woodtablet ahammond: ## salt-ssh jmoney-centos-7 cmd.run 'curl -L https://raw.githubusercontent.com/saltstack/salt-bootstrap/develop/bootstrap-salt.sh | sh -s -- stable'
22:36 pipps99 joined #salt
22:36 rem5 joined #salt
22:36 woodtablet ahammond: this will try to deploy from the latest developer version of the bootstrap, it fixed my salt install problem (some sort of gpg key issue on centos / rhel7)
22:37 pdayton joined #salt
22:37 woodtablet ahammond: changing the profile and computer names to yours.
22:37 zenlot joined #salt
22:38 ahammond woodtablet ok, thanks. I'll take a look
22:39 pdayton joined #salt
22:42 mage_ is there a way to add arguments when a custom event is fired ?
22:42 ahammond woodtablet are you using your salt-ssh key for salt-cloud, too?
22:42 iggy ahammond: what minion are you trying?
22:43 ahammond iggy I have a newly created box in DO, created by salt-cloud called ah-test1
22:43 woodtablet ahammond: i am not using salt-ssh, but i do have a salt-cloud specific ssh key so it can finish up the install
22:44 iggy ahammond: I mean... distro? version?
22:44 ahammond iggy centos 7.2
22:44 salt-n00b joined #salt
22:45 tharkun joined #salt
22:45 estahn joined #salt
22:45 dezertol @mage_ you can pass any data you want into the reactor event..  salt '*' event.fire '{"data":"my event data"}' 'tag'
22:45 dezertol https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.event.html#module-salt.modules.event
22:47 mage_ dezertol: I mean in my state file
22:48 mage_ for ex: fire_event: foo/bar
22:48 mage_ I'd like to add additional data with this event
22:48 zmalone joined #salt
22:50 mage_ in my case I have a state file to create jails on machine B (with jail name, jail ip) and I would like to "react" on machine A when the sls completes (and get the jail ip, name, etc)
22:50 dezertol https://docs.saltstack.com/en/latest/ref/states/all/salt.states.event.html
22:51 dezertol mycompany/mystaterun/status/update:
22:51 dezertol event.send:
22:51 dezertol - data:
22:51 dezertol status: "Half-way through the state run!"
22:51 mage_ perfect
22:51 mage_ thanksç!
22:51 dezertol np
22:53 ajw0100 joined #salt
22:53 mage_ is it the correct way of doing things in salt ?
22:55 mage_ I mean firing custom events with custom data to "do things" on other machines
22:58 mage_ for ex https://gist.github.com/silenius/a117db4ba15a86cdf36c75c61f95f15d
22:58 mage_ I want to automatically accept the key of a newly created jail
22:59 mage_ the state file in my gist works because the jail is created on the machine where the salt-master runs
22:59 subsignal joined #salt
23:00 ajw0100_ joined #salt
23:01 amcorreia joined #salt
23:06 ninjada joined #salt
23:09 dezertol using orchestration and salt mine might serve you better
23:10 fracklen joined #salt
23:11 mage_ salt mine ?
23:11 dezertol we use orchestration with salt mine to setup master/slave database servers.. it's not the same as your jail..
23:11 dezertol salt mine allows you to query values from other systems
23:12 dezertol not sure it would be the best thing given your situation
23:12 dezertol vs just using the reactor system that is
23:12 mage_ from what I understand Orchestration is used when you do things like "setup xxx on machine A, but yyy on machine B should be setup before", right ?
23:13 dezertol it's really way to manage the order of anything really
23:13 dezertol doesn't have to be server x and server y specific
23:13 dezertol it can be state x on server x and state y on server x
23:14 mage_ ok.. I don't understand very well yet Orchestration vs events .. but I'll read a little more :)
23:16 flowstate joined #salt
23:25 pipps joined #salt
23:32 tristianc joined #salt
23:35 Sammichmaker joined #salt
23:41 murrdoc joined #salt
23:49 deus_ex joined #salt
23:50 west575 joined #salt
23:50 crashmag joined #salt
23:53 ahammond on the salt master, I run salt-call pillar.get foo and see output. I run salt salt pillar.get foo and see... nothing? What?!?!
23:54 iggy `salt-call pillar.get` on the master isn't the same as running `salt 'minion' pillar.get`
23:58 ahammond iggy sure. However salt minion_foo pillar.get x should return the same as running salt-call pillar.get x on minion_foo
23:58 iggy correct (but that's not what you said)
23:58 ahammond iggy well... my salt master's name is salt. maybe that's the confusion?
23:59 iggy could be
23:59 lws joined #salt
23:59 iggy lazy

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