Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-02-17

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

All times shown according to UTC.

Time Nick Message
00:00 gtmanfred you could set it as output in jinja
00:01 packeteer joined #salt
00:01 gtmanfred are you trying to do something if the output doesn't match?
00:01 cilkay exactly
00:01 gtmanfred {% set query1 = salt['postgresql.sql_query'](args) %}
00:01 cilkay If local_version != remote_version: do stuff
00:01 gtmanfred {% set query2 = salt['postgresql.sql_query'](args) %}
00:01 gtmanfred {% if compare query1 query2 %}
00:01 gtmanfred state
00:02 gtmanfred {% endif %}
00:02 gtmanfred you can use the salt[] dictionary list of module functions to run stuff when the states get rendered
00:02 cilkay That's the part I was missing, thank you.
00:02 gtmanfred no problem
00:02 cilkay I knew the rest of it.
00:02 gtmanfred one second, lemme see if I can find the docs on that dict
00:02 gtmanfred cilkay: https://docs.saltstack.com/en/latest/ref/states/vars.html
00:02 gtmanfred bam
00:03 cilkay I just didn't know how to return something from a YAML .sls
00:03 cilkay I had looked at returners but there was no joy there.
00:04 gtmanfred yar, all the built ins that you can use in states are in that doc :)
00:05 cilkay I was heading down a rat hole by writing a shell script to do all this and I realized I was just digging a deeper hole dealing with permission issues and such.
00:07 pdayton joined #salt
00:10 pdayton1 joined #salt
00:12 sjohnsen joined #salt
00:15 bevo gtmanfred, interesting so like this: http://pastebin.com/7SmJmfWC
00:16 west575 left #salt
00:17 zer0def joined #salt
00:18 bevo gtmanfred, my only question would then be how do i set a default if that nested hash does not contain that key
00:20 brianfeister joined #salt
00:26 bevo gtmanfred, great, got it, thanks for the pointer
00:26 jeblair joined #salt
00:28 tehsu awesome, thank you very much gtmanfred
00:40 kevinquinnyo1 joined #salt
00:41 amanuel joined #salt
00:41 akhter joined #salt
00:43 djgerm joined #salt
00:44 djgerm how do I specify in my master config where to store my mine data?
00:46 djgerm also, I noticed that minions whose master changes its public key will die and stop trying to talk to the master?
00:46 djgerm is there a way to just have it keep attempting to reconnect
00:47 djgerm until the master.pub is removed/updated?
00:47 hightekvagabond joined #salt
00:51 cilkay djgerm: I use masterless minions so what I'm about to tell you is based on experience with other daemons that might go into some invalid state and give up on restarting. A combination of systemd and monit works for that situation.
00:52 djgerm that makes sense.
00:52 djgerm thanks
00:52 cilkay You're welcome.
00:53 cilkay You can even have monit fire off an email to letting you know that the daemon is in trouble.
00:53 MTecknology joined #salt
00:53 cilkay to let you know
00:53 djgerm brilliant
00:54 djinni` joined #salt
00:54 joe_n joined #salt
00:57 scoates joined #salt
01:00 UtahDave djgerm: the minion dies when the master changes it's public key, by design.  That basically means that a different master is trying to impersonate the original master
01:01 bet0x what happens if someone hacks a master :p
01:05 nyx_ joined #salt
01:08 nethershaw joined #salt
01:11 Diaoer joined #salt
01:11 akhter joined #salt
01:11 Eugene Hilarity ensues.
01:12 gtmanfred tehsu: no problem
01:13 iceyao joined #salt
01:25 knite joined #salt
01:25 iceyao joined #salt
01:27 kevinquinnyo1 I think my brain stopped working at about 2 pm, but can someone explain to me why mine.get requires two target matchings?  ie - salt '*' mine.get '*' network.interfaces
01:32 UtahDave kevinquinnyo1: the first is targeting which minions should run the mine.get command
01:33 UtahDave the second targets which minions' info should be targetted
01:33 LotR the first one is which minions you're asking what's in their mine, and the second one is which minions you want info about
01:33 * LotR <-- slow typer :(
01:33 UtahDave so if you were using salt-call locally on a minion instead it would just be      salt-call mine.get '*' network.interfaces
01:34 UtahDave LotR: but super thorough!  ;)
01:34 kevinquinnyo1 thanks, ok next dumb question, why would i want to call mine.get on one minion vs another
01:35 kevinquinnyo1 if i were after all network.interfaces for instance?
01:36 UtahDave It doesn't make a whole lot of sense from the master.   I usually use mine.get inside of jinja in a minion config.  For example, say I have an haproxy server that I want it to get all the ip address of all my web servers
01:38 LotR maybe you'd want to call it from the master to check if the minion's mine is up-to-date
01:38 kevinquinnyo1 ok i think i get it, calling it from the master on the command line is kind of a weird thing to do because it would normally be in the context of a minion
01:39 xstra joined #salt
01:39 UtahDave kevinquinnyo1: I wouldn't say always, but often
01:41 kevinquinnyo1 i have one more question for now and i hope it's not too complicated (and thanks both of you!)  is it possible, or is there an example of creating a mine_function that consolidates two pieces of grains data into a nice dict?  for instance, if i wanted to get something like [{'minion-id1': '1.2.3.4'}, {'minion-id2': '1.2.3.5'} #...] where the ip is say, the eth0 interface for each one?
01:41 kevinquinnyo1 did that get cut off?
01:44 kevinquinnyo1 i'm trying to use the mine_function's to move grains parsing upstream and out of my states and files
01:44 kevinquinnyo1 especially things that i do often
01:45 UtahDave kevinquinnyo1: you could create a custom module and function that returns that data like that.  The mine just stores the result of the last call that minion did to that function
01:50 kevinquinnyo1 hm i was hoping there was a way for me to sort of alias 'eth0' to to just return the first eth0 address, so my downstream things can do mine.get('*', 'eth0') instead of always having to do something like haproxy_ip = __grains__['ip_interfaces']['eth0'][0]
01:51 kevinquinnyo1 or in the context of mine, interfaces = mine.get('*', 'network.interfaces')  then parse out the first eth0 from that, etc
01:56 malinoff joined #salt
01:58 kevinquinnyo1 i think this will click tomorrow, thanks for the help
01:58 nZac joined #salt
01:58 ageorgop joined #salt
01:59 cberndt joined #salt
02:00 onlyanegg I'm looking at the rabbitmq formula, and I'm seeing states like 'rabbitmq_user.present', but I can't find where those state definitions are.
02:00 onlyanegg Where is 'rabbitmq_user.present' defined?
02:02 djgerm something like /usr/lib/python2.7/dist-packages/salt/states/rabbitmq_user.py
02:02 djgerm which likely calls the module /usr/lib/python2.7/dist-packages/salt/modules/rabbitmq.py
02:02 baweaver joined #salt
02:02 iceyao_ joined #salt
02:03 onlyanegg hmmm... so does that mean all the formulas in https://github.com/saltstack-formulas/ are packaged with salt?
02:04 djgerm formulas, no. states and modules, mostly.
02:05 onlyanegg I cloned the repo https://github.com/saltstack-formulas/rabbitmq-formula, and I figured it was self contained
02:05 iceyao joined #salt
02:06 djgerm the states/modules it uses are a part of the salt install
02:06 onlyanegg oh, I see what you mean
02:06 onlyanegg ok, I found it. Thank you!
02:06 djgerm the formula is a way to get in the air faster (according to some people…. I have had nothing but headache with formulas, but then again I am not very smart)
02:06 djgerm cool!
02:07 djgerm glad I could help!
02:08 xstra joined #salt
02:09 onlyanegg haha, yeah I think I know what you mean. You have to learn how to use the formulas.
02:09 brianfeister joined #salt
02:09 onlyanegg But I see how they're useful.
02:09 wych joined #salt
02:10 doompatrol onlyanegg: one day i'll learn how to use formulas
02:10 lyh joined #salt
02:11 evaryont left #salt
02:11 doompatrol from what i gather it's like creating a programming lib for your env, where pillars are the vars (at least thats what i've told myself to make sense of it)
02:20 racooper joined #salt
02:21 s_kunk joined #salt
02:24 michelangelo joined #salt
02:25 tehsu any info on hipchat v2 api with salt
02:27 tehsu I know v1 is there but it's not working
02:27 gtmanfred if it isn't in a feature request on github, probably no info on it
02:28 gtmanfred tehsu https://github.com/saltstack/salt/issues/27711
02:28 saltstackbot [#27711]title: Hipchat api version 2 support. | Hi, will the hipchat returner and message service have support for api version 2? I cannot find any documentation on it....
02:28 tehsu ah, thank you
02:28 gtmanfred np
02:29 tweakism it can be difficult to integrate formulas cleanly w/o modifying/forking them
02:29 tweakism but this is not a problem unique to salt, I had an identical difficulty w/ puppet recipies.
02:32 drags same story in the chef world, "good" cookbooks are ones that leave all sorts of hooks for you to override the template file for a resource with your own :P
02:32 brianfeister joined #salt
02:33 xstra joined #salt
02:34 rem5 joined #salt
02:37 akhter joined #salt
02:38 beardedeagle joined #salt
02:39 beardedeagle so for salt-cloud is file: and file_map: the same thing? Ie I see there is a limitation of 5 files for file:, but is it the same for file_map:
02:39 gtmanfred probably?
02:39 gtmanfred for which driver?
02:40 beardedeagle openstack
02:40 gtmanfred yes
02:40 gtmanfred 5 is the max
02:40 gtmanfred that is an openstack limitation
02:40 beardedeagle ah gotcha
02:40 gtmanfred use the nova driver if you can
02:40 gtmanfred it is the replacement*
02:40 gtmanfred I have been working to move away from the libcloud driver to the actual openstack libraries
02:41 gtmanfred it should be pretty much inline with libcloud in 2015.8.5 (missing one thing that I found earlier today, ... but almost everything should be there
02:41 UtahDave actually, I think file_map doesn't use openstack facilities. I believe it ssh's the files over
02:41 ecdhe joined #salt
02:41 gtmanfred oh really
02:42 beardedeagle well I am about t find out
02:46 gtmanfred that appreas to be correct
02:46 UtahDave I'm fairly sure.  I used it with a client and I think I was pushing like 30 files over with file_map
02:46 gtmanfred looking at salt.utils.cloud:deploy_script
02:46 gtmanfred it looks like it does sftp them over
02:46 beardedeagle well I need to cut over to nova anyway
02:46 beardedeagle and yeah it does if you debug it out
02:46 gtmanfred does this in the file_map for loop
02:46 gtmanfred ssh_file(
02:46 gtmanfred opts, remote_file, kwargs=ssh_kwargs, local_file=local_file
02:46 gtmanfred )
02:46 beardedeagle yay for doing things the "right" way without knowing
02:46 * MTecknology waves toward UtahDave and yells howdy
02:46 UtahDave howdy, MTecknology!
02:46 UtahDave how are you?
02:46 neilf__ joined #salt
02:46 gtmanfred yeeehaw
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.5 | Register for SaltConf16: http://saltconf.com/register/ | Paid support available for open source Salt! https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | Ask with patience as we are volunteers and may not have immediate answers
02:49 gtmanfred I hear I am probably going to get to go again this year
02:50 MTecknology exhausted, high blood pressure, traveling 100% for work, barely home, starting a new relationship, still working for the old employer, brain hurts, ~2 hr sleep last night, ~8 hr of travel today, ~8 hr of work today, happens 1x/wk now, making more money, probably going to saltconf...
02:51 srinivas joined #salt
02:51 MTecknology I need this conference to return my sanity to it's typical levels. Right now, my sanity level is approaching negative numbers. :P
02:52 beardedeagle joined #salt
02:57 UtahDave dang, man.  Sounds like you really do need to come to SaltConf!  :)
02:57 gtmanfred +1
02:57 UtahDave you, too, beardedeagle!  :)
02:57 gtmanfred i wonder if one of my talks will finally be accepted now :P
02:57 catpigger joined #salt
02:57 wych joined #salt
02:58 beardedeagle Our budget for travel isn't finalized till like the end of the month since we are in the middle of a reorg, but SaltConf and PyCon are the big things I want to hit this year.
02:59 UtahDave very cool
03:03 egalano joined #salt
03:03 spuder joined #salt
03:06 Aleks3Y joined #salt
03:10 Sucks joined #salt
03:10 Sucks left #salt
03:14 krymzon joined #salt
03:16 jab416171 joined #salt
03:17 beardedeagle If I can pry myself from work long enough to land this Salt-Pack PR, I would feel a lot better lol
03:23 mapu joined #salt
03:24 akhter joined #salt
03:26 tehsu does enterprise get free tickets to saltconf or is taht just paid support?
03:29 krymzon joined #salt
03:30 UtahDave tehsu: Hm. Might be. Do you know who your account rep was?
03:36 evle joined #salt
03:38 cinterloper joined #salt
03:38 akhter joined #salt
03:39 onlyanegg joined #salt
03:39 cinterloper reguaring github issue #25168, line 294 in utils/reactor.py calls cmd_async improperly with 2 args, not 3. could this be the culprit?
03:39 cinterloper '            self.client_cache['local'].cmd_async(*args, **kwargs)'
03:44 hasues joined #salt
03:45 tehsu UtahDave, I don't, not off the top of my head.
03:45 UtahDave tehsu: can I pm you?
03:46 tehsu sure
03:46 hasues left #salt
03:46 Gareth 'lo
03:47 akhter joined #salt
03:48 UtahDave Hey, Gareth!  How are you?
03:50 Gareth UtahDave: hey hey :) doing well :) yourself?
03:51 UtahDave pretty good!  Just about to leave the office.
03:52 akhter joined #salt
03:52 Gareth nice.
03:54 akhter joined #salt
03:58 dimeshake joined #salt
04:02 tehsu joined #salt
04:04 malinoff joined #salt
04:05 fracklen joined #salt
04:06 treaki joined #salt
04:10 ramteid joined #salt
04:14 favadi joined #salt
04:24 tweakism heh, so, salt causes 0755 in yaml to become int(755)?
04:25 treaki joined #salt
04:30 justanot1eruser joined #salt
04:33 tweakism hrm, actually, yaml spec says 0755 should be decimal anyway... apparently it uses 0o to prefix octal numbers.
04:33 tweakism color me surprised.
04:33 zenlot2 joined #salt
04:36 kidneb joined #salt
04:36 jaybocc2 joined #salt
04:38 nyx_ joined #salt
04:40 ageorgop joined #salt
04:41 childc2 joined #salt
04:43 feliks joined #salt
04:43 iggy I'm pretty sure that's mentioned in a couple spots in the docs
04:44 childc2 Hey, I've got a "What's best practice here?" question for everyone. I'm looking to have salt lay down everything I need to turn a minion into a ldap client. My first thought was to write a state module that has the minion install the client side packages and lays down a template config file. I was going to have the ldap bind password go in as a pillar though for security's sake. That seems like it would be splitting the module between the
04:45 Vaelatern childc2: Your IRC client cut off the end of your message. Please conclude.
04:46 childc2 Vaelatern: where'd it leave off?
04:46 Vaelatern "splitting the module between the"
04:46 childc2 That seems like it would be splitting the module between the state part and the pillar part, which seems like a bit of fragmentation, but at the same time it seems odd to lay down the entire config as a pillar. Is there a preferred way to do this?
04:47 childc2 you'd think pidgeon of all things would be a pretty robust irc client, good stuff
04:47 Vaelatern pidgin?
04:47 childc2 yeah, I've been typing pigeon all day, the two run together when I try to type apparently
04:48 tweakism iggy: it mentions that interpreting 0-prefixed integers as octal is a YAML mis-feature and is fixed in a certain salt version.  I thought that meant they'd hacked pyyaml to interpret contrary to the yaml spec, but I guess pyyaml was just fixed instead.
04:48 tweakism there's some other mis-info on the yaml idiosyncracies page, though
04:48 tweakism like, yaml is not ASCII-only.
04:49 jaybocc2 joined #salt
04:51 iggy childc2: Salt is very much a "do what works best for you" kind of tool... that said, keeping just a few bits of info in pillar and referencing that in state files and templates seems perfectly legitimate (and widely used)
04:54 akhter joined #salt
04:56 childc2 iggy: cool, thanks. I'm very often game for doing what works for me :P, but I was curious if there were any big gotchas like that to avoid when you go from 10 modules to 100
04:57 ffredrikk joined #salt
04:59 viq joined #salt
04:59 brianfeister joined #salt
05:03 beardedeagle I wish we had saltstack enterprise solely because I want to see the new ui codebase.
05:03 beardedeagle I just wanna look at it lol
05:03 hal58th joined #salt
05:04 treaki joined #salt
05:06 rdas joined #salt
05:06 bevo joined #salt
05:08 ffredrikk joined #salt
05:10 ageorgop joined #salt
05:12 voidspacexyz joined #salt
05:14 tweakism "Salt requires that the indentation for each level consists of exactly two spaces." that *can't* be true.
05:15 kshlm joined #salt
05:15 cberndt joined #salt
05:18 pwalsh joined #salt
05:20 iceyao_ joined #salt
05:21 ageorgop joined #salt
05:22 akhter joined #salt
05:23 berto- joined #salt
05:23 cilkay tweakism: We use it with four spaces just fine.
05:24 tvinson joined #salt
05:24 zifnab does gitfs support submodules?
05:24 ablemann joined #salt
05:25 zifnab looks like 'no', nevermind
05:25 beardedeagle tweakism: totally not true
05:26 beardedeagle as long as the file is uniform with indentation is all you really need
05:26 tweakism beardedeagle: explain uniform
05:27 tweakism this text uses that as well, I'm not sure what it means
05:27 beardedeagle if you use 4, use 4 throughout
05:27 beardedeagle if you use 2, use 2 throughout
05:27 tweakism why on earth would that actually be required
05:28 bevo joined #salt
05:29 beardedeagle I don't think it's an *actual* requirement on saltstacks side
05:30 cilkay childc2: The only thing I'm using pillars for is db auth strings to be used in states. I have about 60 states that takes a Debian image we've built with Packer and installs requisite packages that weren't part of the base image and configures everything.
05:31 tweakism jfc, yamllint agrees with you that it's an error
05:31 tweakism could yaml really be that silly
05:31 beardedeagle yes, but so much easier to read than some alternatives
05:32 cilkay cough, cough... XML
05:33 beardedeagle tweakism: it gets really fun when you start throwing certs into pillars
05:33 beardedeagle and you need extra spaces
05:33 childc2 cilkay: alright, sounds like I'm not doing anything too weird here
05:33 childc2 thanks!
05:34 cilkay you're welcome
05:35 tweakism beardedeagle: there's always file_tree
05:35 tweakism beardedeagle: I'm working on something similar to it w/ a few more capabilities
05:35 beardedeagle noice, let me know when you have it somewhere it can be seen. i'd love to take a look.
05:36 tweakism are you interested in helping define features?
05:36 beardedeagle sure, what's another thing on my plate lol
05:38 tweakism I'm thinking I might allow several types of files, identified by extension (which would be part of the config, but there could be defaults); types could be:  raw (slurp entire file into pillar value), strip_newline (same, but remove terminal newline), yaml (pull yaml data inside file as subkeys of name, like the normal pillar does), json/other formats
05:39 tweakism and I might also allow, configurably, to interpret directories that contain only files/directories with names matching ^[0-9]+$ as lists instead of dictionaries
05:40 tweakism so if configured so, a file named blah.txt.raw would be slurped into a pillar and the key would be blah.txt
05:40 tweakism there would be a config (and default) for what type to use for files that don't match any of the configured patterns
05:40 tweakism what do you think so far?
05:41 tweakism it wouldn't have to be extension; you could define type identification by regex or glob; but extensions are nice for being easily strip-offable.
05:41 beardedeagle sounds good so far
05:42 tweakism and I want to use something more capable than fnmatch, if only to be able to have both patterns that cause inclusions and patterns that cause exclusions
05:45 ffredrikk joined #salt
05:46 lompik joined #salt
05:46 tweakism beardedeagle: can you think of anything else it should be able to do?
05:46 tweakism beardedeagle: oh, more ways to match besides minion_id and nodegroup, too, but I'm not sure what all
05:47 tweakism specific grains in the config, for one, probably
05:47 ageorgop joined #salt
05:50 tweakism is it just me or the YAML spec f'ing impossible to read and comprehend
05:51 Eugene It's just you.
05:52 favadi joined #salt
05:53 fracklen joined #salt
05:55 tweakism well, fine.
05:57 ffredrikk joined #salt
05:58 childc2 left #salt
06:01 pwalsh joined #salt
06:03 ffredrikk joined #salt
06:04 tvinson joined #salt
06:04 berto- joined #salt
06:05 impi joined #salt
06:06 ablemann joined #salt
06:08 beardedeagle tweakism: grain matching would be a must
06:08 brianfeister joined #salt
06:13 sauvin joined #salt
06:20 egalano joined #salt
06:24 Diaoer joined #salt
06:25 Diaoer joined #salt
06:28 eliasp tweakism: I have to agree… the YAML spec is horrible
06:28 beardedeagle night all, got a early morning
06:29 catpig joined #salt
06:30 josuebrunel joined #salt
06:31 pwalsh joined #salt
06:38 Hari_ joined #salt
06:39 favadi joined #salt
06:40 Hari_ HELP
06:40 jaybocc2 joined #salt
06:45 Hari_ I am using windows machine  and installed vigrant , virtual box but while downloading the box from " http://www.vagrantbox.es/"  cmd showing the below error ." C:\Users\310229972\vagrant-centos>vagrant box add  --force --location-trusted  c entos https://github.com/2creatives/vagrant-centos/releases/download/v6.4.2/cent os64-x86_64-20140116.box ==> box: Box file was not detected as metadata. Adding it directly... ==> box: Adding box 'c
06:46 Hari_ Error was " box: Adding box 'centos' (v0) for provider:     box: Downloading: https://github.com/2creatives/vagrant-centos/releases/down load/v6.4.2/centos64-x86_64-20140116.box     box: Progress: 0% (Rate: 0curl:/s, Estimated time remaining: --:--:--) An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. "
06:50 akhter joined #salt
06:50 felskrone joined #salt
06:54 felskrone1 joined #salt
06:55 tyler-baker joined #salt
06:57 malinoff joined #salt
06:58 illern joined #salt
07:01 kawa2014 joined #salt
07:07 krymzon joined #salt
07:08 malinoff joined #salt
07:20 harkx joined #salt
07:21 SVQTQ joined #salt
07:22 babilen Hari_: Are you sure that you are not looking for #vagrant ? In either case: You have to paste the complete error and, preferrably, also your Vagrantfile to one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, …
07:22 babilen Not sure what this has to do with salt
07:29 malinoff joined #salt
07:29 egalano joined #salt
07:29 hlub I am refactoring glusterfs module and states rather heavily. This code showed to be quite buggy.
07:31 karlamrhein joined #salt
07:32 traph joined #salt
07:32 iggy some things are like that... they work well enough for someone, so they donate the code for others in the hopes it'll be useful (even if just as a starting point)
07:33 karlamrhein joined #salt
07:35 hlub Usage of the sates is not changing although I would like to change the name of the state 'created' to 'volume_present' while deprecating the nld name.
07:46 iceyao joined #salt
07:53 djgerm Howdy! Can someone inform me where mine data is stored? Is that configurable? I can't see it in the master config.
07:53 tweakism eliasp: thank you :)
07:55 pwalsh joined #salt
07:59 rotbeard joined #salt
08:03 q1x_ joined #salt
08:04 linjan joined #salt
08:05 karlamrhein joined #salt
08:07 fredvd joined #salt
08:08 brianfeister joined #salt
08:08 egalano joined #salt
08:08 impi joined #salt
08:10 rotbeard joined #salt
08:13 ilbot3 joined #salt
08:13 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.5 | Register for SaltConf16: http://saltconf.com/register/ | Paid support available for open source Salt! https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | Ask with patience as we are volunteers and may not have immediate answers
08:15 jakwas joined #salt
08:16 pwalsh joined #salt
08:16 karlamrhein joined #salt
08:17 elsmo joined #salt
08:20 cberndt joined #salt
08:21 dariusjs joined #salt
08:25 garphy joined #salt
08:25 TjackNoire joined #salt
08:27 totzky joined #salt
08:28 Hydrosine joined #salt
08:28 jhauser joined #salt
08:28 Hydrosine joined #salt
08:30 fracklen joined #salt
08:30 impi joined #salt
08:31 rubendv joined #salt
08:31 rubendv joined #salt
08:33 fracklen joined #salt
08:34 fracklen joined #salt
08:34 linjan joined #salt
08:47 Rumbles joined #salt
08:48 Antiarc joined #salt
08:48 antpa joined #salt
08:50 ronnix joined #salt
08:52 patchedmonkey joined #salt
08:52 jaybocc2 joined #salt
08:52 krymzon joined #salt
08:57 LondonAppDev joined #salt
08:57 zerthimon joined #salt
08:58 josuebrunel joined #salt
09:07 jaybocc2 joined #salt
09:17 pjammer joined #salt
09:19 chiui joined #salt
09:20 s_kunk joined #salt
09:27 impi joined #salt
09:27 Xevian joined #salt
09:28 ronnix joined #salt
09:28 karlamrhein joined #salt
09:34 liskl joined #salt
09:41 deniszh joined #salt
09:47 atmosx joined #salt
09:47 elsmo joined #salt
09:51 karlamrhein joined #salt
09:52 totzky joined #salt
09:52 Vye joined #salt
09:52 mschiff joined #salt
09:52 mschiff joined #salt
09:52 Riz joined #salt
09:52 tawm04 joined #salt
09:52 oeuftete joined #salt
09:52 tedski joined #salt
09:52 Garo_ joined #salt
09:52 soma joined #salt
09:52 [dee] joined #salt
09:52 drags joined #salt
09:52 Ahlee joined #salt
09:52 keekz joined #salt
09:52 duckfez joined #salt
09:52 darvon joined #salt
09:52 tru_tru joined #salt
09:52 ashmckenzie joined #salt
09:52 aurynn joined #salt
09:52 __number5__ joined #salt
09:52 phx joined #salt
09:52 ktosiek joined #salt
09:52 LotR joined #salt
09:52 giany joined #salt
09:52 Bucciarati joined #salt
09:52 ndim joined #salt
09:52 koomi joined #salt
09:52 Twiglet joined #salt
09:53 nebuchadnezzar joined #salt
09:53 tongpu joined #salt
09:53 alexlist joined #salt
09:53 xMopxShell joined #salt
09:53 jinkyu joined #salt
09:53 masterkorp joined #salt
09:53 TOoSmOotH joined #salt
09:53 garthk joined #salt
09:53 sifusam joined #salt
09:53 alxchk joined #salt
09:53 mgresser joined #salt
09:53 Ludo- joined #salt
09:53 terinjokes joined #salt
09:53 sarlalian joined #salt
09:53 ]V[ joined #salt
09:53 gadams joined #salt
09:53 analogbyte joined #salt
09:53 nobrak joined #salt
09:53 nobrak joined #salt
09:53 Sacro joined #salt
09:53 babilen joined #salt
09:53 etw joined #salt
09:53 NaPs joined #salt
09:53 Ssquidly joined #salt
09:53 chamunks joined #salt
09:53 tampakrap joined #salt
09:53 Rockj joined #salt
09:53 Niamkik joined #salt
09:53 Cottser joined #salt
09:54 KermitTheFragger joined #salt
09:55 simmel joined #salt
09:55 Jarus joined #salt
09:55 s_kunk joined #salt
09:55 sirtaj joined #salt
09:55 scooby2 joined #salt
09:55 StolenToast joined #salt
09:56 rhand joined #salt
09:56 ujjain joined #salt
09:56 ujjain joined #salt
09:57 brianfeister joined #salt
09:57 liqw joined #salt
09:57 kiorky joined #salt
09:59 q1x joined #salt
09:59 hacks joined #salt
09:59 iceyao_ joined #salt
09:59 Micromus joined #salt
10:00 shawnbutts joined #salt
10:00 antpa joined #salt
10:00 simonmcc joined #salt
10:00 johtso joined #salt
10:02 ramishra joined #salt
10:02 davedash joined #salt
10:02 linovia joined #salt
10:02 m0nky_ joined #salt
10:02 KermitTheFragger joined #salt
10:02 serverascode joined #salt
10:03 lkannan joined #salt
10:03 mattl joined #salt
10:03 gazarsgo joined #salt
10:04 ilbot3 joined #salt
10:04 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.5 | Register for SaltConf16: http://saltconf.com/register/ | Paid support available for open source Salt! https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | Ask with patience as we are volunteers and may not have immediate answers
10:05 Ouzo_12 joined #salt
10:05 robinsmidsrod joined #salt
10:05 mschiff joined #salt
10:05 mschiff joined #salt
10:05 sarlalian joined #salt
10:05 paolo joined #salt
10:05 theanalyst joined #salt
10:05 Jarus joined #salt
10:06 tampakrap joined #salt
10:06 jhauser joined #salt
10:06 mrbobbytables joined #salt
10:06 dijit joined #salt
10:07 wiqd joined #salt
10:07 nahkiss_ joined #salt
10:07 ashb joined #salt
10:08 __number5__ joined #salt
10:08 thebwt joined #salt
10:08 `chris joined #salt
10:08 jakwas joined #salt
10:08 tru_tru joined #salt
10:08 penguinpowernz joined #salt
10:08 tonthon joined #salt
10:08 denys joined #salt
10:08 okfine joined #salt
10:08 MTecknology joined #salt
10:08 TjackNoire joined #salt
10:08 StevenGFX joined #salt
10:08 opdude joined #salt
10:08 akitada joined #salt
10:08 totzky joined #salt
10:08 tercenya joined #salt
10:08 nicksloan joined #salt
10:09 Fabbe joined #salt
10:09 rotbeard joined #salt
10:09 garphy joined #salt
10:09 Rumbles joined #salt
10:09 TyrfingMjolnir joined #salt
10:09 stopbyte joined #salt
10:09 cro joined #salt
10:10 rdas joined #salt
10:11 wendall911 joined #salt
10:11 JonGretar joined #salt
10:11 frew joined #salt
10:12 munhitsu_ joined #salt
10:12 antonw joined #salt
10:12 ws2k3_ joined #salt
10:12 lkannan joined #salt
10:13 neilf__ joined #salt
10:13 ramishra joined #salt
10:14 cberndt joined #salt
10:15 supermike___ joined #salt
10:16 copelco joined #salt
10:16 m0nky_ joined #salt
10:16 logandg joined #salt
10:20 brianfeister joined #salt
10:21 hlub How should I deprecate a state function? I don't know which version name I should specify.
10:23 tweakism probably 'Nitrogen', I think it's the most-future one defined
10:27 totzky joined #salt
10:28 GreatSnoopy joined #salt
10:33 antpa joined #salt
10:33 amcorreia joined #salt
10:38 adongy joined #salt
10:38 Netwizard joined #salt
10:41 irctc228 joined #salt
10:43 fredvd joined #salt
10:44 seblu joined #salt
10:46 rsys joined #salt
10:46 ffredrikk how can you, from the salt master, run a specific sls file on a minion?
10:49 davromaniak joined #salt
10:49 davromaniak joined #salt
10:49 gerhardqux joined #salt
10:49 rudi_s joined #salt
10:49 Laogeodritt joined #salt
10:49 help joined #salt
10:49 Heartsbane joined #salt
10:49 FTfz joined #salt
10:49 aarontc joined #salt
10:49 jeblair joined #salt
10:49 `chris joined #salt
10:49 agj joined #salt
10:49 tim_s007 joined #salt
10:49 Karunamon joined #salt
10:49 asyncsrc_ joined #salt
10:49 scarcry joined #salt
10:49 bbradley joined #salt
10:49 colegatron joined #salt
10:49 alias joined #salt
10:49 packeteer joined #salt
10:49 dh joined #salt
10:49 nethershaw joined #salt
10:49 B1nny joined #salt
10:49 Puckel_ joined #salt
10:49 evilrob joined #salt
10:49 AirOnSkin joined #salt
10:49 thebwt joined #salt
10:49 nahamu joined #salt
10:50 koomi joined #salt
10:50 xenoxaos joined #salt
10:50 oida joined #salt
10:50 seblu joined #salt
10:50 xMopxShell joined #salt
10:50 llua^_^AznSmile- joined #salt
10:50 bdrung_work joined #salt
10:50 Pixionus joined #salt
10:50 Pixionus joined #salt
10:50 pprkut joined #salt
10:50 aurynn joined #salt
10:50 skrobul joined #salt
10:50 oeuftete joined #salt
10:50 jrklein joined #salt
10:50 LostSoul joined #salt
10:50 stbenjam joined #salt
10:50 stooj joined #salt
10:50 aRkadeFR joined #salt
10:50 lorengordon joined #salt
10:50 patchedmonkey joined #salt
10:50 ecdhe joined #salt
10:50 alvinstarr joined #salt
10:50 w1gz joined #salt
10:50 mfournier joined #salt
10:50 dkrae joined #salt
10:50 esharpmajor joined #salt
10:50 Rockj joined #salt
10:50 techdragon joined #salt
10:50 NightMonkey joined #salt
10:50 joren joined #salt
10:50 chutzpah joined #salt
10:50 Jimlad joined #salt
10:51 bearonis joined #salt
10:51 Eugene joined #salt
10:51 edulix joined #salt
10:51 adelcast joined #salt
10:51 CustosLimen joined #salt
10:51 hexa- joined #salt
10:51 saltstackbot joined #salt
10:51 kuromagi joined #salt
10:51 tzero joined #salt
10:51 dstokes joined #salt
10:51 godlike joined #salt
10:51 godlike joined #salt
10:51 djinni` joined #salt
10:51 jav joined #salt
10:52 JoeJulian joined #salt
10:52 MikaT joined #salt
10:52 diegows joined #salt
10:52 fullstop joined #salt
10:52 jfindlay joined #salt
10:52 canci joined #salt
10:52 Nebraskka joined #salt
10:52 Cottser joined #salt
10:53 KingJ joined #salt
10:53 xMopxShell joined #salt
10:53 rodr1c joined #salt
10:53 ronnix joined #salt
10:54 the_ktosiek joined #salt
10:54 mage_ joined #salt
10:55 baffle joined #salt
10:55 dh joined #salt
10:55 josue joined #salt
10:55 jacksontj joined #salt
10:55 kevinquinnyo joined #salt
10:55 SteamWells joined #salt
10:55 v12aml joined #salt
10:56 wm-bot4161 joined #salt
10:56 pcdummy joined #salt
10:56 pcdummy joined #salt
10:56 lkannan joined #salt
10:57 serverascode joined #salt
10:58 simonmcc joined #salt
10:58 N-Mi joined #salt
10:58 N-Mi joined #salt
10:59 bmcorser joined #salt
11:00 ws2k3_ joined #salt
11:00 KermitTheFragger joined #salt
11:01 linovia joined #salt
11:02 Phtes joined #salt
11:02 sjohnsen joined #salt
11:03 supermike___ joined #salt
11:03 giantlock joined #salt
11:03 ramblinpeck joined #salt
11:04 daemonkeeper joined #salt
11:04 BogdanR joined #salt
11:04 [dee] joined #salt
11:04 scarcry joined #salt
11:04 evilrob joined #salt
11:04 nexsja joined #salt
11:04 nethershaw joined #salt
11:04 Erik-p joined #salt
11:04 Riz joined #salt
11:04 admgre joined #salt
11:04 admgre joined #salt
11:04 scc joined #salt
11:04 tedski joined #salt
11:04 synical joined #salt
11:04 smkelly joined #salt
11:04 mephx joined #salt
11:04 Twiglet joined #salt
11:04 jhujhiti joined #salt
11:04 ze- joined #salt
11:04 Zachary_DuBois joined #salt
11:04 jor joined #salt
11:04 packeteer joined #salt
11:04 freelock joined #salt
11:04 tweakism joined #salt
11:04 is_null joined #salt
11:04 psojourner joined #salt
11:04 melbogia joined #salt
11:04 rubendv joined #salt
11:04 rubendv joined #salt
11:04 viq joined #salt
11:04 gchao joined #salt
11:04 alexlist joined #salt
11:04 Sketch joined #salt
11:04 N-Mi joined #salt
11:04 rem5 joined #salt
11:04 illern joined #salt
11:04 tru_tru joined #salt
11:04 tongpu joined #salt
11:04 lahwran joined #salt
11:05 SubOracle joined #salt
11:05 cswang joined #salt
11:05 rawzone joined #salt
11:05 rodr1c joined #salt
11:05 soma joined #salt
11:05 frew joined #salt
11:05 rodr1c joined #salt
11:05 Ashald joined #salt
11:05 Karunamon joined #salt
11:05 Hydrosine joined #salt
11:05 garphy joined #salt
11:05 zenlot2 joined #salt
11:05 Hydrosine joined #salt
11:05 bearonis joined #salt
11:05 joren joined #salt
11:05 izibi joined #salt
11:05 JPT joined #salt
11:05 karlthane joined #salt
11:05 Erik-p i like to run sls on web servers 1 by 1. can i make any condition to stop or continue?
11:05 mohae joined #salt
11:05 workthrick joined #salt
11:05 jav joined #salt
11:05 tim_s007 joined #salt
11:05 colinstgeorge joined #salt
11:05 peters-tx joined #salt
11:05 ashmckenzie joined #salt
11:06 kuromagi joined #salt
11:06 adelcast joined #salt
11:06 APLU joined #salt
11:06 leev joined #salt
11:06 godlike joined #salt
11:06 godlike joined #salt
11:06 al joined #salt
11:06 bhosmer joined #salt
11:07 aboe joined #salt
11:07 eofs joined #salt
11:07 kbyrne joined #salt
11:08 renoirb joined #salt
11:08 Jimlad joined #salt
11:09 iceyao joined #salt
11:09 Rkp joined #salt
11:09 sirtaj joined #salt
11:09 tim_s007 joined #salt
11:10 Hetman joined #salt
11:10 mitsuhiko joined #salt
11:10 Muchoz joined #salt
11:11 ramishra joined #salt
11:11 Cottser joined #salt
11:11 Muchoz How is this a fail? https://vomitb.in/EJD75ExIrn
11:11 gerhardqux joined #salt
11:12 totte joined #salt
11:13 * babilen doesn't like vomit
11:13 skarn joined #salt
11:13 Muchoz Is there a way I can get the log for that?
11:13 babilen Erik-p: Stop of continue?
11:13 frankS2 joined #salt
11:14 CustosLimen joined #salt
11:14 mattl joined #salt
11:14 Niamkik joined #salt
11:14 czchen joined #salt
11:14 imanc joined #salt
11:14 babilen Muchoz: Run it locally on the minion with "salt-call -ldebug state.sls YOUR.SLS"
11:14 Muchoz babilen, ya. Doing that, just a bummer that I can't retrieve it without rerunning it
11:14 flebel joined #salt
11:14 bbhoss joined #salt
11:15 CaptTofu___ joined #salt
11:15 mihait joined #salt
11:15 shawnbutts joined #salt
11:15 Erik-p babilen: i will explain: i have a state to remove minion from aws elb, upgrade and return to aws elb. i dont want to continue until aws elb see it "InService"
11:15 ashb joined #salt
11:16 babilen Sounds as if you want orchestrate and https://docs.saltstack.com/en/latest/ref/states/all/salt.states.saltmod.html#salt.states.saltmod.wait_for_event
11:16 goki joined #salt
11:16 simmel joined #salt
11:17 twodayslate joined #salt
11:19 jaybocc2 joined #salt
11:19 zerthimon joined #salt
11:19 gtaylor joined #salt
11:21 Erik-p babilen: Thanks will check it
11:21 iceyao joined #salt
11:23 jhauser joined #salt
11:28 aurynn joined #salt
11:31 mihait joined #salt
11:32 JPT joined #salt
11:34 jaybocc2 joined #salt
11:40 thraxil joined #salt
11:40 fullstop joined #salt
11:40 Mate joined #salt
11:40 Mate joined #salt
11:40 Nebraskka joined #salt
11:40 Pie_Mage joined #salt
11:40 GnuLxUsr joined #salt
11:40 canci joined #salt
11:40 johnf1911 joined #salt
11:40 jfred joined #salt
11:40 jettero joined #salt
11:40 toddnni joined #salt
11:40 jettero joined #salt
11:40 flebel joined #salt
11:40 ktosiek joined #salt
11:40 josuebrunel joined #salt
11:40 kbyrne joined #salt
11:40 scooby2 joined #salt
11:40 codehotter joined #salt
11:40 nZac joined #salt
11:40 jhauser joined #salt
11:40 linjan joined #salt
11:40 aqua^c joined #salt
11:40 ablemann joined #salt
11:40 Horgix joined #salt
11:40 schinken joined #salt
11:40 tehsu joined #salt
11:40 cb joined #salt
11:40 eofs joined #salt
11:40 StolenToast joined #salt
11:40 cswang_ joined #salt
11:40 rdas joined #salt
11:40 devtea joined #salt
11:40 tkeith joined #salt
11:40 mitsuhiko joined #salt
11:41 jfindlay joined #salt
11:41 antpa joined #salt
11:41 rotbeard joined #salt
11:41 cro joined #salt
11:41 Jimlad joined #salt
11:41 antix_ joined #salt
11:42 carmony joined #salt
11:42 Rumbles joined #salt
11:43 rhand joined #salt
11:43 jcockhren joined #salt
11:43 jab416171 joined #salt
11:45 gerhardqux joined #salt
11:45 chesty joined #salt
11:45 Ch3LL joined #salt
11:45 dork joined #salt
11:47 TyrfingMjolnir joined #salt
11:47 jcastle joined #salt
11:47 diegows joined #salt
11:47 OliverMT joined #salt
11:48 Gareth joined #salt
11:48 shiriru joined #salt
11:50 douardda joined #salt
11:50 Riz joined #salt
11:50 vincent_vdk joined #salt
11:50 GnuLxUsr joined #salt
11:50 mirko joined #salt
11:50 tehsu joined #salt
11:50 basepi joined #salt
11:50 btorch joined #salt
11:50 lynxman joined #salt
11:50 LtLefse joined #salt
11:50 RandyT joined #salt
11:50 rubenb joined #salt
11:50 SirLagz joined #salt
11:50 ze- joined #salt
11:50 twork joined #salt
11:50 jakwas joined #salt
11:50 g3cko joined #salt
11:50 cornfeedhobo joined #salt
11:50 dunz0r joined #salt
11:50 tooth joined #salt
11:50 tuxx joined #salt
11:50 dynamicudpate joined #salt
11:50 ashmckenzie joined #salt
11:50 Puckel_ joined #salt
11:50 Puckel_ joined #salt
11:50 bhosmer joined #salt
11:50 cliluw joined #salt
11:50 jhujhiti joined #salt
11:50 feliks joined #salt
11:50 ajolo joined #salt
11:50 buhman joined #salt
11:50 armguy joined #salt
11:50 GreatSnoopy joined #salt
11:50 edrocks joined #salt
11:50 tercenya joined #salt
11:50 pezus joined #salt
11:50 bernieke joined #salt
11:51 mgresser joined #salt
11:51 borgstrom joined #salt
11:51 Glasswlkr joined #salt
11:51 iceyao joined #salt
11:51 Vaelatern joined #salt
11:51 sifusam joined #salt
11:51 georgemarshall joined #salt
11:51 davidbanham joined #salt
11:51 joshin joined #salt
11:51 joshin joined #salt
11:51 mrtrosen joined #salt
11:51 Muchoz joined #salt
11:51 trent joined #salt
11:51 opdude joined #salt
11:51 asyncsrc_ joined #salt
11:51 ekkelett joined #salt
11:51 ekkelett joined #salt
11:51 Jimlad joined #salt
11:51 SubOracle joined #salt
11:51 om joined #salt
11:51 chutzpah joined #salt
11:51 NV joined #salt
11:52 InAnimaTe joined #salt
11:53 StevenGFX joined #salt
11:54 gtmanfred joined #salt
11:55 help joined #salt
11:55 MeltedLux joined #salt
11:56 debian112 joined #salt
11:57 analogbyte joined #salt
11:57 ThomasJ joined #salt
11:58 __alex joined #salt
11:59 Garo_ joined #salt
11:59 ujjain joined #salt
11:59 ujjain joined #salt
11:59 `chris joined #salt
11:59 AbyssOne joined #salt
11:59 titilambert joined #salt
11:59 Hipikat joined #salt
11:59 Dev0n joined #salt
11:59 Ph-x joined #salt
11:59 N-Mi__ joined #salt
11:59 denys joined #salt
11:59 mage_ joined #salt
11:59 thebwt joined #salt
11:59 jgelens joined #salt
11:59 kevinquinnyo joined #salt
11:59 norii joined #salt
11:59 admgre joined #salt
11:59 EO_ joined #salt
11:59 ropes joined #salt
11:59 admgre joined #salt
11:59 freelock joined #salt
11:59 viq joined #salt
11:59 iggy joined #salt
11:59 stevednd joined #salt
11:59 jY joined #salt
11:59 Cignacio joined #salt
11:59 baoboa joined #salt
11:59 robawt joined #salt
11:59 egil joined #salt
11:59 jeblair joined #salt
11:59 nkuttler joined #salt
11:59 ktosiek joined #salt
11:59 antpa joined #salt
11:59 bhosmer joined #salt
11:59 unusedPhD_ joined #salt
11:59 monokrome joined #salt
11:59 tzero joined #salt
11:59 lahwran joined #salt
11:59 izrail joined #salt
11:59 jfindlay joined #salt
11:59 quarcu joined #salt
11:59 smkelly joined #salt
11:59 TyrfingMjolnir joined #salt
12:00 tonthon joined #salt
12:00 artemz joined #salt
12:00 grep_away joined #salt
12:00 kshlm joined #salt
12:00 davromaniak joined #salt
12:00 rem5 joined #salt
12:00 davromaniak joined #salt
12:00 invalidexception joined #salt
12:00 intr1nsic joined #salt
12:00 nahamu joined #salt
12:00 marcinkuzminski joined #salt
12:00 muep joined #salt
12:00 agj joined #salt
12:00 SVQTQ joined #salt
12:00 rotbeard joined #salt
12:00 nikogonzo joined #salt
12:00 gmoro joined #salt
12:00 tawm04 joined #salt
12:00 patrek joined #salt
12:00 keekz joined #salt
12:00 Cignacio hi... could I ask for some help using formulas?
12:00 alxchk joined #salt
12:01 __number5__ joined #salt
12:01 Eureka703 joined #salt
12:01 dustywusty joined #salt
12:01 Cignacio I downloaded sysctl because it's simple and can't get it to work...
12:01 jasondotstar joined #salt
12:01 kidneb joined #salt
12:01 dyasny joined #salt
12:01 babilen Why not?
12:02 hillna joined #salt
12:02 Nazca joined #salt
12:02 jhujhiti joined #salt
12:02 Cignacio most probably doing something wrong, it's my first attempt
12:02 Cignacio so, I have dl'ed it to  /srv/formulas/sysctl-formula/
12:02 ahammond joined #salt
12:02 lazybear joined #salt
12:02 tvinson joined #salt
12:02 blue0ctober joined #salt
12:02 Cignacio and added this path to base
12:03 Cignacio then, referenced it in the top file like
12:03 Cignacio base:
12:03 Cignacio '*':
12:03 Cignacio - common
12:03 Cignacio 'minion1':
12:03 Cignacio - sysctl
12:03 pjs joined #salt
12:03 davisj joined #salt
12:04 bearonis joined #salt
12:04 psojourner joined #salt
12:04 pmcg joined #salt
12:04 iamtew joined #salt
12:04 deus_ex joined #salt
12:04 mitsuhiko joined #salt
12:04 jesusaur joined #salt
12:04 ALLmightySPIFF joined #salt
12:04 kawa2014 joined #salt
12:04 wych joined #salt
12:04 murkey joined #salt
12:04 alxf joined #salt
12:04 jrgochan joined #salt
12:04 feld joined #salt
12:04 liskl joined #salt
12:04 Gabemo joined #salt
12:04 alinuxninja joined #salt
12:04 evidence joined #salt
12:04 pmcnabb joined #salt
12:04 chrismoos joined #salt
12:04 bryguy joined #salt
12:04 mitsuhiko joined #salt
12:04 jambulance joined #salt
12:04 pppingme joined #salt
12:04 cwright joined #salt
12:04 froztbyte joined #salt
12:04 froztbyte joined #salt
12:04 XenophonF joined #salt
12:04 kevc joined #salt
12:04 jesusaur joined #salt
12:05 iamtew joined #salt
12:05 terratoma joined #salt
12:05 pmcg joined #salt
12:05 darvon joined #salt
12:05 voxxit joined #salt
12:05 jayne joined #salt
12:06 Cignacio wait... rebooted salt master, worked... damn. stupid mistake. Sorry and thanks
12:06 czchen joined #salt
12:06 yidhra_ joined #salt
12:06 rudi_s joined #salt
12:06 kaictl joined #salt
12:07 qman__ joined #salt
12:07 feld joined #salt
12:07 feld joined #salt
12:08 alinuxninja joined #salt
12:08 dean joined #salt
12:09 danemacmillan joined #salt
12:11 giantlock joined #salt
12:11 sjorge joined #salt
12:11 sjorge joined #salt
12:11 antonw joined #salt
12:13 dork joined #salt
12:13 wm-bot4 joined #salt
12:14 zer0def joined #salt
12:15 davisj joined #salt
12:17 Erik-p after research wait_for_event how can i make a module in state to keep run in loop until event will come?
12:25 saltsa joined #salt
12:25 ablemann joined #salt
12:25 oeuftete joined #salt
12:25 ventris joined #salt
12:25 stupidnic joined #salt
12:25 eseyman joined #salt
12:25 pfallenop joined #salt
12:25 Sacro joined #salt
12:25 muep joined #salt
12:25 frew joined #salt
12:25 rodr1c joined #salt
12:25 rodr1c joined #salt
12:25 jcristau joined #salt
12:25 techdragon joined #salt
12:25 zifnab joined #salt
12:25 berto- joined #salt
12:25 BlackBishop joined #salt
12:25 MK_FG joined #salt
12:25 MK_FG joined #salt
12:25 ]V[ joined #salt
12:25 jav joined #salt
12:25 workthrick joined #salt
12:25 TjackNoire joined #salt
12:25 michelangelo joined #salt
12:25 soma joined #salt
12:25 Diaoul joined #salt
12:25 xMopxShell joined #salt
12:25 fracklen joined #salt
12:25 kbaikov joined #salt
12:25 dimeshake joined #salt
12:25 Ludo- joined #salt
12:25 sybix joined #salt
12:25 jrklein joined #salt
12:25 saltstackbot joined #salt
12:25 KermitTheFragger joined #salt
12:25 eightyeight joined #salt
12:25 [vaelen] joined #salt
12:25 totzky joined #salt
12:25 nidr0x joined #salt
12:25 pmumby_ joined #salt
12:25 terinjokes joined #salt
12:25 stopbyte joined #salt
12:25 eliasp joined #salt
12:25 bonzibuddy joined #salt
12:25 sfz- joined #salt
12:25 peters-tx joined #salt
12:25 kbaikov joined #salt
12:25 wendall911 joined #salt
12:25 Pluggi joined #salt
12:25 aRkadeFR joined #salt
12:25 notnotpeter joined #salt
12:25 danielcb joined #salt
12:25 nobrak joined #salt
12:25 mariusv joined #salt
12:25 nobrak joined #salt
12:25 Rockj joined #salt
12:26 fxhp joined #salt
12:26 tmmt joined #salt
12:26 shnguyen joined #salt
12:26 MaZ- joined #salt
12:26 rsFF joined #salt
12:26 kuromagi joined #salt
12:26 iamtew joined #salt
12:26 Kelsar joined #salt
12:26 Edgan joined #salt
12:26 MajObviousman joined #salt
12:26 foundatron joined #salt
12:26 gadams joined #salt
12:26 oravirt joined #salt
12:27 EvaSDK joined #salt
12:27 etw joined #salt
12:27 yawniek joined #salt
12:29 whytewolf joined #salt
12:30 Corey joined #salt
12:31 MTecknology joined #salt
12:32 aarontc_ joined #salt
12:32 JPau1 joined #salt
12:32 rideh joined #salt
12:32 dstokes_ joined #salt
12:32 arapaho_ joined #salt
12:32 evilrob_ joined #salt
12:32 Laogeodritt| joined #salt
12:32 Vye_ joined #salt
12:32 nihe joined #salt
12:32 samed joined #salt
12:32 samed joined #salt
12:32 skr0bul joined #salt
12:32 themacproguy joined #salt
12:32 lz-dylan joined #salt
12:32 drags joined #salt
12:32 gchao_ joined #salt
12:32 troubled joined #salt
12:32 emid joined #salt
12:32 LondonAppDev joined #salt
12:32 aarontc joined #salt
12:32 tweakism joined #salt
12:32 stickmack joined #salt
12:32 s_kunk joined #salt
12:32 Niamkik_ joined #salt
12:32 lkannan joined #salt
12:32 xenoxaos joined #salt
12:32 Qwazerty joined #salt
12:32 mfournier_ joined #salt
12:32 LostSoul joined #salt
12:32 Ahlee joined #salt
12:33 esharpmajor joined #salt
12:33 elektrix joined #salt
12:33 alvinstarr joined #salt
12:33 Mate joined #salt
12:33 Mate joined #salt
12:33 mephx joined #salt
12:33 Aleks3Y joined #salt
12:33 edulix joined #salt
12:33 mavhq joined #salt
12:33 ifattah joined #salt
12:33 zenlot joined #salt
12:33 colttt joined #salt
12:33 karlthane joined #salt
12:33 aboe joined #salt
12:34 sinonick joined #salt
12:34 mdupont joined #salt
12:35 iceyao joined #salt
12:35 arif-ali joined #salt
12:35 hacfi joined #salt
12:36 FTfz joined #salt
12:36 FreeSpencer joined #salt
12:36 FreeSpencer joined #salt
12:36 evle joined #salt
12:36 Heartsbane joined #salt
12:37 v0rtex joined #salt
12:37 hlub Finally, my first pull request is out. :)
12:37 krymzon_ joined #salt
12:38 Hetman joined #salt
12:38 Cidan joined #salt
12:38 akhter joined #salt
12:39 phx joined #salt
12:39 s0undt3ch joined #salt
12:39 trave joined #salt
12:40 cb joined #salt
12:41 frankS2 joined #salt
12:41 MeltedLux joined #salt
12:42 simmel joined #salt
12:43 rem5 joined #salt
12:43 linovia joined #salt
12:44 ronnix joined #salt
12:44 Ryan_Lane joined #salt
12:45 simonmcc joined #salt
12:47 bVector joined #salt
12:48 akoumjian joined #salt
12:48 gazarsgo joined #salt
12:49 wiqd joined #salt
12:50 tpaul joined #salt
12:51 JonGretar joined #salt
12:51 ashb joined #salt
12:52 SteamWells joined #salt
12:52 tcolvin joined #salt
12:52 mikepea joined #salt
12:52 kutenai joined #salt
12:52 nicksloan joined #salt
12:53 CeBe1 joined #salt
12:56 mihait joined #salt
12:56 jhauser joined #salt
12:59 chiui joined #salt
13:01 davedash joined #salt
13:03 lompik joined #salt
13:05 m0nky_ joined #salt
13:05 copelco joined #salt
13:05 bstaz joined #salt
13:07 logandg joined #salt
13:10 q1x joined #salt
13:10 MeltedLux joined #salt
13:11 ingslovak joined #salt
13:12 west575_ joined #salt
13:13 N-Mi joined #salt
13:16 Micromus joined #salt
13:17 jhauser joined #salt
13:17 marc_ joined #salt
13:19 cyborg-one joined #salt
13:22 nyx_ joined #salt
13:27 srinivas joined #salt
13:28 llua joined #salt
13:29 q1x joined #salt
13:30 numkem joined #salt
13:34 BhavyaM joined #salt
13:35 BhavyaM joined #salt
13:37 ronnix joined #salt
13:38 Ahlee congrats!
13:38 Ahlee You're that much more marketable, and you've begun to build your own brand. You're on the right track.
13:39 tongpu joined #salt
13:40 tweakism lol, I hope my future potential employers don't look deeply at my github activity
13:46 armguy :q
13:46 jaybocc2 joined #salt
13:47 xenoxaos joined #salt
13:48 subsignal joined #salt
13:49 kawa2014 joined #salt
13:50 lazybear_ joined #salt
13:50 TomJepp joined #salt
13:50 chamunks joined #salt
13:52 subsigna_ joined #salt
13:54 elsmo joined #salt
13:55 goki joined #salt
13:57 JamieH joined #salt
13:57 patchedmonkey joined #salt
13:58 jbrnds joined #salt
13:59 Lionel_Debroux_ joined #salt
13:59 AndreasLutro joined #salt
13:59 supermike___ joined #salt
14:00 pdayton joined #salt
14:00 voileux joined #salt
14:00 liskl joined #salt
14:00 pmcnabb joined #salt
14:00 Gabemo joined #salt
14:00 evidence joined #salt
14:00 jbrnds Q: virtualenv sets the LC_ALL and LANG environment var to "C". That causes problems with some packages and unicode in py3+. I want to force the enviroment to use LC_ALL=en_US.UTF-8. However, I read somewhere that there is a special state variable -env that I can set. It does not work and I still get unicode errors with pip installing packages. Any clue?
14:00 oliv` joined #salt
14:01 akitada joined #salt
14:01 gtaylor joined #salt
14:01 jaybocc2 joined #salt
14:02 chrismoos joined #salt
14:02 twodayslate joined #salt
14:02 felskrone joined #salt
14:05 bmcorser joined #salt
14:06 srinivas joined #salt
14:07 KennethWilke joined #salt
14:08 gh34 joined #salt
14:08 CaptTofu___ joined #salt
14:08 JDiPierro joined #salt
14:12 hacks joined #salt
14:13 malinoff joined #salt
14:13 pwalsh joined #salt
14:15 imanc joined #salt
14:15 jbrnds I turned it into a cmd.run for now forcing the 'LC_ALL=en_US.UTF-8 venv/bin/pip3 -r requirements.txt'. That seems to work a bit better.
14:16 cpowell joined #salt
14:17 AndreasLutro jbrnds: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.virtualenv_mod.html
14:17 AndreasLutro env_vars, not env
14:17 tweakism jbrnds: is it the virtualenv state specifically that does that?
14:18 gchao joined #salt
14:18 FTfz joined #salt
14:19 edeefelt joined #salt
14:19 west575 joined #salt
14:20 johtso joined #salt
14:20 sm1ly[wrk] joined #salt
14:20 tweakism does anyone know why it does that?
14:20 sm1ly[wrk] hello all. tell me please, how I can move the whole directory by salt?
14:21 sm1ly[wrk] mean like copy. like files.managed
14:21 notnotpeter joined #salt
14:21 babilen file.recurse ?
14:26 srinivas joined #salt
14:26 sm1ly[wrk] babilen, I.ll try, thx
14:29 atmosx joined #salt
14:29 zsoftich4 joined #salt
14:32 gchao joined #salt
14:34 trave joined #salt
14:36 pwalsh joined #salt
14:37 rem5 joined #salt
14:37 winsalt joined #salt
14:37 pdayton joined #salt
14:38 saltstackbot joined #salt
14:40 frankS2 joined #salt
14:40 patchedmonkey joined #salt
14:41 pdayton1 joined #salt
14:41 rem5 joined #salt
14:42 srinivas joined #salt
14:43 ronnix joined #salt
14:44 pdayton2 joined #salt
14:47 pdayton joined #salt
14:48 joshin joined #salt
14:49 LondonAppDev joined #salt
14:50 hasues joined #salt
14:50 hasues left #salt
14:51 iceyao joined #salt
14:51 pwalsh joined #salt
14:51 nyx_ joined #salt
14:53 davedash joined #salt
14:53 Tyrm joined #salt
14:53 spiette joined #salt
14:54 Ahlee joined #salt
14:57 zmalone joined #salt
14:58 bowhunter joined #salt
15:01 racooper joined #salt
15:01 ZiLi0n joined #salt
15:04 spiette_ joined #salt
15:04 ZiLi0n Hello everyone. I am trying to build a states module. I gave it the same name as in the states.sls, and the function within the .py module has the same name as in the state.sls as well. Also I did saltutil.sync_states, but I am still getting key error, and the minion log says coud not lazyload mymodule.myfunction
15:06 jorr-el joined #salt
15:08 edrocks joined #salt
15:08 Brew joined #salt
15:09 andrew_v joined #salt
15:10 q1x_ joined #salt
15:10 jorr joined #salt
15:12 disbound joined #salt
15:12 josuebrunel joined #salt
15:14 Tanta joined #salt
15:16 winsalt when you did the sync, you should see your module name under the minions that you targetted
15:17 toastedpenguin joined #salt
15:17 DammitJim joined #salt
15:17 disbound Hey all, I changed the IP of a minion, and deleted both cache on minion/master. Now the minions times out with "Attempt to authenticate with the salt master failed"
15:18 DammitJim if I need to change the name of a minion
15:18 DammitJim I changed it in /etc/salt/pki/master/minions (renamed the file)
15:18 DammitJim then I changed the minion_id on the minion
15:18 DammitJim do I need to change something else?
15:19 amcorreia joined #salt
15:19 zmalone DammitJim: You need to restart the minion after changing the id
15:19 DammitJim hhmmm... I did
15:20 zmalone Sometimes the minion_id isn't just in the file too, it can be defined in the minion config
15:20 DammitJim oh ok, now it came back
15:20 DammitJim weird!!!
15:20 zmalone (and the minion.d, if you use that)
15:21 vpm joined #salt
15:22 wiqd joined #salt
15:22 disbound hm. I don't see the old minion in the pki directory on the master. I think salt-key -d minion got ride of that; I also remove it in '/var/cache/salt/master/minions'
15:23 ssplatt joined #salt
15:25 jbrnds joined #salt
15:25 ssplatt hey guys, i’m working on a module that was working last week but this week I started getting an error with my __virtual__() function.  I’m not sure what changed in between.  the function just tests ‘if 'pillar.get' in __salt__:’ and returns either the __virtualname__ or false.  today i’m getting “__virtual__ returned False: Exception raised when processing __virtual__ function for mymodule. Module will not be loaded global name is not defined
15:26 ssplatt i’m running salt 2015.8.5 (Beryllium)
15:26 ssplatt pretty sure i was running that last week too
15:28 shaggy_surfer joined #salt
15:29 beardedeagle joined #salt
15:31 ZiLi0n_ joined #salt
15:32 ZiLi0n_ Hello, sorry I got disconnected. Still having trouble loading mymodule
15:33 kshlm joined #salt
15:38 spuder joined #salt
15:41 hoonetorg joined #salt
15:44 fracklen joined #salt
15:44 BlackBishop joined #salt
15:46 srinivas joined #salt
15:46 hairytoez joined #salt
15:47 bastiandg joined #salt
15:50 fracklen joined #salt
15:51 Cignacio hi... supose I have a default iptables config that blocks all. Then I want to install ssh on that machine. Can the ssh formula open the port on the firewall by itself? Like "install ssh and make sure you can connect"
15:51 fracklen joined #salt
15:53 tweakism probably yes, if you ensure that your rule is inserted as the first rule.
15:54 tweakism you might be better off to use salt to manage the config file / save-file for iptables, rather than ever manipulating the rules directly.
15:55 jbrnds joined #salt
15:57 jav joined #salt
16:04 srinivas joined #salt
16:06 bastiandg joined #salt
16:08 jhauser joined #salt
16:09 spuder joined #salt
16:11 Zachary_DuBois joined #salt
16:12 ronnix joined #salt
16:16 baweaver joined #salt
16:17 patchedmonkey joined #salt
16:17 coval3nce joined #salt
16:17 logandg joined #salt
16:17 coval3nce Anyone know if there is a way to only save specific rules with the iptables state rather than it saving the complete state of iptables?
16:18 coval3nce This causes issues when things like Docker/Rancher etc are throwing ephemeral rules into iptables. Those rules get saved and cause havoc on service restarts.
16:18 Cignacio tweakism, so you'd recomend a central iptables definition? My idea would be having a change of rules in the ssh.sls, but that'd overwrite the previous ones, correct?
16:18 bmcorser joined #salt
16:19 cilkay joined #salt
16:19 imanc joined #salt
16:19 supermike___ joined #salt
16:19 hacks joined #salt
16:19 babilen Cignacio: The openssh-formula doesn't do that, but nothing keeps you from implementing it that way. The way I would do it is rather to use a central iptables configuration mechanism and to guide the configuration of that with pillars.
16:19 fracklen joined #salt
16:20 babilen That way your "ssh pillar configuration" could include suitable data for the firewall as well. but you know that the states are not litterd all over the place.
16:20 kevinquinnyo In this https://gist.github.com/kevinquinnyo/f7672ce314d82d3bd2a7 why does fqdn work, but minion_id not?  I was just testing/playing with the salt mine and i can't figure that out
16:21 Cignacio babilen, I was planning on that... but can I have, say a '*': iptables_block_all followed by a 'minion1'': iptables_alllow_ssh?
16:21 Cignacio do they append?
16:21 twodayslate joined #salt
16:21 DammitJim is there an easy way to add an ssh key to a server?
16:21 DammitJim I think there is a problem with YAML where the string is too long?
16:22 dunz0r DammitJim: There is.
16:22 Cignacio DammitJim, ssh-copy-id or by salt?
16:22 DammitJim auth?
16:22 DammitJim salt
16:23 kermit joined #salt
16:23 dunz0r DammitJim: ssh_auth.present:\n  - user: someuser \n   -names: - yoursshkey
16:24 DammitJim woot???
16:24 DammitJim alright... going to test that
16:24 DammitJim how do I do that in a state?
16:24 dunz0r DammitJim: I can give you a more easy-to-read example. Two secs
16:24 babilen Cignacio: Does what append?
16:24 DammitJim another question... how do I archive.extracted a gz file to a directory that already exists?
16:24 DammitJim the archive already has a directory it will create
16:24 DammitJim thanks dunz0r
16:24 DammitJim this is for CI...
16:25 babilen Cignacio: I am suggesting to use a suitable state to configure your firewall and to feed that state with rules in pillar data. The pillar would then be merged ...
16:25 whytewolf DammitJim: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ssh_auth.html#module-salt.states.ssh_auth
16:26 tweakism coval3nce: the answer to that is to not auto-save rules; have the iptables-save init stuff load rules on start, but only update the saved rules manually (or generate the rules save file manually with a tool like salt; the format is very simple.)
16:26 JDiPierro joined #salt
16:26 Cignacio babilen, that was it. The rules merge instead of overwriting. Great. Thanks! Will test some
16:26 dunz0r DammitJim: http://sprunge.us/eLbO
16:26 tweakism babilen: does that actually work, though
16:26 coval3nce tweakism: e.g. do not use the iptables salt state and create my own?
16:26 DammitJim I thought I did the latter, dunz0r
16:26 q1x joined #salt
16:26 DammitJim I'll have to try it again... at least it seems I'm on the right track
16:26 DammitJim thanks
16:27 tweakism coval3nce: I was responding to your earlier question
16:27 dunz0r DammitJim: It works here. Sure you haven't got a linebreak anywhere or something?
16:27 DammitJim how about extracting an archive to a folder that already exists?
16:27 DammitJim dunz0r, maybe
16:27 tweakism coval3nce: about Docker/Rancher
16:27 dunz0r DammitJim: Turn on linenumbers in your editor :)
16:28 dunz0r DammitJim: I've also noticed weird behaviours when there isn't a comment at the end of the key, it adds a key multiple times
16:28 coval3nce tweakism: right now i use pillars to generate some pretty complicated iptables configs using Salt’s built-in iptables state and iptables module.  I guess I would have to do that all myself in my own state to manage the /etc/syconfig/iptables file myelf, rather than the module, correct?
16:28 CrummyGummy joined #salt
16:28 coval3nce I was thinking maybe I could modify https://github.com/saltstack/salt/blob/develop/salt/modules/iptables.py#L584 to have an ability to filter out things from the iptables-save command before writing to file.  E.g. allow folks to filter out chains, etc.
16:29 JDiPierro joined #salt
16:29 JDiPierro joined #salt
16:30 DammitJim a comment, dunz0r ?
16:31 tweakism coval3nce: if applying the state is sufficient to normalize the rules, i.e. when you apply the state any extraneous rules are deleted, then you can save the iptables-save file afterward
16:31 tweakism but I don't think the iptables state actually works that well
16:32 dunz0r DammitJim: Like " bobross@paintmachine" at the end of the key
16:32 coval3nce tweakism: yeah it isn’t smart enough to do what i want in the current implementation.
16:32 coval3nce tweakism: i may have to resport to writing my own firewall state that literally just manaages the /etc/sysconfig/iptables file manually
16:33 tweakism coval3nce: I think that is a lot easier anyway
16:33 DammitJim oh duckfez got it
16:33 DammitJim dunz0r, sorry
16:33 DammitJim so, no way to extract an archive directly to a folder that already exists?
16:33 coval3nce The only issue with that, is  i can’t inject rules on the fly.  I’d have to run the state, restart iptables, and conversely have to restart docker, so it adds its rules back in
16:33 ecdhe I'm running state.highstate on an embedded target.  While the output is correct, the performance is dismal.
16:33 coval3nce that means downtime for apps
16:33 dunz0r coval3nce: Hehe, cmd.run 'iptables -A abladlfiblfbiladifb" ?:)
16:34 ecdhe I wanted to replace that with a state.sls for just the couple of states that I need.
16:34 tweakism coval3nce: you don't need to restart docker... just iptables-restore
16:34 coval3nce The filter route seems like more work, but would allow me to get the realtime injetion without saving certain chains for example.
16:34 ecdhe however, I realized that top has some targeting logic that I also need.
16:34 babilen tweakism: Why wouldn't it?
16:34 RandyT greetings
16:35 bVector joined #salt
16:35 tweakism note that if you do need certain dynamically-managed rulesets, you can have them in a custom chain.
16:35 tweakism babilen: Whyw ould it?
16:35 ecdhe Is there a way to have a second "top.sls" in the same environment?  One that could select states with minion targeting instead of unconditionally?
16:35 RandyT anyone here attempted to install salt on FreeBSD 10.2 lately?
16:35 kevinquinnyo is it possible to create a mine_function that returns only the id for each minion?  I can't seem to make it work, seems like it should be very easy
16:35 RandyT Running into the following error. https://gist.github.com/rterbush/60597ffac5ac6b14e463
16:35 tweakism I don't use docker, but I don't know why anything ever would?
16:35 RandyT Have attempted to install via bootstrap and via FreeBSD pkgs
16:36 jfindlay RandyT: what version?
16:36 tweakism OH, docker is adding rules dynamically to the host?
16:36 babilen tweakism: You write states that configure, say, ufw and drive that configuration by pillars. What's so tricky about that ?
16:36 RandyT @jfindlay: have attempted with 2015.8.5 and 2015.8.1
16:36 tweakism babilen: oh you were answering a different question.
16:36 tweakism babilen: were were talking about the iptables state.
16:36 jfindlay RandyT: the thorium stuff is only in 2016.3 and newer
16:37 babilen tweakism: Well, you could generate suitable iptable states from data in pillars
16:37 RandyT searching for THORIUM_ROOTS I come up with the following https://github.com/saltstack/salt/commit/f126f2011a96f374c933808995f1c3dcce2918c7
16:37 tweakism babilen: certainly.  but that misses the point of the convo.
16:37 RandyT @jfindlay: may be an issue of brokeness in the bootstrap script as it complains about not finding the tag that I am giving it...
16:37 RandyT so must be grabbing master
16:38 jfindlay RandyT: hmm, that would be a problem
16:38 RandyT @jfindlay: will work on cleaning this up a bit and try again...
16:38 jfindlay RandyT: did you tell it v2015.8.5?
16:38 babilen tweakism: Why? Wasn't it about making it possible to have a "SSH" state/configuration that ensures that the ports needed for that service are also open?
16:38 RandyT @jfindlay: yes
16:38 babilen tweakism: But it's okay .. we don't have to continue this further :)
16:38 tkeith I can use pkg.uptodate to make sure the packages are upgraded within the current distribution version (ubuntu 12.04). How can I make my servers upgrade to 14.04?
16:38 ZiLi0n joined #salt
16:39 beardedeagle @RandyT: I submitted a PR that fixes some things in salt-bootstrap, waiting on it to get merged
16:39 beardedeagle don't know if that is impacting you though
16:40 babilen tkeith: You would follow the normal upgrade path .. You might be able to implement that in salt, but I wouldn't necessarily feel great with that. It might be easier to simply reinstall the box and then deploy whatever services you need on top of the 14.04 box
16:40 RandyT beardedeagle: saw that PR as well... might see about adding that but have not looked at the specifics
16:40 tweakism babilen: no, it was about whether one can modify the running state of iptables by running a state that includes more rules.
16:40 babilen tweakism: AAAH! Okay, sorry ..
16:41 RandyT @jfindlay: just added to that PR site-packages info. Shows a number of tries. Will clean that up and see what I end up with.
16:42 tkeith babilen: This is for servers that have some state (DB servers, file servers, etc) so just re-provisioning doesn't make sense. I guess I should just do it manually but it seems like something salt *could* do but as you said it might be risky... it's something i'd probably test manually on the first server and then run automatically for the rest.
16:43 RandyT @jfindlay: beardedeagle just added to that PR an attempt to install with bootstrap and indication that it does not find the release. Pretty sure that commandline is correct from previous use on Linux.
16:43 pcn joined #salt
16:44 beardedeagle Werd, I will try to hunt that down and add it to my PR
16:45 Newb_ joined #salt
16:45 DammitJim is this the best way to enable the apache mod_rewrite module?
16:45 DammitJim http://stackoverflow.com/questions/18277103/how-can-i-make-sure-mod-rewrite-is-enabled-using-salt-provisioning
16:47 JDiPierro joined #salt
16:47 RandyT @jfindlay: after cleanup, reverting back to package install gives me a working setup. I will log a PR regarding the failure with bootstrap to get that on somone's radar
16:47 RandyT running 2015.8.5
16:49 ssplatt hmm does teh yaml renderer do somethign funky with sha256sums? like try to automatically convert them to oct?
16:50 tweakism ssplatt: nafaik but you should probably make it explicitly a string anyway
16:50 edrocks joined #salt
16:50 akhter joined #salt
16:50 jfindlay thanks, RandyT
16:50 ssplatt i’ve put it in quotes and i’m still getting errors saying “oct() argument can't be converted to oct” in my module
16:51 tweakism ssplatt: can you pastebin your code?
16:52 RandyT Anyone able to comment on the following comment I made to my own issue yesterday? https://github.com/saltstack/salt/issues/28286#issuecomment-184734162
16:52 saltstackbot [#28286]title: hash formats required for s3 source conflict with error message and other uses of file hashes | When referencing an s3:// source for file hashes an error message will be emitted stating that the file format should be 'hashtype=hash', even when the file is provided in that format....
16:52 RandyT Not sure if it is a doc issue, or what. Removing the source_hash: from the state also fails, but the error message would suggest that source_hash is optional if using a supported protocol.
16:53 ssplatt tweakism: https://gist.github.com/ssplatt/906e14756afdc3fb768f
16:53 ssplatt linde 257 is teh sha256 test
16:53 ssplatt http://testinfra.readthedocs.org/en/latest/modules.html#testinfra.modules.File.sha256sum  is the docs from testinfra
16:53 ageorgop joined #salt
16:54 ssplatt manually testing on the python cli, file.sha256sum returns a unicode string
16:55 ssplatt so doing a file.sha256sum == ‘mysum…..’ works as expected
16:55 ssplatt but i’m not sure what salt/pyyaml are doing to give me the oct error
16:55 Newb_ Hi, I'm trying to create a node group (of minions) to target. In the master file, I uncommented nodegroup and group1, specified minions and restarted master, but get the following...[WARNING ] Key nodegroups with value None has an invalid type of <type 'NoneType'>, a dict is required for this value. What am I missing?
16:56 tweakism ssplatt: does file.mode work for the file object in question?  That's something that will be oct()'d.
16:56 ssplatt yeah. my pillar works fine if i remove the sha256sum: line from it, otherwise it errors
16:56 iggy ssplatt: when in doubt, quote it
16:56 ssplatt so i’m 99% sure its the sha256sum: causeing the error.
16:56 iggy ssplatt: or I normally use multi-line literals for stuff like that
16:58 ssplatt http://testinfra.readthedocs.org/en/latest/modules.html#testinfra.modules.File.mode  is the docs for teh mode fucntion, which is why i have the oct() there, so i can specify ‘0640’ or similar, with python 2.7.6
16:58 ssplatt er, 2.7.9
16:59 Tanta_G joined #salt
17:00 iggy ssplatt: you know your module will only load "tests" when the module loads (i.e. probably only once while the minion is running... in which case it might be better as a config instead of pillar)
17:00 tweakism where do you have oct()?  I don't think 257 is the right line reference?
17:00 Rockj joined #salt
17:01 tweakism 'if oct(File(thing).sha256sum) == expected:' surely that is not expected to work..
17:01 ssplatt iggy: i wanted to do the config as yaml and that was the only way i knew of to get salt to do the rendering
17:01 iggy the config files are yaml
17:02 iggy but it's fine, I was just pointing that out in case you were expecting something different
17:02 ssplatt line 135, in test_file_mode()
17:02 Pluggi left #salt
17:02 onlyanegg joined #salt
17:02 ssplatt iggy: where is the standard place to put configs?  how are they synced?
17:03 oida joined #salt
17:03 ssplatt i mean, i’d like to keep this separate from pillar so i like the idea
17:03 iggy as I said, you are doing it fine so long as you aren't expecting the minions to periodically re-read the pillar values
17:04 iggy config.get reads from the minion config, but if you are trying to centralize the config, pillar makes a lot of sense
17:04 Fiber^ joined #salt
17:04 ZiLi0n Hello everyone, how can I call a runner from a states?
17:04 ssplatt yeah it would be central.
17:05 Rockj joined #salt
17:05 whytewolf ZiLi0n: is your master a minion also?
17:05 tweakism ssplatt: why does infratest.py call oct() on file.md5sum and file.sha256sum?  Are those members not stored as strings in the usual format?
17:05 Newb_ Anyone...I'm trying to create a node group (of minions) to target. In the master file, I uncommented nodegroup and group1, specified minions and restarted master, but get the following...[WARNING ] Key nodegroups with value None has an invalid type of <type 'NoneType'>, a dict is required for this value. What am I missing? Thanks for any help
17:05 ZiLi0n whytewolf, thanks, no, only maste
17:05 teryx510 joined #salt
17:05 ssplatt tweakism: that’s what i’m saying, it shouldn’t be
17:06 whytewolf ZiLi0n: then you don't. runners are run master side
17:06 tweakism ssplatt: is it your code?
17:06 ssplatt no
17:06 iggy ZiLi0n: runners run in the master context
17:06 ssplatt which is why i think salt/pyyaml is doing something funky but i can’t figure out why
17:06 tweakism ssplatt: maybe they meant to use hex()
17:06 doompatrol joined #salt
17:06 iggy ZiLi0n: you could perhaps use the reactor to have the minions send events that kicked off runners on the master
17:06 ssplatt i’ve tried quotes and no quotes, both give the same error
17:06 VR-Jack joined #salt
17:06 ZiLi0n whytewolf so I can't run highstate for a minion, and tell the master to create something, than later the minion need to use as part or executing highstate
17:07 tweakism ssplatt: the oct() call on the md5sum and sha256sum happens explicitly in the code, at lines 135 and 151.
17:07 ssplatt oh duh.
17:08 tweakism I bet you anything hex() is intended, as a poor man's way to normalize/validate the format.
17:08 iggy ssplatt: "Convert an integer number to an octal string" not convert a shasum to an octal string
17:08 whytewolf ZiLi0n: you could send an event to trip a reactor like iggy sugested.
17:08 tligda joined #salt
17:08 kevinquinnyo can i call an sls from another sls and if i am wanting to do that am i "doing it all wrong"?
17:08 ssplatt yeah i think that was a copy paste error. and i am going to blame that on my new glasses...
17:08 tweakism but yeah, even hex() wouldn't work I don't think without preceeding 0x?  not sure, would have to look it up
17:08 tweakism ssplatt: so it *is* your code
17:09 whytewolf ZiLi0n: personally i would saltify the master and use orchestrate
17:09 ssplatt yeah. i didn’t see it.  needed extra eyes :(
17:09 iggy kevinquinnyo: you can include another sls (i.e. a service.sls includes a package.sls in order to be able to make sure the package is installed before the service starts)
17:09 ZiLi0n whytewolf iggy I see, ok, I will give it that a try
17:09 egalano joined #salt
17:10 ZiLi0n whytewolf mmm need to look of orchestrate part, just started with SaltStack few days ago. How would the orchestrate do it?
17:10 iggy tweakism: hex expects an int as input
17:10 kevinquinnyo iggy i have a situation where i have an sls dns.add_a_record.sls and it's called by the reactor system to add an a record when a minion comes online.  but i want to use that code in the dns main init.sls state as well to make sure all a records exist
17:10 whytewolf ZiLi0n: by running salt.runner on the master :P
17:10 ssplatt tweakism: thanks, that was it. totally missed that i copied teh oct() stuff into it
17:11 malinoff joined #salt
17:11 whytewolf and would cordinate the reaction between the two minions [master and the other minion]
17:11 kevinquinnyo and unless i can call that add_a_record state from this state, and pass it the minion id as a pillar like i do in the reactor, then i'm forced to duplicate the same code in two places
17:11 tzero joined #salt
17:12 ZiLi0n whytewolf oh ok, so the flow would be like, run salt.run command in the master to generate content, then run highstate so that minions go and consume the content generated by previous salt.run command by master
17:12 whytewolf yeap
17:12 mpanetta joined #salt
17:12 ZiLi0n whytewolf that coordination you mention can be done in saltstack? or that is for an external script or something?
17:13 whytewolf ZiLi0n: https://docs.saltstack.com/en/latest/topics/tutorials/states_pt5.html
17:13 whytewolf it is built into orchestration. which can use requisites just like other states can. but does it between minions
17:13 impi joined #salt
17:14 drew__ joined #salt
17:15 iggy kevinquinnyo: it's possible, if you paste some code and the commands you are running, we might be able to help more than just saying it's possible ;)
17:15 heaje joined #salt
17:16 fracklen joined #salt
17:17 Newb_ Is anyone using node groups to target specific minions (ex. salt -N group1 test.ping)?  If so, did you have to do anything other than uncomment the nodegroup/group stanza in /etc/salt/master, specify minions and restart master?
17:17 babilen Newb_: That sounds about right
17:18 drew__ I want to upgrade salt in my infrastructure. As my master and minions run number of different versions as we have never try to upgrade them. Now, we use gitlab as backend.  I am more concerned about is how our existing states, pillars, and configurations will be affected. We have a number of configs that rely on git backends.
17:18 drew__ I have been trying to figure this out but
17:18 drew__ I could not. So now I want to test this in vagarant.... How would I do that?
17:19 drew__ Any ideas, comments or concerns??
17:19 izrail joined #salt
17:19 babilen drew__: Create a copy of your current setup in vagrant and then make whatever changes you want. Check if that worked.
17:20 babilen That's the basic idea, I'd say
17:20 writtenoff joined #salt
17:21 Newb_ babilen, I'm getting [WARNING ] Key nodegroups with value None has an invalid type of <type 'NoneType'>, a dict is required for this value. I don't know what dict they're referring to. Thoughts?
17:22 iggy Newb_: what does your config look like?
17:22 josuebrunel joined #salt
17:22 coval3nce tweakism: yeah things like Docker and different container platform as a service things usually exploit iptables and MASQ rules on the fly to handle container networking.
17:23 babilen Newb_: Could you paste your configuration to one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … ?
17:23 drew__ babilen__: Last week I was installing salt and builidng a new salt structure for a new project where I just installed a new salt-master and used the same git backend. This is just a tip of an ice burg of what we have.
17:24 tweakism coval3nce: well as with anything else, if you can get it to add its rules to a custom chain instead of one of the defaults, it's easy to handle/preserve.
17:24 jY joined #salt
17:24 babilen Newb_: Also show commands and output that show that salt is not behaving the way you expect it to
17:25 drew__ babilen__: Does it help to get a clue on how to test it?
17:26 Newb_ group1: 'L@minion1,minion2,minion3 and minion4'
17:26 babilen drew__: You would have to run your highstate against the currently installed version, then upgrade (master, then minion) and test again. If the outcome is the same or if both are working the test succeeded.
17:27 Newb_ nodegroups: (uncommented above the group1 line)
17:27 babilen Newb_: I'm sure that you want "or" there and not "and" or, rather, L@minion1,minion2,minion3,minion4
17:28 babilen Newb_: But then it is impossible to say without seeing your actual configuration and list of minions
17:28 baweaver joined #salt
17:30 drew__ @babilen: I have not tried this but can I register my vagrant box as a minion to a physical real salt-master (which is running a new salt version)
17:30 babilen Newb_: Please keep in mind that a logical "or" translates to a union in set theory
17:30 babilen drew__: Sure, but I typically have my master in vagrant also
17:31 Edgan joined #salt
17:31 Rockj joined #salt
17:31 srinivas joined #salt
17:31 drew__ I have my master in vagrant too which I just use to perform test
17:32 babilen So .. upgrade the minion (or master) to the version you want to test, run it .. validate outcome
17:32 JamieH joined #salt
17:32 babilen I mean this is tricky and work in real life, but nothing too complicated conceptionally
17:32 Newb_ babilen, I can test.ping all my minions...just changed the names here for security. I've tried it with 'and' first, then 'or' as the salt nodegroup instructions showed, but no diff.  Thanks all the same.
17:33 drawsmcgraw joined #salt
17:33 drew__ @babilen: I want to make a plan for testing it. So let me know what you think:
17:34 babilen Newb_: Well, it is really hard to help you if you don't even show us why you think that it didn't work. You typically want "or" if you want one or the other .. otherwise both statements have to be true, which is really hard if you use minion IDs (as they have to be unique)
17:34 iggy Newb_: it sounds like something else is wrong if it's seeing NoneType for nodegroups... if you don't want to show us your actual config, I'd start by validating the config with a yaml parser and see if it looks like you expect
17:34 babilen Newb_: What you showed us looks fine (apart from the "and" vs "or" issue I presume is problematic)
17:35 joren joined #salt
17:35 jrklein joined #salt
17:36 kuromagi joined #salt
17:36 drew__ @babilen: I have 50 minions which run 5 different salt versions and a master, I would spin up and install the version according to what I have in my infrastructure. Then I would want to upgrade repos, master and minions respectively. and test the outcomes
17:36 Newb_ iggy, how do I validate the master config with a yaml parser?
17:36 tweakism perhaps yamllint
17:37 iggy I use http://yaml-online-parser.appspot.com/ a lot
17:37 iggy but yeah, anything that can parse yaml and output in a format that you can read (and thus verify)
17:37 esharpmajor joined #salt
17:37 drew__ @babilen: Do you think of any greater plan than this one?? or any comments or suggestion on what I ve just said??
17:37 spuder joined #salt
17:39 Vye joined #salt
17:39 copelco joined #salt
17:39 linovia joined #salt
17:39 Laogeodritt joined #salt
17:39 czchen joined #salt
17:39 FTfz joined #salt
17:39 packeteer joined #salt
17:39 jav joined #salt
17:39 iggy unless salt is running some production part of your setup (i.e. handling code pulls, etc), I'd just upgrade all of them and deal with the fallout (state.highstate test=True will be your friend)
17:39 sfz- joined #salt
17:39 BlackBishop joined #salt
17:39 m0nky_ joined #salt
17:39 Niamkik_ joined #salt
17:39 bbhoss joined #salt
17:40 Newb_ iggy...yeah, I checked that link and have no idea what any of that is. I'm out. Thanks all the same everyone.
17:40 Twiglet joined #salt
17:40 danielcb joined #salt
17:40 skrobul joined #salt
17:40 aboe joined #salt
17:40 kidneb joined #salt
17:40 techdragon joined #salt
17:40 nethershaw joined #salt
17:41 babilen Pity .. if Newb_ would have provided data that actually reflected the configutation we might have been able to spot something.
17:41 evilrob joined #salt
17:41 xenoxaos joined #salt
17:41 analogbyte joined #salt
17:41 shawnbutts joined #salt
17:41 Phtes joined #salt
17:41 iggy another potential SaltStack Enterprise customer gone... all my fault
17:41 babilen drew__: Just remember to upgrade the master first. If you want to test it then that's the way to do it, but you could also just upgrade the master and then the minions and deal with the fallout as iggy suggests.
17:41 scoates joined #salt
17:41 [vaelen] joined #salt
17:42 VSpike joined #salt
17:42 babilen iggy: I tried to become a customer and failed
17:42 babilen They do not want our money
17:42 iggy they want too much of ours
17:42 knite joined #salt
17:42 babilen hehe
17:42 VSpike Just on the off chance, has anyone found a good way with Salt to get Windows servers to sync regularly from NTP?
17:42 babilen iggy: Oh, looks as if they finally made it out of the beta version.
17:43 Muchoz joined #salt
17:43 Muchoz Is there a way besides cmd.run to also update virtualenv requirements? https://docs.saltstack.com/en/latest/ref/states/all/salt.states.virtualenv_mod.html
17:43 babilen iggy: Ah, no .. still early adopter program
17:43 scarcry joined #salt
17:43 VSpike I found a bunch of articles all with slightly different incantations of w32tm and registry edits, but I always seem to end up with a mysteriously broken w32time
17:44 iggy babilen: I blame us... We should reduce the number of servers we have instead of trying to get a price break for 20k servers
17:44 wiqd joined #salt
17:44 bstaz joined #salt
17:44 JonGretar joined #salt
17:44 VSpike babilen / iggy : being nosey,who is the "they" in question?
17:45 babilen SaltStack
17:45 VSpike Aha
17:45 babilen http://saltstack.com/enterprise/
17:45 babilen I was interested, applied, never heard back
17:46 skarn joined #salt
17:46 Eugene VSpike - On my PDC: w32tm /config /manualpeerlist:0.pool.ntp.org /syncfromflags:manual. That's it.
17:46 Eugene The rest of the domain follows the PDC
17:46 VSpike babilen: that page is pure keyword waffle :)
17:47 akitada joined #salt
17:47 babilen VSpike: Exactly
17:47 VSpike Eugene: Hm, OK. I'll try that. Is that 2012R2? I think it has changed a few times, but I'm not quite sure how.
17:47 babilen VSpike: Hence my: Please let me try it!
17:47 Eugene What's what I've used from 2003 through to 2016
17:48 Eugene That's
17:48 VSpike Eugene: Do you know how often that will sync?
17:48 VSpike And do you send that via salt?
17:48 Eugene Not a clue, and no, I do it in a cmd as part of my new-domain process.
17:48 VSpike I was starting to think I was seeing different results when sending via salt compared to running in a local shell
17:48 Eugene Probably are; Windows is dumb like that.
17:49 VSpike Yeah. Or it's a subtle quoting thing. Hard to tell
17:49 tweakism Does windows ntp correct the time slowly over a period of time like ntpd
17:49 tweakism or does it always set it hard like ntpdate
17:50 VSpike Doesn't help that the output of w32tm /query /status and /query /configuration aren't really very well explained anywhere, and how they relate to the registry values is a mystery
17:50 Eugene https://support.microsoft.com/en-us/kb/884776
17:50 Eugene If you're touching the registry it's probably not the right approach
17:51 VSpike Eugene: agreed, I'd rather not, but sometimes it's a useful way to diff configs, assuming that the commands change only the registry and all the config is there
17:51 fracklen joined #salt
17:51 tweakism they re-invented NTP?
17:51 Eugene No, just ntpd
17:52 whytewolf tweakism: it's microsoft. would you expect anything else then to embrase and extend?
17:52 tweakism I suppose not.
17:52 tweakism you're right, what was I thinking.
17:53 VSpike Lots of the articles seem to say you have to stop w32time before issuing the "w32tm /config /manualpeerlist:0.pool.ntp.org /syncfromflags:manual" command
17:53 VSpike Eugene: ^ is that your experience, or doesn't it matter?
17:54 Eugene I've never done that, but I also do a reboot shortly thereafter for Windows Update.
17:54 VSpike This is the last thing I had https://bpaste.net/show/71289e590533 but it wasn't working - unless the machines I was testing on were already fubared in some way, which is possible.
17:54 Eugene I set up time once on a DC when building the domain, and then leave it be. Never had an issue with that.
17:55 VSpike Ah well, I'll try it again on a clean image and see what happens.
17:56 drew__ <iggy> and <babilen> as I am new to salt I was not aware of "test=true" such thing. So I just read it on docs. If I am not wrong, running highstate with state testing, It will only show the POSSIBLE Changes but actually it will not run the highstate and change anything in real... Correct me if I am wrong.
17:56 babilen drew__: That is correct
17:58 drew__ <iggy> and <babilen>SO, if something goes wrong, I will be left with the two options!!  (1) Make appropriate changes in the infrastructure. (2) Revert the update. Is there any availability to revert the upgrade of salt?
17:59 tweakism well, jsyk their repos do not have old package versions.
18:00 zmalone tweakism: in some cases, they do in an archive folder, but they don't contain versions that predate repo.saltstack.com
18:00 jfindlay drew__: what OS are you running?
18:00 babilen There are archives and you would have the packages in /var/cache/apt/archives/
18:00 zmalone either way, reverting involves changing package repo after the fact
18:00 babilen drew__: Let's make this a bit more tangible: How many boxes are we talking about here? Which versions are they running? Which distribution?
18:01 tweakism zmalone: I thought even repo.saltstack.com removed old version when receiving a new one, for some dumb reason
18:01 babilen I mean we could talk for hours about the many ways to do this, but lets get this done!
18:01 zmalone tweakism: They do, and create archive repos under repo.saltstack.com for the old packages
18:01 zmalone (which is kind of weird too)
18:01 nahamu cro: are there plans to ship Mac .pkg installers of Salt some time soon?
18:02 hal58th_ joined #salt
18:02 tweakism yes, it's very weird.
18:02 babilen Why is it weird?
18:02 babilen Debian repositories only contain a single version, so you create archives for older versions.
18:02 tweakism 1) there's no reason to do it that way, 2) no one else does it that way, 3) it's way less convenient.
18:03 jfindlay nahamu: yes
18:03 whytewolf actually i know a few that do it that way
18:03 nahamu jfindlay: is that waiting for 2016.3.0 or might 2015.8.7 get packaged officially?
18:03 jfindlay nahamu: the goal is with the release of 2016.3.0
18:03 babilen 1. Debian repos contain a single version *by design* 2. Debian/Ubuntu/... do it in their repositories + snapshots.debian.org 3. It's a lot more convenient than having to deal with the fallout of broken repositories
18:03 tweakism that's not true re: debian, they do have old versions, and they at least have the excuse of a huuuge total archive for why they don't have all old versions.
18:03 nahamu jfindlay: got it. thanks.
18:03 tligda Good morning folks. I'm having an issue where I try to use salt.modules.dockerng and I get an "is not available" message on the minion. Has anyone encountered this before?
18:04 tligda My command: salt-call --local salt.modules.dockerng.list_containers
18:04 tligda Error message: 'salt.modules.dockerng.list_containers' is not available.
18:04 tligda I installed docker-py, but same error message.
18:04 babilen tweakism: Debian doesn't keep old versions, but provides snapshots.debian.org for them. Similar to what has been implemented on repo.saltstack.com
18:05 tweakism I direct you to https://wiki.debian.org/RepositoryFormat#Duplicate_Packages
18:05 babilen (and there are snapshots of *everything* so the size really doesn't matter here, it is *by design*)
18:05 babilen tweakism: Yes, what exactly do you want to say with that?
18:05 babilen "A repository must not include different packages (different content) with the same package name, version, and architecture" -- that's exactly what I just said
18:05 tweakism what makes you think you can't have multiple versions of a package in a deb repo?
18:06 tweakism babilen: uh, no, re-read that
18:06 tweakism babilen: same name and arch, different version is A-OK
18:06 babilen tweakism: The way the repository works (dak that is)
18:07 babilen tweakism: Every Debian repository contains a single version of each package. New versions are uploaded to unstable and transition into testing. There they are frozen and released in due course. There is a *single* version of the package. In fact package managers will simply install the newest version.
18:08 tweakism whatever.
18:08 babilen I am quite aware that you don't have to do it that way, but tools work under that assumption. There are projects such as puppet who break that and that comes with its own set of problems.
18:09 babilen And yes .. Debian uses dak not aptly
18:09 babilen But okay .. "whatever"
18:10 pppingme joined #salt
18:12 drew__ So, I have about 45 to 50 minions registered to a master which run the version range from--to "2014.7.1-- 2014.7.5--2015.5.0--2015.5.2--2015.5.3". Plus, the latest available to my organization is I guess "2015.5.5"
18:12 drew__ <babilen>
18:12 babilen drew__: Okay, which version is your master?
18:12 murrdoc joined #salt
18:12 babilen (2015.5.3 or 2015.5.5 I assume)
18:13 drew__ @babilen: master has to be latest in the infrastructure which, rightnow, is 2015.5.3
18:13 babilen drew__: I'd upgrade all minions to 2015.5.5 or even newer)
18:14 drew__ 2015.5.5 is the latest I can get from redhat somehow
18:15 UtahDave joined #salt
18:16 zmalone I'm pretty sure debian keeps many versions packaged and available, although I'm not spinning up a VM right now to test
18:16 zmalone http://lug.mtu.edu/debian/pool/main/g/gnupg/ etc.
18:17 whytewolf zmalone: tweakism: babilen: i thought saltstack took the behavour of launchpad which does have a single version per repo style. with a archive repo
18:17 babilen They did
18:18 babilen zmalone: That is being used by the archive
18:18 tweakism it appears to be true that dak doesn't let you have more than 1 version published in a section
18:18 drew__ @babilen: I am pretty sure about this because, I just configured a salt set up in another infra in another country last week, which has salt 2015.5.5
18:18 babilen zmalone: And that is not a repository, but the pool
18:18 tweakism it's a failing of dak, though, not a limitation inherient to deb repos or apt
18:18 babilen But meh .. /me is afk for a little while now
18:18 tweakism and nothing breaks by having more than 1, unless you break it with your depends metadata
18:18 murrdoc joined #salt
18:18 tweakism it's just FUD
18:19 slav0nic joined #salt
18:19 jfindlay drew__: if you want a later version you will have to add repos from repo.saltstack.com
18:19 DammitJim dunz0r, where did you get the key from?
18:19 jfindlay although the epel versions should have been updated recently
18:20 robawt joined #salt
18:26 jbrnds joined #salt
18:31 traph joined #salt
18:32 tligda Can anyone help me out with salt.modules.dockerng? I can't get anything other than "is not available."
18:33 murrdoc joined #salt
18:33 whytewolf tligda: what version of salt is your minions running?
18:33 whytewolf s/is/are
18:34 tligda salt-call 2014.7.0 (Helium)
18:35 tligda Whoa. If I use "sudo salt-call --version" I get something different: "salt-call 2015.8.5 (Beryllium)"
18:35 zer0def joined #salt
18:35 whytewolf ... that sounds like you have two different versions installed
18:35 whytewolf run which salt-call and sudo which salt-call
18:36 tligda They both point to the same location: /usr/bin/salt-call
18:36 whytewolf strange
18:36 nyx_ joined #salt
18:36 whytewolf restart your minion
18:36 patchedmonkey joined #salt
18:36 whytewolf and try again
18:36 tligda I've restarted it a few times. I'll do it again.
18:37 tligda The command I'm using to test is "salt-call --local salt.modules.dockerng.list_containers"
18:37 whytewolf humm. well the 2015.7.0 version won't have dockerng
18:37 whytewolf it was introduced in 2015.8.0
18:37 Tanta_G EPEL has that version
18:38 zmalone try killing all salt-minions first
18:38 tligda OK, I'm running as root now, so I know I'm using the 2015.8.5 version.
18:38 zmalone sometimes they get orphaned, but keep consuming off the job queue
18:39 tligda I see my docker daemon gets requests for "/version" and "/v1.21/version" but then the salt-call says, "'salt.modules.dockerng.list_containers' is not available."
18:39 whytewolf hummm also possable that the user that isn't root has a private python library directory that has it's own version of salt and superceeds the built in
18:40 tligda Yeah. That's strange to me. But I know the salt minion is running as root.
18:40 rhand joined #salt
18:41 whytewolf okay. so from the master if you run salt 'minion_id' test.versions you get back the 2015.8.5 version correct?
18:41 tligda Checking.
18:42 tligda Yup. I get 2015.8.5.
18:43 whytewolf how many salt-minions show up in a ps -ef
18:43 whytewolf [should be 2 or 3 unless a run is happening]
18:43 tligda 2
18:44 whytewolf ... distro?
18:44 tligda Ubuntu Wily
18:46 JDiPierro joined #salt
18:47 pjammer joined #salt
18:48 Ahlee Damnit. I'm guessing since auth is in the master config, I have to restart the master for these values to actually update
18:49 DammitJim for an ssh_auth.present
18:49 DammitJim how do I specify a domain?
18:50 numkem joined #salt
18:52 whytewolf tligda: well i would check the /usr/lib/python2.7/dist-packages/salt/modules directory see if dockerng.py is there. you might also have issues with the module not able to pass it's __virtual__
18:53 tligda Let me check. I turned on debug for logs and there isn't anything helpful I can see.
18:54 UtahDave DammitJim: not 100% sure, but you might be able to pass it in the "options" option   https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ssh_auth.html#salt.states.ssh_auth.present
18:54 tligda whytewolf: Yes, I see dockerng.py in that directory.
18:56 fredvd joined #salt
18:57 mpanetta joined #salt
18:58 mapu joined #salt
18:58 whytewolf tligda: with the salt-call use -l debug and see if there is anothering from the loader about insufficient docker-py version
18:58 ageorgop joined #salt
18:59 drew__ jfindlay , babilen :: My organizational protocol allows me to have what we get from redhat subscriptions and it is some managerial process that I would not want to go through to have any later version than 2015.5.5
18:59 ssplatt published my test module to github: https://github.com/ssplatt/saltstack-infratest-module
18:59 jfindlay makes sense
18:59 UtahDave tligda: do you have docker-py version at least 1.4.0 installed?
19:00 tligda whytewolf: https://gist.github.com/tligda/8462f9c64119990b656d
19:00 tligda Yes. It's version 1.7.0.
19:01 whytewolf ...
19:01 whytewolf drop the salt.modules
19:01 whytewolf it is just dockerng.list_containers
19:02 whytewolf i must have missed that before
19:02 tligda whytewolf: Whoa. You blew my mind. It worked.
19:02 zmalone drew__: 2015.5.5 has security issues involving printing credentials to the command line and storing secrets in a world readable log file.
19:02 tligda whytewolf: Thank you!
19:03 zmalone sorry, not command line, but logs
19:03 whytewolf tligda: no problem. I apperently need to work on my reading comp cause i missed you were aying salt.modules everytime
19:03 whytewolf could have cleared this up ALOT sooner
19:05 drew__ jfindlay: I have Redhat only
19:05 akhter joined #salt
19:05 MindDrive joined #salt
19:06 dunz0r DammitJim: I just googled a tutorial about ssh-keys and took the first best.
19:06 whytewolf drew__: be thankful you don't have that same policy with ubuntu. they internally are stuck on 0.17.5
19:06 hasues joined #salt
19:07 dunz0r DammitJim: If you're wondering where to find the key, it's in ~/.ssh/id_rsa.pun
19:07 hasues left #salt
19:07 dunz0r DammitJim: * ~/.ssh/id_rsa.pub
19:07 drew__ zmalone: Oh... I will look into it as I do have another salt set up that has 2015.5.5 on master and number of minions
19:07 murrdoc joined #salt
19:08 zmalone You really want to be on the latest 2015.5 or 2015.8
19:08 drew__ whytewolf: that sucks...right??
19:08 zmalone Oh yeah, and I forgot the master/minion encryption issue that existed prior to the most recent point release
19:09 zmalone Although I think that might have been 2015.8 only
19:10 whytewolf drew__: 0.17.5 was before the current naming scheme. say about 3 or 4 years ago now
19:10 whytewolf almost the entire thing has been compleatly rewriten since then
19:10 DammitJim dunz0r, so just cat it?
19:10 rhand joined #salt
19:10 drew__ whytewolf: I didn't know that. Well, thanks for the knowledge
19:10 whytewolf zmalone: yeah i think the master/minion crypt bug was 2015.8 only
19:11 dunz0r DammitJim: Yep. If you're using vim: <esc>:r ~/.ssh/id_rsa.pub
19:11 drew__ zmalone: So I am safe to have 2015.5.5
19:11 zmalone I wouldn't say that.
19:12 whytewolf drew__: no. there is still security bugs in 2015.5.5 [cache files with imporper permissions, and i forgot the other one]
19:12 zmalone https://docs.saltstack.com/en/2015.5/topics/releases/2015.5.8.html , https://docs.saltstack.com/en/2015.5/topics/releases/2015.5.6.html
19:13 kevinquinnyo i can't figure out why my module can't find a pillar key, but it's clearly there
19:13 kevinquinnyo https://gist.github.com/kevinquinnyo/eba07124c1f1b84f8c0a
19:13 whytewolf jfindlay: whats up with 2015.8.6 and 2015.8.7 tags? first time i have seen tags in the repo before any kind of announcments
19:13 drew__ zmalone: docs are 2015.5.8 and 2015.5.6 , does it apply to 2015.5.5 too??
19:14 gtmanfred whytewolf: packaging announcement came out for 2015.8.7 last night
19:14 zmalone Yes, those are things fixed since 2015.5.5 that are security concerns
19:14 rhand joined #salt
19:14 whytewolf did it? I must have missed it :/
19:14 gtmanfred they are always in there, just not made the main one until the extra distros package them
19:14 gtmanfred whytewolf: it wasn't on salt-announce
19:14 whytewolf ahhh
19:14 gtmanfred it was on the packagers list
19:14 pwalsh joined #salt
19:15 whytewolf well that exaplins it, I'm on salt-announce and salt-users
19:16 gtmanfred https://groups.google.com/forum/#!forum/salt-packagers
19:16 gtmanfred it is a privateish group just for people that are working on packaging the stuff
19:17 drew__ zmalone: Got it sir... those docs show the things got fixed so prior versions have bugs
19:17 zmalone That sure is quick after 2015.8.5
19:17 zmalone drew__: Correct
19:17 murrdoc joined #salt
19:17 drew__ so to conclude this, it is not advisable to have 2015.5.5.... right?
19:17 zmalone I would not advise it.
19:18 whytewolf zmalone: yeah. thats why i was wondering.
19:18 zmalone whytewolf: I asked about the weird branching on github recently, and it sounds like 2015.8.5/.6 had some other big issue that needed to be fixed
19:18 zmalone I have not seen any weird github issues, so I'm guessing it will be another sec concern
19:19 baweaver joined #salt
19:19 jfindlay whytewolf: we push tags before announcing so that community/distro packagers can get a head start on packaging
19:19 drew__ zmalone, whytewolf: What would be next step to my idea of achieving a latest but stable version of salt in my infrastructure
19:20 zmalone I'd say downloading the 2015.5.<latest> packages and hosting them internally
19:20 whytewolf jfindlay: must be a new policy cause i remeber the "coming up" announcments typically where a week or two before even the tagging
19:20 jfindlay 2015.8.6 and .7 were made on a side branch so that we didn't have to retag on the HEAD and rerun a full release test because of a confluence of regressions
19:20 zmalone but if you can point me towards a stable salt, I'd appreciate it.
19:21 darix- joined #salt
19:21 jfindlay the .7 packages are being built now
19:21 whytewolf zmalone: http://saltstack.com/enterprise/
19:22 zmalone I believe that Enterprise is the same code base as the open source salt, but with a gui
19:22 whytewolf zmalone: it pretty much is, i was making a joke
19:23 drew__ I am still confused
19:23 drew__ debating over what to do
19:25 kevinquinnyo can someone explain what might be happening here? https://gist.github.com/kevinquinnyo/eba07124c1f1b84f8c0a  pillar key is not available but should be?
19:25 whytewolf drew__: I would say start the process for getting to use the repo.saltstack.com that way a.) you have standard versions across the board. b.) get security updates
19:26 forrest joined #salt
19:28 drew__ whytewolf: Alright, it would take few days for me to get those repos available for my infra.... but for that I will have to be more specific while requesting it. At that I must have decided to get THE specific version I am trying to get
19:29 drew__ So what version now I should be aiming to
19:29 drew__ ?
19:29 drew__ <zmalone> and <whytewold>
19:29 babilen drew__: You can tab complete nicknames in here
19:30 zmalone 2015.5.9 would be my recommendation
19:30 babilen +1
19:30 whytewolf +1
19:30 jfindlay zmalone: enterprise is the same code base as open source, it's just rebranded.  If you want the gui, that's a separate package
19:30 drew__ babilen: Thanks.. I did not know that
19:30 UtahDave kevinquinnyo: I think you're trying to access a list item as if it were a dictionary item
19:30 cpowell joined #salt
19:31 drew__ babilen: whytewolf : what is that +1?
19:31 baweaver joined #salt
19:31 whytewolf drew__: quick way of saying that we agree with zmalone
19:31 kevinquinnyo UtahDave: but did you see the second command where i requested pillar.item geodns.datadir ?
19:32 drew__ zmalone: I will keep that in my mind and would look into 2015.5.9
19:32 kevinquinnyo and the pillar actually is just this:  geodns.datadir: '/var/dns'
19:32 whytewolf jfindlay: whats is the projected EOL for 2015.5?
19:32 drew__ babilen: zmalone whytewolf : Thanks to you amazing guys!!
19:33 jfindlay whytewolf: should be here: https://saltstack.com/product-support-lifecycle/
19:33 gtmanfred https://saltstack.com/product-support-lifecycle/
19:33 drew__ babilen: zmalone: whytewolf : you guys mean to say 2015.5.9 is the most stable as of now and with no/least bugs?
19:33 Azid joined #salt
19:33 whytewolf oh sure, make me go to a web page :P
19:34 murrdoc joined #salt
19:34 gtmanfred whytewolf: i am pretty sure i have seen you ask him that same exact question before :/
19:34 whytewolf drew__: it is the most stable with in your current stream with the least likely hood of breaking your current states
19:34 jfindlay lol
19:34 whytewolf gtmanfred: actually no. I'm not normally big on EOL
19:34 zmalone drew__: Yes, 2015.8 is the most recent stable, but as a release branch, I feel like a lot of regressions and dubious new features have made it into that branch.
19:35 zmalone While 2015.5 was fairly stable, and is unlikely to break anything you have
19:35 gtmanfred whytewolf: hrm... then it was someone with a similar nick
19:35 gtmanfred but i know i saw someone ask last week, cause i had that link in my browser history because of it :P
19:35 whytewolf maybe. lots of w based nicks come in here
19:35 jfindlay zmalone: part of the issue I think is that 2015.8 came out 3 months after 2015.5, which didn't give us enough time to test and stabilize
19:35 oida joined #salt
19:35 gtmanfred wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
19:36 whytewolf gtmanfred: defintly wasn't last week i was might not have said more then 10 words last week
19:36 gtmanfred kk
19:36 akhter joined #salt
19:36 whytewolf was recoving from a business trip to AZ and that is an all week adventure for me
19:38 drew__ babilen: zmalone: whytewolf : idk if this related to that or not! But is this the reason I could not find rpm for 2015.5.5 anywhere?
19:39 gtmanfred the newest rpm for 2015.5 should be on repo.saltstack.com
19:39 drew__ In previous weeks, I reached to a point where I had to install salt on an "internet-restricted" server.
19:39 gtmanfred http://repo.saltstack.com/yum/redhat/7/x86_64/2015.5/
19:40 whytewolf drew__: most likely. they were on copr and EPEL but EPEL was updated
19:40 drew__ I could find all 2015.5.x but 2015.5.5
19:40 whytewolf drew__: with the restrictions you have with rpm's i would say you should have an internal repo
19:43 drew__ whytewolf: what does it mean by "internal repo"?
19:43 whytewolf drew__: a repo that you or your company controlls. built internall in your own network.
19:43 gtmanfred drew__: build the packages and host the repository yourself, seperate from upstream salt
19:43 drew__ Repos that our local sever has?
19:45 drew__ yeah... thoought the same. I was talking about this earlier. To have that internal repo available, it takes me at least 8 weeks and number of headache. and that is why I was searching it online somehwere I can get
19:46 drew__ Though, now I will work on to get one 2015.5.9
19:47 drew__ Thank you awesome guys for help. I will get back to you guys with more questions as I am new to salt
19:49 jhauser joined #salt
19:50 karlamrhein joined #salt
19:50 rvankleeck joined #salt
19:52 rvankleeck joined #salt
19:52 iamtew joined #salt
19:53 rvankleeck joined #salt
19:53 rvankleeck joined #salt
19:53 rvankleeck having some difficulty using the ec2_tags.py _grain. I can get the ec2_tags grain from the minion, but not from the master
19:54 jhauser joined #salt
19:55 rvankleeck joined #salt
19:56 rvankleeck stupid work network...
19:56 rvankleeck joined #salt
19:56 gtmanfred how are you trying to get it on the master? cause grains are specific for minions
19:57 rvankleeck salt <minion> grains.get ec2_tags
19:57 gtmanfred just salt-call works on the minion, but salt \* grains.get doesnt?
19:57 rvankleeck correct
19:57 gtmanfred try salt \* saltutil.refresh_grains
19:57 gtmanfred or... sync_grains
19:57 numkem joined #salt
19:58 gtmanfred i think the problem is the grains on the minions might not have refreshed for the main process
19:58 gtmanfred salt-call creates an entirely new salt-minion connection on the same event bus
19:58 gtmanfred but doesn't refresh the running minion daemon iirc?
19:58 rvankleeck gtmanfred: same thing
19:58 gtmanfred hrm, lame
19:58 rvankleeck agreed
19:58 gtmanfred i don't know then
19:58 rvankleeck yeah, me neither...super weird...
20:00 scarcry joined #salt
20:03 rvankleeck joined #salt
20:03 rvankleeck joined #salt
20:05 GreatSnoopy joined #salt
20:05 Ashald Any Consul users here? What do you think about https://github.com/saltstack/salt/pull/31256 ?
20:05 saltstackbot [#31256]title: Consul Pillar: select DC based on pillarenv | This PR provides functionality that allows mapping pillarenv values to Consul data centers....
20:06 rvankleeck It must be something to do with ec2_tags.py. Using a random test.py grain seems to work fine...
20:07 G01 joined #salt
20:09 josuebrunel joined #salt
20:10 Ashald rvankleeck: when I was using it I did saltutil.sync_all and saltutil.refresh_modules before accessing ec2_tags grains
20:10 baweaver joined #salt
20:10 murrdoc joined #salt
20:10 s_kunk joined #salt
20:10 Ashald but eventually we opted out of ec2 tags since they're eventually consistent and we had random delays before they were accessible
20:10 rvankleeck Ashald: Just tried that to no avail
20:11 Ashald are you sure you set up credentials properly for your minions?
20:11 rvankleeck I may end up going the same way and just using grains defined on the instances themselves. This just seemed like it would be a better option :)
20:11 rvankleeck yeah, I have an IAM role assigned to allow that
20:11 Ashald IIRC, when you do salt-call on minion it's executed under your user hence your user setup is used
20:11 rvankleeck I also tried with defining access creds, and that did not work either
20:12 Ashald compared to when call is made from salt-master
20:12 Ashald did you look at logs?
20:12 Ashald set trace level log on minion and see what happens
20:12 Ashald I solve almost all my problems with salt by looking at trace logs for salt-master and salt-minion :)
20:13 rvankleeck well this is weird
20:13 rvankleeck if i do 'service start salt-minion' then the grains don't show up
20:14 rvankleeck but if I do 'salt-minion -l debug' then the grains show up fine...
20:14 rvankleeck Must have something to do with Python on the minions
20:15 rvankleeck cuz I also couldn't run the ec2_tags.py on the minions themselves without doing 'pip install salt' in addition to 'yum install salt-minion'
20:15 rvankleeck otherwise I would get an error about python importing salt.log
20:16 slav0nic joined #salt
20:17 Ashald where did you get ec2_tags.py from?
20:17 Ashald from salt-contrib ?
20:17 Ashald AFAIK it's not part of standard distribution
20:17 rvankleeck correct
20:18 rvankleeck and salt-minion is installed via the saltstack repo
20:19 Ashald and also you have to install boto - maybe it's missing in system python distribution? (or whatever you're using for service start)
20:20 rvankleeck Ashald: boto is installed, both via yum and pip. wonder if that is the issue
20:20 Ashald maybe check the version?
20:20 ajw0100 joined #salt
20:21 rvankleeck both are 2.38.0
20:21 Ashald well then you need to look at minion logs when you request grains
20:21 Ashald and see what happens inside
20:22 Ashald that's the only idea I have
20:22 ajw0100 joined #salt
20:23 tehsu Is there a way to "pause" schedule jobs
20:24 kevinquinnyo is a function name in a salt module with a leading underscore not loaded by default?  for instance __salt__['my_custom_module._do_something'] doesn't seem to be available
20:24 jfindlay kevinquinnyo: yes
20:24 evilrob is there a common structure for a state to manage users being added to a subset of hosts (something like have a pillar with a user var that is a list of hosts they're supposed to be on) ?
20:25 ry joined #salt
20:25 evilrob we're getting ready to refactor some things and I'm lookign for stuff in common use to modify instead of coming up with our own.
20:25 ry_ joined #salt
20:25 babilen kevinquinnyo: They are considered private or internal to the module
20:25 ecrane joined #salt
20:25 ecrane Any idea what I'm doing wrong here? http://pastebin.com/RJqrxDAy     (Getting error 'not formed as a list')
20:26 Mate space missing after the dash
20:27 Mate you have {"-pkgs": [{"bzip": ... now
20:28 kevinquinnyo babilen: yeah that's how i was using it in my module as well, just to indicate it was internal, but then i wanted to test something
20:28 kevinquinnyo good to know
20:29 ecrane aw geeze, thank you
20:31 rvankleeck Ashald: something gets installed incorrectly (at least on amazon linux). The init script for salt-minion references a different bin and python version
20:32 Ashald well now you know what you need to fix :)
20:33 Ashald personally I install salt with pip so I cannot help you here
20:33 rvankleeck Ashald: yup - just need to add /etc/default/salt with proper values
20:33 djgerm Is there a way to get more output from master log about why it can't checkout a git repo?
20:34 rvankleeck Ashald: does installing it through pip create the init scripts, or do you do that yourself?
20:34 gtmanfred djgerm: set the log level to debug or trace
20:34 gtmanfred and then hope that the module actually logs it
20:35 Ashald :)
20:35 djgerm oh thanks
20:35 Ashald rvankleeck: no, it doesn't
20:35 Ashald I dealt with all that stuff on my own
20:35 Ashald *deal
20:35 Ashald supervisord/circus
20:35 Ashald or runit
20:36 Ashald or whatever OS uses
20:36 gtmanfred ruinit
20:36 gtmanfred <3
20:36 Ashald xD
20:38 giantlock joined #salt
20:40 pwalsh joined #salt
20:40 tyler-baker joined #salt
20:40 Netwizard joined #salt
20:45 srinivas joined #salt
20:47 hal58th_ djgerm: salt-run -l debug fileserver.update
20:47 djgerm thanks i'll try that too cause the debug output in master log is… confusing to say the least. I get a traceback for the gitfs.py util
20:48 hal58th_ unfortunately you might get a trace for this too. good luck
20:48 djgerm ah yes. same output
20:48 gtmanfred oh nice
20:48 gtmanfred didn't think about that
20:48 ZiLi0n Hi everyone, looking for help to point me out in the direction as to how to find out why I am getting error could not lazyload mymodule.myfunction
20:49 ZiLi0n created a _states folder and put mymodule.py under that
20:49 djgerm why would a git clone work manually but…. not from the master trying to update it's filesystem
20:49 ZiLi0n then run saltutil.sync_states
20:52 hal58th_ djgerm: You have the correct permissions and keys and what not for Salt to use?
20:52 djgerm it's a public repo (internally), and I can do a git clone as root user
20:54 djgerm so I think that's a yes.
20:54 quasiben joined #salt
20:54 hal58th_ djgerm: Not quite. If you don't specifically do no hosts checking, it may not work. gimme one sec to pastebin
20:54 josuebrunel joined #salt
20:55 djgerm thanks
20:56 quasiben joined #salt
20:58 rvankleeck joined #salt
20:58 hal58th_ djgerm: http://pastebin.com/f2Ngxy0K
20:58 RandyT joined #salt
20:59 djgerm ah ok. I'll try that…. see what happens
20:59 hal58th_ Also, my git repo had two folders in it, salt and pillar. I had to change the root to salt because thats what it wants.  - root: 'salt'
21:00 kevinquinnyo ZiLi0n: tail the log of the minion when you try to run the state, there's probably a typo in your state module
21:00 kevinquinnyo tail -f /var/log/salt/minion
21:00 ZiLi0n thanks kevinquinnyo
21:00 ZiLi0n !
21:01 kevinquinnyo when there's some sort of fatal error, the master isn't to helpful with letting you know that
21:01 is_null joined #salt
21:02 srinivas joined #salt
21:03 baweaver joined #salt
21:04 jaybocc2 joined #salt
21:05 djgerm hal58th_: no luck. same traceback
21:07 djgerm although, now that you mention it. I see an interesting thing… it looks like the master branch is "up to date" according to the log, but the other branch might be causing the headache.
21:07 onlyanegg joined #salt
21:14 * doompatrol prepares to roll out updates for glibc... sigh #rebootallthethings
21:14 XenophonF joined #salt
21:14 fracklen joined #salt
21:18 perfectsine joined #salt
21:20 cswang joined #salt
21:22 babilen doompatrol: You could just restart all the services ;)
21:23 babilen (and a little late .. the evils are out already!)
21:23 doompatrol babilen: well that's my personal preference however I don't get a choice in this instance :\
21:23 * doompatrol just does what he's told
21:23 doompatrol heh
21:24 babilen doompatrol: Fair enough .. just pointing it out. We couldn't reboot some hypervisors today and it wasn't necessary really .. just more work. And then. with salt, that wasn't too hard either.
21:24 doompatrol ^^
21:24 doompatrol completely agree
21:25 rem5 joined #salt
21:26 babilen A "salt '*' system.reboot" was tempting, but not really possible ... :)
21:26 djgerm1 joined #salt
21:27 doompatrol indeed, i'm going through boxes one at a time
21:29 ZiLi0n Hello, if the master has to execute a runner, can the master access the pillar data of the particular minion who is sending the even to execute the runner?
21:31 gtmanfred yes
21:31 gtmanfred well, it depends what version i think
21:31 gtmanfred but i believe the pillar runner has a show_pillar, which you can pass in a minion_id, and get back all the pillars from that minion
21:32 mariusv joined #salt
21:32 gtmanfred (it does not have an equivalent of the pillar.get)
21:32 gtmanfred or you could run pillar.get against the minion in your runner module
21:32 murrdoc joined #salt
21:32 hal58th_ djgerm1: Do you have a top.sls file in master branch and the other branch? That will cause an issue when doing highstate
21:32 hal58th_ tags too
21:32 gtmanfred just reach out to the minion like regular, or, attach the pillar data to the event you are sending to the reactor
21:33 djgerm1 hal58th_: I don't have anything in the master branch at all… maybe the README
21:33 ZiLi0n gtmanfred I see
21:33 Relentless joined #salt
21:33 djgerm1 this is all greenfield.
21:33 djgerm1 in stg1 I have a single test.sls
21:34 djgerm1 stg1 is my other branch, that isn't master :)
21:35 Relentless Hi there, just a quick question if I want some condition regarding ( if that id has some data into Pillar ) would this work? {% if {{ pillar['foo']['bar'] }}} ... {% endif} ?
21:35 gtmanfred Relentless: better to do salt['pillar.get']('foo:bar') or {% if pillar.foo.bar is defined %}
21:35 VR-Jack2 joined #salt
21:35 Relentless {% if pillar['foo']['bar'] }
21:36 Relentless Right thank you!
21:36 gtmanfred yours will break if the stuff isn't set
21:38 Relentless Is it possible to have AND / OR within conditional ?
21:38 nahamu Well, until 2016.3 and it's elegant .pkg installer show up, there's cowboy style: https://github.com/nshalman/simple-osx-salt
21:39 nahamu *its
21:39 Relentless something like {% if pillar.foo.bar and x.y.z is defined %}
21:39 gtmanfred if pillar.foo.bar is defined and x.y.x is defined
21:39 Relentless Waesome thank you,
21:41 karlamrhein joined #salt
21:43 tpaul Does "_comment: Registry not updated" sound familiar to anyone? Trying to install jre8 from the windows repo, can install other packages.
21:44 tpaul I've download the exe for jre8 too
21:44 tpaul and I've run pkg.refresh_db
21:45 murrdoc joined #salt
21:47 brianfeister joined #salt
21:48 djgerm1 hal58th_: I think it's actually not a git issue because I do see this in the log: "master-> origin/master', ' = [up to date]      stg1-> origin/stg1'])' caught while fetching gitfs remote" so it's…. connecting and checks out the master branch but isnt able to check out the stg1 branch?
21:48 djgerm1 or rather, not an auth issue
21:49 doompatrol gtmanfred: TIL: {% if pillar.foo.bar is defined %}
21:49 doompatrol ty
21:49 gtmanfred yar
21:50 murrdoc1 joined #salt
21:50 ZiLi0n kevinquinnyo the problem I have with my _states/mymodule is that it cannot find a module that is being imported... not sure how I can make that module available... if I do python import <modulename> it does not complain, so the interpreter can find it...
21:51 compute10 joined #salt
21:54 Relentless gtmanfred: You can do that ( the and conditional ) in jinja template?
21:54 kevinquinnyo ZiLi0n: did you test the import on the remote minion or the master
21:54 gtmanfred i do not now about sectioning off conditionals with parenthesis, but it would take about 5 minutes to test
21:54 kevinquinnyo the master may have whatever python library your module imports, but the minion might not, unless i misunderstand you
21:55 ZiLi0n kevinquinnyo on the minion
21:55 DammitJim why is the salt master complaining that a user is not available?
21:55 DammitJim I just joined the linux machine to the domain
21:56 nyx_ joined #salt
21:57 murrdoc joined #salt
21:57 kevinquinnyo ZiLi0n: so you are saying you can import that module just fine manually on the minion, but salt is complaining that the module doesnt exist when you try to run the mymodule via salt?
21:59 ZiLi0n so my salt module "mymodule" does import a library "mylibrary". Doing python import mylibrary there is no complain, however when I run salt form the master I see in the minion log: error import mylibrary, when the minion tries to execute mymodule
22:00 kevinquinnyo weird
22:01 compute10 is there a way to specify a domain when using the nova client?
22:01 whatapain joined #salt
22:02 whatapain does anyone know how to deal with a systemd service which when asked "service.status" comes back as True but when you cmd.run 'service <server> status' it comes back as "Active: active (exited)" and the service isn't running?
22:02 whatapain <service>
22:02 UtahDave ZiLi0n: does the minion have the "mylibrary" installed?
22:03 brianfeister joined #salt
22:03 kevinquinnyo on the minion he/her is able to import mylibrary just fine if i understood
22:03 ZiLi0n UtahDave yes, I did install it, but looks like that it wasn't installed properly. But however doing python import mylibrary the interpreter does nto complain
22:04 UtahDave ZiLi0n: it might be path / environment issue.  The salt-minion usually runs as root.  if you log in as root on that minion can you import that library?
22:04 ZiLi0n it is funny that mylibrary is not located under /Library/Python/2.7/site-packages... etc...
22:04 totzky joined #salt
22:04 ZiLi0n yes, I am logged in as root
22:07 whytewolf compute10: no
22:07 doompatrol whatapain: cmd.run systemctl status $service - ?
22:07 doompatrol err dont add the '- ?' of course
22:08 UtahDave ZiLi0n: when you test are you sure you're using python 2.7 and not python3?
22:08 doompatrol i mean i know the "service" command is still there but i've been trying to force myself to use the correct commands for systemd
22:08 whytewolf compute10: longer answer. the nova modules and nova-cloud modules [as well as the openstack cloud module] were writen before domains was included in keystone
22:08 whatapain doompatrol: it comes back "Active: active (exited) since Tue 2016-02-16 20:28:18 UTC; 1 day 1h ago"
22:08 ZiLi0n UtahDave I have just typed python --version and it is 2.7.8 in the minion
22:09 UtahDave ZiLi0n: can you have salt do the module install? Then it should put it in the correct location
22:09 whatapain doompatrol: salt thinks that the service is good when it's not.  i don't really understand what "active (exited)" means and how salt deals with that service status but it seems to be the core of the issue.
22:10 doompatrol whatapain: hmm, well if systemctl is saying it's active then i'm not sure
22:12 nkuttler joined #salt
22:13 karlamrhein joined #salt
22:14 compute10 thanks whytewolf. Any chance salt-cloud will work when using auth with a Domain?
22:15 anthpa joined #salt
22:16 ThomasJ joined #salt
22:16 whytewolf compute10: it works if the domain is default. which is the keystone fall back domain. i don't know about created domains. you can test by setting your endpoint version to v2 and not including a domain while using keystone
22:17 knite joined #salt
22:17 whytewolf however i doubt it will work. domains are meant to add seperation in security
22:18 whytewolf there needs to be a lot of loved paid to the openstack stuff in salt
22:21 joe_n joined #salt
22:24 agj joined #salt
22:25 bhosmer joined #salt
22:25 Benji_ joined #salt
22:29 onlyanegg joined #salt
22:29 djgerm1 hal58th_: Update! I removed my non master branch, and it still failed. I committed and pushed a test.sls file to the master branch, and that fixed it....
22:30 nkuttler joined #salt
22:30 djgerm1 the repo wasn't empty…
22:30 duae joined #salt
22:30 djgerm1 but it only had the README
22:30 duae Hi
22:31 duae Any one used docker w/ dockerng ? I was searching for a detailed example, haven't found nothing.
22:31 duae any links please ?
22:31 nyx_ joined #salt
22:42 zenlot1 joined #salt
22:44 rem5 joined #salt
22:44 ajw0100 joined #salt
22:44 djgerm1 how would one write test.ping into a state file?
22:45 djgerm1 oh… module.run
22:46 totzky joined #salt
22:49 hightekvagabond joined #salt
22:50 _JZ_ joined #salt
22:54 murrdoc joined #salt
22:56 urda joined #salt
22:56 urda What is salt-unity? The man pages just say 'A unified invocation wrapper around other Salt CLI scripts.' which isn't clear to me why that's different
22:59 hal58th_ djgerm1: that sounds weird... you wait the 60 seconds?
23:00 djgerm1 i have interval set to 10, but yeah
23:00 Muchoz joined #salt
23:03 baweaver joined #salt
23:03 snicers-work joined #salt
23:04 snicers-work Any idea why my salt minion has 6 processes and is taking up half a gig of ram? http://i.imgur.com/Vk1pKP0.png
23:05 rotbeard joined #salt
23:06 fgimian joined #salt
23:08 ajw0100 joined #salt
23:12 hal58th_ snicers-work: I think you can try to see what jobs are running on the minion
23:12 snicers-work How would I do that?
23:14 djgerm1 snicers-work: I've had good success with https://docs.saltstack.com/en/latest/topics/jobs/
23:15 hal58th_ Those only list master jobs, not per minion... But you can at least see what's active
23:23 antpa joined #salt
23:23 murrdoc joined #salt
23:27 xstra joined #salt
23:28 akhter joined #salt
23:29 onlyanegg joined #salt
23:31 patchedmonkey joined #salt
23:32 baweaver joined #salt
23:35 egalano joined #salt
23:38 murrdoc joined #salt
23:45 anthpa joined #salt
23:54 cyborg-one joined #salt
23:58 jfelchner joined #salt

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