Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-06-19

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

All times shown according to UTC.

Time Nick Message
00:00 Joseph forrest: yep...i want to first validate that i am setting up the bridge networking correctly THEN see how salts trying to do it and THEN from there figure out what gap if any exists in the functionality/documentation
00:00 forrest Joseph, gotcha
00:00 Joseph cross my t's and dot my i's
00:01 forrest ifnull, any luck with 3 cores?
00:01 ifnull forrest: so it worked the first time and i got all exicited. i did a couple more tests and it resulted in the same issue
00:02 forrest damn
00:02 kuyaedz joined #salt
00:02 forrest that would have been really great if it was just a core count :P
00:03 Shenril joined #salt
00:03 kuyaedz joined #salt
00:03 ifnull no kidding
00:03 ifnull would be an easy fix
00:04 forrest yea
00:04 ajolo joined #salt
00:07 steveoliver joehh: thanks.  yep an apt-get install salt-* did it
00:09 joehh good to hear
00:09 acabrera joined #salt
00:10 __number5__ Anyone has a good salt-master sls/config template/skeleton I can use?
00:12 rallytime joined #salt
00:12 forrest __number5__, in regards to what sort of configuration?
00:12 ifnull __number5__: have you looked at https://github.com/saltstack-formulas
00:12 Joseph __number5__: what forrest said
00:12 forrest like you want to spin another master from a master?
00:13 Joseph jeje
00:14 __number5__ Joseph: just a normal master, have been using masterless minions for a while, try to figure out what's the best way to organize the states/config on master
00:15 forrest __number5__, the directory structure is basically identical to the minion in regards to where actual files live
00:15 forrest it's still /srv/salt/blah
00:15 Joseph __number5__: http://docs.saltstack.com/en/latest/topics/best_practices.html
00:16 __number5__ so I specified the master only states using same minion targeting way?
00:16 forrest now that I look at that I should probably create a new section for top files...
00:16 vejdmn joined #salt
00:16 forrest __number5__, come again?
00:17 __number5__ I mean where should I put the states only for master, like overstates/etc.
00:19 forrest http://docs.saltstack.com/en/latest/topics/tutorials/states_pt5.html#the-overstate-sls
00:19 jslatts joined #salt
00:19 dsolsona joined #salt
00:21 manfred or orchestrate
00:21 manfred http://docs.saltstack.com/en/latest/topics/tutorials/states_pt5.html#the-orchestrate-runner
00:21 vejdmn joined #salt
00:22 thayne joined #salt
00:22 tristianc|Mobile joined #salt
00:22 __number5__ so if I'm using orchestrate runner, the sls should be in /srv/salt/orchestration?
00:24 manfred it is just in /srv/salt
00:24 manfred and you reference it just like salt \* state.sls whatever.something
00:24 to_json joined #salt
00:25 manfred you would just be doing salt-run state.orch whatever.something
00:25 manfred instead of salt-run state.over base /srv/overstate/whatever
00:25 manfred i have started moving to orchestrate
00:25 manfred but I haven't finished yet
00:26 manfred i am hoping, since it uses the regular file_roots, that I can put my orchestration state in gitfs and it will work, but I haven't tried yet
00:26 manfred been doing tons of other things
00:27 to_json1 joined #salt
00:30 to_json joined #salt
00:36 kuyaedz joined #salt
00:37 diegows joined #salt
00:37 elfixit joined #salt
00:38 kuyaedz joined #salt
00:47 rogst joined #salt
00:49 mnaser left #salt
00:50 sag47 joined #salt
00:51 terminalmage left #salt
00:51 terminalmage joined #salt
00:51 fllr joined #salt
00:51 sag47 I would like to run salt on a single machine in a master-slave configuration.  Eventually salt will be used to configure containers.  What is the best method to go about this?  Preferably I'd like to have salt configure the master so that I can blow away the OS and install it again without much hassle.
00:52 sag47 Can a master be a minion?
00:52 forrest yes a master can be a minion
00:52 sag47 At the same time.
00:52 analogbyte joined #salt
00:52 sag47 Cool :)
00:52 sag47 I'm first going to configure salt in a VM and basically replicate services I have on my home network.
00:53 sag47 Then I'd like to install salt on my main machine by blowing away the OS to install a new one and use salt to streamline the transition.
00:53 kuyaedz joined #salt
00:53 shaggy_surfer joined #salt
00:54 sag47 I guess I'll ask more questions as I encounter the need.  Going to be reading docs first.
01:07 shaggy_surfer joined #salt
01:08 ajolo joined #salt
01:12 chutzpah it appears the change to "allow schedules to work on multimaster" breaks the minion in some setups
01:14 rogst joined #salt
01:18 rojem joined #salt
01:19 __number5__ manfred: thanks :)
01:25 yomilk joined #salt
01:27 yomilk joined #salt
01:28 fllr joined #salt
01:28 lionel joined #salt
01:32 kuyaedz joined #salt
01:37 rojem joined #salt
01:39 to_json1 joined #salt
01:42 blarghmatey joined #salt
01:45 mgw joined #salt
01:45 kuyaedz joined #salt
01:49 diegows joined #salt
01:49 Networkn3rd joined #salt
01:54 googolhash joined #salt
01:54 bhosmer joined #salt
01:59 lionel joined #salt
02:02 mgw joined #salt
02:08 googolhash joined #salt
02:09 oz_akan_ joined #salt
02:10 mgw joined #salt
02:10 lionel joined #salt
02:12 mateoconfeugo joined #salt
02:30 mafrosis joined #salt
02:31 taterbase joined #salt
02:32 mafrosis manfred: I’ve just been looking at #13032; nice work
02:33 mihait joined #salt
02:38 ajolo_ joined #salt
02:44 lionel joined #salt
02:47 oz_akan__ joined #salt
02:52 kuyaedz joined #salt
02:56 DaveQB joined #salt
03:01 possibilities joined #salt
03:02 kuyaedz joined #salt
03:05 ipalreadytaken joined #salt
03:12 manfred mafrosis: thanks :)
03:12 mafrosis :)
03:15 catpigger joined #salt
03:24 mgw joined #salt
03:25 anuvrat joined #salt
03:30 mgw joined #salt
03:36 rjc joined #salt
03:37 ajolo__ joined #salt
03:38 possibilities joined #salt
03:38 kuyaedz joined #salt
03:39 ipalreadytaken joined #salt
03:39 rjc joined #salt
03:54 TyrfingMjolnir joined #salt
03:56 possibilities joined #salt
04:01 simonmcc joined #salt
04:02 frozenice joined #salt
04:02 aw110f joined #salt
04:02 kwmiebach joined #salt
04:02 munhitsu_ joined #salt
04:02 scalability-junk joined #salt
04:03 octarine joined #salt
04:04 mihait joined #salt
04:04 gamingrobot joined #salt
04:04 thunderbolt joined #salt
04:04 rcsheets joined #salt
04:05 rallytime joined #salt
04:05 abele joined #salt
04:05 JordanTesting joined #salt
04:07 mprymek joined #salt
04:07 ndrei joined #salt
04:07 gldnspud joined #salt
04:16 mateoconfeugo joined #salt
04:16 aw110f joined #salt
04:19 aw110f_ joined #salt
04:22 ndrei joined #salt
04:31 UtahDave joined #salt
04:33 ndrei joined #salt
04:38 fllr joined #salt
04:40 mafrosis joined #salt
04:41 mafrosis has anyone else been seeing dumps of iptables —help since upgrading to 2014.1.5 ?
04:41 mafrosis [INFO    ] Executing command 'iptables --help' in directory '/home/ubuntu'
04:42 mosen joined #salt
04:44 swa_work joined #salt
04:44 whiteinge yeah, i believe it's been fixed in develop. there will *likely* be a 2014.1.6
04:47 mafrosis lol whiteinge.. I thought I was losing the plot with all that output mangled into the output from salt-call
04:48 mafrosis thanks for the confirmation
04:48 whiteinge heh
04:48 whiteinge np
04:50 tristianc|Phone joined #salt
04:52 bhosmer joined #salt
04:54 possibilities joined #salt
04:58 scarcry joined #salt
05:00 mikber joined #salt
05:09 malinoff joined #salt
05:10 TheThing joined #salt
05:11 TyrfingMjolnir joined #salt
05:11 ajolo joined #salt
05:17 schimmy joined #salt
05:18 ndrei joined #salt
05:18 jnials joined #salt
05:20 jalbretsen joined #salt
05:21 schimmy1 joined #salt
05:26 harkx joined #salt
05:41 yomilk joined #salt
05:46 tristianc|Mobile joined #salt
05:47 ndrei joined #salt
05:49 jnials joined #salt
05:57 rawzone joined #salt
05:57 harkx joined #salt
06:01 skul joined #salt
06:01 felskrone joined #salt
06:03 skul joined #salt
06:04 skul joined #salt
06:04 ndrei joined #salt
06:05 skul joined #salt
06:06 skul joined #salt
06:07 ramteid joined #salt
06:08 hhutensils joined #salt
06:08 skul joined #salt
06:09 jdmf joined #salt
06:11 skul joined #salt
06:12 skul joined #salt
06:14 skul joined #salt
06:16 greyhatpython joined #salt
06:17 m1crofarmer joined #salt
06:17 hhutensils Hi everybody, I have a python client api problem that i just can't lick. Could someone help me out?
06:20 oz_akan_ joined #salt
06:22 malinoff hhutensils, ask your question, don't ask to ask
06:23 jnials joined #salt
06:23 hhutensils Whoops, sorry. I'm trying to pass a variable taken from list_keys() into localclient.cmd() as the tgt parameter, but it's not working for me. I've tried to provide a succient explanation here: http://pastebin.com/SCz03eXG
06:23 nebuchadnezzar joined #salt
06:25 hhutensils It seems to work fine when I hardcode the key, but if I use a variable (Which seems to contain the correct value from my testing), it doesn't work.
06:26 fllr joined #salt
06:27 tristianc|Phone joined #salt
06:28 fllr joined #salt
06:28 malinoff hhutensils, can you add print(str(keyvar == salt_build_key)), print(str('xxxxxx' == salt_build_key)) lines right after the for loop?
06:28 malinoff what will they output?
06:29 picker joined #salt
06:29 hhutensils Sure thing, it'll just take me a minute
06:32 slav0nic joined #salt
06:32 skul joined #salt
06:32 tristianc|Mobile joined #salt
06:33 hhutensils False and then True
06:34 malinoff lol
06:34 malinoff what about print(str(keyvar == 'xxxxxx')) ?
06:34 skul joined #salt
06:34 hhutensils Whoops, one sec. I'm upper()ing the key in the conditional in the actual script, but I forgot to add it to your statements.
06:35 skul joined #salt
06:35 oz_akan_ joined #salt
06:36 skul joined #salt
06:37 n8n joined #salt
06:37 hhutensils For reference, here is the actual function. I just wanted to provide a more streamlined use case when asking for help :) http://pastebin.com/4pF0CtT7
06:37 hhutensils Yea, they both show true now
06:38 thayne joined #salt
06:38 hhutensils oh....I think I found the problem....
06:38 malinoff hhutensils, you are not a python programmer, right? :)
06:39 hhutensils Nope
06:39 skul joined #salt
06:39 hhutensils I'm not a programmer at all, I'm a network engineer haha
06:39 malinoff So what is the problem?
06:40 seventy3_away joined #salt
06:40 hhutensils I'm not running upper when using the key value to accept the key, or store the value of the key in self.firewall.salt_build_key
06:40 malinoff Right, just wanted to say that you should check that upper/lower stuff
06:40 skul joined #salt
06:41 hhutensils very embarrasing :P
06:41 joehh whiteinge: any idea of the timing of a .6?
06:41 skul joined #salt
06:41 joehh is it likely to be "very soon" or "in some time"?
06:41 bhosmer joined #salt
06:42 hhutensils thanks for the help, malinoff.  I guess that programmers rubber duck thing is totally true :)
06:43 malinoff hhutensils, it always works :)
06:43 skul joined #salt
06:45 aw110f joined #salt
06:45 fllr joined #salt
06:46 rogst joined #salt
06:49 _fllr_ joined #salt
06:52 UtahDave left #salt
06:53 fllr joined #salt
06:55 aw110f is salt fully functional with python 2.6.6 ?
06:56 aw110f from http://docs.saltstack.com/en/latest/topics/development/hacking.html
06:57 aw110f running pip install -e ./salt   # the path to the salt git clone from above
06:57 malinoff aw110f, it should be
06:57 aw110f from distutils.command.check import check
06:57 aw110f ImportError: No module named check
06:59 joehh aw110f: it runs happily on debian squeeze which runs 2.6.6
06:59 aw110f i'm on centos 6.5
07:01 __number5__ I think someone found docker module has some issue with 2.6.x
07:03 malinoff though I can't find information about distutils.command.check for 2.6.6 in the docs
07:03 skul joined #salt
07:04 Sypher Hmm what's up with all those iptables --help calls in the new stable salt-minion...
07:04 skul joined #salt
07:05 kossy joined #salt
07:07 skul joined #salt
07:07 dpac|away joined #salt
07:07 georgemarshall joined #salt
07:07 kossy joined #salt
07:11 hhutensils malinoff, it still wasn't working after i ripped out all the upper and lower stuff, so I added a 30 second sleep after accepting the key, and bam. it started working :D
07:17 oz_akan_ joined #salt
07:21 jamesog_ joined #salt
07:21 hotbox_ joined #salt
07:22 jpaetzel_ joined #salt
07:22 skul joined #salt
07:24 sgate1_ joined #salt
07:24 baffle_ joined #salt
07:24 drogoh_ joined #salt
07:24 errr_ joined #salt
07:25 nkuttler_ joined #salt
07:25 djanos_ joined #salt
07:25 skul joined #salt
07:25 imil_ joined #salt
07:26 alanpearce joined #salt
07:28 aw110f_ joined #salt
07:28 benturner joined #salt
07:28 intr1nsic joined #salt
07:29 yomilk joined #salt
07:29 programmerq joined #salt
07:30 JordanTesting joined #salt
07:30 abele joined #salt
07:30 jdmf joined #salt
07:30 cofeineSunshine joined #salt
07:30 cofeineSunshine joined #salt
07:31 Yoda-BZH joined #salt
07:31 Yoda-BZH joined #salt
07:32 mgw joined #salt
07:37 linjan joined #salt
07:38 Katafalkas joined #salt
07:47 chiui joined #salt
07:48 bhosmer joined #salt
07:50 fllr joined #salt
07:56 iMil joined #salt
07:59 bmcorser joined #salt
08:00 bmcorser can i use cmd.run's user kwarg from the command line
08:00 bmcorser like: salt \* cmd.run user=coolguy 'ls -la|grep coolness'
08:03 mosen kwargs are usually last, but im just learning, dont shoot me
08:08 darkelda joined #salt
08:08 darkelda joined #salt
08:08 darkelda joined #salt
08:09 stoffell joined #salt
08:09 wangxh joined #salt
08:10 MrTango joined #salt
08:12 jhauser joined #salt
08:16 alanpearce joined #salt
08:16 kristofhardy joined #salt
08:17 timc3 joined #salt
08:18 oz_akan_ joined #salt
08:21 fllr joined #salt
08:22 fllr joined #salt
08:25 timc3 joined #salt
08:26 malinoff hhutensils, wat
08:26 lionel joined #salt
08:27 malinoff bmcorser, yes, you can - salt \* cmd.run 'ls -la | grep coolness' user=coolguy
08:27 malinoff with a more verbose syntax - salt \* cmd.run name='ls -la | grep coolness' user=coolguy
08:39 N-Mi joined #salt
08:42 ndrei joined #salt
08:50 fllr joined #salt
08:52 superted joined #salt
08:54 lionel joined #salt
08:57 antonw joined #salt
09:03 analogbyte joined #salt
09:05 ipalreadytaken joined #salt
09:05 hhutensils @malinoff, yea I got it all working now, I think I wasn't waiting for the key to be properlly accepted, because it wasn't returning an error, just no data.
09:10 hhutensils joined #salt
09:12 dRiN joined #salt
09:12 darkelda joined #salt
09:17 TheThing joined #salt
09:19 oz_akan_ joined #salt
09:20 xintron I have only two servers running but what to start managing them with salt. Should I use one as master or should I run my own local computer as a salt-master?
09:20 oz_akan__ joined #salt
09:21 xintron Or run them masterless?
09:23 Katafalkas joined #salt
09:23 _ale_ xintron: i'd say run one master, other slave
09:24 _ale_ but dont exclude your master from getting the app / stuff the other node does :)
09:24 _ale_ s/slave/minion/
09:27 millz0r joined #salt
09:31 mateoconfeugo joined #salt
09:42 googolhash joined #salt
09:50 fllr joined #salt
09:51 giantlock joined #salt
09:53 malinoff hhenkel, do you mean, key.accept returns even if the minion was not accepted yet?
09:54 malinoff xintron, it is better to use a dedicate server to have salt-master installed on it. You can use a virtual machine on your local computer for that purpose, which will help you to migrate when you will have more than 2 machines
09:55 linjan joined #salt
09:56 xintron malinoff, You mean creating a salt-master as a virtual machine (for now) until I have the servers up and running properly?
09:56 xintron (also play around with salt on a second virtual machine using the first one as the master)
09:56 malinoff xintron, until you have thousands of minions
09:57 malinoff you will have to move your master to a more fat host
09:57 xintron Makes sense. Vagrant, time to go to work! :)
09:58 malinoff Dunno why people like Vagrant, really :)
09:59 malinoff Plain VirtualBox is easy as pie
09:59 hhutensils malinoff, Yeap, seems that way. I did a test with a key I knew was incorrect with the same script and it spat out an error. So it wasn't just my messy string manipulation.
09:59 malinoff with original, proven images for almost all linux-based OSes
09:59 malinoff hhutensils, amazing
09:59 malinoff hhutensils, I think i should investigate in how accept works
10:01 xintron malinoff, If you're still going to use virtualbox, why not use the great benefits of vagrant? :)
10:01 malinoff xintron, because there is no a central repository with proven images
10:02 malinoff I'm too afraid to use an image from dropbox
10:02 malinoff or aws s3
10:03 malinoff Well, for me there are a lot of strange decisions and ideas within Vagrant, but the problem above is the most important for me
10:03 vbabiy joined #salt
10:04 malinoff hhutensils, I can't be sure, but it seems that salt tries to move an agent key from one directory (pending) to another (accepted), and after that it tries to find the agent in 'accepted' directory
10:05 malinoff But there may be a race condition, when salt tries to find the agent which key was not moved yet
10:05 malinoff I think you should create an issue for that
10:07 malinoff (I don't know how shutil.move works, maybe it returns only when the move action was ended, so it is not an issue)
10:11 yomilk joined #salt
10:15 dsolsona joined #salt
10:18 bhosmer joined #salt
10:21 hhutensils Oh yeap, I see it in key.py. I'll submit an issue on github.
10:22 dsolsona joined #salt
10:23 hhutensils I'm not sure I understand where the problem is though. shutil.move() eventually gets down to a read(), write(), break while loop before rming the source file.
10:25 Fa1lure ok, I started execution of a job like so : "salt "screen*" state.highstate", one of the cmd.run steps in the statefile doesn't exit, so the minions hang indefinitely
10:26 Fa1lure 1. how do I terminate the job? 2. how do I prevent the cmd.run from waiting for the command to finish?
10:26 Fa1lure usage fail here, the cmd I run should obviously be a daemon with an initscript, but I wanted to research this anyway
10:26 malinoff Fa1lure, http://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.kill_job
10:27 Fa1lure malinoff: thanks! that answers 1 very nicely
10:28 hhutensils joined #salt
10:28 malinoff Fa1lure, for the second one, cmd.run should be running with timeout - so it must end once
10:28 malinoff Don't know your specifics
10:28 Fa1lure ok
10:29 Fa1lure thanks again
10:30 malinoff Fa1lure, np :)
10:40 chiui joined #salt
10:46 CeBe1 joined #salt
10:50 fllr joined #salt
10:54 vejdmn joined #salt
10:59 bezaban joined #salt
11:05 ipalreadytaken joined #salt
11:05 bezaban joined #salt
11:08 lionel joined #salt
11:21 elfixit joined #salt
11:22 oz_akan_ joined #salt
11:26 altmeta joined #salt
11:27 alanpearce joined #salt
11:32 masterkorp hello
11:33 blarghmatey joined #salt
11:35 masterkorp How do i detect if a variable contains a dictionary with jinja ?
11:36 malinoff masterkorp, do you mean, if variable is a dictionary?
11:36 masterkorp like i set on pillar data
11:36 masterkorp var:
11:36 masterkorp -item1
11:36 ronc joined #salt
11:36 ronc hey
11:36 masterkorp -item2: value
11:37 ronc is there a way to ensure that an sls is included only once? i have two sls that both depend on a 3rd
11:37 ronc if they both include it, i get conflicting ids
11:37 masterkorp malinoff: and i would like to check inside a template if pillar["var"] is a dictonary that i can iterate trough
11:38 malinoff masterkorp, http://stackoverflow.com/questions/16675716/check-variable-type-inside-jinja2-in-flask
11:38 masterkorp thank you fine sir, i own you a beer
11:40 malinoff masterkorp, okay, once I'll go to Germany :)
11:45 masterkorp heh, i am portuguese, my server is in germenay
11:45 masterkorp :p
11:46 malinoff even funnier :)
11:46 masterkorp but german beer is nice :p
11:48 malinoff Sadly, it wasn't possible to taste
11:48 malinoff In Russia, we drink vodka, not a german beer :D
11:48 masterkorp heh
11:48 logix812 joined #salt
11:50 pressureman joined #salt
11:50 fllr joined #salt
11:52 oz_akan_ joined #salt
11:52 bhosmer joined #salt
11:58 jas-_ joined #salt
12:07 happytux_ joined #salt
12:07 bhosmer_ joined #salt
12:16 jcsp joined #salt
12:20 CeBe1 joined #salt
12:20 bhosmer_ joined #salt
12:21 alanpearce joined #salt
12:24 alanpear_ joined #salt
12:26 rojem joined #salt
12:38 TyrfingMjolnir joined #salt
12:40 younqcass joined #salt
12:43 seventy3_away joined #salt
12:49 troyready joined #salt
12:49 alanpearce joined #salt
12:50 jacksoncage joined #salt
12:50 fllr joined #salt
12:50 MZAWeb_ joined #salt
12:50 happytux joined #salt
12:52 xmj in soviet germany, beer drinks you
12:53 lionel joined #salt
12:53 HeadAIX joined #salt
12:55 bhosmer joined #salt
12:56 kuyaedz joined #salt
12:58 ggoZ joined #salt
12:59 HeadAIX joined #salt
12:59 ggoZ joined #salt
13:00 oz_akan_ joined #salt
13:01 rojem joined #salt
13:01 eofs joined #salt
13:02 eofs a quick questin: is't possible to create custom grain which runs in own virtualenv?
13:03 bhosmer_ joined #salt
13:06 ipalreadytaken joined #salt
13:06 kuyaedz joined #salt
13:09 moos3 anyone know why you can't have a baseurl and a mirrorlist with pkgrepo ?
13:16 toastedpenguin joined #salt
13:19 racooper joined #salt
13:20 miqui joined #salt
13:20 ggoZ joined #salt
13:21 rojem joined #salt
13:25 rojem joined #salt
13:27 picker joined #salt
13:27 jcsp1 joined #salt
13:31 rojem joined #salt
13:31 to_json joined #salt
13:34 viq moos3: I don't think you can have baseurl _and_ mirrorlist with you
13:34 viq with yum
13:34 moos3 you can in the repo file
13:39 blarghmatey joined #salt
13:40 jcsp joined #salt
13:43 kermit joined #salt
13:45 jergerber joined #salt
13:46 anotherZero joined #salt
13:46 anotherZero joined #salt
13:47 rojem joined #salt
13:50 packeteer joined #salt
13:50 fllr joined #salt
13:52 jcsp1 joined #salt
13:52 anteaya joined #salt
13:56 arthurlutz joined #salt
13:58 manfred you can't
13:58 manfred right you can in the repo file
13:58 manfred but not in a state
13:59 manfred moos3: https://github.com/saltstack/salt/blob/develop/salt/modules/yumpkg.py#L1536
13:59 manfred that is the line that will fail that
14:01 rojem joined #salt
14:01 moos3 is there a reason for that ?
14:02 moos3 because yum will failover to a mirror list if the specified basurl isn't available
14:02 rojem joined #salt
14:03 manfred you will hhttps://github.com/saltstack/salt/commit/80ed5fab51862055421e30216d0b0043e8776cf4
14:03 mgw joined #salt
14:03 manfred terminalmage: ^^
14:06 xerxas joined #salt
14:07 jY maybe i'm looking over it.. but how in a state file tell iptables to use a ipset?
14:12 jnials joined #salt
14:15 acabrera joined #salt
14:18 anotherZero joined #salt
14:20 jcsp joined #salt
14:21 tedski i'm having trouble groking the idea of 'lookup' in 'pillar.get foo:lookup'
14:22 pdayton joined #salt
14:23 tedski the way i understand that is that foo should have a lookup key
14:24 tedski however, in formulas, when you see the merge happen on a lookup dir, the pillar.example doesn't show a lookup key
14:24 timoguin not all of them have one, but some do
14:24 timoguin https://github.com/saltstack-formulas/django-formula/blob/master/pillar.example
14:25 tedski so, in this case: https://github.com/saltstack-formulas/apache-formula/blob/master/pillar.example
14:25 tedski nothing would ever get merged because https://github.com/saltstack-formulas/apache-formula/blob/master/apache/map.jinja#L38
14:25 tedski correct?
14:26 tedski i just want to make sure that not using lookup is okay if my pillar.example doesn't use it
14:27 tedski by okay, i mean according to formula developing guidelines
14:27 housl joined #salt
14:27 Doqnach joined #salt
14:29 jcsp joined #salt
14:29 Katafalkas joined #salt
14:30 mgw joined #salt
14:31 CheKoLyN joined #salt
14:32 timoguin tedski: that's correct. with that example pillar nothing would get merged
14:32 MZAWeb_ joined #salt
14:32 tedski thanks
14:32 babilen tedski: You should, IMHO, be able to override the values in the lookup table by defining them in your pillar.
14:33 babilen tedski: I mean you should rarely have to, but that doesn't mean that the option shouldn't be present.
14:34 tedski babilen: why not just the root pillar... i.e. apache: in that example
14:34 tedski i guess my question is really around the specific use of the word "lookup"
14:35 babilen tedski: Well, I treat the things in "map.jinja" as values that shouldn't be changed normally and like to make that distinction in the pillar organisation
14:35 tedski for example, https://github.com/tedski/sysstat-formula/blob/pillar_config/sysstat/map.jinja
14:35 aquinas_ joined #salt
14:35 babilen tedski: "lookup table" is where it stems from
14:35 tedski and https://github.com/tedski/sysstat-formula/blob/pillar_config/pillar.example
14:36 stevednd is there any way to pass a single value through to all statefiles when using the orchestration runner?
14:36 tedski babilen: would you say my implementation doesn't meet the way you treat things?
14:36 Networkn3rd joined #salt
14:36 jnials joined #salt
14:36 mateoconfeugo joined #salt
14:36 babilen tedski: Yes, that is just a way to define default values. It's a debatable style in that sysstat formula, but perfectly valid at that
14:37 jslatts joined #salt
14:37 tedski babilen: sorry to beat the dead horse, but if you were about to submit a pull req on the sysstat formula, would you change it to use a lookup dict?
14:38 babilen tedski: The way I write formulas is that I define distribution specific (and rarely changing) settings in map.jinja. This comprises package and service names and such things. Those can be overridden by setting the "lookup: foo ..." stuff in your pillar, but you should rarely have to do that
14:38 timoguin i would use the lookup dict, as that's becoming pretty standard
14:38 londo joined #salt
14:39 tedski babilen: i see... so really, what i'm putting in the map.jinja there should be only in pillar and maybe in the jinja template defaults
14:39 tedski babilen: since they're the defaults that ship with the packaged file
14:39 tedski babilen: or am i still missing it? hehe
14:39 * tedski sips coffee
14:39 speed145a joined #salt
14:40 rallytime joined #salt
14:40 babilen tedski: Then there is the whole debate about where to define defaults for the things the user wants to frequently set in their pillar. You can either do those inline in the SLS files by using salt['pillar.get']('foo:bar', DEFAULT) ... or set those in the map.jinja too and then refer to *that* in salt['pillar.get']('foo:bar', defaultmap.foobar) (or so)
14:41 tedski okay, since it's clear as mud, i'll submit as is since pillar config support is better than no config support for now
14:41 babilen tedski: It's a matter of style .. There are some formulas that use a specific "lookup_config" macro (something like that, can't find it now) that essentially does the lookup and falls back to defaults defined in the map.jinja
14:41 babilen tedski: I would still *strongly* recommend to stick to the lookup convention and set "shouldn't have to touch this" things in there (package, service names, ...)
14:42 derito joined #salt
14:42 tedski which, in this case aren't even needed
14:43 tedski babilen: right on, will do
14:44 Katafalkas joined #salt
14:44 jcsp joined #salt
14:45 derito Sorry if it sounds stupid, but I can't seem to find the answer. Do you know the length of the key used by Salt for AES encryption?
14:45 babilen tedski: I mean that's somewhat my understanding of the "best practice", but I see that approach frequently enough to be convinced that there is some merit to it (I also find it nice to use)
14:46 babilen tedski: And for most things I just define the default values in the actual SLS/configuration files and not in map.jinja
14:46 babilen But that is maybe not such a splendid idea
14:47 fllr joined #salt
14:49 thayne joined #salt
14:50 jcsp1 joined #salt
14:50 timoguin I think map.jinja give you a nice overview of all the default values at a glance
14:51 speed145a joined #salt
14:51 timoguin vs. actually looking through templated files and states
14:51 tedski babilen: more like this: https://github.com/tedski/sysstat-formula/compare/pillar_config  ?
14:52 jaimed joined #salt
14:53 CeBe joined #salt
14:53 quickdry21 joined #salt
14:53 jalbretsen joined #salt
14:54 schmutz joined #salt
14:57 speed145a joined #salt
14:58 tedski timoguin, babilen: so, any issues with putting two pillar merges in the map.jinja? one for distro specific bits and one for default config bits?
15:00 timoguin I can't think of a problem with that.
15:00 tedski i just haven't seen it in any other formulas
15:00 tedski heh
15:02 analogbyte joined #salt
15:04 tedski okay.. https://github.com/saltstack-formulas/sysstat-formula/pull/4
15:04 smcquay joined #salt
15:06 Teknix joined #salt
15:07 conan_the_destro joined #salt
15:07 layer3switch joined #salt
15:07 ipalreadytaken joined #salt
15:07 racooper given a pillar of https://gist.github.com/racooper/28d584ed5e01ea8c0598 : if a minion has both 'webserver' and 'servmon' roles assigned, which would take precedence?
15:08 ipmb joined #salt
15:08 mgw joined #salt
15:11 schmutz_ joined #salt
15:14 joehillen joined #salt
15:15 aquinas_ joined #salt
15:18 CeBe joined #salt
15:19 Gareth morning
15:20 mateoconfeugo joined #salt
15:20 ajolo joined #salt
15:21 zemm joined #salt
15:23 CeBe joined #salt
15:27 tristianc joined #salt
15:28 rawzone joined #salt
15:29 Whissi joined #salt
15:30 zz_cro joined #salt
15:31 n8n joined #salt
15:38 cro joined #salt
15:39 rawzone joined #salt
15:42 kermit joined #salt
15:46 rojem joined #salt
15:46 schristensen joined #salt
15:50 rojem joined #salt
15:50 aquinas_ joined #salt
15:50 CeBe joined #salt
15:53 tligda joined #salt
15:57 travisfischer joined #salt
15:57 chiui joined #salt
15:58 bemehow joined #salt
15:58 md5noodle joined #salt
15:58 bemehow_ joined #salt
15:59 CeBe1 joined #salt
16:01 zz_cro joined #salt
16:02 harkx joined #salt
16:03 _ale_1 joined #salt
16:06 CeBe joined #salt
16:08 CeBe1 joined #salt
16:09 layer3switch joined #salt
16:14 CeBe joined #salt
16:14 yomilk joined #salt
16:16 CeBe1 joined #salt
16:16 KyleG joined #salt
16:16 KyleG joined #salt
16:18 CeBe joined #salt
16:18 moos3 how can have a dev vs prod pillar ?
16:21 redondos joined #salt
16:22 redondos joined #salt
16:22 ajolo joined #salt
16:24 CeBe1 joined #salt
16:26 CeBe joined #salt
16:26 Theo-SLC joined #salt
16:27 Theo-SLC joined #salt
16:27 Theo-SLC left #salt
16:28 bhosmer_ joined #salt
16:29 thayne joined #salt
16:36 gldnspud racooper: probably neither, and you’d want something like this instead: https://gist.github.com/gldnspud/aa64b8547ab8b211c376
16:37 gldnspud this is assuming grains['roles'] is a list, and not just a string
16:37 alanpearce joined #salt
16:38 racooper hrm. ok. I found a differnt approach but it's not working either, and I think you just gave me the answer for that one too
16:41 babilen tedski: That seems to be a perfectly viable solution (the multiple merges in map.jinja and explicit/separate maps therein)
16:44 tedski babilen: right on
16:44 forrest joined #salt
16:46 ajolo joined #salt
16:48 jimklo joined #salt
16:50 shaggy_surfer joined #salt
16:50 taterbase joined #salt
16:51 ajolo joined #salt
16:52 mgw joined #salt
16:52 davet joined #salt
16:54 chrisjones joined #salt
16:55 jcsp joined #salt
16:58 ajolo joined #salt
16:59 patarr are there any docs out there on how to design your salt infrastructure to be HA and redundant?
16:59 repl1cant patarr: there is a decent one for running multiple masters
16:59 patarr If I create two machines with the same "salt" hostname, will the minions send their keys to both?
17:00 repl1cant http://bencane.com/2014/02/04/saltstack-getting-redundancy-and-scalability-with-multiple-master-servers/
17:00 patarr repl1cant: perfect! Thank you very much
17:00 repl1cant You would configure the minions to point to two seperate masters
17:00 repl1cant that's what I do
17:01 lz-dylan hey guys! anyone familiar with states.archive?
17:01 repl1cant share the same master key between both and then i'm storage the minion keys via glusterfs
17:01 repl1cant er, i'm *storing*
17:02 lz-dylan I'm trying to do an archive.extracted, and when the target directory doesn't exist, salt complains that it doesn't exist -- and when the target directory *does* exist, salt returns success with the comment that the directory already existed, and I'm left with an empty directory.
17:05 patarr repl1cant: it seems like you can just NFS or GlusterFS the /etc/salt and /srv/salt directories and you should be good right?
17:05 repl1cant yup. cept you don'
17:05 repl1cant t want to share you master key
17:05 repl1cant keep that local on each master
17:05 patarr the guide you sent me says you should have the same master key
17:06 repl1cant right, but don't share it via nfs
17:06 repl1cant copy it to each master
17:06 patarr im curious why
17:06 repl1cant so i share "minions minions_pre minions_rejected"
17:06 repl1cant and /srv
17:07 repl1cant security best practices really
17:07 repl1cant not a 'technical' reason
17:07 patarr is NFS cleartext?
17:07 ajolo_ joined #salt
17:08 ipalreadytaken joined #salt
17:08 troyready joined #salt
17:08 schimmy joined #salt
17:09 repl1cant it's not encrypted, no
17:10 schimmy1 joined #salt
17:11 jY maybe i'm looking over it.. but how in a state file tell iptables to use a ipset?
17:15 Ryan_Lane joined #salt
17:15 aw110f joined #salt
17:21 layer3switch joined #salt
17:22 shaggy_surfer joined #salt
17:25 kballou joined #salt
17:25 JeroenH_ joined #salt
17:26 jpcw joined #salt
17:27 ifnull joined #salt
17:29 harkx joined #salt
17:30 CeBe joined #salt
17:31 travisfischer joined #salt
17:35 thedodd joined #salt
17:36 danielbachhuber joined #salt
17:38 alanpearce joined #salt
17:40 rojem joined #salt
17:46 layer3switch joined #salt
17:47 scalability-junk joined #salt
17:50 wincus joined #salt
17:50 oz_akan_ joined #salt
17:51 perfectsine_ joined #salt
17:51 druonysus joined #salt
17:53 perfectsine joined #salt
17:53 jimklo joined #salt
17:55 ausmarton joined #salt
18:04 mgw1 joined #salt
18:10 kossy joined #salt
18:10 picker joined #salt
18:10 n8n joined #salt
18:10 bhosmer joined #salt
18:10 doddstack joined #salt
18:10 xDamox joined #salt
18:10 ausmarton joined #salt
18:10 jimklo joined #salt
18:10 perfectsine joined #salt
18:10 druonysus joined #salt
18:10 oz_akan_ joined #salt
18:10 wincus joined #salt
18:10 scalability-junk joined #salt
18:10 rojem joined #salt
18:10 danielbachhuber joined #salt
18:10 travisfischer joined #salt
18:10 CeBe joined #salt
18:10 ifnull joined #salt
18:10 jpcw joined #salt
18:10 JeroenH_ joined #salt
18:10 kballou joined #salt
18:10 aw110f joined #salt
18:10 Ryan_Lane joined #salt
18:10 schimmy1 joined #salt
18:10 troyready joined #salt
18:10 chrisjones joined #salt
18:10 taterbase joined #salt
18:10 forrest joined #salt
18:10 KyleG joined #salt
18:10 _ale_1 joined #salt
18:10 cro joined #salt
18:10 bemehow_ joined #salt
18:10 chiui joined #salt
18:10 aquinas_ joined #salt
18:10 kermit joined #salt
18:10 rawzone joined #salt
18:10 Whissi joined #salt
18:10 tristianc joined #salt
18:10 zemm joined #salt
18:10 mateoconfeugo joined #salt
18:10 schmutz_ joined #salt
18:10 ipmb joined #salt
18:10 conan_the_destro joined #salt
18:10 Teknix joined #salt
18:10 smcquay joined #salt
18:10 analogbyte joined #salt
18:10 jalbretsen joined #salt
18:10 quickdry21 joined #salt
18:10 jaimed joined #salt
18:10 Katafalkas joined #salt
18:10 rallytime joined #salt
18:10 londo joined #salt
18:10 jslatts joined #salt
18:10 MZAWeb_ joined #salt
18:10 CheKoLyN joined #salt
18:10 pdayton joined #salt
18:10 xerxas joined #salt
18:10 anteaya joined #salt
18:10 packeteer joined #salt
18:10 to_json joined #salt
18:10 miqui joined #salt
18:10 racooper joined #salt
18:10 toastedpenguin joined #salt
18:10 eofs joined #salt
18:10 lionel joined #salt
18:10 younqcass joined #salt
18:10 jas-_ joined #salt
18:10 logix812 joined #salt
18:10 altmeta joined #salt
18:10 bezaban joined #salt
18:10 vbabiy joined #salt
18:10 linjan joined #salt
18:10 giantlock joined #salt
18:10 TheThing joined #salt
18:10 N-Mi joined #salt
18:10 Yoda-BZH joined #salt
18:10 cofeineSunshine joined #salt
18:10 abele joined #salt
18:10 JordanTesting joined #salt
18:10 programmerq joined #salt
18:10 intr1nsic joined #salt
18:10 iMil joined #salt
18:10 skul joined #salt
18:10 errr_ joined #salt
18:10 drogoh joined #salt
18:10 baffle_ joined #salt
18:10 sgate1_ joined #salt
18:10 jpaetzel joined #salt
18:10 hotbox_ joined #salt
18:10 jamesog_ joined #salt
18:10 georgemarshall joined #salt
18:10 dpac|away joined #salt
18:10 tristianc|Mobile joined #salt
18:10 nebuchadnezzar joined #salt
18:10 felskrone joined #salt
18:10 mikber joined #salt
18:10 scarcry joined #salt
18:10 gldnspud joined #salt
18:10 rcsheets joined #salt
18:10 thunderbolt joined #salt
18:10 gamingrobot joined #salt
18:10 mihait joined #salt
18:10 octarine joined #salt
18:10 frozenice joined #salt
18:10 rjc joined #salt
18:10 catpigger joined #salt
18:10 terminalmage joined #salt
18:10 sag47 joined #salt
18:10 AdamSewell joined #salt
18:10 APLU joined #salt
18:10 huleboer joined #salt
18:10 nicksloan joined #salt
18:10 Bosch[] joined #salt
18:10 xzarth_ joined #salt
18:10 brandon_ joined #salt
18:10 yetAnotherZero joined #salt
18:10 __alex joined #salt
18:10 shel3over joined #salt
18:10 Aletheuo joined #salt
18:10 maxskew joined #salt
18:10 vnico joined #salt
18:10 ajprog_laptop joined #salt
18:10 scott_w joined #salt
18:10 jmccree joined #salt
18:10 jesusaurus joined #salt
18:10 ecdhe joined #salt
18:10 vandemar joined #salt
18:10 marcinkuzminski joined #salt
18:10 techdragon joined #salt
18:10 Holliee joined #salt
18:10 Fa1lure joined #salt
18:10 marnom joined #salt
18:10 jab416171 joined #salt
18:10 vu joined #salt
18:10 pmcg joined #salt
18:10 t0rrant joined #salt
18:10 ilako joined #salt
18:10 wigit joined #salt
18:10 yidhra joined #salt
18:10 sroegner joined #salt
18:10 dcolish joined #salt
18:10 workingcats joined #salt
18:10 rigor789 joined #salt
18:10 ksalman joined #salt
18:10 garthk joined #salt
18:10 mephx joined #salt
18:10 dimeshake joined #salt
18:10 aberdine joined #salt
18:10 tonthon joined #salt
18:10 dccc joined #salt
18:10 bejer joined #salt
18:10 ldlework joined #salt
18:10 mackstick joined #salt
18:10 ahale joined #salt
18:10 vexati0n joined #salt
18:10 kedo39 joined #salt
18:10 Flusher joined #salt
18:10 mr_chris joined #salt
18:10 rglen joined #salt
18:10 robinsmidsrod joined #salt
18:10 Heartsbane joined #salt
18:10 Dattas joined #salt
18:10 Bandikoto joined #salt
18:10 cstrutton joined #salt
18:10 canci joined #salt
18:10 bigl0af joined #salt
18:10 joshbaptiste joined #salt
18:10 austin987 joined #salt
18:10 dwfreed joined #salt
18:10 ninkotech joined #salt
18:10 eightyeight joined #salt
18:10 lz-dylan joined #salt
18:10 andabata joined #salt
18:10 rnts joined #salt
18:10 bdf_ joined #salt
18:10 Valdo joined #salt
18:10 blast_hardcheese joined #salt
18:10 utahcon joined #salt
18:10 rofl____ joined #salt
18:10 bitmand joined #salt
18:10 TamCore joined #salt
18:10 dean joined #salt
18:10 mortis joined #salt
18:10 Damoun joined #salt
18:10 djaykay joined #salt
18:10 mattikus joined #salt
18:10 rhand joined #salt
18:10 nlb joined #salt
18:10 seb` joined #salt
18:10 cyrusdavid joined #salt
18:10 Twiglet joined #salt
18:10 vlcn joined #salt
18:10 eclectic joined #salt
18:10 fejjerai joined #salt
18:10 logandg joined #salt
18:10 ThomasJ|d joined #salt
18:10 EntropyWorks joined #salt
18:10 [M7] joined #salt
18:10 akoumjian joined #salt
18:10 oc joined #salt
18:10 honestly joined #salt
18:10 supplicant joined #salt
18:10 Ixan joined #salt
18:10 kevinbrolly joined #salt
18:10 Corey joined #salt
18:10 Heggan joined #salt
18:10 svx joined #salt
18:10 ikanobori joined #salt
18:10 Shish joined #salt
18:10 fivethreeo joined #salt
18:10 mschiff joined #salt
18:10 jgelens joined #salt
18:10 tempspace joined #salt
18:10 majoh joined #salt
18:10 ph8 joined #salt
18:10 ede joined #salt
18:10 txmoose joined #salt
18:10 dh joined #salt
18:10 bretep joined #salt
18:10 jakubek joined #salt
18:10 MaZ- joined #salt
18:10 sindreij joined #salt
18:10 mikkn joined #salt
18:10 twoflowers joined #salt
18:10 hhenkel joined #salt
18:10 Hipikat joined #salt
18:10 kamal_ joined #salt
18:10 mfournier joined #salt
18:10 twiedenbein joined #salt
18:10 peno joined #salt
18:10 lahwran joined #salt
18:10 n0arch joined #salt
18:10 lynxman joined #salt
18:10 mrchrisadams joined #salt
18:10 trevorj joined #salt
18:10 DenkBrettl joined #salt
18:10 jeblair joined #salt
18:10 aarontc joined #salt
18:10 jerrcs joined #salt
18:10 cruatta joined #salt
18:10 arnoldB joined #salt
18:10 crashmag joined #salt
18:10 godber joined #salt
18:10 whyzgeek joined #salt
18:10 TaiSHi joined #salt
18:10 jperras joined #salt
18:10 andredieb joined #salt
18:10 andrej joined #salt
18:10 JPaul joined #salt
18:10 dstanek_zzz joined #salt
18:10 yano joined #salt
18:10 mpoole joined #salt
18:10 crane joined #salt
18:10 Spark joined #salt
18:10 freelock joined #salt
18:10 juice joined #salt
18:10 Xiao_ joined #salt
18:10 eculver_ joined #salt
18:10 toddnni_ joined #salt
18:10 LordOfLA joined #salt
18:10 Daviey joined #salt
18:10 antix joined #salt
18:10 svs joined #salt
18:10 nahamu joined #salt
18:10 sashka_ua joined #salt
18:10 robawt joined #salt
18:10 micko joined #salt
18:10 ange joined #salt
18:10 esogas joined #salt
18:10 MK_FG joined #salt
18:10 sdebot joined #salt
18:10 babilen joined #salt
18:10 sulky joined #salt
18:10 keekz joined #salt
18:10 v0rtex joined #salt
18:10 sifusam joined #salt
18:10 devx joined #salt
18:10 cheus joined #salt
18:10 al joined #salt
18:10 kuffs joined #salt
18:10 ksk joined #salt
18:10 hvn joined #salt
18:10 rockey joined #salt
18:10 dotplus joined #salt
18:10 oeuftete joined #salt
18:10 Ahlee joined #salt
18:10 cwright joined #salt
18:10 darrend joined #salt
18:10 maber joined #salt
18:10 oncallsucks joined #salt
18:10 tru_tru joined #salt
18:10 amontalban joined #salt
18:10 st0newa11 joined #salt
18:10 jcockhren joined #salt
18:10 Schmidt joined #salt
18:10 fxhp joined #salt
18:10 totte joined #salt
18:10 xt joined #salt
18:10 dstokes joined #salt
18:10 Ssquidly joined #salt
18:10 snoozer joined #salt
18:10 mgarfias joined #salt
18:10 arapaho joined #salt
18:10 ashb joined #salt
18:10 jjasinski joined #salt
18:10 lyddonb_ joined #salt
18:10 Ymage_ joined #salt
18:10 mortis__ joined #salt
18:10 the_lalelu joined #salt
18:10 jcristau joined #salt
18:10 wm-bot4 joined #salt
18:10 Dinde joined #salt
18:10 cwyse joined #salt
18:10 btorch joined #salt
18:10 uzomg joined #salt
18:10 rmnuvg joined #salt
18:10 brewmaster joined #salt
18:10 artificialexit joined #salt
18:10 lude joined #salt
18:10 zekoZeko joined #salt
18:10 masterkorp joined #salt
18:10 timoguin joined #salt
18:10 individuwill joined #salt
18:10 steveoliver joined #salt
18:10 drags joined #salt
18:10 nadley joined #salt
18:10 rpotucek joined #salt
18:10 hoodow joined #salt
18:10 hopthrisC joined #salt
18:10 xintron joined #salt
18:10 z3uS joined #salt
18:10 sverrest joined #salt
18:10 Sacro joined #salt
18:10 Nazzy_ joined #salt
18:10 cb joined #salt
18:10 jbub joined #salt
18:10 davidone joined #salt
18:10 debian112 joined #salt
18:10 alekibango joined #salt
18:10 eliasp joined #salt
18:10 mattmtl joined #salt
18:10 ghartz joined #salt
18:10 Jarus joined #salt
18:10 bensons_ joined #salt
18:10 erjohnso joined #salt
18:10 \ask joined #salt
18:10 monokrome joined #salt
18:10 dmz joined #salt
18:10 nickg joined #salt
18:10 kula joined #salt
18:10 ampex joined #salt
18:10 InAnimaTe joined #salt
18:10 mirko joined #salt
18:10 agronholm joined #salt
18:10 Chrisje joined #salt
18:10 pfallenop joined #salt
18:10 zirpu joined #salt
18:10 keyvan joined #salt
18:10 hardwire joined #salt
18:10 stotch joined #salt
18:10 melinath joined #salt
18:10 moos3 joined #salt
18:10 viq joined #salt
18:10 bernieke joined #salt
18:10 xmj joined #salt
18:10 ifur joined #salt
18:10 jeddi joined #salt
18:10 lazybear joined #salt
18:10 pviktori joined #salt
18:10 PI-Lloyd joined #salt
18:10 rlarkin joined #salt
18:10 joehh joined #salt
18:10 gmoro joined #salt
18:10 izibi joined #salt
18:10 twobitsprite joined #salt
18:10 Voziv joined #salt
18:10 platforms joined #salt
18:10 jacksontj joined #salt
18:10 sygibson__ joined #salt
18:10 cedwards joined #salt
18:10 funzo joined #salt
18:10 MindDrive joined #salt
18:10 bfwg joined #salt
18:10 geekmush joined #salt
18:10 crazysim joined #salt
18:10 borgstrom joined #salt
18:10 xinkeT joined #salt
18:10 kiorky joined #salt
18:10 stevednd joined #salt
18:10 toddejohnson joined #salt
18:10 UForgotten joined #salt
18:10 berto- joined #salt
18:10 [vaelen] joined #salt
18:10 chuffpdx_ joined #salt
18:10 xenoxaos joined #salt
18:10 madduck joined #salt
18:10 Kelsar joined #salt
18:10 Eugene joined #salt
18:10 copelco joined #salt
18:10 jY joined #salt
18:10 NV joined #salt
18:10 djinni` joined #salt
18:10 kaictl joined #salt
18:10 nliadm joined #salt
18:10 codekoala joined #salt
18:10 Jahkeup joined #salt
18:10 CaptTofu joined #salt
18:10 chutzpah joined #salt
18:10 agh joined #salt
18:10 Sypher joined #salt
18:10 neilf_ joined #salt
18:10 _blackjid joined #salt
18:10 rawtaz joined #salt
18:10 whitepaws joined #salt
18:10 etw joined #salt
18:10 AlcariTheMad joined #salt
18:10 delkins joined #salt
18:10 hillna_ joined #salt
18:10 Sway joined #salt
18:10 tmmt joined #salt
18:10 emostar joined #salt
18:10 ze- joined #salt
18:10 balltongu_ joined #salt
18:10 mariusv joined #salt
18:10 shano joined #salt
18:10 manfred joined #salt
18:11 cheus Assuming my minion is not configured masterless, is there any scenario where a salt-call state.highstate should produce a different result from salt minion_id state.highstate ?
18:12 cheus Getting some really weird behavior during state compilation
18:13 londo_ joined #salt
18:14 nkuttler_ joined #salt
18:16 Doqnach joined #salt
18:16 nkuttler joined #salt
18:16 londo_ joined #salt
18:16 kossy joined #salt
18:16 n8n joined #salt
18:16 bhosmer joined #salt
18:16 doddstack joined #salt
18:16 xDamox joined #salt
18:16 ausmarton joined #salt
18:16 jimklo joined #salt
18:16 perfectsine joined #salt
18:16 druonysus joined #salt
18:16 oz_akan_ joined #salt
18:16 scalability-junk joined #salt
18:16 danielbachhuber joined #salt
18:16 travisfischer joined #salt
18:16 CeBe joined #salt
18:16 ifnull joined #salt
18:16 jpcw joined #salt
18:16 JeroenH_ joined #salt
18:16 kballou joined #salt
18:16 aw110f joined #salt
18:16 Ryan_Lane joined #salt
18:16 schimmy1 joined #salt
18:16 troyready joined #salt
18:16 chrisjones joined #salt
18:16 taterbase joined #salt
18:16 forrest joined #salt
18:16 KyleG joined #salt
18:16 _ale_1 joined #salt
18:16 cro joined #salt
18:16 bemehow_ joined #salt
18:16 chiui joined #salt
18:16 aquinas_ joined #salt
18:16 kermit joined #salt
18:16 rawzone joined #salt
18:16 Whissi joined #salt
18:16 tristianc joined #salt
18:16 zemm joined #salt
18:16 mateoconfeugo joined #salt
18:16 schmutz_ joined #salt
18:16 ipmb joined #salt
18:16 conan_the_destro joined #salt
18:16 Teknix joined #salt
18:16 smcquay joined #salt
18:16 analogbyte joined #salt
18:16 jalbretsen joined #salt
18:16 quickdry21 joined #salt
18:16 jaimed joined #salt
18:16 Katafalkas joined #salt
18:16 rallytime joined #salt
18:16 londo joined #salt
18:16 jslatts joined #salt
18:16 MZAWeb_ joined #salt
18:16 CheKoLyN joined #salt
18:16 pdayton joined #salt
18:16 xerxas joined #salt
18:16 anteaya joined #salt
18:16 packeteer joined #salt
18:16 to_json joined #salt
18:16 miqui joined #salt
18:16 racooper joined #salt
18:16 toastedpenguin joined #salt
18:16 eofs joined #salt
18:16 lionel joined #salt
18:16 younqcass joined #salt
18:16 jas-_ joined #salt
18:16 logix812 joined #salt
18:16 altmeta joined #salt
18:16 bezaban joined #salt
18:16 vbabiy joined #salt
18:16 linjan joined #salt
18:16 giantlock joined #salt
18:16 TheThing joined #salt
18:16 N-Mi joined #salt
18:16 Yoda-BZH joined #salt
18:16 cofeineSunshine joined #salt
18:16 abele joined #salt
18:16 JordanTesting joined #salt
18:16 programmerq joined #salt
18:16 intr1nsic joined #salt
18:16 iMil joined #salt
18:16 skul joined #salt
18:16 errr_ joined #salt
18:16 drogoh joined #salt
18:16 baffle_ joined #salt
18:16 sgate1_ joined #salt
18:16 jpaetzel joined #salt
18:16 hotbox_ joined #salt
18:16 jamesog_ joined #salt
18:16 georgemarshall joined #salt
18:16 dpac|away joined #salt
18:16 tristianc|Mobile joined #salt
18:16 nebuchadnezzar joined #salt
18:16 felskrone joined #salt
18:16 mikber joined #salt
18:16 scarcry joined #salt
18:16 gldnspud joined #salt
18:16 rcsheets joined #salt
18:16 thunderbolt joined #salt
18:16 gamingrobot joined #salt
18:16 mihait joined #salt
18:16 octarine joined #salt
18:16 frozenice joined #salt
18:16 rjc joined #salt
18:16 catpigger joined #salt
18:16 terminalmage joined #salt
18:16 sag47 joined #salt
18:16 AdamSewell joined #salt
18:16 APLU joined #salt
18:16 huleboer joined #salt
18:16 nicksloan joined #salt
18:16 Bosch[] joined #salt
18:16 xzarth_ joined #salt
18:16 brandon_ joined #salt
18:16 yetAnotherZero joined #salt
18:16 __alex joined #salt
18:16 shel3over joined #salt
18:16 Aletheuo joined #salt
18:16 maxskew joined #salt
18:16 vnico joined #salt
18:16 ajprog_laptop joined #salt
18:16 scott_w joined #salt
18:16 jmccree joined #salt
18:16 jesusaurus joined #salt
18:16 ecdhe joined #salt
18:16 vandemar joined #salt
18:16 marcinkuzminski joined #salt
18:16 techdragon joined #salt
18:16 Holliee joined #salt
18:16 Fa1lure joined #salt
18:16 marnom joined #salt
18:16 jab416171 joined #salt
18:16 vu joined #salt
18:16 pmcg joined #salt
18:16 t0rrant joined #salt
18:16 ilako joined #salt
18:16 wigit joined #salt
18:16 yidhra joined #salt
18:16 sroegner joined #salt
18:16 dcolish joined #salt
18:16 workingcats joined #salt
18:16 rigor789 joined #salt
18:16 ksalman joined #salt
18:16 garthk joined #salt
18:16 mephx joined #salt
18:16 dimeshake joined #salt
18:16 aberdine joined #salt
18:16 tonthon joined #salt
18:16 dccc joined #salt
18:16 bejer joined #salt
18:16 ldlework joined #salt
18:16 mackstick joined #salt
18:16 ahale joined #salt
18:16 vexati0n joined #salt
18:16 kedo39 joined #salt
18:16 Flusher joined #salt
18:16 mr_chris joined #salt
18:16 rglen joined #salt
18:16 robinsmidsrod joined #salt
18:16 Heartsbane joined #salt
18:16 Dattas joined #salt
18:16 Bandikoto joined #salt
18:16 cstrutton joined #salt
18:16 canci joined #salt
18:16 bigl0af joined #salt
18:16 joshbaptiste joined #salt
18:16 austin987 joined #salt
18:16 dwfreed joined #salt
18:16 ninkotech joined #salt
18:16 eightyeight joined #salt
18:16 lz-dylan joined #salt
18:16 andabata joined #salt
18:16 rnts joined #salt
18:16 bdf_ joined #salt
18:16 Valdo joined #salt
18:16 blast_hardcheese joined #salt
18:16 utahcon joined #salt
18:16 rofl____ joined #salt
18:16 bitmand joined #salt
18:16 TamCore joined #salt
18:16 dean joined #salt
18:16 mortis joined #salt
18:16 Damoun joined #salt
18:16 djaykay joined #salt
18:16 mattikus joined #salt
18:16 rhand joined #salt
18:16 nlb joined #salt
18:16 seb` joined #salt
18:16 cyrusdavid joined #salt
18:16 Twiglet joined #salt
18:16 vlcn joined #salt
18:16 eclectic joined #salt
18:16 fejjerai joined #salt
18:16 logandg joined #salt
18:16 ThomasJ|d joined #salt
18:16 EntropyWorks joined #salt
18:16 [M7] joined #salt
18:16 akoumjian joined #salt
18:16 oc joined #salt
18:16 honestly joined #salt
18:16 supplicant joined #salt
18:16 Ixan joined #salt
18:16 kevinbrolly joined #salt
18:16 Corey joined #salt
18:16 Heggan joined #salt
18:16 svx joined #salt
18:16 ikanobori joined #salt
18:16 Shish joined #salt
18:16 fivethreeo joined #salt
18:16 mschiff joined #salt
18:16 jgelens joined #salt
18:16 tempspace joined #salt
18:16 majoh joined #salt
18:16 ph8 joined #salt
18:16 ede joined #salt
18:16 txmoose joined #salt
18:16 dh joined #salt
18:16 bretep joined #salt
18:16 jakubek joined #salt
18:16 MaZ- joined #salt
18:16 sindreij joined #salt
18:16 mikkn joined #salt
18:16 twoflowers joined #salt
18:16 hhenkel joined #salt
18:16 Hipikat joined #salt
18:16 kamal_ joined #salt
18:16 mfournier joined #salt
18:16 twiedenbein joined #salt
18:16 peno joined #salt
18:16 lahwran joined #salt
18:16 n0arch joined #salt
18:16 lynxman joined #salt
18:16 mrchrisadams joined #salt
18:16 trevorj joined #salt
18:16 DenkBrettl joined #salt
18:16 jeblair joined #salt
18:16 aarontc joined #salt
18:16 jerrcs joined #salt
18:16 cruatta joined #salt
18:16 arnoldB joined #salt
18:16 crashmag joined #salt
18:16 godber joined #salt
18:16 whyzgeek joined #salt
18:16 TaiSHi joined #salt
18:16 jperras joined #salt
18:16 andredieb joined #salt
18:16 andrej joined #salt
18:16 JPaul joined #salt
18:16 dstanek_zzz joined #salt
18:16 yano joined #salt
18:16 mpoole joined #salt
18:16 crane joined #salt
18:16 Spark joined #salt
18:16 freelock joined #salt
18:16 juice joined #salt
18:16 Xiao_ joined #salt
18:16 eculver_ joined #salt
18:16 toddnni_ joined #salt
18:16 LordOfLA joined #salt
18:16 Daviey joined #salt
18:16 antix joined #salt
18:16 svs joined #salt
18:16 nahamu joined #salt
18:16 sashka_ua joined #salt
18:16 robawt joined #salt
18:16 micko joined #salt
18:16 ange joined #salt
18:16 esogas joined #salt
18:16 MK_FG joined #salt
18:16 sdebot joined #salt
18:16 babilen joined #salt
18:16 sulky joined #salt
18:16 keekz joined #salt
18:16 v0rtex joined #salt
18:16 sifusam joined #salt
18:16 devx joined #salt
18:16 cheus joined #salt
18:16 al joined #salt
18:16 kuffs joined #salt
18:16 ksk joined #salt
18:16 hvn joined #salt
18:16 rockey joined #salt
18:16 dotplus joined #salt
18:16 oeuftete joined #salt
18:16 Ahlee joined #salt
18:16 cwright joined #salt
18:16 darrend joined #salt
18:16 maber joined #salt
18:16 oncallsucks joined #salt
18:16 tru_tru joined #salt
18:16 amontalban joined #salt
18:16 st0newa11 joined #salt
18:16 jcockhren joined #salt
18:16 Schmidt joined #salt
18:16 fxhp joined #salt
18:16 totte joined #salt
18:16 xt joined #salt
18:16 dstokes joined #salt
18:16 Ssquidly joined #salt
18:16 snoozer joined #salt
18:16 mgarfias joined #salt
18:16 arapaho joined #salt
18:16 ashb joined #salt
18:16 jjasinski joined #salt
18:16 lyddonb_ joined #salt
18:16 Ymage_ joined #salt
18:16 mortis__ joined #salt
18:16 the_lalelu joined #salt
18:16 jcristau joined #salt
18:16 wm-bot4 joined #salt
18:16 Dinde joined #salt
18:16 cwyse joined #salt
18:16 btorch joined #salt
18:16 uzomg joined #salt
18:16 rmnuvg joined #salt
18:16 brewmaster joined #salt
18:16 artificialexit joined #salt
18:16 lude joined #salt
18:16 zekoZeko joined #salt
18:16 masterkorp joined #salt
18:16 timoguin joined #salt
18:16 individuwill joined #salt
18:16 steveoliver joined #salt
18:16 drags joined #salt
18:16 nadley joined #salt
18:16 rpotucek joined #salt
18:16 hoodow joined #salt
18:16 hopthrisC joined #salt
18:16 xintron joined #salt
18:16 z3uS joined #salt
18:16 sverrest joined #salt
18:16 Sacro joined #salt
18:16 Nazzy_ joined #salt
18:16 cb joined #salt
18:16 jbub joined #salt
18:16 davidone joined #salt
18:16 debian112 joined #salt
18:16 alekibango joined #salt
18:16 eliasp joined #salt
18:16 mattmtl joined #salt
18:16 ghartz joined #salt
18:16 Jarus joined #salt
18:16 bensons_ joined #salt
18:16 erjohnso joined #salt
18:16 \ask joined #salt
18:16 monokrome joined #salt
18:16 dmz joined #salt
18:16 nickg joined #salt
18:16 kula joined #salt
18:16 ampex joined #salt
18:16 InAnimaTe joined #salt
18:16 mirko joined #salt
18:16 agronholm joined #salt
18:16 Chrisje joined #salt
18:16 pfallenop joined #salt
18:16 zirpu joined #salt
18:16 keyvan joined #salt
18:16 hardwire joined #salt
18:16 stotch joined #salt
18:16 melinath joined #salt
18:16 moos3 joined #salt
18:16 viq joined #salt
18:16 bernieke joined #salt
18:16 xmj joined #salt
18:16 ifur joined #salt
18:16 jeddi joined #salt
18:16 lazybear joined #salt
18:16 pviktori joined #salt
18:16 PI-Lloyd joined #salt
18:16 rlarkin joined #salt
18:16 joehh joined #salt
18:16 gmoro joined #salt
18:16 izibi joined #salt
18:16 twobitsprite joined #salt
18:16 Voziv joined #salt
18:16 platforms joined #salt
18:16 jacksontj joined #salt
18:16 sygibson__ joined #salt
18:16 cedwards joined #salt
18:16 funzo joined #salt
18:16 MindDrive joined #salt
18:16 bfwg joined #salt
18:16 geekmush joined #salt
18:16 crazysim joined #salt
18:16 borgstrom joined #salt
18:16 xinkeT joined #salt
18:16 kiorky joined #salt
18:16 stevednd joined #salt
18:16 toddejohnson joined #salt
18:16 UForgotten joined #salt
18:16 berto- joined #salt
18:16 [vaelen] joined #salt
18:16 chuffpdx_ joined #salt
18:16 xenoxaos joined #salt
18:16 madduck joined #salt
18:16 Kelsar joined #salt
18:16 Eugene joined #salt
18:16 copelco joined #salt
18:16 jY joined #salt
18:16 NV joined #salt
18:16 djinni` joined #salt
18:16 kaictl joined #salt
18:16 nliadm joined #salt
18:16 codekoala joined #salt
18:16 Jahkeup joined #salt
18:16 CaptTofu joined #salt
18:16 chutzpah joined #salt
18:16 agh joined #salt
18:16 Sypher joined #salt
18:16 neilf_ joined #salt
18:16 _blackjid joined #salt
18:16 rawtaz joined #salt
18:16 whitepaws joined #salt
18:16 etw joined #salt
18:16 AlcariTheMad joined #salt
18:16 delkins joined #salt
18:16 hillna_ joined #salt
18:16 Sway joined #salt
18:16 tmmt joined #salt
18:16 emostar joined #salt
18:16 ze- joined #salt
18:16 balltongu_ joined #salt
18:16 mariusv joined #salt
18:16 shano joined #salt
18:16 manfred joined #salt
18:16 happytux joined #salt
18:17 schristensen_ joined #salt
18:18 picker joined #salt
18:18 redondos joined #salt
18:18 redondos joined #salt
18:19 rojem joined #salt
18:20 rogst joined #salt
18:22 blast_hardcheese joined #salt
18:23 perfectsine joined #salt
18:23 rojem joined #salt
18:24 whiteinge cheus: no, they should be identical
18:24 whiteinge (also, hi!)
18:24 stevednd whiteinge: is there a way to pass a value to state files while using the orchestrate runner?
18:25 giannello joined #salt
18:25 whiteinge stevednd: the orchestrate runner has the ``pillar`` kwarg, similar to state.sls or state.highstate
18:25 whiteinge it was a semi-recent addition though, iirc
18:26 whiteinge not sure what release it went in
18:26 stevednd pillar data can't be modified/added to while the script is running, can it? I know I can alter the pillar from the command line, but while it's running?
18:27 cheus whiteinge, (Hi as well). Hmm. Any part of this strike you as odd then?: Have a small cluster for testing salt formulas/modules/etc. In this cluster I manage utils/templates.py and utils/jinja.py because both have some newer-ish code that's very helpful to formula dev. I've confirmed that all machines have the new jinja/templates files and when I run salt-call on the minion it's able to use some of the new features. same commands from master, however, throw e
18:27 cheus xceptions as the new features aren't available.
18:28 superted joined #salt
18:30 whiteinge stevednd: you're likely to run into race-condition issues if you modify pillar *during* a state run. you can pass in custom values (or override existing values) via the CLI once at the top of run though. (think of it like passing in CLI flags)
18:31 cekz joined #salt
18:31 cheus whiteinge, Would an overstate work for stevednd? I'm not paritcularly familiar with how overstate operates -- does it all compile to one lowstate or is it multiple, ordered, state calls?
18:31 Rojematic joined #salt
18:31 whiteinge cheus: wonder if it's an already-loaded-into-memory thing. have you tried restarting the salt-minion daemon?
18:32 stevednd whiteinge: the thing is I want to programmitcally create a value for multiple state files to use. So if I used an orchestration file, it should be safe to modify the pillar at the top, before any states run?
18:32 stevednd would that even work, or would that not do anything since the orchestration runs on the master
18:33 stevednd cheus: I'm using orchestration, which is the newer version of overstate
18:33 benturner joined #salt
18:34 whiteinge stevednd: the custom Pillar will get sent down to the minions. something like:  salt-run state.orchestrate myorchestraterun pillar='{custom: {stuff: {here: True}}}'
18:34 patrek joined #salt
18:34 cheus stevednd, That's what I meant... just been using salt long enough that I'm a bit stuck on those terms. ;-)
18:34 gothix joined #salt
18:34 gothix joined #salt
18:34 cheus whiteinge, Wow. Spot-on for memory caching. That was it. Very surprising to me. I thought salt-call used the minion daemon to do it's business but I have to now assume that's a different process chain.
18:35 harkx joined #salt
18:36 whiteinge cheus: ah, good. salt-call uses (almost) all the same code paths, but it does *not* use the running daemon. it starts its own processes
18:37 stevednd whiteinge: right, I was pretty confident that I could do that, but to do that, I would then probably have to wrap that call in a shell script to create the pillar value to use. I was thinking more of something like this in the orchestration file: pillar['custom']['stuff']['here'] = salt['custom.function']()
18:37 cheus whiteinge, And now I know, which I understand is half the battle. By the by, did you see manfred's awesome little change to names? (https://github.com/saltstack/salt/pull/13489#event-132716219) It has excellent ramifications for data-driven formula development.
18:38 jforest joined #salt
18:38 MTecknology joined #salt
18:38 Networkn3rd joined #salt
18:39 alanpearce joined #salt
18:39 sebnil joined #salt
18:40 rallytime joined #salt
18:40 babilen Is there (or will there be) a way to render file.managed files with Python?
18:40 mr_chris left #salt
18:41 whiteinge stevednd: gotcha. definitely plausible. i'm looking at the code the orchestrate runner calls to see if it passes kwargs through. sec...
18:42 oz_akan_ joined #salt
18:42 sebnil Hi, im trying out salt for the first time today. I got great success with a Debian as a client. But as soon im trying out the same salt state towards CentOS i got this error message. "TypeError encountered executing state.highstate: 'bool' object is not iterable. See debug log for more info.  Possibly a missing arguments issue:  ArgSpec(args=['test', 'queue'], varargs=None, keywords='kwargs', defaults=(None, False))". The o
18:43 whiteinge stevednd: it looks like it does not. it would be an easy addition though. mind opening a ticket?
18:43 anotherZero joined #salt
18:43 whiteinge cheus: saw it (and your comment). haven't had time to digest it yet
18:44 cheus babilen, It looks to me like it should suppor it, under 'py'
18:45 cheus babilen, I've never tried it, but it's in the TEMPLATE_REGISTRY
18:45 babilen cheus: Hmm, I have to try that. The docs for file.manage do not mention "py" as acceptable template engine.
18:46 mgarfias hey is there set of dox that describes openstack networks and how to use them wrt salt?
18:46 cheus babilen, Yeah, I noticed that too but just dug through modules.file to the relevant part and I don't see anything that explicitly excludes py. It appears to take every registered type
18:47 babilen cheus: "currently jinja, mako, and wempy are supported" is what it says, I haven't tried it yet and did not wade through the code
18:47 wendall911 joined #salt
18:47 oz_akan_ joined #salt
18:47 cheus babilen, All I can say is 'mileage may very' I'd try a hello-world, first, and not worry too much about context until you can prove that works on its own
18:47 babilen cheus: Perfect! I'll give it a try tomorrow (and will fix those docs) as it makes rendering configuration files for which Python comes with a parser/generator already *much* easier than writing some horrible jinja
18:48 cheus babilen, Yeah and if you have success let me know. I'd be interested in the result.
18:48 babilen Will do
18:49 babilen It's just that some of our programs use ConfigParser to parse their configuration files and I really see no reason why I shouldn't generate it using ConfigParser from a suitable pillar/dictionary in the first palce
18:49 anotherZero anybody have a good example template for setting up a new server/configs + package installs for deps?
18:49 babilen *place
18:50 giannello joined #salt
18:50 blarghmatey joined #salt
18:50 cheus babilen, Oh, wait, just saw it. Lines 390-399 in salt.utils.templates.py Yeah. There'd have to be a render_ function registered like there is for the other three
18:50 cheus babilen, Sorry!
18:52 cheus babilen, (reading more), Reverse that. It might call py at #355 in the same file in which case you're going to get a lot of kwargs from L#2282 in salt.modules.file.py
18:53 cheus babilen, I guess we're back to test an see but those should be the relevant major code points
18:53 anotherZero or any good recipes?
18:53 oz_akan_ joined #salt
18:54 babilen cheus: I'll test it - there isn't much to lose. If it doesn't support it now I'll work on support for it (there is no reason why it shouldn't be possible)
18:54 cheus anotherZero, See salt-formulas, for recipes (https://github.com/saltstack-formulas)
18:55 anotherZero thanks!
18:55 dsolsona joined #salt
18:55 anotherZero the recipe keyword was bringing up chef results :)
18:55 cheus anotherZero, Yes. What you want are 'formulas'
18:55 smcquay joined #salt
18:56 or1gb1u3 joined #salt
18:56 ipalreadytaken joined #salt
18:57 cheus babilen, Sure. The kwargs in file.py would be pretty clutch on their own. By the way, it's a great idea and approach (using python lib formatters to output config files). Lot of potential there for some really intelligent formulas.
18:57 babilen Exactly
18:57 babilen I was simply thinking "Why on earth wouldn't I use the generator/parser to *write* the file that I use to *read* it later?"
18:58 zooz joined #salt
18:58 cheus Yup. I used a similar approach on my rewritten salt formula (that I now realize I still need to publish). Lucky for me jinja has a yaml serializer already so the entire template is just {{ data | yaml(flow_style=True) }}
19:02 diegows joined #salt
19:07 jslatts joined #salt
19:08 smcquay joined #salt
19:10 mgarfias how do i specify which openstack network goes with which hosts via salt cloud?  what dox i have seen seems to imply that there is only one place to do it per provider
19:13 anuvrat joined #salt
19:14 Katafalk_ joined #salt
19:16 chitown_ joined #salt
19:18 bhosmer_ joined #salt
19:19 giannello mgarfias, you can set it - with the same option name - in the profiles file
19:21 mgarfias ok
19:21 mgarfias i use the UUID of the network, correct?
19:24 BrendanGilmore joined #salt
19:25 wincus joined #salt
19:26 mgarfias and how do i disable the public network?
19:27 Theo-SLC joined #salt
19:27 ajolo joined #salt
19:29 Theo-SLC I want to view state changes of a minion over time.  How can I do taht?
19:29 mgarfias and that didnt work, i still have a public net, and not the net i want
19:29 stevednd whiteinge: so setting the pillar value on the cli will pass it along to the state files, but attempting to alter the pillar in the orchestration file will not?
19:29 stevednd is that the gist of the issue to create?
19:32 ze- is there a way to get the sls name within the sls template generation?
19:32 TheThing I sense a recursion
19:32 shaggy_surfer joined #salt
19:33 mattikus joined #salt
19:34 ze- just want to use the name within a sls so i can paste the exact same code within it, and it would generate something different :)
19:34 bhosmer_ joined #salt
19:36 rojem joined #salt
19:36 oz_akan_ joined #salt
19:36 rojem joined #salt
19:40 mprymek joined #salt
19:46 vu_ joined #salt
19:50 bhosmer_ joined #salt
19:51 oz_akan_ joined #salt
19:51 smcquay I am noticing very odd behavior using salt to manage an OS X host that uses opendirectory servers. anyone else seen very long response times, or hanging in general? anyone use salt to manage OS X at all?
19:51 smcquay I turned off the OD configs and now salt interactions doesn't cause my system to hang quasi-catastrophically
19:54 mgw joined #salt
19:56 jimklo joined #salt
19:59 rojem joined #salt
19:59 rojem joined #salt
20:00 rojem joined #salt
20:03 whiteinge stevednd: yeah, that's right. the ``salt.state`` state module needs to pass pillar data through in ``kwarg``
20:03 thayne joined #salt
20:05 to_json joined #salt
20:07 rallytime joined #salt
20:08 to_json joined #salt
20:09 Theo-SLC I want to check how a state of a minion has changed over time.  Is there an easy way to view that?
20:13 matrix3000 joined #salt
20:17 Katafalkas joined #salt
20:18 Outlander joined #salt
20:21 timoguin Theo-SLC: like logs of state runs?
20:23 oz_akan_ joined #salt
20:27 kermit joined #salt
20:27 stevednd whiteinge: what's the word on helium?
20:28 rojem joined #salt
20:28 Katafalkas joined #salt
20:29 Theo-SLC timoguin: I suppose I could get this from logs.  I want to see specifically all of the changes in all states or a specific state over time (with timestamps).  Command:  salt-history 'my.minion' show.sls state.git   Returns:  [04/05/2014 12:00:00] -> this changed [06/01/2014 08:30:00] -> this changed
20:29 rojem joined #salt
20:29 cliffstah joined #salt
20:33 rojem joined #salt
20:33 ipmb joined #salt
20:33 travisp joined #salt
20:33 vbabiy_ joined #salt
20:34 jnials joined #salt
20:34 babilen Theo-SLC: That would indeed come in handy. I hate digging through jobs.list_jobs (in particular as there are so many in there in which I am not at all interested (the jind_job ones for example))
20:35 timoguin Theo-SLC: ah, yea, salt doesn't really have that capability right now. my approach is going to be to implement something like salt-eventsd that dumps everything to a backend database that i can then query/search
20:35 timoguin really i'd like to be able to dump all the json to elasticsearch and then query with a dashboard like kibana
20:36 Theo-SLC timoguin: that's what I'm doing right now.  I'm setting up logstash to push all salt logs to.
20:36 stevednd whiteinge: https://github.com/saltstack/salt/issues/13575
20:37 whiteinge ty
20:37 whiteinge stevednd: helium is still on track for an RC in a week or so
20:37 stevednd I thought it already had an rc out
20:37 vbabiy joined #salt
20:38 bhosmer_ joined #salt
20:38 happytux_ joined #salt
20:40 alanpearce joined #salt
20:42 whiteinge not yet
20:43 whiteinge http://www.meemes.com/sites/default/files/styles/large/public/soon%20ostrich.jpg?itok=8BxBuXmq
20:43 Katafalkas joined #salt
20:44 ndrei joined #salt
20:45 Katafalkas joined #salt
20:47 sygibson__ hey all - I have a question about Compound Matching, Node Groups, and targeting minions
20:47 Ryan_Lane if I wanted to cache a call in a state across multiple states, what would I use in a state module?
20:47 sygibson__ it appears that if I want to use a compound match statement, I can't include my defined "node groups"
20:47 Ryan_Lane I'm making a call like 50 times for something that always returns the same data, simply because I'm making multiple state calls
20:47 manfred soon... ish
20:48 sygibson__ I realize that Node Groups are themselves Compound Match statements .... so I can understand that might cause circular problems?
20:48 sygibson__ example failure:  salt --out txt -C 'N@infra' test.ping
20:48 jimklo joined #salt
20:48 sygibson__ fails
20:48 manfred sygibson__: iirc, node groups got half implemented, and then forgotten about, because there were about a million other ways to match them.
20:48 manfred ¯\(°_o)/¯
20:50 sygibson joined #salt
20:50 sygibson manfred: thx for the reply (I bounced off by mistake ... )
20:51 git joined #salt
20:51 sygibson So far - I've gotten 'node groups' to work fairly well - just missing the connection to be able to use them within a Compound Match as a filter
20:51 manfred i do not believe you can
20:51 git left #salt
20:52 manfred and I believe it is the reason that you mentioned before, they are already a compound match
20:52 sygibson manfred: yep - fails, I confirmed that - just was curious if there was a prevailing reason why it hadn't been implemented, when the Compound Matcher *does* have most every other match method implemented
20:53 Ryan_Lane manfred: any idea about how to cache data between states?
20:53 manfred My guess is because they are essentially the same thing, but i don't actually know the reasoning, I would have to go diving through commits to see if there was specific mention of it in the commit
20:54 oz_akan__ joined #salt
20:54 manfred Ryan_Lane: that i have no idea, i usually store the information in a grain. https://github.com/gtmanfred/salt-states/blob/master/website/wordpress.sls#L22
20:54 manfred Ryan_Lane: you might be able to use the sdb thingy that techhat just included in develop?
20:56 sindreij joined #salt
20:56 oz_akan__ joined #salt
20:56 manfred Ryan_Lane: http://docs.saltstack.com/en/latest/topics/sdb/
20:56 manfred i am not sure, but i believe it is only currently useable in salt-cloud right now
20:57 Ryan_Lane manfred: well, I actually meant within a state module
20:57 Ryan_Lane and not a .sls
20:57 manfred that, i do not know.
20:57 * Ryan_Lane nods
20:57 manfred oh
20:57 giannello joined #salt
20:57 manfred in a module
20:57 Ryan_Lane yeah
20:57 manfred gimme a second
20:57 Ryan_Lane cool. thanks
20:58 manfred so in salt/states/something.py or in salt/module/something.py ?
20:59 Ryan_Lane manfred: yeah. basically I make a call to a webservice, which is slow
20:59 manfred right
20:59 Ryan_Lane and it always gives back the same results
20:59 Ryan_Lane but I call the state like 20 times
20:59 manfred like listing servers, and you want to cache that information for other runs
20:59 Ryan_Lane even in the same run :)
20:59 manfred right
20:59 manfred well other runs of the same state module
20:59 manfred or state.py*
20:59 Ryan_Lane yeah
20:59 Ryan_Lane indeed
21:00 rojem joined #salt
21:00 manfred i do not believe there is a way to do that... but I would be interested in seeing something like that, because currently i query the openstack api about a million times when building cloud servers with the cloud.profile state
21:00 * Ryan_Lane nods
21:00 Ryan_Lane I'm doing the same in aws
21:00 Ryan_Lane mod_aggregate would likely work
21:01 rojem joined #salt
21:01 manfred hrm ... http://salt.readthedocs.org/en/latest/ref/states/aggregate.html
21:01 Ryan_Lane hm. maybe not
21:02 Ryan_Lane whiteinge, forrest: any ideas? ^^
21:02 Ryan_Lane looks like mod_aggregate modifies the state data
21:02 Ryan_Lane so that won't work
21:02 manfred Ryan_Lane: it would only work if you can agregate the same thing together
21:02 Ryan_Lane could probably write into the cache location
21:02 manfred can only do in this case if you add something like... instances=[] for a list of servers to build at once
21:03 to_json joined #salt
21:03 forrest sorry a bit busy this afternoon Ryan_Lane :(
21:03 Ryan_Lane :(
21:03 Ryan_Lane no worries
21:03 manfred but, like in openstack where it has its own class that it is calling, you could aggregate everything down to only having to list servers once instead of once for every server to build
21:03 manfred hrm
21:04 manfred Ryan_Lane: so, what information are you caching?
21:04 Ryan_Lane we're making a call to splunk to see what alarms currently exist
21:04 manfred in the rc, there will be a cloud cache in /var/cache/salt/cloud which you can use to query server information, instead of doing api lookups
21:04 Ryan_Lane we're using salt-call
21:05 superted Hey guys, somewhat stupid question. I have 3 bugs i'm watching in github. All have been fixed, the oldest of which 3 months ago. Just looked at 2014.1.5 and there not in there. I've typically always installed from EPEL for our production systems, how would i go about getting a RH6 RPM off the develop branch in Git to fix my issues?
21:05 manfred superted: package your own rpm
21:05 estjang joined #salt
21:06 ckao joined #salt
21:06 manfred grab the spec file from epel-source, and then change the source to https://github.com/saltstack/salt/archive/master.tar.gz
21:06 manfred Ryan_Lane: i do not believe there is anything out there for what you want to do at this time
21:06 estjang hello, I get "Failed to connect to the Master, is the Salt Master running?"
21:06 manfred Ryan_Lane: you may be able to abuse __opts__ for it
21:06 Ryan_Lane manfred: __ops__['cachedir']
21:06 estjang and I don't seem to have /var/run/salt/master directory on my salt master host.
21:07 estjang why would this happen?
21:07 superted Thanks @manfred. Was hoping there would be some nightly compile running somewhere. Will get on it.
21:07 Ryan_Lane is there anything in __opts__ that would uniquely identify a state run?
21:07 manfred Ryan_Lane: nah like, check if __opts__['somevariable'] exists, and if not, put your first apicall there
21:07 estjang here are a couple of debug messages:
21:07 manfred Ryan_Lane: i do not believe so
21:07 Ryan_Lane nah, I'd rather write to the cache dir
21:09 estjang sudo -u www-data salt -l debug minionlite2 cmd.run_all date
21:09 estjang [DEBUG   ] Reading configuration from /etc/salt/master
21:09 estjang [DEBUG   ] Missing configuration file: /root/.salt
21:09 estjang [DEBUG   ] Configuration file path: /etc/salt/master
21:09 estjang [DEBUG   ] Reading configuration from /etc/salt/master
21:09 estjang [DEBUG   ] Missing configuration file: /root/.salt
21:09 estjang [DEBUG   ] LocalClientEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
21:09 estjang [DEBUG   ] LocalClientEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
21:09 estjang Failed to connect to the Master, is the Salt Master running?
21:09 Ryan_Lane estjang: you should use pastebin for long pastes :)
21:10 estjang oops..
21:10 Ryan_Lane estjang: are you running as root?
21:10 estjang I configured salt-master as www-data
21:10 dimeshake ew
21:10 estjang I was running the command as root
21:12 Katafalkas joined #salt
21:14 estjang creating /var/run/salt/master and setting correct permission on it seems to fix the problem...
21:16 giannello joined #salt
21:16 kermit joined #salt
21:16 kermit joined #salt
21:17 happytux joined #salt
21:18 TheThing joined #salt
21:20 smcquay joined #salt
21:26 Ryan_Lane manfred: http://docs.saltstack.com/en/latest/topics/development/dunder_dictionaries.html#context
21:26 sindreij joined #salt
21:30 KyleG I'm glad you guys removed grains/external_ip.py lol
21:30 KyleG So silly having external site dependancies
21:31 KyleG <3
21:33 Ryan_Lane hm. when I try to use __context__ it says the global name doesn't exist
21:34 pdayton joined #salt
21:43 dsolsona joined #salt
21:43 azylman joined #salt
21:43 Ryan_Lane manfred: https://gist.github.com/ryan-lane/ba2ddab9138bb4783fe0
21:44 Ryan_Lane seems __context__ is meant to be used in execution modules
21:45 azylman If I have a file that I'm copying to a minon using "file.managed", and it's a jinja template, is there any way to execute arbitrary functions inside of the template? Normally you could do it by modifying the jinja env like http://stackoverflow.com/questions/6036082/call-a-python-function-from-jinja2, but I'm not sure how to do it in salt
21:46 clearclaw joined #salt
21:46 clearclaw xxx/quit
21:47 clearclaw joined #salt
21:48 clearclaw Recently upgraded to 2014.1.5 under Ubuntu and am having problems with huge console spam
21:49 clearclaw Every command dumps hundreds of lines of debug crap despite log_level etc being set on /etc/salt/master /etc/salt/minion
21:49 smcquay joined #salt
21:50 anotherZero is there a reason for having pkg.installed vs pkg: -installed in an sls file?
21:50 forrest anotherZero, just depends on what you prefer, they are identical.
21:51 dsaard joined #salt
21:51 anotherZero ok thanks
21:53 clearclaw eg http://pastebin.com/05mCfeMj
21:54 forrest clearclaw, did you restart the services after changing the log level?
21:54 forrest seems weird
21:54 forrest also, did you try to set the log value from the command line
21:54 clearclaw forrest: Yes, everything was restarted
21:54 clearclaw Version report: http://pastebin.com/gkfuX5Zu
21:55 clearclaw forrest: Look at the first pastebin:  -lerror
21:55 forrest ok, can you try to set the log level directly from the command line? If that doesn't work, I'd say open an issue.
21:55 forrest oh gotcha, missed that since I usually put it on the end
21:55 forrest I'd say create an issue then
21:55 * clearclaw nods.
21:55 forrest haven't seen that from anyone else yet.
21:55 clearclaw It is making todays PROD push rather a PITA.
21:56 forrest didn't 2014.1.5 just come out?
21:57 dsaard hi, is  it possible to substitute a pillar.get call with an jinja variable in a state file like this: {% for user in xyz %} user: - gid: salt["pillar.get"]("my:pillar:user:data:{{ user }}", {}) ......
21:57 APLU joined #salt
21:57 shaggy_surfer joined #salt
21:57 schmutz joined #salt
21:57 mgarfias is there any magic to managing resolv.conf on openstack
21:58 Ryan_Lane mgarfias: in the instances, or on the network node?
21:58 mgarfias instances
21:58 Ryan_Lane usually cloud images are configured to set resolv.conf via dhcp
21:58 giannello joined #salt
21:58 Ryan_Lane and it'll automatically replace the file on dhcp updates
21:58 mgarfias no public IPs on these and its set to pub IPs :(
21:59 Ryan_Lane hm. it should set it to the network node
22:00 mgarfias i think this means i shoudl take a break and go on a costco run
22:01 bensons_ hi, i have a base pillar that defines users: key and want based on a grain value include another users: list. my assumption would be that this users: dict gets merged but this seems not possible
22:01 Ryan_Lane mgarfias: but it depends on your configuration
22:01 bensons_ any hint how i could do so? the idea is to have some base users and based on minion grain value add some more users
22:03 forrest bensons_, I'd suggest against the grain thing, because then the data in pillar has a chance to be compromised if someone changes a grain
22:03 bensons_ forrest: and what do you suggest to use instead?
22:03 forrest bensons_, can you base what users go on which machines depending on what apps live on the machine? Then you could have a base users pillar, then in your application pillars you could include those extra users maybe?
22:04 forrest so then you're determining which users are included sort of via the top file
22:05 anotherZero is the top.sls the "pillar"?
22:05 forrest no
22:05 forrest there is a top.sls for pillars
22:05 bensons_ forrest: but the decision what apps live on the host is also done by grain value or i am totally wrong here?
22:05 forrest but I mean his top.sls that determines which systems get which states.
22:06 forrest bensons_, it would depend how you configure your setup
22:06 bensons_ i mean i can do that based on the minion name, ok
22:06 bensons_ thats a bit more secure, since its authed against the master with that name
22:06 forrest yea that's at least a bit better
22:07 bensons_ but in any case, merging pillars is not possible, right?
22:08 analogbyte joined #salt
22:08 forrest I merge my pillars: https://github.com/gravyboat/hungryadmin-sls/blob/master/pillar/top.sls
22:08 forrest granted there I only use one
22:08 forrest but still
22:08 forrest bensons_, http://docs.saltstack.com/en/latest/topics/pillar/#declaring-the-master-pillar also talks about this
22:09 forrest which goes into a pretty good amount of depth on that.
22:09 forrest also, you've looked at UtahDave's example for user/groups right? https://gist.github.com/UtahDave/3785738
22:10 forrest there's also the users formula as well
22:11 forrest which you might be able to somehow adapt to support things in the way you need (certain users missing)
22:12 freelock hi,
22:12 freelock have a minion using salt-call event.fire_master
22:12 dsaard forrest: thanks, helps me too :-)
22:12 forrest dsaard, yea np
22:12 freelock after the upgrade, this action is spitting out the output from "iptables --help"
22:12 bensons_ forrest: nice but that does not exactly what i want. i basically have different customer hosts where i want to make sure my user is always present and then based on some jinja/grains magic include some additional users
22:13 forrest bensons_, yea I understand
22:13 forrest bensons_, I'm just suggesting things that might help get the juices flowing so you can twist it to do what you need
22:13 bensons_ forrest: yes let me play around with it a bit :) thanks mate
22:13 forrest freelock, upgrade to a specific salt release?
22:14 forrest bensons_, np, if you do something cool and have it publicly available it might be nice for other users if you do a blog post on it or something
22:14 freelock forrest: yes, applied the latest ubuntu update
22:14 forrest freelock, can you run a --versions-report?
22:14 freelock Salt: 2014.1.5
22:15 forrest clearclaw, did you create an issue for that?
22:15 freelock http://pastebin.com/R0Rhcbw1
22:15 forrest lame, freelock, if you don't see anything in the logs that helps you, can you create an issue in github please?
22:15 Ch3LL_ joined #salt
22:15 freelock ok
22:16 Katafalkas joined #salt
22:16 freelock 2014-06-19 15:11:21,935 [salt.loaded.int.grain.core][WARNING ] Although 'dmidecode' was found in path, the curre
22:16 freelock nt user cannot execute it. Grains output might not be accurate.
22:16 freelock I've been getting that message for quite a while
22:16 forrest freelock, yea that isn't a problem
22:17 yomilk joined #salt
22:19 giannello joined #salt
22:19 jonbrefe joined #salt
22:20 jonbrefe Hi guys. I running 2014.1.4-1 and I would like to use vsphere cloud. How do I install this? https://github.com/saltstack/salt/blob/develop/salt/cloud/clouds/vsphere.py
22:21 Katafalkas joined #salt
22:23 forrest Corey, what is with concur taking 2+ months to respond to your tweet?
22:23 Corey forrest: I have no earthly idea. :-)
22:23 Corey forrest: Explains a lot though, doesn't it?
22:23 forrest jeez
22:24 ifnull joined #salt
22:25 DaveQB joined #salt
22:26 forrest jonbrefe, you could try just dropping it in place
22:27 Joseph__ joined #salt
22:27 freelock ha, looks like two issues already filed, and fixed in dev: https://github.com/saltstack/salt/issues/13527
22:29 freelock https://github.com/saltstack/salt/issues/13507
22:29 forrest freelock, apparently that issue with the iptables --help is fixed, and isn't actually  breaking anything
22:29 forrest ah yea you beat me to pasting it
22:29 rojem joined #salt
22:29 forrest yea good stuff
22:29 freelock yup, it's just very noisy, when we use that in a git post-receive hook ;-)
22:29 forrest yea
22:30 giannello joined #salt
22:31 freelock I'm going to write up a blog post when I get a few moments -- I hooked up a post-receive hook in gitolite to the salt reactor system
22:31 freelock so now when we make a config change to a couple different sets of scripts we use for deployment and testing, salt makes them available everywhere... really cool stuff!
22:32 googolhash joined #salt
22:32 freelock I'm sure it's nothing compared to what others are doing, but for us it's huge!
22:32 forrest that's cool
22:33 Joseph__ freelock: just wait...you could actually probably replace all your scripts with simple state files :)
22:37 freelock not quite ;-) but when we're managing dozens of very different web sites, it's really helping us streamline deployment and testing
22:37 freelock right now we're still using jenkins for two reasons: a) to provide a nice pretty log of the output of the script that actually handles the deployments, and
22:38 freelock b) to tell us in chat when it's done and ready for testing...
22:38 freelock salt and custom scripts are handling everything else...
22:38 dsaard somewhere in the net i seen a presentation about salt begins with: first you only want to manage some config files and endup to rule the world
22:39 kuyaedz joined #salt
22:42 alanpearce joined #salt
22:42 Katafalkas joined #salt
22:44 alekibango_ joined #salt
22:47 alekibango_ joined #salt
22:49 Hollinski joined #salt
22:51 jonbrefe forrest: I think I found why it's not working. The password for vsphere contains ' and " characters
22:52 jonbrefe so config.get_cloud_config_value is not happy with that
22:52 forrest jonbrefe, ahh yea that would be a problem if it has to be treated as a string
22:52 TheThing joined #salt
22:55 Katafalkas joined #salt
22:55 bhosmer joined #salt
22:55 alekibango_ joined #salt
22:58 dstokes anybody using the reactor system for multi-minion code deploys (i.e. failover / rollback)?
22:58 rojem joined #salt
22:59 kuyaedz joined #salt
23:00 bhosmer_ joined #salt
23:03 alekibango_ joined #salt
23:03 kuyaedz joined #salt
23:04 Doqnach joined #salt
23:06 jonbrefe joined #salt
23:06 elfixit joined #salt
23:07 Outlander joined #salt
23:07 kuyaedz joined #salt
23:07 kuyaedz joined #salt
23:11 alekibango_ joined #salt
23:12 kuyaedz joined #salt
23:12 rojem joined #salt
23:14 redondos joined #salt
23:15 druonysuse joined #salt
23:15 druonysuse joined #salt
23:19 yomilk joined #salt
23:19 jimklo joined #salt
23:19 alekibango_ joined #salt
23:23 manfred Ryan_Lane: i was driving home/haircut/bar ing
23:24 Ryan_Lane heh
23:24 * Ryan_Lane nods
23:24 Ryan_Lane right, so I figured it out and made a gist
23:24 manfred nice
23:24 manfred this https://gist.github.com/ryan-lane/ba2ddab9138bb4783fe0 ?
23:24 Ryan_Lane yep
23:24 manfred very nice
23:24 aw110f Hi, Is it possible to have a state to run a command unless an execution module returns false
23:24 manfred Ryan_Lane: could you also use that to pass data between your boto states?
23:25 Guest543321 joined #salt
23:25 aw110f http://pastebin.com/XL6jHVsv
23:25 Ryan_Lane manfred: well, the module itself keeps the state
23:25 Ryan_Lane manfred: but yes
23:25 manfred nice
23:26 manfred very cool
23:26 Ryan_Lane indeed
23:26 Guest7654321 joined #salt
23:26 manfred very nice
23:28 alekibango_ joined #salt
23:29 Guest90210 joined #salt
23:29 manfred this actually makes me really happy... now i just need to figure out a place to use it. Do you happen to know if it is available inside cloud drivers?
23:30 Ryan_Lane manfred: I'm not sure
23:30 manfred well I am going to find out
23:35 savvy-lizard joined #salt
23:36 alekibango_ joined #salt
23:36 mosen joined #salt
23:41 xinkeT joined #salt
23:44 alekibango_ joined #salt
23:52 mspah_ joined #salt
23:52 alekibango_ joined #salt

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