Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-06-13

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

All times shown according to UTC.

Time Nick Message
00:01 rgarcia_ joined #salt
00:07 Luke_ joined #salt
00:08 Luke___ joined #salt
00:08 arthabaska joined #salt
00:10 redondos joined #salt
00:13 quickdry21 joined #salt
00:15 mafrosis joined #salt
00:17 Luke_ joined #salt
00:28 Katafalk_ joined #salt
00:30 possibilities joined #salt
00:32 thayne joined #salt
00:43 fllr joined #salt
00:45 alanpearce joined #salt
00:46 schimmy joined #salt
00:47 chamunks joined #salt
00:48 ajolo__ joined #salt
00:48 schimmy1 joined #salt
00:48 blarghmatey joined #salt
00:48 shaggy_surfer joined #salt
00:48 chamunks left #salt
00:49 patrek_ joined #salt
00:51 mosen joined #salt
00:53 possibilities joined #salt
00:55 bhosmer joined #salt
00:56 Katafalkas joined #salt
01:00 redondos joined #salt
01:00 redondos joined #salt
01:03 pdayton joined #salt
01:09 dude051 joined #salt
01:10 dude051 joined #salt
01:26 mgw joined #salt
01:26 druonysuse joined #salt
01:26 druonysuse joined #salt
01:30 mafrosis_ joined #salt
01:32 possibilities joined #salt
01:34 mosen for salt execution modules, imports are listed in sys.doc. Should I get around this by importing deps with an underscore prefix? whats the convention?
01:45 BrendanGilmore joined #salt
01:46 alanpearce joined #salt
01:47 ajolo joined #salt
01:50 Katafalk_ joined #salt
01:50 Engineer joined #salt
01:50 pdayton joined #salt
01:51 dude051 joined #salt
01:55 patrek joined #salt
02:10 dude051 joined #salt
02:13 Katafalkas joined #salt
02:21 TheThing joined #salt
02:32 possibilities joined #salt
02:33 MatthewsFace joined #salt
02:33 blarghmatey joined #salt
02:38 thomaso joined #salt
02:39 mattmtl joined #salt
02:40 possibilities joined #salt
02:43 mgw joined #salt
02:43 fragamus joined #salt
02:44 bhosmer joined #salt
02:46 alanpearce joined #salt
02:47 ajolo_ joined #salt
02:48 MatthewsFace joined #salt
02:59 krow joined #salt
03:00 BrendanGilmore joined #salt
03:02 jonbrefe joined #salt
03:07 patrek joined #salt
03:13 ajw0100 joined #salt
03:25 jnials joined #salt
03:43 catpigger joined #salt
03:47 alanpearce joined #salt
03:48 ajolo__ joined #salt
03:55 Engineer joined #salt
03:59 thayne joined #salt
03:59 salt1234 joined #salt
04:00 salt1234 left #salt
04:01 ipalreadytaken joined #salt
04:01 salt213 joined #salt
04:06 garthk joined #salt
04:09 salt_ joined #salt
04:14 harkx joined #salt
04:16 fragamus joined #salt
04:21 ajw0100 joined #salt
04:33 bhosmer joined #salt
04:35 xinkeT joined #salt
04:44 harkx joined #salt
04:46 Outlander joined #salt
04:47 ajolo joined #salt
04:48 acabrera joined #salt
04:48 alanpearce joined #salt
04:51 mafrosis joined #salt
04:59 travisfischer joined #salt
05:04 picker joined #salt
05:11 ml_1 joined #salt
05:14 greyhatpython joined #salt
05:26 ramteid joined #salt
05:35 anuvrat joined #salt
05:37 TristanMatthews Ryan_Lane, Joseph: I found the problem. The extra drives I was mounting are in the fstab of my snapshot. For some reason the way salt creates instances the ebs volumes aren't attached when it boots up, so ubuntu crashes. But when you bring up the snapshot with aws command line tools they are attached so everything boots up fine.
05:39 mosen joined #salt
05:47 ajolo_ joined #salt
05:49 alanpearce joined #salt
05:51 Engineer joined #salt
06:01 \ask joined #salt
06:03 MatthewsFace joined #salt
06:04 harkx joined #salt
06:07 krow joined #salt
06:08 anuvrat joined #salt
06:21 ipalreadytaken joined #salt
06:22 bhosmer joined #salt
06:23 zzzirk joined #salt
06:31 felskrone joined #salt
06:34 ipalreadytaken joined #salt
06:41 fsniper joined #salt
06:42 fsniper Hello
06:42 fsniper I have a custom module run inside a state and seems like it's run twice on some hosts
06:42 fsniper any ideas?
06:48 ajolo__ joined #salt
06:50 alanpearce joined #salt
07:00 davet1 joined #salt
07:09 fsniper left #salt
07:10 harkx joined #salt
07:12 alanpearce joined #salt
07:13 ml_1 joined #salt
07:15 JeroenH_ joined #salt
07:19 TheThing joined #salt
07:23 yetAnotherZero joined #salt
07:24 davet joined #salt
07:25 nadley hi all
07:26 nadley small question, what is the best way to install a rpm from a url with salt and to avoid errors or warning on second state run ?
07:27 krow joined #salt
07:30 Kenzor joined #salt
07:31 Katafalkas joined #salt
07:40 TheThing joined #salt
07:42 gildegoma joined #salt
07:45 yetAnotherZero joined #salt
07:48 ajolo joined #salt
07:59 babilen nadley: You can define "sources" for pkg.installed in which you list the, well, source URI for that package. Which errors do you run into?
08:01 darkelda joined #salt
08:05 MrTango joined #salt
08:06 mrTango joined #salt
08:11 bhosmer joined #salt
08:14 thehaven joined #salt
08:20 sectionme joined #salt
08:30 Lomithrani joined #salt
08:48 ajolo_ joined #salt
08:49 Lomithrani Hi , can I use a runner in an sls ?
08:52 nadley babilen: I'm trying this http://pastebin.com/9WrhXjxs , I think that was your suggestion it works when I run salt "*" state.highstate but I have no return message
08:53 picker joined #salt
08:54 TheThing joined #salt
08:56 superted666 joined #salt
09:00 babilen nadley: That looks about alright. Are you sure that you get *no* output? That sounds as if you simply ran into a timeout. You can show old jobs with "salt-run jobs.list_jobs" (you probably want to pipe that into, say, "| tail -n100") and then get the output of your job with "salt-run jobs.lookup_jid $JOBID"
09:02 babilen nadley: You can also set the "show_jid=True" option in your master config to have it print the JID whenever a job runs into a timeout (that should be on by default, not sure if it works with your release though)
09:06 krow joined #salt
09:06 nadley babilen: yes maybe you're right about the timeout I'm going to look after it. But what can be the reasons of a timeout
09:08 superted666 I have a question on targetting based on some odd responses i've seen. If a minion's key is present on the salt-master but it doesn't have any cached information about the grains for that minion. Salt seems to be presuming that it's got every grain it knows about, is that correct?
09:10 babilen nadley: salt simply timeouts if a running job takes too long (the default is, IIRC, 60s). This is sensible behaviour as it doesn't lock up your shell and you can always get historical output with jobs.lookup_jid
09:10 superted666 I noticed this as i have a few transient minions that i'm trying to sort. Salt seems to be putting them into all my targetting commands, natrually they time out but this is slowing other things down that use salt.
09:11 babilen nadley: The main problem is that it is a bit tricky to get hold of the job id after a run ran into a timeout. show_jid: True in your master config fixes that, but you can also call "salt-run jobs.active" or wade through the oodles of output in "salt-run jobs.list_jobs"
09:14 ghartz joined #salt
09:17 krow joined #salt
09:33 jalaziz joined #salt
09:34 ghaering joined #salt
09:35 nadley babilen: here is a pastebin, http://pastebin.com/KqCt22Vj I'm not understanding, when I run my state it install the rpm from the url but I have no information about the running state and I got my prompt back. Then if I remove the rpm by hand and relaunch the state I got another message.
09:39 briner is there a way to use the distributed shell in conjunction with the states. In my case, I want to be able te restart apache on all nodes, some of them are on debian others on redhat
09:41 mosen joined #salt
09:44 CeBe joined #salt
09:48 ajolo__ joined #salt
09:48 timc3 joined #salt
09:49 Lomithrani How can I check that a .jar exist and if so delete it and dll another .jar ?
09:50 Lomithrani well just checking if a file exist , and delete it , the rest I'll be fine
09:54 babilen nadley: Looks like that package is behaving strangely. I'd investigate with the help of somebody who knows rpm packaging and that particular package.
09:54 jY Lomithrani: something like http://pastebin.com/yjMD90p5
09:55 Lomithrani good thanks
09:55 Lomithrani file.absen
09:55 Lomithrani thats what I was looking for :)
09:55 babilen briner: Why can't you use "service.restart apache2" (for Debian) ?
09:56 babilen briner: You might also have defined/used an apache-service state that abstracts the actual service name that you could trigger
09:57 nadley babilen: ok I'm trying some stuff but I think I found a solution
09:58 babilen nadley: Let me know what it was, but I'm not convinced that this is a salt problem. You might have to satisfy dependencies for that package manually (i.e. make sure they are installed beforehand)
09:58 babilen nadley: Can you, in the current state of the box, install that rpm manually without problems?
09:58 nadley babilen: it is just a package installing a repository
09:59 babilen nadley: That sounds ugly
09:59 babilen nadley: Why don't you manage the actual repository with, say, state.pkgrepo ?
10:00 babilen (assuming this is yum something)
10:00 bhosmer joined #salt
10:01 babilen nadley: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkgrepo.html is what I am referring to
10:01 nadley babilen: does pkgrepo manage repo key ?
10:01 babilen It does, yeah
10:03 nadley so pkrepo can download the rpm or should I extract it and manage files ?
10:03 krow joined #salt
10:03 nadley forget what I said, I understand
10:04 basepi joined #salt
10:12 Lomithrani just to confirm : http://paste.debian.net/104769/  I restart my cassandra  if my jar OR my yaml are modified or I restart my cassandra if my jar AND my yaml are modified?
10:13 viq Lomithrani: line 17 should be cmd.wait, there should be no line 19
10:14 viq same with your pkg update state, also I think spaces are not allowed
10:15 Lomithrani so I replace my cmd.run by cmd.wait ?
10:15 viq Also you'll remove and download the snappy-java jar every time you run
10:15 viq yes
10:19 jY ya no need for cmd.run
10:19 jY move the name down to cmd.wait
10:21 picker joined #salt
10:23 notbmatt joined #salt
10:23 krow joined #salt
10:26 ggoZ joined #salt
10:35 monokrome joined #salt
10:41 ekristen joined #salt
10:43 kuL4_ joined #salt
10:43 blarghmatey joined #salt
10:44 kuL4_ guys I'm trying to figure out if there is a run scheduler in salt as in puppet (which by default kicking off every 30'), if not how it's done (doc pointer v welcome)
10:48 ajolo joined #salt
10:48 picker joined #salt
10:48 jY kuL4_: isn't that done using mcollective?
10:49 jY http://docs.saltstack.com/en/latest/topics/jobs/schedule.html
10:49 jY that should do what you want though
10:52 kuL4_ jY: ok, maybe I haven't been clear what I'd like to know, my question is: how often salt check minion states and adjuste them accordingly to sls.
10:53 jY kuL4_: you have to tell minions how often you want to run states
10:53 jY like do you want to run a highstate every 10 minutes?
10:54 kuL4_ jY: something like this yes
10:55 jY you'd follow what i posted in your /etc/salt/minion
10:55 jY something like
10:55 jY http://pastebin.com/3sZhzapM
10:57 viq jY: or pillars
10:57 viq I prefer pillars, as then that information is centralized
10:58 kuL4_ jY: so there is no declaration on master how often master is checking for sls changes and pushing it into minions?
10:59 viq kuL4_: by default master doesn't push updates
10:59 jY kuL4_: we use a githook for that.. githook fires off a message to minions to run a highstate
10:59 viq kuL4_: unless you explicitly tell it to, either via hook as jY said, or via schedule, again as mentioned above
11:01 kuL4_ viq: jY: so by default there are no updates to minion states, in default setup it will do what must be done and will not recheck states, that ould explain somethign :-)
11:01 kuL4_ thx guys
11:01 jY kuL4_: a highstate is the same thing as doing like a puppet agent -vt
11:02 jY its a puppet run
11:03 kuL4_ ok, so unless I'll put 'salt "*" state.highstate' into cron nothing will happened, now it's clear thx a lot
11:03 viq correct
11:03 * kuL4_ thx a lot, it was bugging me like hell
11:04 r4vi left #salt
11:04 viq kuL4_: you may want to look at halite, it has an option where it will periodically run highstate test=True to see if there _would_ be any changes and report that
11:05 jY kuL4: when i looked into salt for the first time I to thought salt-master was this magical app that knew where to send all the files/configs and such
11:06 kuL4 jY: I have no problem with how ZMQ is workig I just could figure out how changes are relized on minions :-)
11:06 kuL4 couldn't*
11:06 CeBe1 joined #salt
11:06 kuL4 viq: I'll have a look, thx
11:07 bhosmer joined #salt
11:07 q4brk joined #salt
11:13 mosen is halite more or less the web application of 'salt' ?
11:14 jY is there an app that can keep results of state runs.. sort of like what puppet dashboard does?
11:14 viq ish
11:16 mosen and might halite fit that definition? hehe
11:18 chiui joined #salt
11:19 ggoZ1 joined #salt
11:22 felskrone jY: not at the moment no
11:23 felskrone but the job cache holds that data
11:23 jY ok thanks
11:23 bhosmer_ joined #salt
11:23 felskrone if you want it to be in a database or something like that, have a look at salt-eventsd
11:23 viq You can have external cache (like mysql I think), also I think there's a project to do that
11:24 jY will do
11:24 felskrone it can collect that kind of data and put it into mysql
11:24 viq yeah, salt-eventsd
11:24 mosen gotcha
11:29 jcsp joined #salt
11:33 blarghmatey joined #salt
11:35 dsolsona joined #salt
11:48 ajolo_ joined #salt
11:49 vnico joined #salt
11:51 vnico anyone knows if salt-api was successfully merged in salt Helium?
11:53 Jarus joined #salt
11:54 damianh joined #salt
11:55 Lomithrani joined #salt
11:57 bhosmer joined #salt
11:58 briner babilen, the problem is that the name apache2 is not the same on debian and on redhat.
11:58 Outlander joined #salt
12:01 briner babilen, couldn't be a good idea to use the power of salt to say restart apache2 and that on debian it does apache2 and on redhat it does http
12:02 babilen briner: Yes, hence the idea of abstracting that to, say, "apache-service" where you would then fill in the "- name: {{ value_from_map }}"
12:02 babilen Look at some of the formulas to get an idea on how to do that (service declarations + map.jinja)
12:03 happytux joined #salt
12:08 timc3 joined #salt
12:09 elfixit joined #salt
12:10 jrdx joined #salt
12:13 bastion1704 joined #salt
12:25 damianh left #salt
12:27 tinuva joined #salt
12:29 ScrumpyJack joined #salt
12:40 vbabiy joined #salt
12:48 ajolo__ joined #salt
12:49 jmoretti joined #salt
12:55 kiorky_ joined #salt
12:56 jslatts joined #salt
13:07 tristianc joined #salt
13:09 BrendanGilmore joined #salt
13:10 briner babilen, could you please give me a pointer that explain with more example what you told me.
13:10 Guest85757 joined #salt
13:11 kiorky joined #salt
13:12 rojem joined #salt
13:12 babilen briner: One second please
13:14 rojem joined #salt
13:16 mgw joined #salt
13:16 blarghmatey joined #salt
13:17 babilen briner: The basic idea is to define something like http://paste.debian.net/104802/ -- that gives you "apache2-service" which you can (I think) run with "salt '*' service.restart apache2-service"
13:17 blarghmatey Does anyone know how I can specify the Version parameter when trying to use the ec2 driver in the salt-cloud module?
13:18 blarghmatey I'm using a Eucalyptus server and it seems to only support version 2013-02-01 of the api, but salt is sending 2013-10-01 as the api version.
13:18 babilen briner: See http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html -- I'm just not 100% sure if that makes the apache2-service available in the service module. http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.service.html
13:21 BrendanGilmore joined #salt
13:22 babilen briner: Does that work?
13:23 harkx joined #salt
13:28 anuvrat joined #salt
13:29 Guest85757 joined #salt
13:30 madduck_ joined #salt
13:30 madduck_ joined #salt
13:34 blarghmatey I figured it out. If you add an ec2_api_version parameter to your provider file it will use that instead of the default.
13:35 kermit joined #salt
13:38 kyr0 joined #salt
13:39 mikber joined #salt
13:41 bensons_ joined #salt
13:42 bensons_ hi, i have a question for pillars, how do i make the following work (it does obviously not :() http://paste.debian.net/104806/
13:44 TheThing bensons_: http://paste.debian.net/104808/ <--- just do it like that
13:45 TheThing oh and remove that last quote
13:45 terminalmage yes, jinja just expands in place
13:45 terminalmage also, if you're using pillar.get, it's probably a good idea to include a sane default
13:46 terminalmage otherwise you'll get a None there, I think
13:46 bensons_ TheThing: thanks, when i dump the pillars now, i get the following.. http://paste.debian.net/104809/
13:46 terminalmage ding ding ding
13:46 terminalmage so that means the pillar doesn't exist
13:46 TheThing uhh
13:46 TheThing he's including pillar data in another pillar
13:46 bensons_ thats not supposed to work?
13:47 terminalmage oh that's in a pillar SLS file?
13:47 bensons_ terminalmage: yes, sorry forgot to mention that
13:47 TheThing oh terminalmage, look again
13:47 TheThing the variables he's trying to look for are in the same file
13:48 TheThing bensons_, the reason that doesn't work is because when it expands the {{}} it has yet to parse the other contents
13:48 ajolo joined #salt
13:48 terminalmage bensons_: hold on, I have a solution
13:48 q4brk joined #salt
13:48 TheThing You should do it like this bensons:
13:49 TheThing bensons_: http://paste.debian.net/104810/ try this
13:50 TheThing I think that's the correct syntax
13:50 chadhs joined #salt
13:50 terminalmage bensons_: http://dpaste.com/06417RA
13:50 bensons_ hehe, cool - thanks a lot guys :)
13:50 gildegoma joined #salt
13:51 diegows joined #salt
13:51 jaimed joined #salt
13:51 bensons_ works, perfect :)
13:54 MZAWeb joined #salt
13:56 cstrutton joined #salt
13:57 cstrutton can I ask a silly question... where did the 'salt-cloud' command go?
13:58 cstrutton I installed salt on an Ubuntu 12.04 vps (apt-get salt-maste/minion/syndic) but I cant find salt-cloud.
14:01 vejdmn joined #salt
14:02 manfred cstrutton: it is in salt proper now, you should be able to install it
14:03 manfred cstrutton: http://ppa.launchpad.net/saltstack/salt/ubuntu/pool/main/s/salt/
14:03 quickdry21 joined #salt
14:04 cstrutton so I need to apt-get install salt-cloud?
14:05 manfred yes
14:06 cstrutton I guess that should be added to the salt docs...
14:06 cstrutton thanks for your help
14:06 TheThing protip: yum search salt :)
14:07 manfred apt-cache search salt
14:07 TheThing oh right, apt = debian
14:07 TheThing been using a lot of yum lately :b
14:07 TheThing sorry
14:08 manfred TheThing: apt == ubuntu too
14:08 manfred os_family: Debian
14:08 manfred :P
14:08 TheThing :b
14:08 cstrutton docs only mention that salt-cloud is part of salt... no mention of separate install...
14:09 manfred cstrutton: that is how debian based distros do it though
14:09 manfred apt-file search salt-cloud
14:10 smcquay joined #salt
14:10 m1crofarmer joined #salt
14:10 Lomithrani joined #salt
14:11 mosen hiya salties
14:12 manfred saltines*
14:12 honestly salinos?
14:13 TheThing hey now, that's sexist, you should say: Saltinas
14:13 TheThing (not that any one of us are females)
14:14 bmcorser joined #salt
14:15 thedodd joined #salt
14:15 honestly (how do you know?)
14:15 mosen im probably just covering what halite does anyway, but decided to write a small monitoring web app showing minion event history
14:16 viq salinianas
14:16 mosen because of that other guy asking about puppets dashboard :)
14:19 TheThing honestly: (it was a statistical guess)
14:19 TheThing well, those who use puppet are called puppet masters
14:19 TheThing *puppet master
14:20 TheThing or something like that which sounds really cool
14:20 TheThing so... salt master? Doesn't have the same ring to it
14:20 viq salteer
14:20 peters-txt joined #salt
14:21 cosi joined #salt
14:21 cosi howdy
14:21 debian112 anyone has experience with salt-cloud and proxmox?
14:22 TheThing better ask the other salteers
14:22 kaptk2 joined #salt
14:22 TheThing no viq, doesn't have a good ring to it
14:24 ajw0100 joined #salt
14:24 mosen salt master? salt monger
14:25 TheThing saliteer?
14:25 xt master? that's racist
14:25 TheThing how about "the spicer"
14:25 TheThing "ask the other spicers in here"
14:25 TheThing I'm a spicer, I exclusively use salt
14:27 TheThing okay, I should stop :b
14:27 mosen seasoningops
14:27 erjohnso joined #salt
14:27 mosen yep
14:28 dmz joined #salt
14:28 viq In theme with chef, eh?
14:28 TheThing how about skipping "ops" mosen?
14:28 TheThing "ask the other seasoners"?
14:29 vnico left #salt
14:30 mosen saltstack doesnt even need a marketing strategist
14:30 mosen everythings here on irc already
14:31 bhosmer joined #salt
14:31 TheThing saltegist?
14:32 thayne joined #salt
14:32 * viq slaps TheThing around with a large tuna
14:33 TheThing lol
14:33 mosen thanks viq
14:33 TheThing okay, I took the joke too far
14:34 TheThing it's friday here at work
14:35 mosen gotta roll, very late. see you saltines later and thanks for the help
14:37 quickdry21 joined #salt
14:38 AdamSewell joined #salt
14:39 diegows joined #salt
14:39 antonw joined #salt
14:40 acabrera joined #salt
14:43 dude051 joined #salt
14:43 dude051 joined #salt
14:44 cstrutton ok.. im back.. more problems  (note i may ask lots of stupid questions but will only ask them once)
14:45 cstrutton salt-cloud is installed, a profile setup in /etc/salt/cloud.profiles.d/
14:45 cstrutton salt-cloud --list-providers says no providers available?
14:47 cstrutton sorry.. --list-sizes says no provider available
14:47 manfred you haveto put a provider in /etc/salt/cloud.providers.d/
14:47 Networkn3rd joined #salt
14:47 manfred as well
14:47 manfred then reference that provider in your profile
14:47 cstrutton ok.. brb... gonna double check
14:48 jalbretsen joined #salt
14:49 ajolo_ joined #salt
14:50 cstrutton ok.. mis spoke.. setup provider in /etc/salt/cloud.providers.d  not profiles
14:50 cstrutton should be able to get a list of sizes without a profile set right?
14:55 ml_1 joined #salt
15:01 cstrutton I have the following in /etc/salt/cloud.providers.d/do_nyc2 :
15:02 cstrutton digitalocean-config-nyc2:   provider: digital_ocean   client_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx   api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx   location: New York 2
15:03 cstrutton should I have the first line?  the config name or is that taken from the file name when using the .d directory?
15:03 harkx joined #salt
15:04 kuL4 left #salt
15:06 rallytime joined #salt
15:10 jslatts joined #salt
15:10 smcquay joined #salt
15:12 cstrutton figured that one out... files in cloud.provider.d need to end with .conf to be recognized.  (docs say 'any file in the provider.d directory')
15:12 oz_akan_ joined #salt
15:16 dmz joined #salt
15:16 dmz joined #salt
15:16 conan_the_destro joined #salt
15:19 redondos joined #salt
15:20 Valdo joined #salt
15:20 jaimed joined #salt
15:21 jonbrefe joined #salt
15:25 noxman joined #salt
15:28 cstrutton Can anyone tell me why we define the data center inside the provider config file?  seems counter productive to specify client id and api key multiple times for different data centers?
15:28 noxman joined #salt
15:29 smcquay joined #salt
15:30 timoguin cstrutton: You can specify it in the profile too.
15:30 timoguin I think the profile will over-ride it
15:32 noxman Could someone tell me if it's normal for the salt-master to become 100% CPU bound with around 300 minions for quite some time on startup?
15:33 noxman I dont see this problem on my other masters with fewer minions
15:33 mbright joined #salt
15:33 ajw0100 joined #salt
15:34 mbright Morning all!  Quick question that has been plaguing me for a while.  Can't find the solution on Google or other forums.
15:34 lint-tech joined #salt
15:34 lint-tech left #salt
15:34 mbright I have Minions connecting through NAT to a master node. I need to get the NAT IP for the minion from the master, any ideas?
15:35 viq mbright: https://github.com/saltstack/salt-contrib/blob/master/grains/external_ip.py ?
15:36 viq mbright: or possibly hackery around http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.network.html#salt.modules.network.traceroute
15:37 mbright Is there a direct way from a python script?  Can I load the master client and get that information from an internal function?
15:37 mbright Just experimenting here.
15:39 viq mbright: if the grains one solves it for you then I believe so
15:40 timoguin yep, the grain will load on minion start-up and make the value directly queryable from the master
15:44 mbright I see what you are talking about, however, I would need to change that as I don't want external urls being used.  This is a fairly secure environment I am working with.
15:44 MZAWeb joined #salt
15:45 mbright I am not familiar with salt-contrib, is there some documentation somewhere to show how to install these extensible grain files?
15:47 jalaziz joined #salt
15:48 ajolo__ joined #salt
15:50 dmz joined #salt
15:51 UtahDave joined #salt
15:52 smcquay joined #salt
15:56 rgarcia_ joined #salt
15:57 Sacro UtahDave: it uses the right folder, but seems to be downgrading it
15:58 viq mbright: http://docs.saltstack.com/en/latest/ref/file_server/dynamic-modules.html
16:00 Valdo joined #salt
16:00 redondos joined #salt
16:00 redondos joined #salt
16:01 mbright Thank you viq!!!  This is what I am looking for.  With all of your feedback, I now have an idea of what I can do.  If I get something that works, I will make sure to share it with you guys.
16:01 mbright Thanks again.
16:01 pdayton joined #salt
16:01 viq :)
16:01 pdayton left #salt
16:01 dsolsona joined #salt
16:03 blarghmatey Has anyone here had success using salt-cloud with a Eucalyptus instance? (eucalyptuscloud.com)
16:03 blarghmatey I'm running into an issue where I keep getting a 403 error Login Failure: all modules ignored
16:06 KyleG joined #salt
16:06 KyleG joined #salt
16:06 tligda joined #salt
16:09 UtahDave viq++
16:10 UtahDave blarghmatey: I haven't used salt-cloud with eucalyptus.  Could you open an issue with as much detail as possible?
16:10 UtahDave Sacro: can you give me more detail?
16:11 kermit joined #salt
16:11 blarghmatey UtahDave, I'll see if I can get it resolved and if I can't figure it out I'll file the issue. It might be a problem with my configuration.
16:12 UtahDave cool, thanks, blarghmatey
16:12 UtahDave try running salt-cloud with    -l debug       that might give you more info
16:12 MZAWeb joined #salt
16:13 Networkn3rd joined #salt
16:14 noxman Does anyone know how to manually clear a zeromq backlog on the master?
16:14 possibilities joined #salt
16:16 ipmb joined #salt
16:20 krow joined #salt
16:21 viq I have a couple backup machines, how would you go about generating matching a host with the machine that will be backing it up, to generate appropriate configs on both?
16:28 krow joined #salt
16:28 masterkorp Guys can i use systemd on a formula
16:29 masterkorp like I have a template that is systemd unit and place it on the system, then i have a yaml block that installs systemd and starts it up
16:30 masterkorp the way i see the current systemd support is trough the service state which seems to be that there is not way i can enforce it to use systemd
16:30 masterkorp or there is ?
16:31 viq masterkorp: you can force providers
16:31 viq Though I'm not sure you can force them per state
16:31 viq But you could globally force state provider to be systemd
16:32 masterkorp viq: can you give an example ?
16:32 viq yeah, sec
16:33 schimmy joined #salt
16:33 MatthewsFace joined #salt
16:33 viq http://docs.saltstack.com/en/latest/ref/configuration/minion.html#providers
16:34 viq You _might_ be able to set it via pillar as well, but not certain
16:34 ml_1 joined #salt
16:35 masterkorp so i would set that on the top of the sls ?
16:35 viq no, either in minion config, or in particular service state
16:36 viq http://docs.saltstack.com/en/latest/ref/states/providers.html
16:36 joehillen joined #salt
16:37 masterkorp aww
16:37 masterkorp kinda pain in the arse
16:37 jimklo joined #salt
16:37 masterkorp i better just call it cmd.run
16:39 schimmy joined #salt
16:42 thayne joined #salt
16:42 kballou joined #salt
16:42 Ryan_Lane joined #salt
16:45 vbabiy joined #salt
16:48 forrest joined #salt
16:49 ajolo__ joined #salt
16:52 ajw0100 joined #salt
16:54 felskrone1 joined #salt
16:55 alanpearce joined #salt
16:58 shaggy_surfer joined #salt
17:00 kballou joined #salt
17:00 Valdo joined #salt
17:00 jimklo joined #salt
17:00 davet1 joined #salt
17:00 jimklo joined #salt
17:03 schmutz joined #salt
17:04 davet1 joined #salt
17:07 blarghmatey joined #salt
17:08 davet joined #salt
17:08 davet joined #salt
17:11 travisfischer joined #salt
17:14 Ryan_Lane1 joined #salt
17:16 davet joined #salt
17:18 arthabaska joined #salt
17:19 shaggy_surfer joined #salt
17:22 rawzone joined #salt
17:25 smcquay joined #salt
17:30 bhosmer joined #salt
17:30 davet joined #salt
17:30 druonysus joined #salt
17:31 davet1 joined #salt
17:32 Theo-SLC joined #salt
17:34 Theo-SLC When doing a salt deployment with multiple masters for HA.  How does the minion decide which master to work with?  I have reason to believe it has nothing to do with the ordering in the configuration file.
17:35 timoguin it's respond to any master that sends it a command
17:35 timoguin not sure how it handles salt-call though
17:38 Theo-SLC I noticed that when it first starts up, it requests key acceptance from one and will not request acceptance from the second until the first accepts.
17:39 cachedout joined #salt
17:40 diegows joined #salt
17:40 Theo-SLC It would be nice if the minion would choose to work with master with the fastest ping return.
17:41 smcquay joined #salt
17:42 krow joined #salt
17:44 troyready joined #salt
17:44 smcquay_ joined #salt
17:47 arthabaska joined #salt
17:49 ajolo joined #salt
17:52 Ryan_Lane UtahDave: sigh. highstate is also calling an event to zmq now
17:52 Ryan_Lane when using --local
17:52 ekristen joined #salt
17:52 Ryan_Lane I was wondering why it was 10 seconds slower than using state.sls
17:53 Ryan_Lane UtahDave, whiteinge, forrest: can someone re-open https://github.com/saltstack/salt/issues/12173 ?
17:54 forrest Ryan_Lane, I'm not part of the org so I can't re-open it, sorry :(
17:55 Ryan_Lane no worries
17:56 Ryan_Lane this problem obviously needs a regression test written for it
18:01 hardwire joined #salt
18:01 dlam joined #salt
18:01 rawzone joined #salt
18:03 Theo-SLC joined #salt
18:04 terminalmage Ryan_Lane: I reopened
18:04 Ryan_Lane thanks
18:04 terminalmage and I also labeled it as "needs testcase"
18:04 Ryan_Lane it's just adding 10 seconds to the run, but a wasted 10 seconds sucks ;)
18:04 vejdmn joined #salt
18:04 terminalmage one of the QA folks looks at that label and writes tests where needed
18:04 terminalmage so that should ensure that we get a test case for this
18:04 Ryan_Lane since my no-change run takes 4 seconds (and runs 350 states)
18:05 Ryan_Lane which, btw, is super awesome
18:05 terminalmage yeah. you're running off develop, right?
18:05 Ryan_Lane yep
18:05 terminalmage I optimized saltutil.sync_all a few weeks ago
18:05 Ryan_Lane I'm running masterless
18:05 terminalmage ah
18:05 terminalmage yeah, --local
18:06 terminalmage well, with a master though, highstates were sped up considerably
18:06 * Ryan_Lane nods
18:06 hardwire joined #salt
18:06 terminalmage because it's not reading the top file as often
18:06 Ryan_Lane the lazy-load system took about 8 seconds off the run with masterless
18:07 terminalmage yeah, I took a no-change highstate from 9 seconds to less than 3
18:07 Ryan_Lane <3
18:07 chrisjones joined #salt
18:07 terminalmage optimizations FTW
18:07 Ryan_Lane yep. I added a few bugs regarding optimizations, btw
18:08 repl1cant joined #salt
18:08 patarr can salt integrate with svn? to pull configs?
18:08 mgw1 joined #salt
18:10 rallytime joined #salt
18:11 dlam when i do `salt 'appserver*' app.deploy`    ...is there a way to make it go through each of the appserver minions one at a time?
18:11 dlam (or maybe salt already does that, me noob)
18:11 Eugene Yes, salt -G
18:11 Ryan_Lane dlam: if you use batch mode and set the batch to one, it'll iterate every minion
18:11 Eugene http://docs.saltstack.com/en/latest/topics/targeting/
18:12 Ryan_Lane dlam: http://docs.saltstack.com/en/latest/topics/targeting/batch.html
18:12 Eugene Oh, at-a-time.
18:12 dlam oooo batch mode cool, that looks like it
18:13 * Eugene acquires additional beer
18:13 dlam yeah, i wanna do it one at a time:  the reason being so in production, i dont take down all the app servers at the same time!
18:13 Ryan_Lane canaries ;)
18:13 Eugene Pffft, "web scale"
18:13 dlam oooo yeah batch thing looks like exactly want i want thanks!
18:13 dlam haha
18:13 Ryan_Lane add a 'canary' grain to a portion of your nodes
18:13 Ryan_Lane then deploy to them first
18:14 Ryan_Lane see if they throw errors. if not, deploy to the rest
18:14 UtahDave those are wise words from Ryan_Lane
18:14 Ryan_Lane if you hose them, remove them from the load balancer :)
18:19 * dlam goes to google canary grain :D
18:19 jchen dlam: that's not actually a thing
18:20 jchen you just make a role/something named canary and deploy to those minions
18:20 schmutz joined #salt
18:20 n8n joined #salt
18:21 Ryan_Lane dlam: grains are a salt feature. you can add them via grains.setval canary True
18:21 Ryan_Lane well, that's how you'd add the canary grain
18:21 Ryan_Lane then you'd target with salt -G 'canary:True'
18:22 Ryan_Lane you can also add it to your minions' config files
18:23 dlam ohhh ok good idea:  deploy to a few app servers first to see it dosent die :D
18:23 dlam oh its a term: "canary deployment"  (didnt know that)
18:24 tligda1 joined #salt
18:24 cachedout joined #salt
18:25 tligda joined #salt
18:26 Joseph joined #salt
18:27 rawzone joined #salt
18:30 jrb28 joined #salt
18:33 kermit joined #salt
18:34 anuvrat joined #salt
18:34 logix812 joined #salt
18:34 harkx joined #salt
18:38 rgarcia_ joined #salt
18:39 XenophonF joined #salt
18:42 XenophonF does the group.present (and associated group.adduser method) work on FreeBSD?
18:43 XenophonF i've got the latest versions of states/group.py and modules/groupadd.py installed, but I keep getting an error on FreeBSD minions when I need to add a user to a group
18:44 XenophonF here's the error I'm getting - http://paste.debian.net/104848/
18:45 manfred looks like it didn't load the groupadd module
18:45 manfred XenophonF: https://github.com/saltstack/salt/blob/develop/salt/modules/groupadd.py#L20
18:45 manfred doesn't look like FreeBSD is included
18:46 XenophonF hm
18:46 XenophonF so am i reading this right, that the code expects to call out to a program named "groupadd"?
18:46 manfred yes
18:47 XenophonF on FreeBSD, the command would be something like "pw groupadd"
18:47 manfred XenophonF: just needs a patch
18:47 blarghmatey joined #salt
18:47 XenophonF I'll see what I can do.
18:48 XenophonF I still owe UtahDave one MSI installer for Windows.
18:48 XenophonF thanks manfred
18:48 manfred np
18:49 ajolo_ joined #salt
18:49 XenophonF it looks like module/useradd.py also lacks support for FreeBSD
18:51 smcquay_ joined #salt
18:55 jdmf joined #salt
18:57 XenophonF at first glance the pw(8) utility looks compatible with whatever Linux/OpenBSD/NetBSD use
18:57 manfred but if you have to put pw in front of it, then you have to make sure to have a seperate set of arguments for it
18:57 XenophonF yes
18:57 dude051 joined #salt
18:57 XenophonF there are a few differences
18:57 manfred yeah, that would be my expectation
18:57 manfred it shouldn't be too difficult
18:58 XenophonF for example, to avoid creating a home directory, one only needs to omit the "-m" option
18:58 dude051 joined #salt
18:58 XenophonF the -M argument sets the home directory's permissions
19:03 XenophonF hate to say it but the only way i see implementing FreeBSD support is by adding big if/elif __grains__['os_family'] blocks all over modules/useradd.py and groupadd.py
19:03 schimmy1 joined #salt
19:04 schimmy2 joined #salt
19:07 oz_akan_ joined #salt
19:07 oz_akan__ joined #salt
19:08 timoguin some of hte user modules are virtual as well, so platform specific ones will load
19:09 oz_akan__ joined #salt
19:10 timoguin mac_user, pw_user, solaris_user, useradd, win_useradd
19:10 timoguin err we're talking about groups here...
19:10 timoguin well the group module does the same thing
19:11 XenophonF ah i see them
19:11 XenophonF so I could create something like "freebsd_user.py" or "freebsd_group.py"
19:12 forrest Does anyone remember if source can take a list for the iptables state module: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.iptables.html
19:12 faust joined #salt
19:12 timoguin yea and the platform detection is handled in the __virtual__ module
19:14 XenophonF timoguin: where's that at? i'm having a hard time finding it
19:14 timoguin err i meant the __virtual__() function. most modules/states will have one.
19:14 XenophonF oh ok
19:14 timoguin they're used to either return the name to load the module as, or return empty to not load
19:15 timoguin so all the various user and group modules will return 'user' as the name
19:15 XenophonF ah so that's what the __virtual__ function in groupadd.py does
19:15 XenophonF and how the mac_group.py module takes over
19:16 timoguin yep
19:16 timoguin also why modules won't load without deps because the checks will fail and that function will return empty
19:16 XenophonF why do these functions use the kernel grain instead of os_family?
19:18 manfred XenophonF: less things to add to the list?
19:18 manfred ¯\(°_o)/¯
19:19 timoguin they vary
19:19 timoguin freebsd_sysctl uses grains['os']
19:20 XenophonF gotcha
19:20 timoguin windows try to import some libraries
19:21 patarr what do you guys use to spin up new VMs and provision them? I'm assuming salt would play a role in the provisioning..
19:22 manfred salt-cloud
19:22 timoguin salt-cloud
19:22 Joseph patarr: are you talking about using salt with a cloud provider or using salt as a cloud controller?
19:22 Joseph salt can do both :)
19:24 patarr Joseph: how can it be used as a cloud controller? Apart from google compute.
19:24 patarr aah ill just google salt-cloud
19:24 patarr thanks guys
19:25 Joseph patarr: http://salt.readthedocs.org/en/latest/topics/tutorials/cloud_controller.html
19:25 XenophonF is it possible to use salt with a private cloud?
19:25 timoguin yes
19:25 Joseph XenophonF: probably...definitely if it has an API which all do
19:25 XenophonF like, with vSphere?
19:25 timoguin salt-cloud has support for libvirt
19:25 XenophonF oh ok
19:25 manfred then go look at the nova driver where you can add neutron virtual interfaces or cinder block storage for openstack
19:25 timoguin there is a vsphere driver, i believe
19:26 manfred XenophonF: i don't know about vsphere, but it now has a vmware driver
19:26 patarr so how does this integrate with something like oVirt/Openstack?
19:26 XenophonF any support for hyper-v?
19:26 Joseph XenophonF: the problem with vmware is licensing not technology. vmware is blocking use of its APIs unless you have vcenter
19:26 XenophonF oh that's pretty lame
19:26 timoguin http://docs.saltstack.com/en/latest/ref/clouds/all/salt.cloud.clouds.vsphere.html
19:26 manfred XenophonF: https://github.com/saltstack/salt/tree/develop/salt/cloud/clouds
19:26 XenophonF thanks!
19:26 Joseph XenophonF: that was actually my question yesterday. UtahDave said they could consider supporting it if there was an API.
19:27 mohae joined #salt
19:27 Joseph XenophonF: problem is....i don't know if there is a generic programming outside of windows dot net etc
19:27 Joseph for hyper-v
19:27 manfred Joseph: vagrant supposts hyper-v now
19:27 timoguin libvirt supports hyper-v too
19:27 XenophonF well it's likely all COM or .NET remoting
19:27 XenophonF but i don't know for sure
19:27 diegows joined #salt
19:28 Joseph XenophonF: well if libvirt supports hyperv then saltstack probably could support it then though i doubt it does now
19:28 patarr What if you don't want to use something as complex as openstack inside an office? Would you guys recommend going with libvirt then? Because systems like oVirt and Archipel seem like interesting and simpler alternatives to openstack
19:29 Joseph patarr: if you want simple i'd look into salt's cloud controller functionality
19:29 timoguin there's also the virt execution module in salt: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.virt.html
19:29 alanpearce joined #salt
19:29 Joseph salt already has the ingredients to do the basic functionality of openstack. Its just missing a scheduler
19:29 jimklo joined #salt
19:30 manfred patarr: there is a salt-formula for openstack https://github.com/saltstack-formulas/openstack-standalone-formula
19:30 Joseph One of my todos is to actually work through what saltstack would need to be a replacement for openstack
19:30 patarr Joseph: from what i understood from the docs, it looks like it's all for public cloud providers..
19:30 manfred patarr: does need to be expanded to mulitple servers
19:30 manfred patarr: libvirt can be local, vmware can be local
19:30 patarr manfred: I don't think openstack is for me. We only have a few virt hosts for test environments, but prod is physical.
19:31 manfred ahh
19:31 manfred patarr: you want the saltify driver
19:31 manfred patarr: all it does is bootstrap a server that you specify
19:31 Joseph patarr: if all you wnat to do is programmatically a launch a couple vms on a couple hypervisors then  i think salt cloud controller would work well
19:31 patarr Openstack seems to add tons of layers with these storage pools and whatnot, etc etc
19:31 Joseph patarr: openstack has become a monstrosity IMHO
19:32 Joseph and i've set it up myself
19:32 manfred patarr: you want just physical machines and to automagically bootstrap them with salt-minion?
19:32 Joseph once you get openstack running its actually pretty nice
19:32 Joseph manfred: he has a few virt hosts he needs to manage
19:33 manfred Joseph: yeah, but he wants to do more physical, either way, libvirt or vmware and manage them, then saltify for all of your other things
19:33 patarr manfred: I agree. I think it may be useful for huge server farms, but overkill for much else.
19:33 timoguin oh so that's what the saltify driver is for...
19:33 manfred yeah
19:33 TheThing joined #salt
19:33 manfred i was working on limiting it all the way down to just using salt.utils.cloud.bootstrap()
19:33 patarr ive never heard of a salt "driver"
19:33 manfred in the create function()
19:34 manfred patarr: a 'salt-cloud' driver
19:34 timoguin salt cloud has "drivers" that are just modules that interact with various provider apis
19:34 manfred patarr: https://github.com/saltstack/salt/tree/develop/salt/cloud/clouds
19:34 manfred patarr: just all the ways to control and create or bootstrap servers
19:34 Joseph manfred: how does saltify differ from salt-ssh?
19:35 manfred Joseph: it is just for bootstrapping
19:35 manfred you could use a state file and bootstrap the minion using salt-ssh
19:35 manfred patarr: http://docs.saltstack.com/en/latest/ref/clouds/all/salt.cloud.clouds.saltify.html
19:35 Joseph manfred: oh where salt-ssh does everyting that salt over 0mq but uses ssh instead
19:35 Joseph got it
19:35 patarr why saltify if you have the salt bootstrap script?
19:36 manfred Joseph: there is a plan, at some point once salt-ssh stablizes better, to use salt-ssh for bootstrapping instead of all the ssh commands
19:36 manfred patarr: that is what the driver does
19:36 Joseph manfred: that'd be cool.
19:36 manfred patarr: it logs in, runs the bootstrap script, then preseeds the minion and master, and starts the service
19:36 patarr aha
19:36 rgarcia_ joined #salt
19:36 manfred that is what salt.utils.cloud.bootstrap() does
19:36 manfred as well
19:37 manfred so i was working on moving saltify driver tojust use that
19:37 manfred then you could just use an event and run it through the salt-run cloud.create runner and the saltify driver to bootstrap any server, and then setup a reactor event to do it automatgically with event.fire_master
19:38 XenophonF oh man i need to learn salt-cloud asap
19:39 manfred it is pretty awesome
19:39 XenophonF esp. if I can get it to work with vsphere (which is what we use at work)
19:40 manfred XenophonF: the vsphere one is only in develop iirc, so you will need to wait for helium to be released
19:40 jdmf joined #salt
19:40 manfred yeah
19:40 manfred https://github.com/saltstack/salt/blob/develop/salt/cloud/clouds/vsphere.py#L6
19:42 Networkn3rd joined #salt
19:48 fonny joined #salt
19:50 TheThing joined #salt
19:50 baniir joined #salt
19:50 Joseph manfred: is official support for hyperv on anyone's radar?
19:50 ajolo_ joined #salt
19:51 manfred no idea
19:51 manfred i don't really think so
19:52 UtahDave someone was asking about it recently. We'd like to get it in, but I don't think anyone has started.  Actually, opening an issue on github asking for the feature would be a great start.
19:52 manfred Joseph: i would need someone to supply me some windows boxes, and to figure out how microsoft did the vagrant one
19:52 manfred https://docs.vagrantup.com/v2/hyperv/index.html
19:53 Joseph UtahDave:  that would be me from yesterday :)
19:53 UtahDave ah, ok.   ;)
19:53 Joseph if saltstack could be a cloud controller for hyperv, vsphere, and kvm...that would be sweet
19:53 peters-tx joined #salt
19:53 Joseph though i don't know how common it is to have that many hypervisors at a site
19:53 Joseph my place might be a bit unique not sure
19:54 manfred https://github.com/mitchellh/vagrant/tree/master/plugins/providers/hyperv
19:54 faulkner joined #salt
19:56 Joseph Personally, i just wish everyone would use KVM and libvirt and call it a day
19:57 Joseph :)
19:57 \ask joined #salt
19:57 alanpearce joined #salt
19:57 mgw joined #salt
19:58 bdf joined #salt
19:58 Joseph UtahDave: https://github.com/saltstack/salt/issues/13449
19:58 UtahDave thanks, Joseph!
19:59 rawzone joined #salt
20:01 Joseph UtahDave: has anyone tried replacing openstack with saltstack's cloud controller functionality?
20:01 Joseph I am curious to see if i could pick anyone's brain on their experience
20:01 rgarcia_ joined #salt
20:01 timoguin I view them more as complimentary.
20:01 UtahDave Joseph: Salt Virt works great if you don't need the full constellation of openstack capabilities
20:01 druonysuse joined #salt
20:01 druonysuse joined #salt
20:02 monokrome joined #salt
20:02 Joseph UtahDave: i do not. I need the core stuff, which is "1. find a compute node 2. copy image to compute node 3. boot vm from image on compute node in KVM
20:02 Joseph and the ability to delete
20:02 Joseph vms
20:02 Joseph pretty sure salt can do all of that
20:03 Joseph timoguin: agreed if you are talking about salt cloud
20:03 d3vz3r0 joined #salt
20:03 timoguin yea
20:05 torrancew joined #salt
20:09 ldlework joined #salt
20:09 smcquay joined #salt
20:10 Joseph UtahDave: super cool once vphere is suported
20:10 UtahDave vsphere is already supported
20:12 Ahlee supported outside of develop branch?
20:13 jnials joined #salt
20:14 Joseph UtahDave: what release is the support in!?
20:14 Joseph Also is it documented? lol
20:15 UtahDave Hm.  Helium  http://docs.saltstack.com/en/latest/ref/clouds/all/salt.cloud.clouds.vsphere.html#module-salt.cloud.clouds.vsphere
20:15 manfred Joseph: next
20:16 Joseph oh interesting, i haven't even heard of pysphere. That's nifty
20:18 pdayton joined #salt
20:20 conan_the_destro joined #salt
20:21 dmz joined #salt
20:21 dmz joined #salt
20:23 Eugene OOoooh hello.
20:23 possibilities joined #salt
20:24 Ahlee it's slow, but neat
20:26 blarghmatey joined #salt
20:31 Joseph Ahlee: what's slow?
20:31 shaggy_surfer joined #salt
20:31 manfred Ahlee: no, it is only in develop
20:32 nickg joined #salt
20:34 CeBe1 left #salt
20:35 Ahlee pysphere
20:37 nickg I'm trying to determine if a sysctl value is already set before I set it, can someone point me in the right direction on how to do that?
20:38 nickg I guess i'm trying to figure out how to use commands within logical statements in state files
20:38 manfred nickg: salt \* sysctl.show
20:39 manfred nickg: {% if salt['sysctl.show']('thing') is defined %}
20:39 Ahlee i have a state mapped {%if grains['mem_total'] >= 3800' %}. but it looks like that's rendering to false
20:40 Ahlee grains.item mem_total returns 3832, so it should render to true
20:41 timoguin does that grain return a string maybe?
20:41 Ahlee probably
20:42 baniir joined #salt
20:43 manfred nickg: if you are just using the sysctl state, it already uses sysctl.show to check if it is already your specified value before changing it https://github.com/saltstack/salt/blob/develop/salt/states/sysctl.py#L55
20:43 TheThing joined #salt
20:45 felskrone joined #salt
20:46 ajolo__ joined #salt
20:46 gothix_ what would cause salt to say a package dosent exist?  one machine finds it and the other dosent but th e package can be found via the package manager
20:47 Joseph gothix_: whats the package manager
20:47 gothix_ yum
20:47 gothix_ i can yum the package manually no problem
20:47 Joseph what's the pkg function you are using that is returning the false negative
20:48 elfixit joined #salt
20:48 gothix_ pkg installed
20:49 Joseph and the package name?
20:49 Joseph can you just post your sls?
20:49 gothix_ sudo
20:49 gothix_ sure
20:50 jimklo joined #salt
20:50 gothix_ Joseph, http://pastebin.com/eGJKdq02
20:51 Joseph and you ensured that the repo files on each node are identical to one another?
20:52 gothix_ no but i have went to each machine and yummed the package successfully
20:52 Joseph yum info?
20:53 Katafalkas joined #salt
20:53 gothix_ pulled out of satellite
20:53 manfred gothix_: does repoquery find it?
20:53 manfred because that is what actually checks if it is in the repos iirc
20:53 gothix_ manfred, let me check
20:55 Ryan_Lane1 joined #salt
20:55 jab416171 why doesn't salt.modules.file.append only add the line if it doesn't exist?
20:56 Joseph jab416171: probably because most people dont' want to append the same line to the file every time a state run occurs
20:56 jab416171 Joseph, I need a salt module that will only add a line if it doesn't exist. Is there such a thing?
20:56 manfred jab416171: if the file doesn't exist or if the line doesn't exist in the file?
20:57 manfred /tmp/something:
20:57 manfred file.managed:
20:57 manfred - content: some line
20:57 timoguin if you can't manage the whole file, there is also file.replace where you can use regex
20:57 manfred and file.append only adds the line if the line isn't already in that file
20:59 jab416171 manfred, if the line doesn't exist in the file
20:59 jab416171 manfred, I'm looking for a module, not a state
20:59 manfred oh
20:59 manfred yeah, not sure that there is a module
20:59 manfred because that is more of a state of the file.
20:59 ckao joined #salt
20:59 manfred if you chained together multiple modules, you could do what file.append does
21:00 manfred https://github.com/saltstack/salt/blob/develop/salt/states/file.py#L2777
21:00 manfred then a cmd.run with echoing >> into the file, since it looks like it just uses salt.utils.fopen to open and add stuff to a file
21:01 gothix_ manfred, yeah thats what is is repoquery is not returing anything
21:01 manfred jab416171: you could use the file.replace module, you can pass the append_if_not_found=True flag to the module
21:02 manfred jab416171: https://github.com/saltstack/salt/blob/develop/salt/modules/file.py#L970
21:02 manfred jab416171: i think that is in 2014.1, but it might not be until helium
21:03 manfred https://github.com/saltstack/salt/blob/develop/salt/modules/file.py#L1312
21:03 manfred ahh
21:04 manfred jab416171: it looks like there is a file.append module https://github.com/saltstack/salt/blob/develop/salt/modules/file.py#L1492
21:04 oz_akan_ joined #salt
21:04 manfred and looks to only append the lines if they aren't already found in the file
21:05 manfred hrm, maybe not
21:05 oz_akan_ joined #salt
21:05 baniir joined #salt
21:07 jimklo Q: is there a way to pass values as a "pillar" salt on the command line other than via environment variables?
21:08 jimklo I'm thinking of username and password credentials for resources that I don't want to embed in the pillar
21:09 UtahDave jimklo: yeah   pillar={'key1', 'val1'}
21:09 oz_akan_ joined #salt
21:10 manfred jimklo: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.state.html#salt.modules.state.highstate
21:10 jimklo UtahDave & manfred thanks!
21:11 jab416171 manfred, ok cool
21:11 UtahDave jimklo: ah, my example was a little off.  manfred's doc link has the correct format
21:12 jdmf joined #salt
21:12 jab416171 manfred, ERROR executing 'file.replace': The following keyword arguments are not valid: append_if_not_found=True
21:12 manfred jab416171: it might only be in develop
21:13 manfred looks to only be in .replace in develop
21:13 manfred https://github.com/saltstack/salt/blob/2014.1/salt/modules/file.py#L924
21:20 tedski I'm using pkgrepo.managed to add multiple apt repositories.  It seems that consolidated is True... some of the time?
21:20 tedski very weird.  some of the repos go into /etc/apt/sources.list and some go into /etc/apt/sources.list.d/foo.list
21:20 rgarcia_ joined #salt
21:21 gothix_ manfred, are you aware of anyway to resolve that repoquery thing
21:21 manfred gothix_: the only thing I can think of would be to try adding refresh: True to your thing
21:21 gothix_ ok
21:21 manfred other than that, i got nothing
21:22 tligda joined #salt
21:22 jab416171 manfred, so is there no module in 2014.1 to do that?
21:23 manfred ¯\(°_o)/¯
21:23 manfred i didn't find one, but I might have missed something
21:23 manfred it will be in helium
21:23 tedski nevermind... derp... if the repo url is found in sources.list, it edits and appends there.  it only creates new files for new repos
21:23 jab416171 is there a release date for helium?
21:24 manfred rc1 is supposed to be sometime next week
21:24 fragamus joined #salt
21:25 cnelsonsic joined #salt
21:25 jab416171 manfred, how would I do something like if not file.contains foo then file.append foo?
21:25 jab416171 with salt modules
21:25 manfred use bash scripting
21:26 jab416171 any chance you could provide an example?
21:26 manfred if ! salt-call file.contains <syntax> <syntax> <syntax>; then salt-call file.append <syntax> <syntax> <syntax>; done
21:26 manfred i mean that might work
21:26 manfred i didnt' check if file.contains returns the way i expected
21:26 manfred might need to evaluate on the output of file.contains
21:27 manfred google gregs bash wiki and comparisons
21:27 manfred i don't have time to write up a better example
21:27 manfred heading out
21:28 oz_akan__ joined #salt
21:28 jab416171 that's from the minion, I was looking for the master
21:38 dude051 joined #salt
21:40 rawzone joined #salt
21:41 Katafalk_ joined #salt
21:45 Katafalkas joined #salt
21:48 dude051 joined #salt
21:49 ajolo joined #salt
21:51 shaggy_surfer joined #salt
21:56 mgw joined #salt
21:57 jonbrefe joined #salt
21:59 mohae joined #salt
22:04 tligda joined #salt
22:08 * robawt highfives UtahDave
22:08 UtahDave hey, robawt!
22:08 UtahDave how goes it?
22:08 forrest robawt, I can't remember, which part of the country do you live in?
22:08 robawt forrest: southern california
22:08 robawt atleast we're on the same timezone now forrest
22:08 robawt UtahDave: good Sir!
22:09 forrest I live in Seattle now robawt
22:09 UtahDave great!
22:09 robawt forrest: oooh nice.  i have some family there so I gotta shout at you if I head up
22:09 robawt there's a baby on the way up north so maybe late in the year
22:12 shaggy_surfer joined #salt
22:12 UtahDave robawt: How's the beach?
22:15 forrest robawt, sounds good! You should drive up to san fran next month for the saltstack doc sprint
22:16 m1crofarmer can you use ordering for included states?
22:16 m1crofarmer i.e.
22:17 m1crofarmer include:
22:17 m1crofarmer - state
22:17 m1crofarmer - order: last
22:20 rawzone joined #salt
22:24 eightyeight joined #salt
22:25 cro joined #salt
22:27 Katafalkas joined #salt
22:29 oz_akan_ joined #salt
22:29 MatthewsFace joined #salt
22:30 robawt UtahDave: i actually don't visit the beach, no internet there
22:30 robawt forrest: next month?  maybe, link to event?
22:30 UtahDave :)  What???
22:31 chrisjones joined #salt
22:32 forrest robawt, the link isn't up yet :(
22:32 forrest it will be July 10th in the afternoon
22:32 forrest I believe whiteinge needs to bug Rhett about it, but he's been doing a training class this week
22:33 robawt forrest: that might be a tricky date for me to do it in person, will there be an online presence?
22:33 robawt UtahDave: the beach has NO INTERNET, I know right?  Madness!
22:33 robawt aww
22:34 jalbretsen joined #salt
22:34 forrest robawt, of course, Ryan_Lane will be hosting a google hangouts I believe
22:34 forrest and I'm going to see about getting the space up here in seattle hooked up so we're also in there
22:36 robawt forrest: if i go to seattle can we just hit the fish market in the AM and snag 50 or so of the crab salad cups they put out?
22:36 robawt and one of the local jerky shops too
22:36 forrest I have yet to see any crab salad cups
22:36 forrest and I usually make my own jerky, but sure
22:37 robawt home made forrest jerky?  sign me up
22:37 forrest I work right down there, and only live a mile and a half away
22:37 ekristen joined #salt
22:37 forrest robawt, I haven't made any in a while, been having a hard time finding good cuts of london broil up here that isn't overpriced
22:38 robawt well y'all like to eat up there, so i don't blame them
22:38 robawt lots of good stuff in Seattle
22:39 forrest yea I've been eating a lot of good food
22:39 forrest we'll get some falafel too
22:44 Joseph Why must you all torture us midwesterners?
22:45 Joseph Vacationed in san fran for the first time...oh the food...i would morbidly obese if i lived in san fran i fear
22:45 robawt Joseph++
22:50 ajolo_ joined #salt
22:52 possibilities joined #salt
22:56 pdayton joined #salt
23:01 dlam hmm how do i match computers named...  app1, app2, app3,  backend1, backend2
23:02 dlam tricky part is including both app & backend  :D
23:02 * dlam goes to google
23:03 Joseph dlam: are these minion ids hostnames etc
23:03 Joseph dlam: salt supports regex and globbing in its targeting
23:04 dlam yeah minion hostnaems
23:04 dlam ohh prolly (app|backend)[1-4] maybe will work then if regex allowed
23:04 pdayton joined #salt
23:04 Joseph yes
23:05 Joseph http://docs.saltstack.com/en/latest/topics/targeting/compound.html
23:07 oz_akan_ joined #salt
23:08 dlam ooo thx thx,  i can do  'salt -C' to use it, yay problem solved
23:09 oz_akan__ joined #salt
23:10 TristanMatthews Does anyone know the salt-cloud code around block_device_mappings when launching instances well. Ether I'm badly miss understanding something, or there seems to be a serious error around how ebs volumes are added. Where salt can't launch an aim that drive ebs volumes in fstab.
23:11 snave joined #salt
23:12 TristanMatthews sorry that last part was a little unclear. If you have a custom ami that has ebs volumes mounted with fstab on launch, salt crashes because it seems to be trying to attach them after the instance is launched.
23:14 Guest64230 joined #salt
23:14 Joseph TristanMatthews: google group was no help?
23:16 TristanMatthews Joseph: Nope, I mean I found my original problem, but there seems to be an underlying salt problem.
23:17 Joseph TristanMatthews: you can always open up a bug and see what they say
23:17 TristanMatthews Joseph: I tried it by taking a snap shot of a clean ubuntu install, and salt brings that up just fine. But if you add an ebs volume in fstab then it can't launch it.
23:17 Joseph TristanMatthews: hmmm i've see nthat before outside of salt though
23:17 Joseph Depending on boot sequence if fstab tries to load somethign that ti cant' it can cause lots of badness
23:18 TristanMatthews Joseph: well both command line tools, and boto bring up the instance just fine.
23:18 Joseph ec2 cli?
23:18 TristanMatthews yep
23:19 TristanMatthews I'll write up exact steps and post a bug report on github.
23:20 Joseph TristanMatthews: btw did you know salt-cloud now supports vsphere in helium?
23:20 Joseph i thought that was really exciting
23:20 anuvrat joined #salt
23:21 DaveQB joined #salt
23:21 TristanMatthews oh, I didn't know that
23:28 redondos joined #salt
23:40 dusel joined #salt
23:41 nickg is there an ETA on the release of Helium?
23:42 forrest lol
23:42 forrest rc1 hopefully next week I believe
23:43 nickg thanks. the cron functionality does not appear to be up to date with what the docs read.  i saw somewhere helium will bring include the functionality thats in the docs
23:44 forrest what functionality are you trying to use? And what release are you currently on?
23:45 nickg i believe i'm on hydrogen.  i'm looking for the ability to use identifier in salt.states.cron.present.  i found a work around for the lack of salt.states.cron.env_present
23:45 forrest ahh
23:45 nickg every time i change the actual job in cron salt adds another line to the crontab file
23:46 forrest ahh yea
23:46 forrest when that happens are you updating the ID directly for the cron to the job that you want to run?
23:47 nickg all i change is the name.  the state id and identifier stay the same
23:47 forrest gotcha
23:48 jimklo joined #salt
23:48 nickg i saw a bug report that mentioned the env_present will be in helium, so i assume identifier is a part of it as well.
23:49 nickg ahh.. "A long time ago (before 2014.2), when making changes to an existing cron job, the name declaration is the parameter used to uniquely identify the job"
23:50 ajolo__ joined #salt
23:57 sunkist joined #salt
23:58 shaggy_surfer joined #salt

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