Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-08-04

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

All times shown according to UTC.

Time Nick Message
00:00 Cerales joined #salt
00:00 andrej given this init.sls file http://pastebin.com/RFntTBja and this jinja template http://pastebin.com/hcnLUtWk
00:01 andrej why do I get "Cannot execute compound command without defining all arguments." when running "salt  playpen\* state,sls icinga"
00:01 Luke joined #salt
00:07 bhosmer joined #salt
00:08 thayne joined #salt
00:14 deeprave joined #salt
00:22 johngrasty So...I can't get the mysql functions to work. It is returning that they are not available. I have installed the dependencies as well.
00:22 johngrasty Any good ways to debug this?
00:24 martinp joined #salt
00:26 bitmand joined #salt
00:28 Rusty427 joined #salt
00:29 Rusty427 left #salt
00:34 otter768 joined #salt
00:40 Sauvin joined #salt
00:53 andrej johngrasty : what are you trying to do?
00:55 johngrasty andrej: Literally anything. Even salt-call --local mysql.version fails.
00:56 andrej Does it produce any output?
00:57 johngrasty Function mysql.version is not available
00:58 Singularo joined #salt
00:58 johngrasty I've installed the py-mysqldb, and I have tested it with a python script. It does work manually. test.not_loaded shows that salt
00:59 johngrasty isn't loading the mysql module.
01:00 rgarcia_ joined #salt
01:00 andrej Have you done this bit?
01:01 andrej https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.mysql.html
01:01 andrej Added the mysql config to your minions config file?
01:01 johngrasty I have.
01:01 andrej Hmmmm
01:02 andrej Anything in the minions log that is of interest? What log level is it set to?
01:03 johngrasty I'm a bit of a newbie at python, but it looks like to load the mysql module it merely must be able to load the mysqldb module.
01:03 johngrasty https://github.com/saltstack/salt/blob/develop/salt/modules/mysql.py#L170-L176
01:03 johngrasty https://github.com/saltstack/salt/blob/develop/salt/modules/mysql.py#L47-L55
01:04 johngrasty I have turned logging as high as I can get it with no errors or other oddities logged.
01:06 andrej In that case I'm totally at loss - sorry
01:06 johngrasty Lol. No problem. I understand completely.
01:06 andrej You may want to either ask on the mailing list, or submit a bug report on github
01:06 johngrasty I will do that.
01:07 andrej IRC is fairly quiet at the moment, I haven't seen anyone talkin hours
01:07 andrej talk in
01:09 johngrasty Yeah, Sunday evening in N. America and middle of the night Europe probably is a slow time.
01:09 aquinas joined #salt
01:09 andrej Lunch time Monday in NZ ;}
01:14 andrej johngrasty : what OS are you on? I jusy installed mysql on a playpen vm of mine, and if started working (giving me a mysql error) after I sintalled both python-mysqldb and python-mysql.connector
01:14 andrej that's on ubuntu 12.04
01:14 johngrasty I'm on SmartOS, an illumos derivative. I'm going to test it on FreeBSD 10 tomorrow.
01:16 johngrasty Generally, I love my "alternative" OSes, but initial configuration of new tools can be a pain. :-D
01:17 andrej Heh
01:17 andrej Either way, it seems to need TWO python mysql packages
01:19 johngrasty I think I remember seeing the docs mention that at least RHEL/CentOS definitely needs 2. I've installed all the ones that I can find in various combos.
01:19 johngrasty I just wish I could get an error. :-D
01:29 andrej Uh-huh
01:30 andrej And I had an odd error earlier that just went away (fixed itself) after I ran a cmd.run uptime
01:30 andrej totally bizarre ...
01:31 andrej I had state.anything (specifically .highstate and .sls icinga) return "Cannot execute compound command without defining all arguments."
01:31 johngrasty Those always worry me the most.
01:31 mspah_ joined #salt
01:31 andrej Uh-huh - same. I like consistent errors ;}
01:35 arthabaska joined #salt
01:38 arthabaska joined #salt
01:46 Singularo joined #salt
01:55 bhosmer joined #salt
02:00 rgarcia_ joined #salt
02:03 toastedpenguin joined #salt
02:07 Luke joined #salt
02:47 Luke joined #salt
02:57 freelock joined #salt
03:03 arthabaska joined #salt
03:13 jeddi joined #salt
03:16 Luke joined #salt
03:16 Voziv joined #salt
03:18 cruatta joined #salt
03:19 mapu joined #salt
03:21 andrej Hmmm ...
03:22 andrej What would decide whether a grains.setval name value on the command-line results in the value being stored as a string or a list?
03:22 aquinas joined #salt
03:23 andrej I set a few custom grains via shell scripts, and for some machine an IP comes out as a string, for others as a list containing one string
03:27 techdragon terminalmage whats your irc handle?
03:28 thayne joined #salt
03:33 TyrfingMjolnir joined #salt
03:37 techdragon The 2014 Pycon AU salt sprint is underway, we have our first bug fixed.
03:39 techdragon #14703 closed by a brand new salt user, Open source rocks
03:44 bhosmer joined #salt
03:51 taterbase joined #salt
03:51 pclermont joined #salt
03:52 schristensen joined #salt
03:56 m1crofarmer joined #salt
03:58 bhosmer joined #salt
04:04 mosen joined #salt
04:14 freelock joined #salt
04:18 thayne joined #salt
04:31 badon joined #salt
04:32 jhauser joined #salt
04:33 freelock joined #salt
04:40 rgarcia_ joined #salt
04:53 rihannon joined #salt
05:00 TyrfingMjolnir joined #salt
05:00 joehh joined #salt
05:01 auser joined #salt
05:02 auser left #salt
05:07 schristensen joined #salt
05:19 thayne joined #salt
05:23 rihannon joined #salt
05:29 beneggett joined #salt
05:30 Ryan_Lane joined #salt
05:31 auser joined #salt
05:33 malinoff joined #salt
05:33 bhosmer joined #salt
05:35 Nexpro1 joined #salt
05:37 kermit joined #salt
05:39 ajprog_laptop joined #salt
05:42 ramishra joined #salt
05:44 ramteid joined #salt
05:58 MrTango joined #salt
06:12 sword- joined #salt
06:17 sword- left #salt
06:21 jpaetzel joined #salt
06:30 cofeineSunshine joined #salt
06:35 Dilip_ joined #salt
06:37 Dilip_ Newbie to salt stack...tnx for providing this new chat.....
06:37 Dilip_ open chat....
06:39 zach joined #salt
06:49 Dilip_ left #salt
06:57 ajw0100 joined #salt
07:08 chiui joined #salt
07:14 alanpearce joined #salt
07:16 ml_1 joined #salt
07:21 intellix joined #salt
07:22 bhosmer joined #salt
07:41 linjan joined #salt
07:46 thayne joined #salt
07:47 ndrei joined #salt
07:56 ndrei joined #salt
08:00 Ryan_Lane joined #salt
08:09 andrej joined #salt
08:12 slav0nic joined #salt
08:12 slav0nic joined #salt
08:15 ramishra joined #salt
08:24 zz_chamunks joined #salt
08:24 martoss joined #salt
08:36 jhauser joined #salt
08:36 thayne joined #salt
08:40 SteveJ1729 joined #salt
08:40 bonezed what's the current state of salt on windows?
08:42 malinoff bonezed, it works, but i should ask you - what's the current state of console automation on windows?
08:43 bonezed heh
08:43 malinoff right
08:43 malinoff that's the correct answer
08:43 bonezed my boss is leaning towards puppet, I'm trying to convimce him that salt is better
08:44 * malinoff whispers: use ansible
08:44 bonezed heh
08:44 bonezed that has even less windows
08:44 malinoff and throw windows machines from the 100th floor
08:44 malinoff really
08:44 malinoff don't even think about automation on windows
08:45 malinoff alright, you can do some easy stuff like managing files
08:45 malinoff but once you need to install mssql express edition, for example, windows sux
08:45 malinoff it can't be installed from the cli at all
08:46 bonezed i wish we could dump windows, but this is an education institution, and they're big on commercial shiz
08:46 ramishra joined #salt
08:46 ramishra_ joined #salt
08:46 malinoff Use ActiveDirectory and other cool stuff windows provide, but don't try to apply a UNIX approach to automation
08:46 bonezed and the nix side uses oracle linux!
08:47 workingcats joined #salt
08:48 bezaban I'm leaning towards not including windows machines in salt at all after including a few selected machines from a test environment
08:50 CeBe joined #salt
08:51 malinoff okay, things get better if you install cygwin everywhere, but you still don't have repositories (salt helps a bit there, but not each software has .msi) and you still depend on external developer who may not even think about installing from the cli
08:54 xsteadfastx joined #salt
09:03 darkelda joined #salt
09:10 giantlock joined #salt
09:11 bhosmer joined #salt
09:12 dccc_ joined #salt
09:15 CeBe1 joined #salt
09:16 tinuva joined #salt
09:18 ninkotech joined #salt
09:18 intellix joined #salt
09:23 bhosmer joined #salt
09:24 pastacino joined #salt
09:25 ggoZ joined #salt
09:30 mosen joined #salt
09:32 Lomithrani joined #salt
09:34 ingwaem joined #salt
09:35 Lomithrani Hi , everyone using salt with docker here ? I have ran into an issue : When build manually , docker , if I have made changes to a file that is added through ADD , when I try to rebuild it does remove the intermediate container that were build with the old file. Though when I do it through salt it doesnt seem to behave the same way , it just tells me the image has already been built like it doesnt check for the changes. Any idea
09:40 oleksiy joined #salt
09:47 babilen Lomithrani: Your message was incomplete ... The last bis is "Any idea w"
09:47 babilen *bit
09:48 babilen And I doubt that everyone is using salt with docker
09:48 Lomithrani oh , strange I can see it complete. Any idea where that could come from ?  (wasn't really an important part of the message ;) )
09:48 Lomithrani http://docs.saltstack.com/en/latest/ref/states/all/salt.states.dockerio.html there must be :p
09:48 babilen When you do *what* through salt?
09:49 Lomithrani install docker , build and run the containers.
09:50 Lomithrani (I know it seems quite odd , but my boss asked me to in order to not be dependant of smartOs / joyent.
09:50 Lomithrani )
09:50 Lomithrani (and I know I could configure salt to take in consideration the os and all but ... meh he just asked me to use docker so I use docker ^^)
09:51 babilen I still don't quite understand what your issue is. You make changes to a file for which you have an ADD statement in your Dockerfile and the intermediate containers are deleted if you build it manually, but they are *not* deleted if you make changes to that file (which presumably triggers a rebuilt) in salt?
09:51 Lomithrani And believe me I tried to make him change his mind , managing cassandra in container with salt is a lot of pain for me :(
09:52 Lomithrani well you seemed to have understand very well to me babilen ^^
09:53 babilen Well, my crystal ball is the latest model
09:53 Lomithrani Docker cache , every statement in a Dockerfile. And if I modify a file that was added , when I rebuild it deletes all the cache after this modification (and of course the file itself) wich is the normal behavior. But seems like when I rebuild through salt it just doesn't see any changes.
09:54 Lomithrani minus the coma after cache , I don't know where it came from.
09:54 babilen I guess that the way "docker build" is called when you do it manually and when salt is being used differs in terms of the options. (e.g. --force-rm or --rm in particular)
09:54 poogles joined #salt
09:55 Lomithrani So I guess I'll just need to learn how to do my own states and adapt dockerio to the behavior I want. Would you think thats the best way to go ?
09:55 babilen Would you like dockerio to also delete intermediate containers or what is your overall aim?
09:57 Lomithrani yeah I would like dockerio to delete intermediate containers if needed. (basically the file that I alter are the conf file) si I really need it to rebuild when I made changes to the conf.
09:58 babilen Then set  nocache=False, rm=True, force=False in salt.states.dockerio.built so that it behaves as you want it to
09:59 Lomithrani isn't that the default setup ? http://docs.saltstack.com/en/latest/ref/states/all/salt.states.dockerio.html#salt.states.dockerio.built
10:01 babilen Yes, so change those values to reflect your desired state
10:03 Lomithrani Seems sensible :) thanks I'll try those (just seemed to me that it's already how it should behave , perhaps a force true.) well I'll try around. Thank you again , Nahamu and you have been a great help during my internship !
10:04 babilen May the salt be with you!
10:05 eliasp bonezed: … just wanted to let you know: I manage all Win7 clients here more or less completely via SaltStack… it is doable (although by far not that comfortable as for POSIX-Minions
10:06 eliasp I deploy ~30 software packages to them
10:06 eliasp I integrate them into the domain
10:06 eliasp I configure DNS/Network stuff
10:06 eliasp I create individual network-share scripts for users
10:06 eliasp etc.
10:07 ingwaem looking at some documentation seems it’s for quite a few versions ahead of what’s actually current…what’s the recommended way of utilizing some of those features? use dev branch instead? is there a breakdown on version numbers to time so that I can appropriately plan feature releases in parallel to when they’re stable? few questiosn all at once :)
10:08 eliasp ingwaem: next release is really close now… until then, you can always try to deploy individual modules/states/etc. from '2014.7' or 'develop' via http://docs.saltstack.com/en/latest/ref/file_server/dynamic-modules.html
10:08 eliasp ingwaem: but always make sure to test them before, some _might_ be not backwards compatible
10:09 ingwaem yea that was the version stated in the docs 2014.7 although we’re on 2014.1.7
10:10 ingwaem i’m specifically focussed on the cloud stuff at the moment…trying to get aws to work, trying to get vsphere to work too, however seems I’m in limbo between code and docs :)
10:10 ingwaem [WARNING ] The cloud driver, 'vsphere', configured under the 'vsphere' cloud provider alias was not loaded since 'vsphere.get_configured_provider()' could not be found. Removing it from the available providers list
10:10 ingwaem Error: There was an error listing images: No cloud providers matched 'vsphere'. …. < It’s fun when you read this and say…but i did everything it said… :)
10:12 dccc_ joined #salt
10:12 ingwaem eliasp: oooh, question about windows…I recall roughly about 10 months ago I was having issues with the win salt client running stablaly…it would crash and manual restart of the client was necessary…has that improved since?
10:13 eliasp ingwaem: unfortunately, I don't have any experience regarding the cloud functionalities… so you might have to wait for someone else to answer those questions or some more hours until Utah wakes up :)
10:13 eliasp ingwaem: yes… runs really stable now
10:13 eliasp a lot of issues have been fixed since then
10:13 ingwaem eliasp: ok cool that makes sense…oh and great too about the win client :)
10:13 martoss joined #salt
10:14 ingwaem yea if I can get the vsphere and aws stuff to work right then I’m on a winner all round…great for internal and external deployments :)
10:14 eliasp ingwaem: just don't plan to use non-ASCII stuff on Win yet (umlauts in registry keys, etc.) … this might still cause some headaches
10:14 ingwaem scribbled a mac mini server’s mac os, and replaced it with exsi lol
10:14 eliasp \o/
10:16 ingwaem understood about the non ascii stuff…don’t plan on changing registries for the time being…more just getting test environments ready for when they’re needed then destroy them…keep things clean
10:16 ingwaem I have 2 blades and a mini to play with, so might as well use the lot if I can :)
10:17 bonezed eliasp: thanks
10:18 eliasp that's great… my test-environment here is unfortunately rather restricted resource-wise… did most on VMs and some "well-aged" Core 2 Duo boxes :)
10:20 ingwaem eliasp: in your opinion, which distro has the least amount of friction when setting up? I’ve been using ubuntu but seems some addiitonal things are needed which are supposed to be built in
10:22 eliasp using Ubuntu here as well (my personal preference is Gentoo, but it doesn't fit into this specific environment)… might play with CentOS 7 sooner or later, as I'd really love to get rid of SysV/Upstart and make use of a proper systemd base-system
10:22 eliasp mostly, Ubuntu works quite well with Salt… no major complaints
10:23 ingwaem eliasp: cool thanks :)
10:23 spo0nman joined #salt
10:24 Guest30233 joined #salt
10:26 ingwaem eliasp: ok I’ve just pulled that latest version…lets see if it works this time :)
10:27 ingwaem lol :) there are bugs
10:28 ingwaem oh well, it’s obviously not the right time to do this stuff hehe…I’ll pack it in and wait for utah to wake up :)
10:29 mosen hiya saltines
10:34 krak3n`` joined #salt
10:36 goal_ if I have a list in jinja and i want to make this a list in a pillar, how would this be done, since simply trying to assign pillarvar = {{ jingavar }} doesn't work
10:38 tyson__ joined #salt
10:41 babilen goal_: Iterate through the list and insert "- item" -- But then i wouldn't bother with that and just write the pillar in Python.
10:43 spo0nman is there a place where I can download RPMs for centos. my env does not allow me to use yum/epel/pip
10:43 martoss joined #salt
10:44 malinoff spo0nman, you still can download rpms with wget or curl from repositories via http
10:48 tyson_ joined #salt
10:53 goal_ babilen: fast realising you're correct; this particular nut is best cracked with Python
10:54 spo0nman malinoff: thanks. I'm getting it from http://ftp.linux.ncsu.edu/pub/epel/6/i386/ for centos 6.5. hope that's the right one.
10:54 malinoff spo0nman, you're welcome. But I wonder what is the system you use that disallow you to use yum
10:55 spo0nman malinoff: yum is not disallowed, external network is.
10:55 malinoff spo0nman, wget/curl works with external network
10:56 malinoff I guess you should just configure yum to work via proxy
10:56 spo0nman malinoff: yeah! i could do that.
10:56 malinoff echo "proxy=http://proxy_host:proxy_port" >> /etc/yum.conf - easy as pie
10:57 spo0nman malinoff: thanks.
11:00 bhosmer joined #salt
11:02 babilen goal_: It's easy and you just return a dictionary .. Much easier than generating suitable markup that is then parsed into a dictionary IMHO
11:02 micko joined #salt
11:03 msusta joined #salt
11:04 msusta left #salt
11:04 istram joined #salt
11:14 TyrfingMjolnir joined #salt
11:21 faust joined #salt
11:23 sgate1 joined #salt
11:25 ramishra joined #salt
11:25 VSpike left #salt
11:26 danielbachhuber joined #salt
11:30 ramishra joined #salt
11:34 badon joined #salt
11:34 ggoZ joined #salt
11:40 vbabiy joined #salt
11:40 ramishra joined #salt
11:42 martoss joined #salt
11:43 diegows joined #salt
11:48 TyrfingMjolnir joined #salt
11:50 tyson__ joined #salt
11:52 krak3n`` joined #salt
11:53 sectionme joined #salt
11:55 martoss left #salt
11:55 martoss joined #salt
11:58 yano joined #salt
11:59 tyson_ joined #salt
12:04 tyson__ joined #salt
12:06 masterkorp Hello does anybody know of influxdb salt formula ?
12:10 tyson_ joined #salt
12:10 rihannon1 joined #salt
12:10 phx__ joined #salt
12:11 bhosmer joined #salt
12:12 wigit_ joined #salt
12:12 TamCore joined #salt
12:12 Valda joined #salt
12:12 dimeshake_ joined #salt
12:12 ramishra_ joined #salt
12:13 martoss joined #salt
12:13 Bosch[] joined #salt
12:14 hoodow_ joined #salt
12:14 hoodow_ joined #salt
12:14 whytewol1 joined #salt
12:14 darrend_ joined #salt
12:14 avn_ joined #salt
12:14 babilen_ joined #salt
12:14 tyson__ joined #salt
12:17 Nazzy joined #salt
12:17 Nazzy joined #salt
12:18 tyson_ joined #salt
12:18 chamunks joined #salt
12:19 etw_ joined #salt
12:19 __number5__ joined #salt
12:19 MK_FG joined #salt
12:20 TyrfingMjolnir joined #salt
12:20 estherbester_ joined #salt
12:22 Ssquidly joined #salt
12:23 evidence joined #salt
12:23 workingcats joined #salt
12:23 tyson__ joined #salt
12:23 Bryanstein joined #salt
12:24 darkelda joined #salt
12:25 Schmidt joined #salt
12:25 ajprog_laptop joined #salt
12:26 ecdhe joined #salt
12:27 tyson_ joined #salt
12:28 phx joined #salt
12:29 ndrei joined #salt
12:29 babilen joined #salt
12:29 babilen joined #salt
12:30 brandon_ joined #salt
12:30 tyson__ joined #salt
12:34 kindaro joined #salt
12:36 vbabiy joined #salt
12:36 kindaro joined #salt
12:39 jpl1079 joined #salt
12:39 tyson_ joined #salt
12:46 badon joined #salt
12:46 tyson__ joined #salt
12:48 bhosmer_ joined #salt
12:50 jpl1079 joined #salt
12:52 TyrfingMjolnir joined #salt
12:52 kindaro joined #salt
12:53 kindaro Hi. I'm new to SaltStack. What is the best way to make a decision based on a number of grains on different minions?
12:54 kindaro As I see it, we need somehow to unwrap grains' values in Jinja's "if" clause. But I can't quite get how.
12:54 ericof joined #salt
12:55 Sacro Will someone be kicking the PPA build server at some point/
12:55 Sacro kindaro: depends how your grains and states are laid out
12:55 kindaro I'm currently looking at it in the context of a reactor. An event comes in and I need to react only if grain a is set on server A and grain b set on server B.
12:56 bezaban kindaro: what logic to apply is one of the harder decisions imo, but to grab a grain you can use {{ grains['id'] }}
12:56 bezaban been a while since I've written anything for it.
12:57 bezaban Actually you can - match: grain in a sls
12:58 bezaban 'kernel:linux':    - match: grain.  To target multiple, but if you want to match on multiple grains that won't work, you'd need a compound matcher I think
12:58 bezaban where and how to do stuff is still one of the hardest things with salt.  I keep wanting to re-organize my groups
12:59 jms joined #salt
12:59 bezaban in my opinion.  I should point out that I don't use it extensively though.  Mostly for handling users, certificates and a few common settings like ntp servers
13:00 mapu joined #salt
13:00 kindaro If I say grains['grain_id'] in a Jinja wrapper in a reactor formula, what minion's grain will be substituted? That is, how can I address different minions' grains in a Jinja clause?
13:00 krak3n`` joined #salt
13:01 bezaban it's the machine it is running on for everything else, but I don't use the reactor system (yet)
13:02 bezaban or rather; the machine you are applying the state to
13:02 kindaro Forget about states, I'm trying to do a different business.
13:03 kindaro Something like systemd's dependencies but across a few servers.
13:03 bezaban oh I see, I'm not much help there then :)
13:05 bhosmer joined #salt
13:05 kindaro My idea was to asynchronously set grain a on server A and emit an event E, set grain b on server B and emit an event E. That event would check whether both A:a and B:b are set and only then emit event F.
13:05 kindaro Does that make sense?
13:06 kindaro If grains are not easily accessible in reactor formulas, then what else could we use as these "flags"?
13:06 cruatta joined #salt
13:07 kindaro What I mean here is that event E calls the reactor formula r(E) and we need that reactor formula to know whether A:a and B:b are both set.
13:07 mpanetta joined #salt
13:08 kindaro For example, think of initializing a database on A and a file server on B before launching a web application.
13:09 racooper joined #salt
13:13 jpl1079 joined #salt
13:14 vejdmn joined #salt
13:18 dude051 joined #salt
13:19 bhosmer joined #salt
13:19 xzarth joined #salt
13:19 kindaro Any ideas?
13:20 mpanetta joined #salt
13:20 bhosmer_ joined #salt
13:22 mpanetta joined #salt
13:23 bhosmer__ joined #salt
13:23 martoss joined #salt
13:24 to_json joined #salt
13:25 active8 joined #salt
13:28 arthabaska joined #salt
13:29 patrek joined #salt
13:29 danielbachhuber- joined #salt
13:29 bhosmer joined #salt
13:29 blarghmatey joined #salt
13:29 rihannon joined #salt
13:30 jhauser_ joined #salt
13:30 wigit joined #salt
13:31 TyrfingMjolnir_ joined #salt
13:31 TamCore_ joined #salt
13:31 che-arne joined #salt
13:31 trevorj joined #salt
13:31 darrend joined #salt
13:31 etw joined #salt
13:31 jeblair joined #salt
13:31 chiui joined #salt
13:31 ndrei joined #salt
13:32 Voziv joined #salt
13:37 to_json joined #salt
13:38 dccc_ joined #salt
13:38 bhosmer_ joined #salt
13:38 masterkorp Hello does anybody know of influxdb salt formula ?
13:40 FeatherKing joined #salt
13:41 nahamu Lomithrani: is your internship over?
13:42 Lomithrani nahamu, almost , next thursday
13:42 Lomithrani 2 more weeks ^^
13:43 Lomithrani But I think I might continue to use salt so I will annoy you a bit more around here don't worry ;)
13:43 nahamu :)
14:00 ipmb joined #salt
14:05 martoss1 joined #salt
14:07 TyrfingMjolnir joined #salt
14:08 ajprog_laptop1 joined #salt
14:10 kh4z joined #salt
14:12 tyson_ joined #salt
14:12 housl joined #salt
14:14 aquinas joined #salt
14:20 TyrfingMjolnir joined #salt
14:24 jalbretsen joined #salt
14:28 _mel_ joined #salt
14:29 blarghmatey joined #salt
14:30 _mel_ Hi. i try to create users with based on this page: http://serverfault.com/questions/538218/deploy-ssh-key-from-master-to-minion-via-salt-pillars . but i get errors like this: Rendering SLS "base:users" failed: Jinja variable 'str object' has no attribute 'name'; line 5. is the loop syntax correct?
14:30 quickdry21 joined #salt
14:31 viq _mel_: pastebin somewhere your configs
14:31 _mel_ the syntax looks cleaner than the iteritems like here: https://gist.github.com/UtahDave/3785738
14:31 _mel_ viq: i just copied the config from the website
14:33 _mel_ http://pastebin.com/0Girkv1g
14:33 Deevolution joined #salt
14:33 conan_the_destro joined #salt
14:34 viq hm, to be honest I never tried to use the first syntax, was always using the second one
14:35 _mel_ ok. so maybe the article is wrong then.
14:35 viq also, does 'salt yourminion pillar.get users' return stuff? (of course replace yourminion with proper value)
14:35 viq erm, I guess it does, since you said the second syntax works
14:36 _mel_ it does: http://pastebin.com/jSNVSAas
14:36 * viq nods
14:37 freelock joined #salt
14:38 masterkorp What is the "standard" way to get remote files nowadays ?
14:39 masterkorp is the cmd.run wget myfile still the best option ?
14:40 _mel_ a question for general understanding. if i have different servers with different users, would it make sense to group theese users into several files and include them in the top.sls like base: 'grp1': users.grp1, 'grp2': users.grp2?
14:40 thayne joined #salt
14:41 viq masterkorp: "get remote file" ?
14:44 smcquay_ joined #salt
14:45 masterkorp viq: yeah
14:45 masterkorp let me elaborate
14:46 masterkorp viq: https://groups.google.com/forum/#!topic/salt-users/ZB8-8x1IRNQ
14:46 masterkorp shameless link :)
14:47 vejdmn1 joined #salt
14:48 viq masterkorp: what's wrong with file.managed?
14:49 TyrfingMjolnir joined #salt
14:49 danielbachhuber joined #salt
14:51 smcquay joined #salt
14:51 msusta viq: I'm guessing it's hard to get a hash sometimes (and I'm not saying that downloading a file blindly without hash is a good idea)
14:52 thedodd joined #salt
14:52 masterkorp viq: does it work from a remote ?
14:52 msusta masterkorp: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.managed
14:53 msusta masterkorp: HTTP/FTP, SSL available.
14:53 masterkorp cool so its in the source and source_hash
14:53 masterkorp thanks
14:54 smcquay_ joined #salt
14:54 CheKoLyN joined #salt
14:55 Ahlee_ I do'nt suppose anybody knows a good way to get a list of feature/bug fix differences between two versions of salt do they?
14:55 mattmtl joined #salt
14:55 blarghmatey joined #salt
14:55 TyrfingMjolnir joined #salt
14:55 Ahlee_ I want to make sure if i go through the hassle of going up to 2014.1.7 it's worth it, and I don't want to spin up a couple hundred minions to realistically test locally :)
14:56 mpanetta Hey guys, I am getting a really weird error on 2014.1.7 when trying to render a template...
14:58 mpanetta Comment: Unable to manage file: Jinja error: argument of type 'StrictUndefined' is not iterable
14:58 mpanetta The formula worked in 2014.1.5...
14:58 Ahlee_ mpanetta: looks like you're not getting a value
14:59 Ahlee_ guessing StrictUndefined is None
14:59 mpanetta That is what I was thinking, but not quite sure why...
14:59 mpanetta Hmm maybe my pillar roots are incorrect...
15:01 taterbase joined #salt
15:01 schristensen joined #salt
15:03 Ozack1 joined #salt
15:04 che-arne joined #salt
15:04 mpanetta Nope, not pillar roots...
15:09 teskew joined #salt
15:11 dariusjs joined #salt
15:12 dariusjs is there a cmd.run  supported mode for  runas on windows ? im having difficulty locating this on the docs
15:13 cnelsonsic joined #salt
15:14 rallytime joined #salt
15:15 rekibnikufesin joined #salt
15:17 CheKoLyN joined #salt
15:17 jpl1079 joined #salt
15:19 TyrfingMjolnir joined #salt
15:24 ksalman anybody had luck with custom grains on windows?
15:24 ajprog_laptop1 joined #salt
15:24 beneggett joined #salt
15:28 vejdmn joined #salt
15:31 troyready joined #salt
15:38 macker joined #salt
15:40 UtahDave joined #salt
15:41 mechanicalduck joined #salt
15:44 wendall911 joined #salt
15:45 wendall911 joined #salt
15:45 rgarcia_ joined #salt
15:45 ipmb_ joined #salt
15:48 arthabaska joined #salt
15:48 to_json joined #salt
15:50 masterkorp guys
15:50 masterkorp Comment: Unable to determine upstream hash of source file http://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb
15:50 masterkorp i am getting this using a file.managed
15:50 masterkorp setting the source has that link
15:51 jY masterkorp: can you post your state file for that?
15:51 UtahDave masterkorp: have you specified the hash for that file?
15:51 UtahDave in your state?
15:52 masterkorp http://pastie.org/private/iugjofvrowoohjncn0gxlq
15:52 masterkorp UtahDave: do i need to ?
15:52 UtahDave masterkorp: yeah, you do
15:52 UtahDave the only source you don't is  salt://
15:53 jY ya you need it
15:53 UtahDave https:// http://  ftp:// , etc al, require it
15:53 masterkorp UtahDave: http://pastie.org/private/q4w3y2cdgjifs3cpmmckug
15:53 viq Is there any ETA for Helium ?
15:53 jY salt:// is trusted http:// isn't
15:53 masterkorp UtahDave: like this ?
15:53 * robawt highfives UtahDave
15:53 masterkorp jY: makes sense
15:53 jY source_hash not source_hard
15:53 viq masterkorp: source_hash, not source_hard ;)
15:54 masterkorp lol
15:54 masterkorp thanks
15:54 UtahDave yep. And I think you may need to specify the type of hash.  Let me look at the docs
15:54 tligda joined #salt
15:54 masterkorp Source hash file 3c02ef5f9c4aa28eacdc68b230277af3 contains an invalid hash format, it must be in the format <hash type>=<hash>
15:55 jY UtahDave: i think it knows it by the length of the hash
15:55 jpl1079 joined #salt
15:55 masterkorp how do is specify that is a md5 ?
15:55 UtahDave try    source_hash: md5=<hash>
15:55 masterkorp Source hash file 3c02ef5f9c4aa28eacdc68b230277af3 contains an invalid hash format, it must be in the format <hash type>=<hash>
15:55 jY i guess i'm wrong :)
15:55 masterkorp http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.managed
15:55 masterkorp hmm, its not very clear here
15:56 jY ya its - source_hash: md5=hashHere
15:56 UtahDave masterkorp: Yeah, it looks like the docs need to be updated.  masterkorp, would you mind opening an issue regarding that?
15:57 masterkorp File sum set for file /tmp/influxdb.deb of <3c02ef5f9c4aa28eacdc68b230277af3> does not match real sum of 3c02ef5f9c4aa28eacdc68b230277af
15:57 thayne joined #salt
15:57 tyson__ joined #salt
15:57 masterkorp UtahDave: not at all, are the docs itself public I would do PR even
15:57 masterkorp it looks like its md5=hash
15:58 m1crofarmer joined #salt
15:58 jY masterkorp: you should really link to a set version not latest
15:59 jY it'll error out on a new release
15:59 masterkorp i confirm
15:59 masterkorp jY: well this is what they provide, only lastest
15:59 masterkorp i will compile from sauce later own
15:59 UtahDave masterkorp: Yeah, the docs are in the mainline salt repo in the docs folder.  A PR would be REALLY appreciated1
15:59 jY http://influxdb.com/download/
15:59 jY scroll down
15:59 masterkorp UtahDave: ok, for stupids how do i generate and test the docs locally ?
16:00 masterkorp :)
16:00 UtahDave masterkorp: The docs are sphinx based.  I think there's a doc on making the docs. Just a sec
16:01 UtahDave masterkorp: http://docs.saltstack.com/en/latest/topics/development/conventions/documentation.html#building-the-documentation
16:01 viq Is there any ETA for Helium ?
16:01 masterkorp perfect thank you
16:01 * masterkorp handles a beer
16:01 UtahDave viq: I just heard that we're probably releasing the first RC this morning.
16:02 masterkorp UtahDave: http://pic.53280.de/factoids/beer.jpg
16:02 UtahDave lol masterkorp
16:02 Sauvin joined #salt
16:03 to_json joined #salt
16:04 vejdmn joined #salt
16:04 estherbester joined #salt
16:04 viq UtahDave: cool, thank you
16:05 viq UtahDave: any guesstimates how long after until release?
16:06 masterkorp UtahDave: how do you name branches? Do you follow the feature/stuff type of naming ?
16:06 UtahDave viq: It really depends on how well the RC goes. I'd imagine we'll let the RC bake for a couple weeks at least.
16:07 viq OK, thank you
16:07 * viq waits impatiently for pillar merging ;)
16:07 UtahDave masterkorp: just create a branch off the develop branch. probably with a name that makes sense to you.
16:08 UtahDave viq: :)  I know!
16:08 tyson_ joined #salt
16:08 viq onfail and GPG renderer look fun as well, but that's the main thing for me
16:09 mspah_ joined #salt
16:09 viq At the moment anyway ;)
16:10 KyleG joined #salt
16:10 KyleG joined #salt
16:10 masterkorp UtahDave: hmm, this is python2 correct ?
16:10 tyson_ joined #salt
16:11 UtahDave masterkorp: Hm. I'm not sure that it matters.  Salt itself needs python2 still, but I'm not sure about the docs.
16:13 masterkorp ttp://pastie.org/private/lqoiizgi2zq0ixoivnjklg
16:13 masterkorp http://pastie.org/private/lqoiizgi2zq0ixoivnjklg
16:13 masterkorp it seems like it does
16:14 masterkorp i am on arch so all python2 modules are named python2-appname
16:14 ADobrodey joined #salt
16:14 masterkorp and the bins are binsomething2
16:17 masterkorp ok cool the makefile does seem to have a SPHINXBUILD var
16:18 masterkorp yay
16:18 masterkorp make SPHINXBUILD="sphinx-build2" html
16:18 masterkorp works
16:20 UtahDave cool
16:22 Comradephate joined #salt
16:22 masterkorp ok, cool the state.file docs seems to be on the doc itself
16:22 mechanicalduck joined #salt
16:23 masterkorp this sphinx is kinda doxygen for the 21st century, cool
16:24 UtahDave masterkorp: Yeah, we try to keep the docs as close to the source code as we can, or makes sense.
16:29 ixokai joined #salt
16:30 rowleyaj joined #salt
16:31 blarghmatey joined #salt
16:32 m1crofarmer joined #salt
16:32 tligda1 joined #salt
16:33 chiui joined #salt
16:34 tligda joined #salt
16:40 scoates joined #salt
16:43 arthabaska joined #salt
16:44 jhauser joined #salt
16:44 troyready joined #salt
16:45 KFDM joined #salt
16:45 Lomithrani left #salt
16:46 forrest joined #salt
16:48 TheRealBill joined #salt
16:50 Heartsbane good morning can someone tell me where the processed JIDs are stored on the master
16:51 Heartsbane it is Monday and my googlefu seems to be broken
16:51 repl1cant /var/cache/salt
16:51 repl1cant master/jobs
16:51 Heartsbane thank you
16:51 repl1cant np
16:52 * robawt highfives Heartsbane
16:53 Gareth robawt: You like highfives, huh? :)
16:53 robawt Gareth: you know this good Sir
16:53 Heartsbane robawt: morning bobby
16:55 Heartsbane So let me tell you a story and everyone can lend their $0.02
16:55 bhosmer joined #salt
16:55 Heartsbane I use salt to push code to our application servers after a build is made
16:56 Ryan_Lane joined #salt
16:56 Heartsbane So what is the best way to search all the JID (which I keep 30 days of) to find out on what day I released what version
16:56 Heartsbane I did a wicked on call shift this weekend and I am broken
16:56 Heartsbane or in slo-mo
16:58 Renich joined #salt
16:59 robawt Gareth: you're getting a highfive at scale now
17:02 forrest Heartsbane, that's when I go 'dear sirs, today I am taking a personal day, later'
17:02 pastacino joined #salt
17:02 nineteeneightd joined #salt
17:04 viq Heartsbane: maybe https://github.com/felskrone/salt-eventsd would be useful for that?
17:04 Renich hey guys, where can I find salt recipes? I mean, there's salt-contrib but I kind of remember there was something else
17:04 viq Renich: salt-formulas
17:05 viq https://github.com/saltstack-formulas/
17:05 Renich viq: yes! Is that listed anywhere on the website or somewhere I can go looking for it?
17:05 Heartsbane viq: thanks
17:05 forrest Renich, it's listed here: http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
17:05 Renich forrest: thanks
17:05 Renich viq: thanks
17:05 forrest but I don't know if it's in the getting started docs anywhere. I'll create an issue to see if we can get that added
17:05 Gareth robawt: I look forward to it :)
17:06 viq Heartsbane: disclaimer - once you've read the readme you know about it as nuch as I do
17:07 Heartsbane viq: ya I am going to need more coffee
17:07 * Heartsbane mumbles something about wanting to do more automation with salt.
17:07 Heartsbane stupid boss
17:07 robawt Heartsbane: salt runners are looking mighty good for software deployments
17:08 Heartsbane robawt: ya they are but I have to see down with the Project Manager on a conference call with clown boss in Chicago
17:09 Heartsbane about release times and dates
17:09 Heartsbane I so want to automate more things
17:09 * Heartsbane has a case of the Mondays.
17:11 forrest Don't feel alone Heartsbane I almost called out this morning
17:12 honestly i didn't do any work yesterday because it was sunday
17:12 honestly and now it's monday...
17:12 masterkorp UtahDave: http://pastie.org/private/mdrh0cv4jmsdwexrn3tog
17:12 Heartsbane honestly, honestly
17:12 masterkorp any sugestions ?
17:12 icebourg joined #salt
17:13 masterkorp trying to generate the documenatation from the develop branch
17:13 linjan joined #salt
17:14 icebourg joined #salt
17:14 ipmb joined #salt
17:15 icebourg joined #salt
17:15 tligda joined #salt
17:15 vejdmn joined #salt
17:19 UtahDave masterkorp: just a sec.
17:20 UtahDave masterkorp: looks like you need the pygments sphinx plugin.  Also, looks like there might be an error in the docs.
17:20 herlo is there a simple way to target *every* machine except one in the top.sls?
17:21 kermit joined #salt
17:21 herlo ahh, nevermind, I think I can do it by targeting all of one zone.
17:23 Renich left #salt
17:23 masterkorp UtahDave: i pytho2-pygments installed
17:24 masterkorp or is there a specific library i need to connect those too
17:24 UtahDave masterkorp: it was already installed?
17:24 masterkorp are the dependencies needed to build the docs specified in some place they do not seem to be unles
17:25 masterkorp UtahDave: yeah its required by the python2-sphinx package
17:28 ml_1 joined #salt
17:29 UtahDave masterkorp: Hm. I'm not sure what's going on there. I'm not a sphinx expert, unfortunately.  I'll have some time in about an hour and a half to dig deeper into this if you haven't figured it out already.
17:29 masterkorp yeah i am still looking into
17:30 masterkorp i will file an issue if not sucessed
17:30 masterkorp fucking typos, its almost typo tuestday
17:32 tligda joined #salt
17:33 forrest UtahDave, How was being out on assignment? All sports cars and beautiful weather again I assume?
17:34 Gareth forrest: he could tell you...but he'd have to kill you.
17:34 UtahDave he he. I wish!   I got rid of my rental car and used Lyft the whole time.  It was awesome
17:34 forrest I don't care THAT much
17:34 forrest Gareth, ^
17:34 forrest UtahDave, ahh yea lyft is pretty great
17:34 UtahDave It was a great assignment, too. good devs.
17:35 * herlo prefers Uber...
17:35 herlo UtahDave: where were you?
17:35 UtahDave Baltimore.
17:35 forrest UtahDave, nice
17:35 herlo Ahh, love that city. Spent many a night near there.
17:35 UtahDave I can't get Uber to work for me. Everytime the uber app says it's sending me a text to verify my account, the text never arrives.
17:35 UtahDave Lyft has worked pretty great.
17:35 herlo UtahDave: huh
17:35 herlo Odd.
17:36 forrest I'm still refusing to use either of them until their app doesn't require ALL the permissions
17:36 Ryan_Lane UtahDave: well, lyft does use salt ;)
17:36 UtahDave Yeah, it's weird
17:36 herlo UtahDave: catch an Orioles game?
17:36 Gareth UtahDave has been blacklisted by Uber.
17:36 forrest no, you guys seriously don't need access to my micrphone, pictures, personal contact information, and all accounts on the phone.
17:36 UtahDave Ryan_Lane: Yes, and EVERY time I mention to the driver that I have a friend who runs Lyft.  :)
17:36 jpl1079 joined #salt
17:36 forrest haha
17:36 herlo UtahDave: well, there's that.
17:37 UtahDave herlo: I was going to catch an Orioles game, but I got kinda sick the evening I had available.
17:37 herlo UtahDave: oh, you missed out. Camden yards is awesome.
17:37 herlo UtahDave: next time, my friend.
17:37 UtahDave herlo: Yes, definitely.
17:40 tligda joined #salt
17:42 herlo UtahDave: in file.managed, is context the selinux context?
17:43 UtahDave herlo: no. it's basically a dictionary of variables for jinja
17:43 herlo ugh. So no selinux for files?
17:44 herlo I see the 'module' has it, but not in states?
17:45 ekristen joined #salt
17:46 masterkorp UtahDave: https://github.com/saltstack/salt/issues/14714
17:46 masterkorp any input welcome
17:47 tyson__ joined #salt
17:47 Ryan_Lane I just posted something the community may find interesting ;) http://ryandlane.com/blog/2014/08/04/moving-away-from-puppet-saltstack-or-ansible/
17:47 to_json joined #salt
17:49 ajprog_laptop1 joined #salt
17:51 ckao joined #salt
17:51 mpanetta Are there any known issues with mine in 2014.1.7?
17:54 sashka_ua joined #salt
17:54 johngrasty Hey. I've got an issue with mysql module not loading on salt 2014.1.7 and .10 on SmartOS.
17:57 patrek joined #salt
17:59 KFDM left #salt
17:59 UtahDave Ryan_Lane: :)  That was a VERY interesting write up!  Thanks!
18:00 Ryan_Lane yw
18:00 Ryan_Lane the performance section is super sweet
18:00 Ryan_Lane I can't post my states for other people to test with, unfortunately
18:00 Ryan_Lane but it's really easy to reproducr
18:00 UtahDave yeah.  :)  I love hearing real world results
18:00 Ryan_Lane *reproduce
18:04 johngrasty I have installed the dependencies and checked them with a python script, but I can get salt to load the mysql module. Any good way to debug this?
18:09 mapu joined #salt
18:12 poogles joined #salt
18:14 druonysus joined #salt
18:14 druonysus joined #salt
18:15 saurabhs joined #salt
18:16 alanpearce joined #salt
18:17 UtahDave johngrasty: ssh into a minion.  Stop the salt-minion service.  then start up the minion like this:     sudo salt-minion -l debug
18:18 UtahDave johngrasty: you might see what's going on that way.
18:18 johngrasty I will give it a try now.
18:20 forrest Ryan_Lane, Where's the TLDR Ryan? This is too much to read! :P
18:20 Ryan_Lane :D
18:20 Ryan_Lane forrest: the conclusion ;)
18:22 forrest Ryan_Lane, multiple sentences? I can't handle this!
18:22 koyd Ryan_Lane: wow, detailed
18:22 forrest you seriously converted 10k lines of puppet to 1k in salt?
18:22 koyd thanks, I'll save it for reading
18:22 UtahDave forrest: that's what we old timers call a "blog post"   I know, it's hard to read more than 160 chars
18:22 forrest man, thinking about it, I can see how that is possible after all the puppet I wrote a few years ago..
18:22 forrest UtahDave, pssssssssssh
18:22 forrest I have blog posts as well
18:23 UtahDave lol, just teasing.
18:23 forrest I know
18:26 Ryan_Lane forrest: I did, yeah
18:26 Ryan_Lane I converted 10k lines of puppet to 1k of salt and ansible ;)
18:27 Ryan_Lane puppet doesn't have: git, pip, virtualenv, and a number of other things
18:27 djinni` joined #salt
18:27 Ryan_Lane so they're written in shitty shitty puppet code
18:27 Ryan_Lane it adds up quick
18:27 to_json joined #salt
18:28 Ryan_Lane also, I'm not using any requisite other than listen/listen_in and watch/watch_in (if I need to execute something immediately)
18:28 forrest ahh alright
18:28 forrest Ryan_Lane, wow it still doesn't have that stuff??
18:28 Ryan_Lane when using pkg.installed and sources, why does it not update the package when I give a new url?
18:28 Ryan_Lane forrest: nope
18:28 Ryan_Lane probably never will
18:28 forrest shit man, 2+ years ago it sucked when it didn't have that, damn
18:28 Ryan_Lane I'm managing a package via an S3 url and I need to upgrade it
18:29 Ryan_Lane but it doesn't see that it's a new version
18:29 forrest Ryan_Lane, The pkg.installed only checks for whether the package is installed first
18:29 forrest Ryan_Lane, I actually created an issue for this
18:29 Ryan_Lane ah. what can I use for this?
18:29 johngrasty UtahDave: Nothing is showing up in the debug output.
18:29 forrest Ryan_Lane, https://github.com/saltstack/salt/issues/14376
18:29 Ryan_Lane fuck
18:29 forrest Ryan_Lane, https://github.com/saltstack/salt/issues/14379#issuecomment-49810577
18:30 forrest terminalmage has a workaround
18:30 UtahDave Ryan_Lane: have you tried pkg.latest?
18:30 forrest UtahDave, pkg.latest doesn't support sources
18:30 forrest UtahDave, it's an edge case we found a couple weeks ago
18:30 Ryan_Lane so, for now I need to use module.run?
18:30 forrest Ryan_Lane, yep
18:31 Ryan_Lane sigh
18:31 forrest :\
18:32 UtahDave johngrasty: if you open up a python interpreter on that minion, try importing all the modules manually that are in this try/except block:  https://github.com/saltstack/salt/blob/develop/salt/modules/mysql.py#L48
18:32 chrisjones joined #salt
18:33 Ryan_Lane well, that works for now
18:33 Ryan_Lane it adds execution time to each run, though :(
18:33 forrest Ryan_Lane, how long are you runs taking now?
18:34 Ryan_Lane 20s :'(
18:34 Ryan_Lane heh
18:34 Ryan_Lane up from 15
18:34 beneggett joined #salt
18:34 Ryan_Lane hm. some changes are happening that shouldn't be, using file.recurse
18:34 Ryan_Lane weird
18:36 dvestal joined #salt
18:36 Ryan_Lane clean: True on file.recurse seems to not be removing a file :(
18:37 Ryan_Lane oh. duh
18:37 Ryan_Lane I'm dumb
18:38 Ryan_Lane I'm managing a file in that directory elsewhere
18:38 johngrasty UtahDave: The modules import and HAS_MYSQLDB returns true on a python interpreter.
18:38 UtahDave johngrasty: can you pastebin the output when you attempt to use the mysql state or module?
18:39 johngrasty UtahDave: From the sudo salt-minion -l debug? Sure.
18:40 UtahDave johngrasty: also, pastebin what you get when you actually try to use the module.
18:40 TyrfingMjolnir joined #salt
18:40 johngrasty Sure. Just a sec.
18:40 masterkorp UtahDave: ok, i think its just missing newlines on code-blocks
18:40 masterkorp will submit PR
18:42 johngrasty UtahDave: http://pastebin.com/QE7i13F9
18:43 tligda joined #salt
18:45 UtahDave johngrasty: do you have your mysql login crendentials all set up?
18:45 UtahDave johngrasty: do you get any output from salt 'mysql*' mysql.status?
18:46 ndrei joined #salt
18:46 johngrasty I have the mysql login credentials setup in the minions config file.
18:47 johngrasty 'mysql.status' is not available.
18:50 UtahDave johngrasty: try restarting the minion service.
18:51 johngrasty Just restarted. No luck.
18:52 UtahDave johngrasty: what version of Salt are you on?  Which os?
18:52 Ryan_Lane do you have the necessary mysql libraries installed?
18:53 johngrasty I've gotten the same results on .7 and .10. SmartOS
18:53 chrisjones joined #salt
18:53 johngrasty I have installed the required libraries and I have tested them using a simple python script.
18:54 tligda joined #salt
18:54 UtahDave oh, doesn't SmartOS use an esky build?  It doesn't use the regular installed python installation.
18:55 johngrasty Ahhhhhh…It does use an esky build. So the python libraries would need to be there…right?
18:56 UtahDave johngrasty: Yeah, if you dig down in the esky source you'll see the python stuff.
18:56 babilen basepi: Thanks for elaborating on the tagging issue. Did I understand it correctly that the commits should not actually be part of any branch as they are, essentially, non-releases and that .11 will be the first "real" release that will be tagged on 2014.1 again? I was under the impression that .10 was meant to be an actual release.
18:56 UtahDave johngrasty: I've been able to drop the approprite eggs in there with the others and get them to work.
18:56 johngrasty Yep. I believe I know right where. I don't know why that didn't occur to me. :-D Thanks!
18:57 rekibnikufesin joined #salt
18:57 babilen basepi: And what is it with these "internal" releases anyway that never see the light of the day? Is that due to some policy to not rebase certain branches before you push them out to GH (as you have an internal canonical repository) ?
18:57 kermit joined #salt
18:58 babilen basepi: I mean why did you tag .8 .9 and .10 at all if the actual release was meant to be .11 ?
18:59 babilen (or rather the commit that will correspond to it)
19:00 repl1cant soooooo
19:00 repl1cant on a multi-master setup
19:00 repl1cant if one master isn't up when starting the minion, the minion should still run?
19:00 jergerber joined #salt
19:01 Ahlee_ UtahDave: still around?
19:01 forrest repl1cant, yep
19:01 repl1cant yup, the minion is getting a traceback when trying to run and it can't connect to one master
19:02 forrest repl1cant, is the service not actually starting?
19:03 forrest or is it just dumping to the log that it can't connect
19:03 forrest I THOUGHT it was supposed to, I could be wrong...
19:03 Ahlee_ in 0.17 it connects, but won't actually 'work' outside of cmd.run or very simple items
19:03 Ahlee_ as the fileserver/pillar values won't populate
19:03 UtahDave Ahlee_: hey ,man!
19:03 repl1cant http://pastebin.com/w8sLt4te
19:04 Ahlee_ UtahDave: couple months ago you mentioned making a threading improvement or similar on windows minions
19:04 repl1cant guess I need to open a bug report. Makes multimaster useless
19:04 UtahDave Ahlee_: Yeah. we got threading working a lot better.
19:04 Ahlee_ it was something along those lines - those fixes are in 2014.1.x?
19:05 Ahlee_ I just skimmed all the 2014.1.x release notes and didn't see anything specifically mentioning
19:06 Ahlee_ (most likely as i skimmed them all and didn't pay too close of attention to most)
19:09 Ahlee_ heh, the sorting on the release notes is awesome, it linkes from 2014.1.1.html to 2014.1.10.html to 2014.1.2.html
19:11 UtahDave Ahlee_: :)   Yeah, I'm pretty sure they're in 2014.1.x
19:11 TheThing joined #salt
19:12 TyrfingMjolnir joined #salt
19:14 pfallenop joined #salt
19:14 pfallenop joined #salt
19:15 Ahlee_ although in https://github.com/saltstack/salt/issues/10581, it mentions threading is disabled now
19:15 peters-tx joined #salt
19:17 basepi babilen: you still misunderstand.  i'm going to switch to direct messages, so we don't junk up this channel
19:17 martoss joined #salt
19:17 repl1cant ah, someone beat me to it
19:17 repl1cant https://github.com/saltstack/salt/issues/14099
19:18 UtahDave Ahlee_: OK, so on *nix Salt uses multiprocessing. No support for threading on *nix.  On Windows we only support threading. Hence the default  Multiprocessing: False in Windows minions configs
19:19 Ahlee_ ah-ha!
19:19 * Ahlee_ puts on his dunce cap
19:20 TyrfingMjolnir joined #salt
19:20 Ahlee_ looks like i have hte highlights from 0.17.5 to 2014.1.7, now to estimate effort
19:21 blarghmatey joined #salt
19:22 dvestal joined #salt
19:23 jpl1079 HI all, I was hoping someone could help me out with a reactor setup I'm working on… went through the documentation here - http://docs.saltstack.com/en/latest/topics/reactor/
19:24 jpl1079 but trying to avoid having to reject the key, delete the key and then restart the minion via ssh
19:24 ingwaem joined #salt
19:25 jpl1079 trying this - https://gist.github.com/jpl1079/b3c8b9171d1eb9251c6f
19:26 jpl1079 I'm using stateless hosts that reissue keys when they reboot, each time they do, the keys get rejected and I need to manually restart the minions
19:27 jpl1079 in that gist, I'm trying to delete an existing key upon salt/auth and accept new key of minion with same/existing id
19:27 jpl1079 is this possible?
19:27 pfallenop joined #salt
19:27 jpl1079 anyone done this before/
19:28 pclermont joined #salt
19:31 to_json joined #salt
19:33 ksalman trying to install a specific version of salt via bootstrap command [1;32m *  INFO[0m: PIPED THROUGH sh -- Version 2014.07.29
19:33 ksalman [1;32m *  INFO[0m: System Information:
19:33 ksalman [1;32m *  INFO[0m:   CPU:          GenuineIntel
19:33 ksalman [1;32m *  INFO[0m:   CPU Arch:     x86_64
19:33 ksalman [1;32m *  INFO[0m:   OS Name:      Linux
19:33 ksalman [1;32m *  INFO[0m:   OS Version:   3.8.0-19-generic
19:33 ksalman [1;32m *  INFO[0m:   Distribution: Ubuntu 13.04
19:33 ksalman [1;32m *  INFO[0m: Installing minion
19:33 ksalman [1;32m *  INFO[0m: Found function install_ubuntu_git_deps
19:34 ksalman [1;32m *  INFO[0m: Found function install_ubuntu_git
19:34 ksalman [1;32m *  INFO[0m: Found function install_ubuntu_git_post
19:34 ksalman [1;32m *  INFO[0m: Found function install_ubuntu_restart_daemons
19:34 mpanetta eep
19:34 ksalman [1;32m *  INFO[0m: Found function daemons_running
19:34 ksalman [1;32m *  INFO[0m: Found function install_ubuntu_check_services
19:34 ksalman [1;32m *  INFO[0m: Running install_ubuntu_git_deps()
19:34 ksalman Hit http://archive.ubuntu.com precise Release.gpg
19:34 ksalman Hit http://archive.ubuntu.com precise Release
19:34 ksalman Hit http://archive.ubuntu.com precise/main amd64 Packages
19:34 ksalman Hit http://archive.ubuntu.com precise/universe amd64 Packages
19:34 ksalman Hit http://archive.ubuntu.com precise/multiverse amd64 Packages
19:34 ksalman Hit http://archive.ubuntu.com precise/main Translation-en
19:34 ksalman Hit http://archive.ubuntu.com precise/multiverse Translation-en
19:34 UtahDave ksalman: Hey, can you use a pastebin for that, please?
19:34 ksalman Hit http://archive.ubuntu.com precise/universe Translation-en
19:34 ksalman Ign http://archive.ubuntu.com precise/main Translation-en_US
19:34 ksalman Ign http://archive.ubuntu.com precise/multiverse Translation-en_US
19:34 ksalman Ign http://archive.ubuntu.com precise/universe Translation-en_US
19:34 ksalman Reading package lists...
19:34 ksalman Reading package lists...
19:34 ksalman Building dependency tree...
19:34 ksalman Reading state information...
19:34 ksalman debian-archive-keyring is already the newest version.
19:34 ksalman 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
19:34 ksalman Hit http://archive.ubuntu.com precise Release.gpg
19:35 ksalman Hit http://archive.ubuntu.com precise Release
19:35 UtahDave left #salt
19:35 ksalman Hit http://archive.ubuntu.com precise/main amd64 Packages
19:35 ksalman Hit http://archive.ubuntu.com precise/universe amd64 Packages
19:35 ksalman Hit http://archive.ubuntu.com precise/multiverse amd64 Packages
19:35 UtahDave joined #salt
19:35 ksalman Hit http://archive.ubuntu.com precise/main Translation-en
19:35 ksalman Hit http://archive.ubuntu.com precise/multiverse Translation-en
19:35 ksalman Hit http://archive.ubuntu.com precise/universe Translation-en
19:35 ksalman Ign http://archive.ubuntu.com precise/main Translation-en_US
19:35 ksalman Ign http://archive.ubuntu.com precise/multiverse Translation-en_US
19:35 ksalman Ign http://archive.ubuntu.com precise/universe Translation-en_US
19:35 ksalman Reading package lists...
19:35 ksalman Reading package lists...
19:35 ksalman Building dependency tree...
19:35 ksalman Reading state information...
19:35 ksalman software-properties-common is already the newest version.
19:35 rekibnikufesin left #salt
19:35 ksalman 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
19:35 ksalman sh: 1642: add-apt-repository: not found
19:35 ksalman [1;31m * ERROR[0m: Failed to run install_ubuntu_git_deps()!!!
19:35 ksalman ugh..sorry for the spam
19:35 ksalman wrong window
19:35 ksalman =(
19:35 ksalman UtahDave: Sorry, I did not mean to paste this here
19:36 UtahDave ksalman: :)  It happens.
19:40 dccc_ joined #salt
19:42 jhauser joined #salt
19:42 TyrfingMjolnir joined #salt
19:43 icebourg_ joined #salt
19:44 bhosmer_ joined #salt
19:48 smcquay joined #salt
19:54 sroegner joined #salt
20:00 to_json joined #salt
20:00 beneggett joined #salt
20:01 Ryan_Lane joined #salt
20:01 beneggett joined #salt
20:05 jpl1079 so, not sure if anyone saw my question before the long post :) - more specifically, in that gist, the end of line 32, can salt data from an existing minion id be referenced in a reactor file to accept a new minion with the same id?
20:06 viq Ryan_Lane: interesting read on that article
20:07 Ryan_Lane thanks
20:07 UtahDave jpl1079: The Salt Master does cache minion grains, but I'm not sure it's available everywhere.  can you paste the link to the gist again?
20:07 jpl1079 https://gist.github.com/jpl1079/b3c8b9171d1eb9251c6f
20:10 martoss1 joined #salt
20:12 johngrasty UtahDave: Thanks for help, and reminding me that I'm not the quickest on Mondays. nahamu built me a new esky with the dependency, and it's working!
20:12 mike2512 joined #salt
20:12 UtahDave johngrasty: awesome!
20:13 mike2512 left #salt
20:13 intellix joined #salt
20:15 UtahDave jpl1079: so the exact minion ID already exists?
20:15 alanpearce joined #salt
20:16 jpl1079 UtaDave:  Yes, the hosts run completely in memory and 're-initialize' on every boot
20:16 beneggett joined #salt
20:16 nahamu johngrasty: https://github.com/saltstack/salt/pull/14721 https://github.com/saltstack/salt/pull/14722 ;)
20:16 jpl1079 I'm using a prefix of 'ip-' similar to EC2 hosts for the hostname/minion id
20:18 UtahDave jpl1079: the problem is that if a minion attempts to connect to the master and it's public key doesn't match what the master already has cached, then it will reject the minion cmpletely
20:19 UtahDave jpl1079: there's a function, in saltutil, I believe, that a minion can call to tell the master to delete the minion's key.  If your minion shutdowns are predictable, then I would do that as part of the shutdown process.
20:20 jpl1079 okay, so I was trying to preempt that behavior with the reactor system to delete the existing key since this would be a 'new' auth attempt from the host
20:20 UtahDave jpl1079: then that will make your reactor acceptance easier to deal with
20:20 UtahDave What happens when you run your current reactor?
20:20 chrisjones joined #salt
20:20 nahamu would be cool if there were a way to use some combination of salt-cloud and presigned keys to make it easy to spin up new instances that the master is already expecting to talk to...
20:21 UtahDave that's exactly what Salt-cloud does.
20:21 jpl1079 if I run the reactor in the example, except for the ssh portion to restart the minion (because I don't have this configured)...
20:22 nahamu can it prune out a key that will need replacing?
20:22 jpl1079 when I run my auth-overwrite reactor, it's not deleting the existing key, I think because I can't match the new minion id to the existing id in the sls file
20:23 vbabiy_ joined #salt
20:23 jpl1079 that's the part, I'm not sure about, whether this is even possible (end of line 32 in that gist)
20:24 UtahDave jpl1079: OK, so   salt['id'] isn't going to work.    "salt" in the jinja context is a dictionary of Salt execution modules.  (like test.ping or mysql.version)
20:26 jpl1079 UtahDave: that makes sense, any idea of how I can refer to this in the reactor file?
20:27 scooby2 joined #salt
20:29 Linuturk https://github.com/Linuturk/webpagetest/blob/master/webpagetest/windows.sls  https://github.com/Linuturk/webpagetest/tree/master/webpagetest/powershell  Anyone familar with Windows / Salt / Powershell cmd.script stuff? I've got several scripts I'm tryig to run against a windows server, and I'm just not getting anywhere.
20:29 beneggett joined #salt
20:30 Linuturk when I try to call the state against my windows server, it never returns. I've been though each script and I have run them manully
20:30 Linuturk manually*
20:30 ingwaem jpl1079: there’s an excellent tut I saw the other day by Byron Schaller…http://vbyron.com/blog/infrastructure-management-saltstack-part-3-reactor-events/
20:30 ingwaem jpl1079: shows you how to sniff the reactor to see what’s going on to then setup reactors accordingly
20:32 ingwaem Linuturk: if you’re not getting the return but they are running you may just need to change your timeout setting
20:32 ingwaem salt ‘*’ mystuff here -t someseconds
20:33 Linuturk ingwaem: these scripts are all mostly simple registry changes. they return almost immediately when I run them manually. There doesn't seem to be an apparent reason these calls should be taking that long
20:33 ingwaem how many machines are running the command in parallel?
20:34 Linuturk 1
20:34 Linuturk it's just one test box
20:34 ingwaem oh
20:34 ingwaem i’m at a loss on that then :(
20:34 UtahDave Linuturk: can you run the minion in debug mode in the cli and see what happens?
20:34 jpl1079 ingwaem:  thanks for that link!  I read that a few days ago and it helped me get to where I am now :)  I think my hurdle now is the logic of comparing the data['id'] in the event to the existing minion id in the reactor file
20:35 Linuturk not a windows guy at heart UtahDave :) Can you give me an idea on how to do that?
20:35 UtahDave Linuturk: sorry.  :)    first go to the service manager and stop  salt-minion
20:36 ndrei joined #salt
20:36 druonysuse joined #salt
20:36 druonysuse joined #salt
20:36 UtahDave Linuturk: then open a terminal by right-clicking on it and choosing "run as administrator" or equivalent   (not just by being logged in as an administrator. You have to elevate privileges)
20:36 ingwaem jpl1079: makes sense…I had to setup my data base schema slightly differnetly and had to modify a pillar script to use the id as a string search, but getting variables for machines directly from a db that way :) works nicely
20:36 UtahDave then:   cd into  c:\salt
20:36 UtahDave then   salt-minion -l debug -c c:\salt\conf
20:37 Linuturk once I get that up and running, all I need to do then is trigger the state.sls from the master?
20:38 UtahDave Linuturk: Yeah, and hopefully the output on the minion will give you an idea of what's going on
20:38 sectionme joined #salt
20:38 Linuturk cool, thanks
20:38 UtahDave Linuturk: also, make sure that none of your scripts sit there waiting for input from the user.  Salt won't ever respond to anything
20:39 jpl1079 ingwaem:  that sounds interesting, can you elaborate a little more on that? or reference some documentation?
20:39 forrest UtahDave trying to make a comeback in the total number of messages in the channel :P
20:39 UtahDave forrest: :)  can't let you be the champ forever!
20:39 forrest UtahDave, manfred is actually winning right now
20:39 UtahDave forrest: do we have a bot counting that/
20:39 UtahDave ?
20:39 forrest the bot was down for a few days when he wasn't around so he's kept his lead, haha
20:39 forrest UtahDave, http://bots.wmflabs.org/~wm-bot/dump/%23salt.htm
20:39 forrest down at the bottom
20:40 ndrei joined #salt
20:40 UtahDave nice
20:41 azylman joined #salt
20:41 forrest UtahDave, yea I believe one of Ryan_Lane's coworkers set it up
20:41 Ryan_Lane I set it up :)
20:41 ingwaem jpl1079: sure, let me see what I can dig up for you…i had to modify some sample code I was linked to and made it fit my purpose…it’s a very tiny sliver of an overall solution I’m building that uses mysql to manage a database of my machines, and I can push out data to each using the pillar system…the code I mod’d connects to the db, pulls the pillar variables and pushes it to the minions…that way I’m handling sensitiv
20:41 ingwaem data correctly and not via grains
20:41 Ryan_Lane the bot itself is run by a wikimedia volunteer on wikimedia's openstack infrastructure
20:41 forrest Ryan_Lane, oh sorry, I thought it was someone else when you were talking about the access last week, my bad.
20:42 Ryan_Lane it's a group effort ;)
20:42 Ryan_Lane the wikimedia labs admins brought it back up
20:42 UtahDave wikimedia++
20:45 ingwaem jpl1079: pull this file into your /srv/modules/pillar
20:45 ingwaem jpl1079: http://pydoc.net/Python/salt/2014.1.1/salt.pillar.mysql/
20:47 manfred forrest: you can probably take it this week, I am in atlanta with family
20:47 forrest manfred, hah, I don't really care
20:47 forrest it's just more about poking fun
20:47 ingwaem jpl1079: the ext_pillar directive goes into your master config file, and contains the query…that will then use the mysql module you load, along with the query statement
20:48 manfred :P
20:48 jpl1079 imgwaem:  hmm, okay, uncharted territory for me… let me find that in the master config
20:48 darrend joined #salt
20:50 ingwaem So UtahDave, any recommended guides to setting up salt-cloud that work? I saw some documentation but seems specific to 2014.7, so loaded that and get errors, so seems I’m kind of in limbo :)
20:50 UtahDave ingwaem: what errors are you having?  I use salt-cloud all the time.
20:50 ingwaem would love to get aws plugged in, and esxi :)
20:51 ingwaem on 2014.7, salt-cloud --list-images vsphere [ERROR   ] Failed to get the output of 'vsphere.avail_images()': Response is "text", not "text/xml"
20:51 Linuturk UtahDave: I ran it against a fresh server, and got clean output this time
20:51 Linuturk guess I mucked about too much with the old server
20:51 UtahDave ingwaem: do you get any more details if you add  -l debug to that command?
20:51 UtahDave Linuturk: great!
20:52 ingwaem yea, let me do a pastebin
20:52 ingwaem http://pastebin.com/HWG2xi6v
20:53 UtahDave does adding  -l debug  give you better info?   Can you verify that the credentials you're using are valid?
20:53 ingwaem trying
20:54 beneggett joined #salt
20:54 jpl1079 imgwaem:  I'm going to have to look into if I want to go that route.  I was trying to avoid ssh'ing into the minions to restart the daemons, but that might be easier by comparison.
20:55 jpl1079 this is just a test environment and not sure how 'deep' I want to get into this.  Thanks for that info.  Much appreciated!!!
20:55 smcquay joined #salt
20:55 ingwaem jpl1079: if you plan things correctly you can always have salt-ssh to fall back on and it will run all the same commands…including being able to restart the daemons etc
20:56 jpl1079 imgwaem:  ooh, that's another option I hadn't thought of
20:57 ingwaem then if you have mysql db with a list of servers have a cron job that uses salt’s test.ping function…if they don’t succeed after x seconds fire off a restart daemon process and send you an email
20:57 ingwaem db can keep track of number of retries etc
20:57 bhosmer_ joined #salt
20:58 ingwaem UtahDave: here’s another pastebin: http://pastebin.com/xrPTqP9A
20:58 ingwaem UtahDave: going to try test the api directly too
20:59 UtahDave cool
21:00 to_json joined #salt
21:01 Sauvin joined #salt
21:01 viq joined #salt
21:02 jpl1079 left #salt
21:03 beneggett joined #salt
21:06 kermit joined #salt
21:08 thayne joined #salt
21:12 Outlander joined #salt
21:13 herlo I hope ksalman learned about pastebins. :)
21:14 VictorLin joined #salt
21:14 ksalman >.,
21:14 ksalman >.<
21:15 herlo :D
21:16 * herlo notes he's trying to do the following in a file, but he's getting a literal result '{{ grains['ipv4'][1] }}      {{ grains['fqdn'] }} {{ grains['host'] }}'. Anyone want to explain why?
21:17 forrest herlo, you didn't mark the file as template: jinja in your state
21:17 herlo forrest: nope, because I'm dumb.
21:17 * herlo goes and does that now. :)
21:17 forrest herlo, why do you think I knew? Because I've done it a bunch before!
21:17 herlo lol
21:18 herlo forrest: I was just assuming it was implied.
21:18 forrest hah
21:18 herlo it really should be.
21:18 forrest well, it might be confusing, what if your file uses {{ }}
21:18 herlo not that difficult to look and see no templating. If it's jinja, that's the default. Otherwise, you must supply it. :)
21:19 forrest heh
21:19 herlo no file does that, ever! :D
21:19 herlo fine, I give up.
21:19 UtahDave herlo: there's a performance jump by not parsing files that don't need templating. especially large files and binaries
21:20 armonge joined #salt
21:21 tligda joined #salt
21:21 herlo UtahDave: heh. I'm just lazy.
21:21 herlo UtahDave: I'll make due for your lack of performance. :)
21:24 Ahlee_ But, I won't
21:24 Ahlee_ :)
21:25 scalability-junk joined #salt
21:25 dstokes anyone tried using the scheduler to periodically ensure the proper salt version on minions?
21:26 herlo Ahlee_: lol
21:28 bezeee joined #salt
21:30 beneggett joined #salt
21:34 gothix_ joined #salt
21:35 gothix_ joined #salt
21:45 alanpearce joined #salt
21:51 herlo forrest: so I just disabled firewalld for now. Probably get back to it late this week or next. :)
21:52 forrest heh
21:54 jalbretsen joined #salt
22:01 ekristen anyone ever seen docker ps -a not return anything, even though you’ve run docker run and you see ports bound too?
22:01 ekristen oh now its returning, hrm, that is weird
22:01 ekristen sorry wrong channel too, doh!
22:03 KaaK joined #salt
22:09 herlo ekristen: yes
22:09 herlo I've seen that, but yes it's a #docker question. haha
22:16 delinquentme joined #salt
22:18 kodekrash joined #salt
22:20 jhauser joined #salt
22:21 Luke joined #salt
22:25 naquad joined #salt
22:25 naquad hi
22:25 naquad i've just opened the http://www.saltstack.com/ and i don't see there a big red text stating does salt require setup on target host or not. so does it?
22:26 nkuttler naquad: it does
22:26 naquad thanks
22:26 naquad left #salt
22:26 nkuttler though there is now some ssh bootstrap thing...
22:26 nkuttler and so much for that..
22:26 forrest nkuttler, you're thinking of salt-ssh
22:26 nkuttler forrest: yeah, never used it
22:26 forrest which doesn't require setup
22:26 forrest nkuttler, yea I've played with it, but since it doesn't have full functionality, meh.
22:27 kodekrash left #salt
22:27 naquad joined #salt
22:28 nkuttler naquad: usually you have a salt-minion running on the minion, but there is salt-ssh which uploads + runs the minion, or something like that
22:28 nkuttler and yes, you can certainly run salt without a "remote" server..
22:28 naquad nkuttler, i don't want any extra processes on target host at all. if it runs any kind of daemon on target host then it doesn't fit my case
22:29 naquad currently got ansible, but Salts DSL from what i've read looks much more interesting
22:29 herlo naquad: DSL?
22:30 naquad Domain Specific Language
22:30 herlo naquad: yes, I know what a DSL is, I would just say that salt really doesn't have one.
22:30 forrest herlo, http://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.pydsl.html
22:30 herlo unless you consider yaml to be it...
22:30 herlo forrest: right. I know what a DSL is :)
22:30 herlo the point I was making is that there are many.
22:30 forrest yea
22:30 herlo so that's a nicety
22:30 herlo yaml being one, but Salt didn't create that one. :)
22:31 nkuttler naquad: i'm not sure how salt-ssh works, never used it. it might just stop the minion after using it
22:31 forrest salt-ssh is still young, so some stuff doesn't work correctly with it, but it operates fully over ssh and doesn't require a daemon process.
22:31 herlo other than ssh :)
22:31 forrest right
22:31 forrest but ansible already requires that
22:31 nkuttler but it doesn't just send raw commands, does it?
22:32 chrisjones joined #salt
22:32 naquad http://docs.saltstack.com/en/latest/topics/ssh/#raw-shell-calls: The Salt SSH system does not supercede the standard Salt communication systems, it simply offers an SSH based alternative that does not require ZeroMQ and a remote agent. Be aware that since all communication with Salt SSH is executed via SSH it is substantially slower than standard Salt with ZeroMQ.
22:32 naquad so basically = still needs a minion
22:32 Ryan_Lane it copies across an entire copy of salt
22:32 herlo nkuttler: I believe you still have to have salt-minion
22:32 forrest naquad, for more advanced stuff in salt yes
22:32 Ryan_Lane and the states and stuff to run
22:33 herlo damn, I was too slow.
22:33 forrest Ryan_Lane, right
22:33 herlo naquad: it must be installed, not running
22:33 Ryan_Lane then it executes the states from via the salt
22:33 UtahDave salt-ssh doesn't run a minion process on the remote server
22:33 forrest herlo, no you don't need the salt-minion installed for salt-ssh.
22:33 Ryan_Lane it could be a way you bootstrap your minion/master setup, though
22:34 herlo oh, yuck
22:34 forrest *shrug* when you don't want to use a daemon your options are limited :P
22:34 UtahDave salt-ssh does push over a stripped down minified version of Salt, but it doesn't run a minion process and doesn't really install Salt.
22:34 Ryan_Lane object storage
22:34 herlo forrest: one way would be to translate the commands into shell. LOL.
22:34 Ryan_Lane and cloud-init ;)
22:35 forrest Ryan_Lane, heh
22:35 * herlo thinks this conversation may have degraded.
22:37 aquinas joined #salt
22:40 redondos- joined #salt
22:43 bhosmer joined #salt
22:45 naquad thanks for info, very appreciated. from what i've just read it looks like i should better stay with ansible at least until salt-ssh is production ready
22:46 mosen joined #salt
22:46 forrest naquad, yea that might be a better plan for now. You could always try out salt-ssh as well to see if you can port over what you have in ansible.
22:47 UtahDave I think you'd be surprised how much you can indeed do with salt-ssh at this point.
22:47 forrest Yea agreed
22:49 gothix_ joined #salt
22:51 tyson_ joined #salt
22:53 azylman joined #salt
23:05 tyson_ joined #salt
23:12 andrej joined #salt
23:13 andrej How can I match {{host}} in a jinja template against a regex?  I have a branch in a template that I only want to be true for 2 of our 70 minions ...
23:14 andrej I could write an if with an or statement, but that doesn't look elegant :)
23:21 tyson_ joined #salt
23:21 Singularo joined #salt
23:28 DaveQB joined #salt
23:31 tyson_ joined #salt
23:32 tyson_ joined #salt
23:34 codekobe_ For GitFS, when defining gitfs_root, does that root apply to all gitfs_remotes that are defined?
23:36 chrisjones joined #salt
23:38 tyson_ joined #salt
23:38 KaaK can i salt-call a state file? I've got a state that I really only ever want to manually run from the master
23:39 forrest KaaK, yea, salt <target> state.sls <state_name>
23:39 KaaK forrest, can I target the master in that way?
23:40 forrest KaaK, is the master a minion?
23:40 KaaK forrest, nope -- just a master. Is it common/uncommon to run a minion on the master also?
23:41 KaaK basically, I've got a state who's pillar data is pretty sensitive. It really only makes sense to keep in on the master.
23:42 KaaK it's got all my root mysql passwords so I can easily setup database schemas and users
23:44 forrest KaaK, most people run the master as a minion as well
23:45 forrest KaaK, yea I think most people have something like that.
23:47 alanpearce joined #salt
23:50 andrej We do :) ... running software udates against the master in a different way than all the other machines seems weird ;)
23:53 forrest andrej, yea
23:53 masterkorp https://github.com/saltstack/salt/pull/14727
23:53 masterkorp yay, my first PR to salt
23:54 forrest masterkorp, sweet!
23:54 masterkorp just 2 missing lines but it counts :p
23:54 forrest yea
23:54 masterkorp the documentation build failed without ut
23:54 masterkorp s/ut/them
23:54 forrest masterkorp, should have done a blame!
23:54 masterkorp now bed
23:55 forrest masterkorp, if you want more stuff like that to work on, you're more than welcome to help me with https://github.com/saltstack/salt/issues/13729 :P
23:56 masterkorp heh, now bed ;p
23:57 mosen cool
23:57 rekibnikufesin joined #salt

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