Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-06-19

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

All times shown according to UTC.

Time Nick Message
00:01 iggy biped: I'd personally use format instead of a bunch of ~'s, but that's a minor critique
00:01 biped thats the type of critique I'm looking for :)
00:03 Singularo_ joined #salt
00:16 scuwolf joined #salt
00:16 murrdoc salt.exceptions.EauthAuthenticationError: Failed to authenticate!  This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error occurred (check disk/inode usage).
00:16 murrdoc hate that
00:16 murrdoc so much
00:17 scuwolf joined #salt
00:18 pcn iggy: Interestng... Ok, thanks for that correction
00:18 scuwolf joined #salt
00:20 pcn Are there any circumstances where an invocation of pillar.items (which uses custom grains) will succeed, but a state file using those same pillar vars will fail to render?
00:22 pcn Hmmm... looks like something deeper - a good number of pillar.items invocations are failing now, but not all of them.
00:25 Smoked_Duck joined #salt
00:26 julez joined #salt
00:28 vraptor left #salt
00:31 alexanderilyin What is the best way for storing pillat item for network.system.hostname?
00:31 scoates joined #salt
00:32 alexanderilyin If ill put it to files like /srv/pillar/$salt_id/hostanme/init.sls there will be a lot of files and mess in /srv/pillar/top.sls
00:33 alexanderilyin Where I have assignt hostane one-to-one to salt ids.
00:33 alexanderilyin is there better ways?
00:35 aw110f joined #salt
00:35 sgargan joined #salt
00:36 forrest joined #salt
00:36 aw110f Hi I set a jinja variable in a init.sls file, like such {% set TEST_SYMLINK = '/opt/test_symlink' %}
00:37 aw110f I’m referencing it here in the same init.sls
00:37 aw110f {% if 0 == salt['cmd.retcode']('test -h '~ TEST_SYMLINK ~' ') %}
00:37 aw110f but I’m getting [CRITICAL] Rendering SLS 'aidandev:test_state' failed: Jinja error: execve() argument 1 must be encoded string without NULL bytes, not str
00:37 aw110f Traceback (most recent call last):
00:37 aw110f it used to work on 2014.1.13
00:39 anotherZero joined #salt
00:41 aw110f Can someone help look into this problem here: https://gist.github.com/wongster80/d246f28a1c713186387c
00:54 edrocks_ joined #salt
00:55 ALLmightySPIFF joined #salt
01:01 pcn aw110f: that worked for me
01:01 pcn I changed the symlink to /tmp/foo, but the exec succeeds
01:03 pcn https://gist.github.com/pcn/aa724e00e58a1727c7e9
01:08 aw110f hmm not working for me on Centos 6.5
01:09 aw110f are you on 2015.5.2 pcn: ?
01:09 pcn Version is in the gist - 2015.5.0
01:09 pcn But badly formatted, let me fix that
01:10 pcn That's ubuntu 14.04
01:13 pcn I don't have any centos test systems or anything to compare it with, sorry.
01:15 nitenq joined #salt
01:15 nitenq hi, Is there a way to save salt master keys to be able to use it with another salt master ?
01:17 murrdoc thoughts on commenting the whole file using file.comment
01:17 bones050_ joined #salt
01:19 aw110f pcn: which jinja version do you have?
01:20 pcn nitenq: /etc/salt/pki/master/master.*
01:20 beauby joined #salt
01:20 nitenq ty
01:21 aw110f my centos6.5 minion runs Jinja2==2.2.1
01:21 pcn aw110f: 2.7.2-2 (ubuntu packaged)
01:22 otter768 joined #salt
01:22 aw110f I just upgraded my minion to Jinja2==2.7.3, no dice
01:24 david_an111 joined #salt
01:35 pcn I'd be really surprised if that was actually a jinja issue.
01:35 pcn There are references to other people having issues like this with python 2.6: https://github.com/vinodc/gitlab-webhook-branch-deployer/issues/1
01:45 c10 joined #salt
01:45 druonysus joined #salt
01:56 ALLmightySPIFF joined #salt
01:56 nudel joined #salt
01:58 ageorgop joined #salt
01:58 edrocks_ joined #salt
01:59 MK_FG joined #salt
02:00 clintberry joined #salt
02:02 TyrfingMjolnir joined #salt
02:06 hvn joined #salt
02:06 hvn joined #salt
02:09 beauby joined #salt
02:13 ALLmightySPIFF joined #salt
02:16 spookah joined #salt
02:19 kivihtin joined #salt
02:23 beauby joined #salt
02:31 tmh1999 joined #salt
02:35 murrdoc joined #salt
02:39 kivihtin joined #salt
02:43 tkharju1 joined #salt
02:50 donmichelangelo joined #salt
02:54 writtenoff joined #salt
02:55 TyrfingMjolnir joined #salt
02:56 NV joined #salt
03:00 tkharju1 joined #salt
03:01 joeto joined #salt
03:02 favadi joined #salt
03:02 aw110f pcn: are you running python 2.6 or 2.7?
03:03 pcn 2.7
03:03 pcn It's been the norm in ubuntu for a longish time
03:09 sirtaj left #salt
03:10 beauby joined #salt
03:10 bougie joined #salt
03:14 aw110f Thanks pcn:
03:14 aw110f I’m going to work on this tomorrow
03:15 murrdoc since 1204
03:15 murrdoc but u can virtual env it up
03:15 murrdoc so u dont fuck up the server just for salt
03:15 pcn murrdoc: I think it was 2.7 even in 11.04?
03:15 murrdoc yum is the main problm
03:16 pcn Yeah, he's on a host that's wrangling yp.  I don't want to suggest anything too disruptive.
03:16 pcn I would want pyenv or something to isolate the environment, but he's going to have to deploy it eventually :-/
03:17 evilrob joined #salt
03:19 pcn fg
03:19 pcn whoops
03:20 murrdoc :D
03:20 murrdoc you can deploy with virtualenv
03:20 murrdoc i might hvae to move mine to venvs on trusty hardware
03:21 murrdoc cos software devs arent doing their job
03:21 murrdoc and are using global pip installs
03:21 murrdoc ¯\_(ツ)_/¯
03:21 murrdoc its actually super easy to venv
03:21 murrdoc drop the venv path in /etc/salt/salt-minion
03:22 darknight87 joined #salt
03:23 otter768 joined #salt
03:28 hrumph what is the need for the salt hypervisor? i understand the need for remote management but how does the hypervisor fit in?
03:28 murrdoc hypervisor ?
03:28 hrumph i thought i read that salt came with one
03:29 hrumph oh ok it doesn't have one of its own my bad
03:30 murrdoc :)
03:32 c10 joined #salt
03:34 timoguin joined #salt
03:36 dean joined #salt
03:40 bluenemo joined #salt
03:46 rocket joined #salt
04:03 julez joined #salt
04:12 favadi joined #salt
04:41 hrumph is it possible to do something like cmd.shell but then split the results from each minion and process them seperately?
04:42 fguerrero joined #salt
04:42 hrumph like put the results in some sort of array?
04:43 phx like over the python api, where you do recieve it as an array per host?
04:43 phx or use some returner?
04:43 hrumph i woudn't know
04:44 hrumph phx, i just mean one array entry per minion
04:44 hrumph so i wouldn't have to manually split the output up
04:44 phx try doing it in a python script
04:45 phx at least, i would do that
04:45 hrumph ok so i do have to parse the output
04:45 phx i don't think you can avoid parsing your command's output
04:45 hrumph well reading the docs it looks it it will have output like:
04:45 cberndt joined #salt
04:45 hrumph minion1:
04:46 phx that's the cli
04:46 hrumph <minion1 output>
04:46 phx not the python api
04:46 hrumph minion2:
04:46 hrumph <mionion2 output>
04:46 phx over the api you get the same, just in a struct of arrays and dicts
04:47 hrumph ok i'll look into it
04:49 dexter91x joined #salt
04:49 ITChap joined #salt
04:49 ITChap Hi
04:49 ITChap I am trying to get my head around the cloudapi setup on SDC7
04:50 ITChap I followed the wiki post-install steps and provisioned the cloudapi zone
04:50 ITChap what is supposed the be the cloud api URL ? the external ip of the cloudapi zone ?
04:51 prathee joined #salt
04:52 katyucha hi all and bye : go to work, it's 7.00 am here
04:56 hrumph what does saltack do with minions that aren't turned on? are they just ignored?
04:57 hrumph tommorrow i'll be trying it out. i'm seting up some vm's at work to use as test minions
04:57 hrumph i'm at home now
05:00 jhauser_ joined #salt
05:00 prathee hello all :) being new to saltstack ...im just trying to get a file deployed to minion from master.. and i get this error  <<<<<<ubuntu: ---------- ID: /etc/trial1/trial1.conf     Function: file.managed       Result: False      Comment: Source file salt://trial1/trial.conf not found>>>>>>
05:01 hrumph i'm hoping that minions that aren't available are ignored
05:01 prathee i have put the source file named trial1.conf in  /salt/states/base/trial1/trial1.conf            i don't know where im going wrong :( please helppppp
05:03 prathee oh i guess i found out! thanks anyways!
05:03 c10 joined #salt
05:03 dexter91x prathee:  trail.conf should be under /srv/salt/trial1/
05:03 dexter91x prathee: salt:// = /srv/salt
05:04 prathee oh ...didnt know that! will try that now...
05:04 phx hrumph, http://docs.saltstack.com/en/latest/ref/clients/ localclient interface
05:04 Furao joined #salt
05:05 dexter91x well, i didn't see your other message, salt:// means your base , if you have a different base than the default make sure that you have set the new base correctly at master configuration file
05:06 dexter91x the default base is /srv/salt unless you are using another directory
05:07 WildPikachu left #salt
05:07 prathee i was actually trying stuffs from http://bencane.com/2013/09/03/getting-started-with-saltstack-by-example-automatically-installing-nginx/   ...............guess i will try with the default base now that u are saying....
05:08 prathee instead of nginx...i was just trying my own conf file...
05:09 dexter91x have you changed the file_roots as he said in this article ?
05:12 prathee yeah...changed that.....
05:12 prathee im changing it back to the default base now...thought will give that a try
05:15 dexter91x don't forget to restart the master after any modification to the config file
05:15 prathee yeah..okie :)
05:15 scoates joined #salt
05:15 markm joined #salt
05:22 dexter91x guys , i have a question i would like to make a UI for SaltStack using Ruby on Rails , how will i make Salt Client API works through Ruby on Rails ?
05:23 mosen dexter91x: maybe check the netapi docs. I think it might be a reasonable place to start
05:24 otter768 joined #salt
05:24 mosen dexter91x: I think the main transport is a zeroMQ messaging queue so maybe that might open up some possibilities
05:27 prathee hey dexter91x..... now..i get this error..... ID: /etc/trial1/trial1.conf     Function: file.managed       Result: False      Comment: Parent directory not present... still cant figure out where im going wrong.... :(
05:28 epcim joined #salt
05:29 stanchan joined #salt
05:29 binocvla1 prathee: Does /etc/trial1/ exist?
05:30 __number5__ dexter91x salt api is http api, you should be able to use any language to talk http, including ruby
05:32 clintberry joined #salt
05:34 prathee binocvlal : oops..no..it doesnt...what do i write in my init.sls when i want to deploy the conf file from the master to the minion for the first time? i though ID just meant the name of the file in the minion after being deployed...
05:34 prathee thought*
05:35 rdas joined #salt
05:35 ajw0100 joined #salt
05:36 prathee im very very new to saltstack and this is the first state im writing... all that i want is my conf file to automatically get into the minion... O_o
05:38 XenophonF prathee: if you want to send a file to a minion, use the file.managed state
05:39 XenophonF definitely follow the saltstack tutorial, if you're brand new to salt
05:39 prathee okie thank you all! i got my error rectified! :)
05:40 XenophonF great!
05:46 evle1 joined #salt
05:49 kusams joined #salt
05:50 shantanoo joined #salt
05:53 shantanoo hi
05:57 ndrei joined #salt
05:58 shantanoo am trying to write formula for installing docker on centos. http://pastebin.com/gHcfK0Ai
06:00 shantanoo after installing package, i am starting the service. have added require in the state for starting service. in that, should i use 'file' or 'pkg'?
06:00 joeto joined #salt
06:01 rdas joined #salt
06:02 AndreasLutro joined #salt
06:04 colttt joined #salt
06:12 flyboy joined #salt
06:12 XenophonF shantanoo: couple of things
06:13 XenophonF shantanoo: first - there is no file state listed under install_docker, so the "file: install_docker" requisite is incorrect
06:13 shantanoo ok
06:13 XenophonF shantanoo: you'll need to use "pkg: install_docker"
06:13 XenophonF shantanoo: the other problem is that the "require" is an argument to service.running
06:14 XenophonF shantanoo: so that needs to be a list item, indented the same as name, enable, etc. under service.running
06:14 shantanoo aah. thanks a lot.
06:14 XenophonF shantanoo: third, you probably want to restart the service if the package changes
06:15 XenophonF shantanoo: since you're using pkg.latest
06:15 XenophonF shantanoo: so instead of using "require", you want to use "watch"
06:15 XenophonF shantanoo: watch will trigger the service to restart of the requisite signals any changes
06:15 favadi joined #salt
06:16 XenophonF shantanoo: http://docs.saltstack.com/en/latest/ref/states/requisites.html
06:16 shantanoo checking
06:16 shantanoo thanks
06:30 trikke joined #salt
06:31 david_an11 joined #salt
06:32 prathee joined #salt
06:36 prathee hi again :) im trying to set highstate every 30 seconds... using http://docs.saltstack.com/en/latest/topics/jobs/schedule.html#highstates    i dont think the scheduler is working right...how do i trace out whats wrong?
06:38 AndreasLutro highstate every 30 seconds sounds really bad, my highstate takes about that long to run
06:38 stoogenmeyer_ joined #salt
06:39 prathee oh...okie..will try setting a longer duration
06:39 prathee thanks
06:39 ndrei joined #salt
06:39 AndreasLutro could be entirely unrelated to the problems you're having of course
06:41 ramteid joined #salt
06:46 jhauser joined #salt
06:48 prathee im working with managing a very small file only... tried increasing the time to a few minutes...nothing seems to be happening...am i missing out on something else? any ideas?
06:48 c10 joined #salt
06:50 prathee i was also wondering why /var/log/salt/minion  wasn't showing anything related to the scheduling.....
06:55 loki_ joined #salt
06:55 kwork joined #salt
06:55 kwork joined #salt
06:55 thalleralexander joined #salt
06:55 loki_ hi do anyone know how to " continioud tail a log file" using saltstack?/
07:00 KermitTheFragger joined #salt
07:00 eseyman joined #salt
07:01 fredvd joined #salt
07:01 toanju joined #salt
07:01 mens joined #salt
07:02 bitmand joined #salt
07:03 ITChap joined #salt
07:04 AndreasLutro loki_: salt's not really a tool for tailing log files
07:05 bitmand as far as I understand, if I want to match on (pillar/top.sls) and user existing pillar data within my pillars, I need to use an external pillar to set these values. Ideally I just want to set some configuration, based on minion id, but I'm having trouble finding the right solution.
07:05 bitmand pillar.cmd_yaml is straightforward, but can't match on minin id.
07:05 bitmand minion*
07:05 ALLmightySPIFF joined #salt
07:06 bitmand And most of the other external pillars involved setting up and using services that I really don't need.
07:07 sieve joined #salt
07:07 bitmand I would love to simpel be able to do a: cmd_yaml: cat /path/$minion_id.yaml
07:07 bitmand ..am I going down the wrong path here ?
07:08 supersheep joined #salt
07:10 c10 joined #salt
07:11 AndreasLutro bitmand: https://github.com/saltstack/salt/issues/23910 is probably relevant to what you want
07:12 bitmand bingo - excactly this: "This request basically boils down to matching by pillar in a pillar top.sls"
07:14 Romlok joined #salt
07:15 bitmand AndreasLutro: So it seems I'm not the only one at least :)
07:16 kawa2014 joined #salt
07:17 Antiarc joined #salt
07:18 joshin joined #salt
07:18 AndreasLutro bitmand: what are you actually looking to acheve? override pillar values on a per-minion basis?
07:19 prathee AndreasLutro: i found some help for my issue here: http://capnjosh.com/blog/scheduling-a-state-highstate-on-all-minions-with-saltstack-schedulers/comment-page-1/#comment-1424  ... thanks anyways! :-)
07:20 bitmand I'm trying to implement 'roles' and 2-3 other values - all based on the minion id. At this point, I simply set those values in grains, match on them in both pillar/top and states/top, but I don't like the idea that a minion can fake these values and potientially get access to all my pillar data across hosts, environments, datacenters etc.
07:21 AndreasLutro true... personally I just put all roles explicitly in the top.sls and try not to think too hard about duplication
07:21 ALLmightySPIFF joined #salt
07:22 bitmand AndreasLutro: that is an option, but for instance, have af a grain called 'datacenter' which a pillar uses to set datacenter specific values correctly.
07:23 AndreasLutro I'd just make the name/id of the datacenter part of the minion id and match that with globs
07:23 bitmand AndreasLutro: ...
07:23 bitmand but
07:24 bitmand ..it's actually already is
07:24 bitmand doh! Why on earth did'nt I think of that :)
07:24 AndreasLutro :D
07:24 otter768 joined #salt
07:25 bitmand haha.. I can't believe I missed that! I ententionally called all minion $role$id.$datacenter ! :)
07:25 bitmand AndreasLutro: thanks a lot :)
07:25 AndreasLutro rubber duck effect strikes again - no problem
07:25 bitmand ( would still love the option to create pillar data and match on it in pillars - but this definitly works for now :) )
07:29 vexati0n joined #salt
07:37 hvn joined #salt
07:38 FRANK_I joined #salt
07:38 Torgon joined #salt
07:39 al joined #salt
07:39 Torgon good morning, i'm just trying to deploy some items to a windows server minion but i get the following error when calling "salt-call -l debug state.highstate" on the minion: AttributeError: 'ConstructorError' object has no attribute 'decode'
07:40 Torgon these are the last two lines of the stack trace:   File "C:\salt\bin\lib\site-packages\salt\output\highstate.py", line 221, in _format_host     ret['comment'] = ret['comment'].decode('utf-8')
07:41 julez joined #salt
07:41 AndreasLutro Torgon: what version?
07:42 Torgon hi Andreas, i just installed that minion last night from Salt-Minion-2015.5.0-2-x86-Setup
07:42 AndreasLutro should probably file an issue on github then
07:43 Torgon i'm assuming some stupidity at my part ;-)
07:43 AndreasLutro nah, on the surface it looks like a genuine bug
07:44 AndreasLutro make sure to include the full stack trace in the issue
07:44 AndreasLutro also if you can narrow down which state makes it happen that'd help
07:44 linjan joined #salt
07:44 Torgon my sls is still quite compact, i'm only starting the whole thing, so putting everything in a ticket should be quite easy
07:45 multia joined #salt
07:49 lb1a joined #salt
07:49 dvestal joined #salt
07:51 loki_ Hi all
07:51 loki_ I am using Halite for excecuting commands
07:51 favadi joined #salt
07:51 loki_ cmd.run is not working through halite
07:51 loki_ but it is working through command line in terminal
07:52 loki_ i am using saltstack version (Version: 0.1.17)
07:52 loki_ sorry
07:52 loki_ Halite Version: 0.1.17
07:52 loki_ can anyone please guide me
08:01 Torgon ok, andreas, i filed a bug with the complete stack trace - lets see what comes up. thanks for your input!
08:04 FRANK_I joined #salt
08:12 Xevian joined #salt
08:15 joeto joined #salt
08:16 ecerulm joined #salt
08:16 ALLmightySPIFF joined #salt
08:22 impi joined #salt
08:22 MatthewsFace joined #salt
08:23 zer0def joined #salt
08:24 nodens finally found out why I had duplicate responses from my submaster / syndic/ minion
08:25 nodens salt-syndic was running thrice
08:25 nodens hence the 3 responses...
08:25 AndreasLutro that makes sense :D
08:25 * nodens bang his head agains the desk
08:26 mnml_ joined #salt
08:27 nodens I guess the upstart in debian with openvz doesn't help
08:27 chiui joined #salt
08:28 c10 joined #salt
08:29 ecerulm joined #salt
08:33 bluenemo joined #salt
08:33 bluenemo joined #salt
08:41 c10 joined #salt
08:45 ALLmightySPIFF joined #salt
08:52 lothiraldan joined #salt
08:54 losh joined #salt
09:03 saltuser joined #salt
09:03 saltuser Hi Guys,
09:04 saltuser Question is it possible to use ldap to deploy machine configuration(s) with salt?
09:06 sieve joined #salt
09:08 MatthewsFace joined #salt
09:09 phx saltuser, to some extent, yes
09:10 lala joined #salt
09:10 Kraln joined #salt
09:16 saltuser ow thans for youre answer
09:16 saltuser is there somewhere an howto?
09:16 saltuser or information
09:17 aqua^c joined #salt
09:22 fbretel joined #salt
09:23 fbretel hi all, how do I conditionally include an sls file: i.e. if not already included ?
09:25 otter768 joined #salt
09:26 supersheep joined #salt
09:27 AndreasLutro fbretel: you don't need to, includes will automatically only include once
09:28 fbretel AndreasLutro: thx! I still get conflicting ID's though...
09:30 fbretel AndreasLutro: I used the include: statement, but did you mean to use the {% include %} jinja statement ?
09:31 ingslovak joined #salt
09:34 AndreasLutro fbretel: no, `include: - foo` is the correct one to use
09:34 trikke joined #salt
09:34 impi joined #salt
09:34 AndreasLutro your conflicting ID comes from elsewhere, not the included file being included more than once
09:35 ndrei joined #salt
09:37 fbretel AndreasLutro: no they were coming from the file being included in states/top.sls *and* in the sls file also including it. But
09:37 bitmand left #salt
09:37 AndreasLutro fbretel: nah that doesn't get it included twice, I have states like that and it works fine
09:39 fbretel ...but it works if I add an additional include: layer => top.sls includes a common.sls that include: the specific definition
09:42 fbretel AndreasLutro: maybe I wasn't clear. top.sls declares |- foo| and |- bar|, then bar.sls include: foo. This does result in conflicting ID's on my end.
09:43 fbretel AndreasLutro: do you have a similar setup ?
09:43 keimlink joined #salt
09:43 AndreasLutro I do the exact same thing and it's not causing conflicting IDs
09:46 fbretel AndreasLutro: on a recent version (I have 2015.5.0) ?
09:46 AndreasLutro yeah, I run the latest 2015.5 from git
09:50 DrParoXysm joined #salt
09:50 giorizand joined #salt
09:51 giorizand hi guys
09:51 giorizand i am running hte below command on the salt master
09:51 giorizand salt 'myMinion'  gpg.list_keys
09:52 giorizand 'gpg' __virtual__ returned False
09:52 ecerulm joined #salt
09:52 giorizand i am running the latest version (Lithium)
09:52 AndreasLutro giorizand: lithium is not the latest version. anyway, you need to manually install the gnupg python package
09:52 giorizand anyone knows why is this failing?
09:53 giorizand @AndreasLutro ....ohhh isnt it? i have the saltstack repo in my machine and it shows lithium as the latest one
09:54 giorizand @AndreasLutro anyway, is this has to be installed on the master or on the minion?
09:54 AndreasLutro oh nevermind
09:54 AndreasLutro I'm wrong!
09:54 AndreasLutro err, minion I think
09:55 giorizand @AndreasLutro thanks alot mate, will try either way and let you know
09:57 giorizand @AndreasLutro yap...that did the trick. Thanks again
09:58 AndreasLutro giorizand: no problem - for reference, package requirements are usually mentioned in the docs, like here http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.gpg.html
10:04 fbretel AndreasLutro: thank you! I had |include: sub/dir/bar| instead of |include: sub.dir.bar| grrr...
10:05 AndreasLutro ah yeah
10:06 AndreasLutro I actually had that problem myself :p
10:06 sgargan joined #salt
10:08 dvestal joined #salt
10:08 CeBe joined #salt
10:17 trikke joined #salt
10:17 c10 joined #salt
10:19 badon joined #salt
10:20 zerthimon joined #salt
10:21 pipeep joined #salt
10:24 mortis quickly made a custom module for notifying our irc-bot from salt directly, this could be nice for a few things i guess: root@salt:~# salt-call netcat.send myserver 1111 "lol wut"
10:24 mortis for instance to notify irc whenever a new vm is up
10:24 mortis or whatever
10:26 thalleralexander joined #salt
10:27 ange uh, gives me some ideas for the salt calls I am doing through cmd.run curls ...
10:41 giantlock joined #salt
10:41 catpig joined #salt
10:46 DrParoXysm joined #salt
10:46 prathee joined #salt
10:52 prathee can someone tell me where i can find the proper documentation for installing and configuring halite? http://docs.saltstack.com/en/latest/topics/tutorials/halite.html doesnt seem to be working for me
10:53 prathee i tried https://github.com/saltstack/halite/issues/188
10:54 prathee this is what i get---> salt-call tls.create_self_signed_cert tls -----> 'tls' __virtual__ returned False: ['PyOpenSSL must be installed before this module can be used.'] but when i install pyopenssl...it tells me requirement already satisfied
10:57 prathee i understand halite is hardly being used... but my boss wants the salt gui set up... help meeeee :(
10:57 ALLmightySPIFF joined #salt
10:59 Xopher joined #salt
11:01 AndreasLutro prathee: how did you install pyopenssl?
11:01 AndreasLutro prathee: also what version are you on?
11:02 prathee i tried ....pip install pyOpenSSL... and then this too..... apt-get install python-openssl
11:03 prathee u mean the salt version?
11:03 AndreasLutro yeah
11:03 prathee salt 2015.5.0 (Lithium)
11:05 AndreasLutro prathee: apt-get is probably best. did you install it on the minion?
11:06 prathee no...i did on the master! it should be the minion huh? do all the steps for the halite installation go on the minion? no right?
11:07 prathee i followed all the steps in the doc...in the master
11:07 * AndreasLutro checks installation instructions
11:07 prathee i thought it said master..will check it out right away
11:08 AndreasLutro ah it's salt-call which is local. yeah it's all for nthe master
11:08 prathee The following command needs to be run on your salt master--> salt-call tls.create_self_signed_cert tls
11:09 prathee yeah..the master it is!
11:09 AndreasLutro prathee: what does this command show: `python -c 'import OpenSSL'`
11:09 kulty joined #salt
11:10 AndreasLutro it should show nothing
11:10 prathee Traceback (most recent call last):   File "<string>", line 1, in <module>   File "/usr/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>     from OpenSSL import rand, crypto, SSL   File "/usr/local/lib/python2.7/dist-packages/OpenSSL/rand.py", line 11, in <module>     from OpenSSL._util import (   File "/usr/local/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in <module>     from cryptography.hazmat.
11:10 prathee it shows so much here :(
11:10 ksj grrrrrrrrrrrrahhhhhhhhhhhhhhhhh JINJAAAAAAAAAAAAAAAAAAAAAA!!!!!!!! why???
11:10 AndreasLutro prathee: put it on a pastebin or something
11:10 prathee oops sorry
11:10 prathee okie
11:11 prathee http://paste.ubuntu.com/11739699/
11:13 AndreasLutro prathee: maybe try installing the package `python-cryptography` with apt. if you google "No module named cryptography.hazmat.bindings.openssl.binding" you may find more solutions
11:13 c10 joined #salt
11:14 mattiasr joined #salt
11:14 prathee okie..will look for it...thank you :-)
11:18 julez joined #salt
11:24 giantlock joined #salt
11:26 supersheep joined #salt
11:26 otter768 joined #salt
11:29 prathee that error has been resolved! :) thanks a lot! though i still don't know how to get started with halite :( the documentation says my instance will be available either at ...3 urls have been given..none seems to be working fine for me...any ideas??
11:31 AndreasLutro prathee: what are your halite "host" and "port" settings set to
11:32 prathee same as given in the doc? 0.0.0.0 and 8080
11:32 AndreasLutro then https://<ip_of_master>:8080
11:32 sieve joined #salt
11:32 kusams joined #salt
11:33 prathee just a small question here..is there something better than xdg-open to open sites from the terminals...using virtual machines...so...
11:33 AndreasLutro not really
11:38 prathee some improvement using that url! :) but then it eventually tells me 'accept unsecure ssl session:bad cert ident localhost from <ip address of master>' and i dont find much in the terminal after that.... :(
11:39 AndreasLutro well, you need to know how SSL certs work if you want to use one :)
11:41 prathee oh okie..... a newbie to this entire field...got lots to learn! will find that out! thank you so much!
11:41 sieve1 joined #salt
11:43 ndrei joined #salt
11:44 sieve2 joined #salt
11:46 prathee btw...you say 'if you "want" to use one'... is there any way to get halite started without using one? <just being curious>
11:47 favadi joined #salt
11:47 trikke joined #salt
11:49 AndreasLutro prathee: the docs mention `tls: True`
11:49 AndreasLutro I imagine you can just switch this off if you want
11:49 ALLmightySPIFF joined #salt
11:52 prathee i just set that to False and restarted the master...still the same :(
11:52 AndreasLutro well if you do set it to false you should change your url from https to http
11:58 trikke joined #salt
11:58 prathee now i get a bad request error ........
12:01 AndreasLutro check your master log
12:03 prathee unable to bind socket! address already in use! it says...
12:04 nitenq joined #salt
12:08 prathee guess i will just google it from there! its time for the weekend here! will get back later if needed! thank you so much for all the help AndreasLutro! :-)
12:09 XenophonF man i wish my weekend started at 8 in the morning ;)
12:10 XenophonF j/k
12:11 evle1 joined #salt
12:13 Slimmons joined #salt
12:20 DammitJim joined #salt
12:26 guardianx joined #salt
12:27 CeBe1 joined #salt
12:27 darknight87 joined #salt
12:28 darknight87 Hi guys, how are you today?
12:28 darknight87 I want to run a script from within salt and based on the output of this shell script, I want to setup conditionals to run another script on remote minion A or B. Is there a way to do this via salt?
12:32 catpig joined #salt
12:33 babilen That's the wrong way to think about things as you are thinking imperatively rather than declaratively. You should try to describe in your states the, well, state you want to achieve. Not "script" how you achieve that.
12:33 guardianx joined #salt
12:34 babilen darknight87: But you can use unless and onlyif for that I guess
12:38 darknight87 babilen, good point. I want to create a linux user and assign a password to this user. I know that a user.present state exists. But then how do I set a password via Salt? Also, I want to store the username and corresponding password in a file for future reference. Lastly, The usernames need to be picked from a file on the Salt master server and then created on the minion. If 20 users were...
12:38 darknight87 ...already created on minionA, no more users should be created on this minion, salt should start creating the rest on minionB
12:40 babilen darknight87: The "generate a password and save it" bit is tricky. Everything else is handled by salt already as you can just pass the "password" argument to the user.present state: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.user.html#salt.states.user.present
12:40 babilen darknight87: I typically use https://github.com/saltstack-formulas/users-formula for user creation/deletion and you could feed that from a database (via an external pillar) if you wanted to.
12:42 babilen darknight87: That sounds like a really weird setup. Why can't you simply decide which users should be created on which minion. What do you want to happen if one of the original 20 users is deleted on minion A ? Do you want to "reshuffle" all users?
12:42 MatthewsFace joined #salt
12:43 babilen http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.shadow.html#salt.modules.shadow.gen_password comes in handy for the generation and then you "only" have to save it somewhere.
12:44 darknight87 babilen, ye it's odd but that's the requirement. Users will be added during the course of time. We will get an additional list of users every now and then. If a user is deleted from minionA, nothing happens. If possible the conditions should be such that it sees 19 users on minionA and creates a new user there.
12:44 babilen Maybe something like http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.sqlite3.html#salt.modules.sqlite3.modify ?
12:45 babilen Well, you probably want to write your own execution module to encapsulate your business logic. What a weird requirement.
12:45 darknight87 :D
12:45 darknight87 gosh, and I'm a noob
12:46 darknight87 salt noob
12:46 darknight87 that's why I thought of scripting it and then deploying the script via conditionals in salt
12:46 babilen And please keep in mind: You don't really tell salt how to react to things, but describe (in toto!) what you want to achieve. The entire "if foo then bar" logic is in the states and modules.
12:47 jbub joined #salt
12:48 darknight87 babilen, how do I create a random password each time a user needs to be created via salt? the gen_password seems to require a password as an input
12:50 dkrae joined #salt
12:51 guardianx joined #salt
12:53 babilen darknight87: Something like https://www.refheap.com/102721 would do nicely I guess
12:56 darknight87 I already have a shell script which generates random strings. How can I pass the output to salt?
13:00 mapu joined #salt
13:04 AndreasLutro darknight87: {{ salt.cmd.run('/path/to/script') }} ?
13:05 AndreasLutro darknight87: even better http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mod_random.html
13:05 AndreasLutro {{ salt.mod_random.get_str(8) }}
13:07 amcorreia joined #salt
13:08 pbrooko joined #salt
13:08 soren joined #salt
13:09 darknight87 AndreasLutro, I tried running this in the shell and got an error
13:09 pcn Does anyone have examples of single-page apps that work with salt-api?
13:09 jeddi joined #salt
13:09 AndreasLutro darknight87: what exactly did you try running?
13:09 darknight87 salt.mod_random.get_str(8)
13:09 viq_ joined #salt
13:09 darknight87 I assume this should be in a state file?
13:10 AndreasLutro or a template, anything with jinja, if you wrap it in {{ }}
13:10 AndreasLutro what's the error?
13:10 darknight87 '-bash: syntax error near unexpected token `8''
13:11 williamthekid joined #salt
13:12 AndreasLutro that... is quite weird
13:12 AndreasLutro will need context to get that error I think
13:12 pcn I'm going to guess that bash tried to rin "8" in a subshell
13:12 pcn darknight87: it looks like you didn't interpolate that command in a jinja context, but ran a shell command.
13:13 pcn s/rin/run above
13:13 darknight87 pcn: -bash: syntax error near unexpected token `('
13:14 kusams joined #salt
13:14 AndreasLutro darknight87: show us the state sls file
13:14 pcn darknight87: are you pasting that into your shell?
13:14 darknight87 yep :D
13:14 drawsmcgraw joined #salt
13:14 darknight87 :D
13:14 pcn OK, don't do that.
13:14 darknight87 okay
13:14 pcn Have you run through the states tutorial?
13:15 darknight87 I'm confused as to where this command should go? In the env top.sls file?
13:15 pcn darknight87: have you run through the states tutorial?
13:16 pcn If you start here: https://docs.saltstack.com/en/latest/topics/tutorials/states_pt1.html
13:16 darknight87 umm, not really. I don't know what are modules or states
13:16 pcn and read through to part 3, that should answer your question
13:16 pcn You need to read that
13:22 jdesilet joined #salt
13:24 darknight87 I read part 3. So, the command should go in the sls file. However, how can I read linux files in salt?
13:24 erjohnso joined #salt
13:25 bhosmer joined #salt
13:25 giantlock joined #salt
13:26 ingslovak joined #salt
13:26 timoguin joined #salt
13:27 otter768 joined #salt
13:29 darknight87 cmd.run should work. but how to put it in an sls file. Are there any examples?
13:30 ws2k3 joined #salt
13:34 drawsmcgraw pcn: Haven't seen any SPA's in the wild but did come across what I thought were pretty good docs for the rest_tornado netapi: http://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_tornado.html
13:34 drawsmcgraw Though I imagine you've likely seen that already...
13:35 drawsmcgraw darknight87: Your best bet is to make an isolated dev environment (one or two VMs) and to start writing/testing states.
13:36 drawsmcgraw Also be aware that, generally speaking, you run modules on the command line, and you use states when writing state files
13:36 drawsmcgraw There's a lot of shared code between modules and states, but that distinction is worth knowing.
13:36 zircote joined #salt
13:37 s_kunk joined #salt
13:39 lothiraldan joined #salt
13:39 emaninpa joined #salt
13:40 fbretel hi all, why is |repoquery --whatprovides somepkg| necessary ? repeated calls to repoquery really slow down highstates...
13:41 fbretel I tried state_aggregate: - pkg, without luck.
13:41 murrdoc joined #salt
13:42 andreluiz how can i find a roadmap for the orchestration module which is coming soon?
13:42 subsignal joined #salt
13:42 sgargan joined #salt
13:45 ndrei joined #salt
13:45 racooper joined #salt
13:46 sgargan joined #salt
13:46 fbretel ok just found out   - skip_suggestions: True
13:48 pcn drawsmcgraw: thanks, I was reading the cherrypy api and noticed the opportunity.  I wanted to special-purpose something for a demo, and thought it'd be easier to start with a working base.
13:48 teryx510 joined #salt
13:48 kaptk2 joined #salt
13:49 drawsmcgraw pcn: Agreed. If you ever have writeups/blog posts/talks that review what/how you did, I'd be eager to hear about it. I think there's a lot of potential there.
13:51 kusams_ joined #salt
13:51 _JZ_ joined #salt
13:52 mpanetta joined #salt
13:52 impi joined #salt
13:55 froztbyte hmm
13:56 froztbyte anyone know if there's a jabber-ish interface to salt-key?
13:56 froztbyte (asking before I write my own)
13:56 drawsmcgraw froztbyte: Not that I'm aware of
13:58 froztbyte mmmm
14:03 andrew_v joined #salt
14:04 stoogenmeyer_ joined #salt
14:06 perfectsine joined #salt
14:08 newnews joined #salt
14:09 murrdoc basepi:  whenevr u have 5 minutes, i want to run some questions about perfing salt on a vm by you , or utahdave
14:09 murrdoc or anyone else
14:10 froztbyte also, what's the difference between http://docs.saltstack.com/en/latest/topics/virt/index.html and salt-cloud?
14:11 froztbyte former looks a bit more involved, I guess
14:11 bhosmer joined #salt
14:12 AndreasLutro I would imagine that this is the predecessor to salt-cloud
14:12 AndreasLutro but that's just a guess
14:13 pbrooko joined #salt
14:13 froztbyte yeah, that's possible
14:14 murrdoc virt is for all things virt
14:14 murrdoc its v.1
14:15 murrdoc salt-cloud is the sharpened katana
14:15 murrdoc virt is the swiss knife
14:15 murrdoc :D
14:16 bmac2 if you give this group a sharpened katana, then someone will end up commiting hari-cari
14:16 bmac2 so don't do that
14:16 bmac2 I dont' trust them with sharp objects
14:16 murrdoc salt-cloud is aight
14:17 spark_ joined #salt
14:19 sieve joined #salt
14:19 sgargan joined #salt
14:19 sieve joined #salt
14:20 froztbyte https://hveem.no/salt-xmpp-gateway looks like a good option to build from
14:20 froztbyte thanks random norwegian
14:21 drawsmcgraw joined #salt
14:27 evilrob joined #salt
14:31 jalbretsen joined #salt
14:34 giantlock joined #salt
14:34 tmclaugh[work] joined #salt
14:34 KennethWilke joined #salt
14:43 sgargan joined #salt
14:45 TyrfingMjolnir joined #salt
14:46 ekristen joined #salt
14:49 hasues joined #salt
14:49 repl1cant joined #salt
14:49 debian112 joined #salt
14:55 dyasny joined #salt
14:57 kusams joined #salt
14:58 anotherZero joined #salt
14:59 hasues left #salt
15:06 TyrfingMjolnir joined #salt
15:09 tmclaugh[work] joined #salt
15:12 coval3nce joined #salt
15:13 msheiny joined #salt
15:14 dubey joined #salt
15:14 dubey Hi
15:15 dubey I am evaluating salt on my linux systems and wanted to add new user through salt
15:15 mou joined #salt
15:16 dubey I run "salt 'app.example.in' user.add test /home/test /bin/bash" which is returning the value as 'False'
15:16 dubey what am i missing here ?
15:18 iggy it's useradd.add
15:18 iggy and it takes name <uid> <gid> <groups> <home> <shell>
15:18 iggy actually, it's aliasedd, so user.add is correct, but the args have to be correct
15:18 iggy or you need to use kwargs
15:20 dubey for uid gid i want to system decide the number
15:20 dubey so i left it
15:20 dubey is it mandatory ?
15:20 supersheep joined #salt
15:23 iggy if you don't use kwargs, yes
15:23 iggy try user.add test home=/home/test shell=/bin/bash
15:24 iggy but really, this is kind of what the state system is for
15:24 iggy I don't think I've ever seen anyone add a user like that
15:24 pelzi__ on windows you at least have to set the password
15:24 pelzi__ states don't seem to work for that
15:25 pelzi__ but on unix, yeah
15:25 iggy OP specifically mentioned Linux (and I didn't know that about Windows)
15:26 pelzi__ it may have been fixed, but at least it used to be broken
15:27 dubey I also tried to add user through stats but it is not working for me. Of course i am missing something, it's my first day on salt
15:27 pelzi__ did you run highstate? did you get any output?
15:28 dubey i created a user.sls file in /srv/stats/prod/user.sls but now not sure how to run the state now
15:28 otter768 joined #salt
15:28 sieve joined #salt
15:30 dubey t
15:32 smcquay joined #salt
15:32 pelzi__ I am not sure how your master is configured, and unfortunately no time to help but perhaps this is helpful as a trivial example of a state: https://www.digitalocean.com/community/tutorials/how-to-create-your-first-salt-formula
15:32 dubey http://pastebin.com/HrLi0vt0
15:33 pelzi__ so, you would need to get `salt minion-name state.sls user` working
15:33 smcquay joined #salt
15:34 dubey let me try
15:34 pelzi__ are you sure "/srv/stats/prod/user.sls" is the correct path? what is your file_roots set to in the master config?
15:35 dubey file_roots:
15:35 dubey base:
15:35 dubey - /srv/salt
15:35 dubey prod:
15:35 dubey - /srv/salt/prod/services
15:35 dubey - /srv/salt/prod/states
15:35 dubey got this error
15:36 dubey app1.icrypto.in:
15:36 dubey Data failed to compile:
15:36 dubey ----------
15:36 dubey No matching sls found for 'user' in env 'base'
15:37 iggy /srv/salt vs /srv/stats
15:37 scoates joined #salt
15:38 iggy and you probably want /srv/salt/prod/states/user.sls
15:38 iggy then you state.sls user
15:38 pelzi__ "No matching sls found for 'user' in env 'base'" sounds like the wrong env, too
15:39 ndrei joined #salt
15:40 dubey ok, let me try
15:41 spark_ joined #salt
15:41 guardianx joined #salt
15:51 scott joined #salt
15:56 favadi joined #salt
15:57 coval3nce joined #salt
16:00 __th0m joined #salt
16:03 Furao joined #salt
16:04 tomh- joined #salt
16:05 bhosmer joined #salt
16:11 dubey I updated the master file and now only have file_root; base; /srv/salt
16:11 ageorgop joined #salt
16:12 dubey in salt i copied user.sls file and run "salt 'host.domain' state.sls user"
16:12 dubey got this error : No matching sls found for 'user' in env 'base'
16:13 darknight87 joined #salt
16:14 dubey when i run 'state.highstate
16:14 dubey ' it fails. No Top file or external nodes data matches found
16:14 dubey I think i have to create a top.sls file in /srv/salt
16:15 pelzi__ yes
16:15 pelzi__ the top file is very important :)
16:16 iggy for hightstate, you should still be able to run state.sls user
16:16 iggy you just need to make sure you have /srv/salt/user.sls
16:18 smcquay joined #salt
16:21 spark_ joined #salt
16:21 wm-bot4 joined #salt
16:22 zer0def hey guys, quick question: can i target a machine in a top file using the regex 'project_(prod_)?web01', for example?
16:22 zer0def meaning i want to target both 'project_web01' and 'project_prod_web01'
16:22 spookah joined #salt
16:23 zer0def asking, because project_web01 seemingly doesn't pick up on a few things
16:24 blackjacksvp joined #salt
16:25 zer0def also, i might've forgotten to mention that "top file" in my case also applies to the pillar top file.
16:26 murrdoc zer0def:  google saltstack compound matching, the doc for your version might explain it better
16:27 zer0def oh-kay, let's try adding the PCRE compound matcher, since i might've abused it a bit too much.
16:27 moos3 joined #salt
16:27 Deevolution joined #salt
16:27 kossy joined #salt
16:28 kossy joined #salt
16:28 murrdoc :D
16:29 vstoniest joined #salt
16:29 nitenq joined #salt
16:29 zer0def yay!
16:30 zer0def new errors due to flawed logic! at least i'm making progress! thanks murrdoc!
16:30 murrdoc i just pointed u at a doc
16:31 murrdoc but you welcome
16:31 zer0def yeah, you reminded me that compound matchers make use of PCRE and i take PCRE as the default for regexes.
16:31 baweaver joined #salt
16:38 hal58th joined #salt
16:38 hal58th_ joined #salt
16:40 iggy couldn't you just use a list?
16:40 iggy seems like it'd be less RE overhead
16:44 Furao joined #salt
16:47 writtenoff joined #salt
16:50 zer0def iggy: it's a temporary solution, since i intend to streamline minion ids a bit.
16:52 bhosmer joined #salt
16:53 aparsons joined #salt
16:54 thedodd joined #salt
16:54 venu0336 joined #salt
16:57 arnoldB develop is broken again :/
16:58 cruatta joined #salt
16:59 pcn Is there a way to start an action like state.highstate, and tag it so that I can watch events to know when it has completed by searching for that tag?
17:00 cruatta_ joined #salt
17:02 bhosmer_ joined #salt
17:03 drawsmcgraw pcn: There should be a job_id to look for
17:03 drawsmcgraw There has to be *something* because the CLI knows when the job has completed.
17:04 pcn OK, I was hoping I could form an identifier so I could submit an attribute via the API and infer event completion/satisfaction based on rule that I set up
17:05 pcn e.g. jobs start coming through for first highstate of a new web cluster, my external system could infer that the LB could move over when 50% of the intended # of nodes have come through via some mechanism.
17:06 iggy you'd have to write something that watched the event bus (you can do that via salt-api btw)
17:06 pcn Yeah, I've got a watcher.  That's why I wanted to submit the tag on input, so the watcher can determine which events to care about
17:07 iggy I'd use the user field maybe
17:07 dubey iggy : Thanks all, it works "salt '*' state.sls user"
17:07 dubey without top.sls
17:08 iggy dubey: now you need the top.sls for highstate (which is where the fun part starts)
17:08 murrdoc 2015-06-19 17:07:08,414 [salt.client      ][ERROR   ] Unable to connect to the publisher! You do not have permissions to access /var/run/salt/master
17:08 murrdoc whut
17:08 iggy sudo !
17:09 dubey iggy: what if i move my user.sls file to child directory ? should i have to update master file or there is a change in command
17:09 murrdoc i am running as root
17:09 murrdoc the dir isnt there
17:10 desposo joined #salt
17:10 iggy dubey: let's say you moved it to users/test.sls, then you'd run "salt '*' state.sls users.test"
17:10 wendall911 joined #salt
17:11 forrest joined #salt
17:11 murrdoc server came back from reboot
17:11 murrdoc now salt master dont start
17:11 murrdoc fun
17:12 sgargan joined #salt
17:13 spookah joined #salt
17:13 dubey Ok, so if i have more child directories inside like /srv/salt/state/prod/user/user.sls, I will run as 'salt '*' stats.sls state.prod.user.user?
17:14 iggy dubey: correct
17:15 babilen dubey: No, states are always called relative to what you have in file_roots, so it really depends. I guess that you have "prod" in there explicitly, so you wouldn't have to repeat it
17:15 babilen So, the answer is: Maybe, we can't know
17:16 babilen But assuming you haven't changed anything it would be state.prod.user.user
17:17 murrdoc p k dubey
17:17 murrdoc daru chor doh
17:17 dubey murrdoc: Hindi
17:18 murrdoc :D
17:19 hal58th__ joined #salt
17:19 hal58th_1 joined #salt
17:22 dubey babilen: if i am correct what you are saying is, if i update my master file and set file_root=/srv/salt/state/prod; then i should run "stats.sls user.user ?
17:22 bhosmer joined #salt
17:22 dubey and exclude the path till base
17:28 babilen yeah
17:29 otter768 joined #salt
17:29 diegows joined #salt
17:30 dubey joined #salt
17:30 diegows hi
17:30 babilen dubey: "prod" looks/feels a lot like an environment (so file_roots: base: - /srv/salt - /srv/ .... prod: - /srv/salt/prod - ...) and states are always referenced relative to what you have in there. Not sure what you try to achieve though (and if environments factor into it)
17:30 diegows locking for some ideas about version locking of salt formulas
17:31 diegows I have a repo with more than 30 formulas,  10+ apps depend on it
17:31 diegows it's a development company
17:31 babilen diegows: Mirror them to something you control and keep that at the version you want
17:31 diegows it's like to lock the version for specific apps/envs
17:31 gladiatr joined #salt
17:31 babilen Ah, so you want different things to use different versions?
17:32 diegows something like
17:32 diegows application A works with ref ID XXXX, application B works with ref YYY, so if I change something, I don't break other apps
17:32 cliluw joined #salt
17:33 diegows makes sense?
17:33 iggy There's no canned solution for that, use whatever works best for you
17:34 cliluw What's the easiest way to make changes to an XML file using Salt? This is a .NET app.config file.
17:35 gladiatr joined #salt
17:36 * robawt highfives Heartsbane
17:36 dubey babilen: As this is my first day to salt, i am confused and trying to understand it
17:37 babilen dubey: Don't worry about environments and simply remember that file_roots default to /srv/salt and that every state is being referenced relative to that. So /srv/salt/foo/bar.sls becomes foo.bar
17:37 diegows dubey, I wouldn't worry on enviroments if it's your first time with salt
17:37 diegows just use base
17:38 diegows I've been using salt for almost 2 years and I've never used them :)
17:38 laax joined #salt
17:38 dubey Thanks guys with these informations.
17:39 dubey I will be bugging you on/off as i move ahead with salt
17:39 diegows you are welcome
17:40 dubey I am finding it hard to write .sls file as i don't have programming background.
17:40 Viper233 joined #salt
17:41 diegows you need basic programming skills to write sls
17:41 diegows this is infrastructure as code, so you need some programming skills :)
17:41 cruatta joined #salt
17:42 diegows iggy, ideas are welcome :)
17:42 smcquay joined #salt
17:43 ageorgop joined #salt
17:43 cruatta joined #salt
17:43 darknight87 hi guys, I want to parse through a linux file(line by line) using the for loop in salt. Is this possible? I couldn't find any example
17:44 cruatta__ joined #salt
17:44 diegows darknight87, do you have more details about what you want to do?
17:44 darknight87 something like 'for i in `cat filename`'
17:45 drawsmcgraw darknight87: I'll echo diegows. What problem are you trying to solve? There may be another way through.
17:45 babilen cliluw: Take a look at augeas (i.e. https://docs.saltstack.com/en/latest/ref/states/all/salt.states.augeas.html) with the XML lense or methods to write the file directly from Python. The latter would mean that you render the file with python as template engine and emit a complete configuration file that you generate from data in there (essentially the return value of the run() method in the "template")
17:46 darknight87 diegows, I have usernames stored in a file on the master server. Each username is on a new line. I want salt to pick each username from the file, and create a user and password for that user on a remote minion. Also, I want salt to store the username and the corresponding password which was set in a file on the server for future reference
17:47 babilen cliluw: In certain situations you might get away with a regular expression, but given that it isn't a regular language I will throw the wrath of the pumping lemma on you if you do that extensively
17:47 diegows I'll ignore the user and passwd in a file :)
17:47 diegows I use pillar to store user information
17:47 whytewolf darknight87: this sounds like you are going about this the most difficult way possable.
17:47 diegows can you move that information to pillarS?
17:47 aw110f joined #salt
17:47 babilen darknight87: Write that in Python. Write an execution module and states on top of that.
17:48 iggy diegows: a git repo with submodules pointing at specific commits?
17:48 cliluw babilen: Thank you.
17:48 babilen whytewolf: wait until darknight87 explains the 20 users thing
17:48 darknight87 diegows, I have to store the info somewhere. I have to handover the usernames/passwords to clients :(
17:48 diegows darknight87, use pillar
17:48 darknight87 babilen, :( lol!
17:49 mapu joined #salt
17:49 babilen cliluw: I mean if all you want is "replace FOO with BAR" in that file then file.replace is all you need, but augeas or actually using an XML writer that writes the complete file based on pillar data might be a better (and more maintainable) solution in the long run.
17:49 diegows iggy, I don't like it but looks like the clean solutions will required a PR :)
17:49 darknight87 guys, won't it be easier to write a python/shell script and just execute it via salt?
17:49 darknight87 not sure if this is the right way though
17:50 babilen darknight87: You could do that, sure
17:50 clintberry joined #salt
17:50 whytewolf write a piller_ext?
17:50 darknight87 whytewolf, that's greek to me
17:51 diegows darknight87, pillar, pillar :)
17:52 whytewolf sorry ext_pillar. basicly it is a python script that connects to an external datastore of somekind and outputs it as pillar data
17:52 darknight87 diegows, so you're suggesting the pillar route and not the script?
17:52 diegows yes
17:52 diegows if you are free to put that information in any place
17:52 diegows you pillar
17:52 diegows use*
17:53 darknight87 is there any user creation specific documentation?
17:53 diegows the official :)
17:53 diegows http://docs.saltstack.com/en/2014.7/topics/pillar/index.html
17:54 whytewolf darknight87: what format do you store your file in?
17:54 darknight87 whytewolf, the username and password file or the input users file?
17:54 diegows whytewolf, if he's free to put that information anywhere, ext_pillar is going to be unnecessary complex
17:55 whytewolf diegows: not if it is already writen. if the format is yaml or json, or in a databse.
17:55 babilen darknight87: Please mention the 20 user thing. It'll make the rest of the discussion a lot more productive if the rest of the people in here are aware of what you are actually trying to accomplish here
17:55 darknight87 guys, I tried the pillar_roots and everything that I had created in the file_roots stopped working :(
17:56 darknight87 babilen, that will add to the complexity
17:56 babilen *YOUR PROBLEM IS COMPLEX*
17:56 diegows you guys are making it complex :)
17:56 whytewolf darknight87: if problem has complex parameters then we need to know the details
17:56 whytewolf diegows: he hasn't said he can put it anywhere.
17:57 diegows darknight87, confirm please
17:57 babilen I'd argue that you want to use an external pillar that reads data from $SOMEDATASOURCE and then presents the data appropriate to each minion. You would then use the users-formula for the actual user creation, but the whole "which minion gets which user?" question is written in the external pillar (or, if you wish, a pillar SLS file written in Python)
17:58 darknight87 so I have multiple minions, on which I need to create users which can sftp but not ssh to the minions. I have already added the sshd_config edit part to the salt config which works. Now here's the problem - each minion should have only 20 users. Username creation requests will come on at different times. How do I achieve this in the best possible way?
17:58 alexanderilyin joined #salt
17:59 diegows pillar :)
17:59 darknight87 diegows, I'm lost here
17:59 whytewolf wait so each minion can have any random user as long as it has 20 or less?
17:59 babilen whytewolf: Okay, the idea is that there is a list of users that have to be distributed to a number of minions. There will be a threshold on the number of user accounts that when reached on one minion means that the next k accounts will be created on the next. So essentially assigning k users to n minions (not sure what'll happen if there aren't enough minions to take all users)
17:59 darknight87 Can this conditional logic of 20 users be achieved in salt? how?
17:59 babilen That was my understanding
18:00 ecerulm joined #salt
18:00 babilen darknight87: Do you know all users that will ever be created a priori?
18:00 whytewolf babilen: he said user requests can come at any point.
18:01 darknight87 babilen, no. The list will keep increasing. For instance, I will receive a list of 10 users that I need to create. After a month I could receive another list of 20 users, and so on
18:01 whytewolf it is a bizzare problem
18:02 darknight87 :(, exactly
18:02 mpanetta Sounds like the job of ext_pillar to me
18:02 babilen whytewolf: Also: If a user has been created on a minion once it should stay there
18:02 darknight87 I was so excited to get it done via a script and then just push the script, but then can salt do this by itself?
18:02 babilen darknight87: Could you paste your script?
18:03 darknight87 babilen, exactly
18:03 whytewolf yeah this is sounding more and more like an ext_pillar thing.
18:03 scott joined #salt
18:03 whytewolf cause it needs more logic then just a common pillar
18:04 whytewolf or at the very least a script that maintains the pillars
18:04 nebuchadnezzar joined #salt
18:04 babilen darknight87: This is a problem that is hard in that nothing in salt would do this for you. The "stickiness" of the users add an additional layer of complexity (otherwise you would just zip together lists of users and minions in Python)
18:04 darknight87 I haven't started writing one. But I have thought of the logic. That's the reason I want to create 2 files - One containing the usernames which is the input to the script and the script generates a new file containing the username,password and minionname
18:04 sfoger https://github.com/saltstack/salt/pull/24829
18:04 plop__ joined #salt
18:05 babilen The problem is that you don't want the assignments to change. Otherwise you could use use itertools.izip and itertools.cycle to zip the list of users with the list of minions or, in other words, assign a minion to each user. The problem is that that will change if you remove users, add minions, ....
18:05 darknight87 Then a bunch of conditions, to run a counter on the minionname in the output file. If the sum of(minionnamecount+number of users to be created >20), use the next minion
18:06 babilen So you need something that saves the state of your system once it has been assigned. That makes it comples. If you have a script for that already then: Yeah, just run that.
18:06 forrest are the users not present in a database?
18:06 babilen And: What do you want to happen if the "last" minion is full before you have assigned all users?
18:06 whytewolf forrest: thats what i was thinking. a database would be perfect for this.
18:06 darknight87 forrest, no
18:07 babilen Could they?
18:07 darknight87 babilen, unlikely. I don't think that will happen
18:07 babilen You really need a place to save that state (I mentioned sqlite earlier as an "easy" database, but it could be anything)
18:07 forrest I'd rather store all my users in a database, and within the table have a value that says whether they are assigned, as well as what system they are assigned to.
18:07 babilen darknight87: "unlikely" is nothing that could guide a design process
18:07 forrest Then you can easily modify/update as needed :\
18:08 davisj left #salt
18:08 forrest crash the box? Find all users and change their system, pull it again, etc.
18:08 darknight87 babilen, no it'll never happen. I have already provisioned a lot of minions, and these are backup servers. We won't have many users accessing these
18:08 mpanetta forrest++
18:08 forrest I just joined so my knowledge of this is bad, but a login system should really be handled by users. If these are for people on the box, well you have too many admins ;)
18:09 babilen darknight87: What you want to hand to salt is the list of users, their attributes and their minion assignments and it'll take care of the rest. The logic of which user will be assigned where should best be handled outside in persistent storage (that you reference as external pillar)
18:09 forrest are the devs just like 'SCREW IT, NO LOGIN SYSTEM!'
18:09 Scotti_ joined #salt
18:09 forrest babilen: Really this whole system should be handled outside of salt via the application, and if users need command line access, then the app should be redesigned.
18:10 darknight87 forrest, these are non-ssh login users.just sftp
18:10 forrest ahh
18:10 forrest yeah, then database it up, or use ldap or something
18:10 denys joined #salt
18:10 whytewolf ldap backed by a database ;)
18:10 Guest___ joined #salt
18:10 forrest yep
18:10 darknight87 so forget salt?
18:11 forrest nah, still use salt for setting up the system
18:11 forrest It's too bad you couldn't just stick a squid proxy box out front, and proxy to a bunch of systems that share a mount for home dirs
18:11 whytewolf yeah. salt helps with the making sure the system can connect to the login backend
18:11 darknight87 so, as babilen stated - build a database with all users to be created, the passwords and minions on which they are to be created. And use this as an input in salt?
18:12 Scotti__ joined #salt
18:12 forrest so then you just set up all users on all the boxes, and it just chooses a system to connect to, then no matter which system they hit it will be mounted and available.
18:12 whytewolf i find the 20 user limit the odd part
18:12 babilen it is
18:12 forrest maybe the DC has bad bandwidth?
18:12 forrest Or users will be uploading a lot of data? Or maybe bandwidth limitations?
18:12 babilen darknight87: Could you elaborate on *why* you have those limits?
18:12 darknight87 whytewolf, the limit is actually 50, I just said 20 :(
18:12 babilen that's okay
18:12 forrest how many total users need to FTP?
18:12 babilen Lets say "k" :)
18:13 forrest And I'm assuming it HAS to be via ftp? You can't have a little front end that users use to upload files ala dropbox?
18:13 babilen I mean it would be quite easy if assignments of "user belongs to minion" could change, but with that you need state
18:13 darknight87 forrest, nah, doing it the old fashioned way
18:14 darknight87 sftp client like winscp or cmdline
18:14 perfectsine joined #salt
18:14 darknight87 babilen, I think everything is going to fall apart with user deletion comes into the picture
18:14 babilen load balance sftp?
18:14 forrest Yeah I'm out then, database treated as an external pillar seems like the easiest way.
18:14 whytewolf would be nice if sdb was ready. cause this might be a good test case for it
18:14 forrest babilen: I already proposed that via squid proxy
18:15 babilen darknight87: Well, that would just shuffle users around.
18:16 forrest I really think a single unified frontend is the way to go, with a mounted back end if you don't want to set up a DB
18:16 darknight87 babilen, the db would have to be updated everytime a user is deleted. I can't think of the logic atm. Also, how to get salt talking to a db? what is this ext_pillar? which sls files need to contain the logic for these pillars?
18:16 babilen forrest: Yeah, just saying that there is a way to solve this problem and then there is the way to not have that problem to begin with. I still find the "k" users on $SYSTEM limit to be weird and have the feeling as if the right way would be to access $SYSTEM in a uniform way and then redirect that to multiple workers
18:16 Scotti__ Good day. I'm running SaltStack 2015.5.0 on Ubuntu 14.04. I see that there is a bugfix release 2015.5.1 and .2 on github. How do I upgrade to one of those in Ubuntu? Is there a preferred Linux distro that gets the most recent releases before others?
18:16 forrest single SFTP url provided to all users, they connect via their creds which makes it easy to manage, then you can dynamically scale as needed. Bottle neck becomes the backend storage though
18:16 forrest babilen: I totally agree.
18:17 forrest babilen: I was saying 'unified' in the sense of a proxy ;)
18:17 sieve joined #salt
18:17 forrest so you could have multiple scaling worker instances.
18:17 whytewolf darknight87: databases are good at being updated when things change that is why we are recomendeding it
18:17 babilen forrest: yeah
18:17 babilen whytewolf: hehe
18:17 forrest Scotti__: There might not be a package available yet. If it is up and available, it should be there in the salt PPA repo
18:18 darknight87 whytewolf, agreed. I could have done that via a script, a sql query. But salt?
18:18 whytewolf darknight87: http://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.mysql.html#module-salt.pillar.mysql
18:18 whytewolf darknight87: your logic and database updates are updated outside of salt. salt just parses the results and makes them happen
18:19 whytewolf huh, is there no ext_pillar for sqlite?
18:19 forrest Scotti__: I see https://launchpad.net/~saltstack/+archive/ubuntu/salt2015-5, but I don't see any more recent releasese.
18:19 forrest *releases
18:19 Scotti__ Forrest, thanks forrest. Is there better way to install using what is in Github?
18:19 darknight87 whytewolf, so if the user needs to be deleted, I do that outside the salt config via a script by deleting that user in the db?
18:19 babilen darknight87: Look into loadbalancing your service, use a unified storage that is common to all worker nodes in the background, but do round-robin of connections. Users will access a "frontend" box (i.e. the load balancer) and won't care which worker/minion they arrive at.
18:19 igorwidl joined #salt
18:20 babilen darknight87: That way you have all users on all workers, but workers are being utilised uniformly (hopefully)
18:20 forrest Scotti__: 2015.5.2 is already tagged. joehh are you around by chance?
18:20 babilen If you don't have a hardware LB look into, say, haproxy
18:20 Scotti__ Forrest, well, maybe not better, but a way to have access to the latest releases? Does one linux distro get updates quicker than another?
18:20 Viper233 I want to set default pillar values when using the openvpn-formula. I have a udp and tcp server setup. I've been trying to use a lookup but I don't think I have the syntax right. e.g. http://pastebin.com/xg4Jah2x
18:20 darknight87 babilen, that's gonna happen. All minions are in the cloud and i will be creating a VIP and adding all to a farm
18:21 forrest Scotti__: Not really, usually ubuntu and debian get updates pretty quick. the guy I just hit up is the maintainer of those packages, but he lives in Australia so he might not be around
18:22 ajw0100 joined #salt
18:22 babilen darknight87: So, ... does that mean that the problem went away?
18:22 darknight87 whytewolf, if the user is deleted from the db, how will salt delete it? how will it know which minion has that user?
18:22 babilen darknight87: user.absent
18:22 darknight87 babilen, which problem?
18:22 babilen The assignment problem
18:22 beneggett joined #salt
18:22 darknight87 babilen, but the user was deleted from the ext_pillar
18:22 forrest Scotti__: Usually the release is cut pretty quickly after the tag is created, not sure if maybe I am looking in the wrong place.
18:23 beneggett How can I target using multiple grains. e.g. something like: salt -G 'roles:aws and roles:production '
18:23 whytewolf darknight87: insteead of deleteing the row of the user. have the user have a "deleted" field that lets you know they are gone
18:23 forrest beneggett: http://docs.saltstack.com/en/latest/topics/targeting/compound.html
18:23 darknight87 babilen, in the background, there are still vm's(minions) which have separate instances on ubuntu running
18:24 darknight87 whytewolf, yes, silly me. Losing it! :(
18:24 beneggett forrest: thanks, so that is to say the -G flag is really only meant for a single grain value
18:24 beneggett forrest: any multiple matchers are done via the -C flag
18:24 forrest beneggett: Exactly.
18:24 beneggett great, thanks
18:24 forrest np
18:25 whytewolf darknight87: np, frazzeling happens and is expected ;)
18:25 darknight87 whytewolf, babilen, forrest and all - thanks a lot. I appreciate the expert advice! I will be back soon with more queries. I hope the next time, there is some progress. Thanks once again!
18:26 forrest darknight87: Yeah np, good luck!
18:26 darknight87 :)
18:26 forrest Scotti__: Is there a particular bug you are encountering that is resolved in one of those tags?
18:26 whytewolf darknight87: np, good luck, don't forget to bring a shrubbery
18:27 darknight87 whytewolf, :D. Sure.
18:28 perfectsine joined #salt
18:28 theologian joined #salt
18:29 Scotti__ Forrest, you're looking at the same place I am. I'm just having some odd issues with docker and with the winexe port defaulting to port 22 instead of 445. I found a work around by setting ssh_port to 445 but wanted to see if this bug was fixed yet. The docker one is weird as I installed docker.py but now pip doesn't function anymore.
18:30 forrest oh yeah I had docker issues actually as well: https://github.com/saltstack/salt/issues/24049
18:30 forrest but doesn't seem exactly the same as what you have
18:30 forrest basepi: Are you around?
18:31 davisj joined #salt
18:31 Scotti__ Forrest, this is on my Salt Master. I'm essentally rebuilding it now. I used pip to install docker-py, ran state.sls to install docker on a minion and then pip stopped working on my master. Tried a bunch of things but couldn't get it to work anymore.
18:31 forrest Scotti__: Is there a version mismatch with salt between your master and minion?
18:32 tmclaugh[work] joined #salt
18:33 Scotti__ Forrest, I'm testing so I nuked both and am starting with a new system and a backup of my configuration files. In about 15 minutes I'll be able to see if that is the case. Just bit.. Thanks for your help.
18:33 forrest Scotti__: Sounds like a plan, and np
18:35 Norbell joined #salt
18:36 venu0336 joined #salt
18:36 tmclaugh[work]_ joined #salt
18:37 spark_ joined #salt
18:42 bhosmer_ joined #salt
18:42 MTecknology heh... Salt request timed out. The master is not responding. If this error persists after verifying the master is up, worker_threads may need to be increased.
18:42 MTecknology http://dpaste.com/05KF0J3
18:45 MTecknology apparently you should be careful about sending state.sls to ~180 minions at the exact same time
18:49 smcquay joined #salt
18:49 lala joined #salt
18:50 desposo joined #salt
18:51 Scotti__ forrest, I know what destroyed pip now. "pip install docker-py"
18:51 forrest really? How
18:51 diegows joined #salt
18:51 Scotti__ running that command.
18:52 forrest but how did that break pip
18:52 forrest seems odd
18:52 Scotti__ sorry if this is to wordy....    File "/usr/bin/pip", line 9, in <module>     load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point     return get_distribution(dist).load_entry_point(group, name)   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point     return ep.load()   File "/usr/lib/python2.7/dist-pa
18:54 Scotti__ In particular. I had docker-py 0.5.0 installed. Then I did a pip upgrade to the latest of docker-py and that wrecked pip.
18:55 Scotti__ I found a few forums that talked about how to fix this but none of the examples ever work. This is where I started by doing a fresh OS install.
18:56 forrest Scotti__: Did you try to upgrade pip to the latest release, then install docker-py?
18:56 Scotti__ forrest, my bet is that a new version of "requests" is incompatable with my version of pip.
18:57 forrest yeah could be
18:57 forrest thus why I was saying try to upgrade pip to the latest first
18:57 forrest then do docker-py
18:58 Scotti__ I installed pip with apt. I take it that is not the latestest? pip is broken now so I don't see how to do anything with it. :(
18:58 toanju joined #salt
18:58 laax joined #salt
18:59 Scotti__ forrest well, back to reinstall the OS I guess. Seems bad that things could get that broke.
18:59 forrest I agree
18:59 forrest yeah install pip, but then do pip install -U pip
18:59 forrest then try to install docker-py
19:00 Scotti__ Is there no recourse to repair pip or rollback requests siz and docker-py without pip?
19:00 forrest Scotti__: You could maybe try to remove it with setuptools? But if requests is already upgraded, you might be hosed.
19:00 teryx510 joined #salt
19:00 forrest I've just gone with the stance of 'always update pip via pip'.
19:02 amcorreia joined #salt
19:03 peters-tx joined #salt
19:03 andrew_v If you have an old pip on a new requests, you can unbreak it with easy_install pip, I think. Getting back to the package version of both, though, I'm not sure about.
19:03 Scotti__ forrest, you were on the right path with setuptools.     "easy_install --upgrade pip" fixed pip.
19:03 forrest nice
19:04 andrew_v (pardon the interruption, but I've run into exactly that issue myself, and it sucks)
19:04 forrest yeah it totally sucks andrew_v, good idea to use setup tools
19:06 Scotti__ andrew_v, easy_install was the right thing. Thanks.
19:06 forrest Scotti__: In my states whenever I have pip I always upgrade pip before installing anything now
19:06 forrest create venv -> upgrade pip -> install stuff
19:06 Scotti__ Kind of new to Python but is easy_install a base utility for it?
19:06 andrew_v Okay, good.
19:07 forrest Scotti__: yeah easy_install is like the older/crappier version of pip
19:07 forrest most people just use it to install pip.
19:07 Scotti__ I'm not sure I'd call it crappy. Its fixed pip. :)
19:07 forrest Well, it has some downsides for actual use I guess is how I should phrase it
19:07 andrew_v Insert rant here about multiple package managers on the same system. :-(
19:07 forrest functionality wise compared to pip it isn't great.
19:07 forrest andrew_v: Yeah pretty much
19:08 forrest I don't use easy_install at all because of that, just use pip.
19:08 Scotti__ I'll take the upgrade pip to heart on future systems.
19:08 andrew_v I really wish people would ship deb/rpms repos instead of (or in addition to) pip packages. I hate having two overlapping dependency trees to worry about.
19:08 Scotti__ Cause that situation just kinda sucked.
19:09 Eugene Package management is one of those things that will never really be solved
19:09 Eugene LSB says RPM, but good luck on having people stick to that
19:10 iggy you mean systemd hasn't come out with a pkg manager yet too?
19:11 Eugene Give it 6 months, tops
19:11 Scotti__ Well, got Salt to build Linux and Windows servers in Amazon Web Services and on vSphere. I guess I'm making pretty good progress. the other dependancy issue I had was WINEXE. Having to build that puppy from source seems like I shouldn't have to but I got through that.
19:12 Scotti__ I guess I was surprised there wasn't a pre-built package for it.
19:13 Scotti__ At least not 1.0.1 that works with R2.
19:14 drawsmcgraw left #salt
19:14 Scotti__ Thanks for all your help forrest and andrew_v. This SaltStack is pretty cool so far. Going to get back to my testing!
19:26 ajw0100 joined #salt
19:30 otter768 joined #salt
19:30 shantanoo joined #salt
19:33 sfoger joined #salt
19:33 alexanderilyin joined #salt
19:37 jgarr joined #salt
19:37 jgarr can someone tell me if pkg.install pkgs='["foo", "bar"]' will run the package manager twice with foo and bar or will it be one run like `yum install foo bar`?
19:38 jgarr I'm assuming it does multiple calls but just asking for comparison
19:41 baweaver joined #salt
19:41 Gareth Is there a runner that changes some configuration of the master?  Looking for an example.
19:46 babilen Gareth: I use the salt-formula to manage my master(s)
19:48 Gareth I'm looking at adding the ability to add reactors on the fly, looking for code examples more than formulas.
19:48 chiui joined #salt
19:55 MatthewsFace joined #salt
20:02 primechuck joined #salt
20:07 primechuck If I put a salt module and state in the custom path with the same name, does the custom module overwrite the built in module?
20:08 nickg left #salt
20:08 coval3nce joined #salt
20:08 coval3nce Anyone here familiar with saltify?
20:10 jab416171 I've got a python script that depends on multiple yum repos and multiple python packages. How do I declare this in an sls file?
20:10 rodr1c joined #salt
20:11 jab416171 https://gist.github.com/jab416171/3965cfb3614f5ef82bb6
20:18 tracphil joined #salt
20:21 ajw0100 joined #salt
20:21 supersheep joined #salt
20:21 Ahlee Boredom achieved. IRC bot written to forward requests made in IRC to salt-api
20:22 zircote joined #salt
20:25 baweaver joined #salt
20:31 desposo joined #salt
20:36 dubey joined #salt
20:52 benegget_ joined #salt
20:52 chiui joined #salt
20:53 clintberry joined #salt
20:54 kusams_ joined #salt
20:55 ahammond is it possible to have the salt master running with transport: raet and still allow 0mq connections from legacy minions?
20:55 kusams_ joined #salt
20:56 hybridpollo joined #salt
21:08 soren joined #salt
21:10 clintberry joined #salt
21:14 stoogenmeyer_ joined #salt
21:19 emaninpa joined #salt
21:20 tabamo joined #salt
21:23 perfectsine joined #salt
21:24 smcquay joined #salt
21:24 murrdoc anyone got an example of file.replace
21:28 giantlock joined #salt
21:29 Tod-Autojoined joined #salt
21:31 otter768 joined #salt
21:34 iggy jgarr: pkgs is one call, names is multiple calls
21:34 CeBe joined #salt
21:35 iggy primechuck: define custom path
21:35 iggy murrdoc: ever find one?
21:36 nitenq joined #salt
21:36 murrdoc i did it super ghetto
21:37 baweaver joined #salt
21:37 primechuck iggy:  I did say path, I was wrong.  custom module in _modules and _states.
21:37 murrdoc turn-off-lvm-issue-disacards:
21:37 murrdoc file.replace:
21:37 murrdoc - name: /etc/lvm/lvm.conf
21:37 murrdoc - pattern: "issue_discards = 1"
21:37 murrdoc - repl: "issue_discards = 0"
21:37 murrdoc cos fstrim is being a dick
21:37 iggy primechuck: then they are separate (one will be under the salt.modules namespace and the other under salt.states)
21:38 iggy - pattern: '(.*)# private_key_email.*'
21:38 iggy - repl: '\1private_key_email {{ salt['pillar.get']('gce:logging:email') }}'
21:39 iggy kind of lame too
21:39 primechuck iggy:  Yes, but one that is already in base salt like network
21:40 iggy primechuck: no? oh, _{modules,states,utils,runners,etc} overrides built-in
21:41 jgarr iggy: so pkg.install names='["foo", "bar"]' would make multiple calls?
21:41 iggy jgarr: well, I'm not sure if you can use names with the module, but in states, yes
21:41 primechuck iggy:  That is kind of what I was thinking, wanted to make sure.
21:43 bhosmer_ joined #salt
21:43 primechuck Thanks
21:44 sroegner joined #salt
21:45 MatthewsFace joined #salt
21:47 beneggett joined #salt
21:49 sroegner joined #salt
22:04 Jimlad joined #salt
22:04 jgarr left #salt
22:13 markm joined #salt
22:14 salty joined #salt
22:17 jeddi joined #salt
22:41 supersheep joined #salt
22:44 sgargan joined #salt
22:46 ajw0100 joined #salt
22:46 supersheep joined #salt
22:54 Guest60 joined #salt
23:00 murrdoc iggy:  do u happen to know
23:00 murrdoc if i can figure out what triggered a job
23:00 murrdoc like i am seeing highstate runs that i didnt plan on
23:01 murrdoc which is bad
23:01 iggy murrdoc: you looked at the job cache info and didn't see anything?
23:01 hybridpollo joined #salt
23:02 murrdoc looked at it how
23:02 murrdoc its in redis
23:02 murrdoc print_jobs ?
23:04 murrdoc i need something to log … when a highstate started and why
23:04 baweaver joined #salt
23:06 iggy I can usually tell by looking at the job data (user, target, etc.)
23:07 Zachary_DuBois joined #salt
23:13 murrdoc checking user again
23:14 murrdoc might be 2015
23:17 Viper233 how do I share information between pillars? I'm using the openvpn-formula and want to have the same values for most of the configuration options except for one or two values i.e. udp and tcp and the ports being used. https://github.com/saltstack-formulas/openvpn-formula
23:22 pacopablo joined #salt
23:22 pipeep joined #salt
23:22 Viper233 I have a tcp_server and udp_server and can produce the configuration files however many of the configuration options are duplicated? Is there  a way I can set default values? There is a lookup table with the role but it only defines a few defaults
23:23 berto- joined #salt
23:23 sgargan joined #salt
23:27 hardwire joined #salt
23:28 sgargan joined #salt
23:29 arif-ali joined #salt
23:30 kulty joined #salt
23:31 laax_ joined #salt
23:32 otter768 joined #salt
23:34 techdragon joined #salt
23:34 skarn joined #salt
23:35 vstoniest joined #salt
23:35 virusuy joined #salt
23:39 trevorj joined #salt
23:41 nate_c joined #salt
23:45 hasues joined #salt
23:45 hasues left #salt
23:46 cruatta joined #salt
23:47 sgargan joined #salt
23:48 smcquay joined #salt
23:49 ajw0100 joined #salt
23:50 hal58th joined #salt
23:51 hal58th_ joined #salt
23:53 ajw0100 joined #salt
23:58 spoked joined #salt
23:58 spookah joined #salt
23:59 clintberry joined #salt

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