Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-10-02

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

All times shown according to UTC.

Time Nick Message
00:00 druonysus joined #salt
00:00 druonysus joined #salt
00:00 kingel joined #salt
00:01 GrueMaster Any suggestions on getting halite to sit behind apache properly?  I.e. http://server/halite
00:02 GrueMaster Currently http://server/jenkins functions properly.
00:05 aparsons joined #salt
00:06 hellome joined #salt
00:12 saurabhs joined #salt
00:15 oz_akan joined #salt
00:15 druonysus joined #salt
00:15 nyx joined #salt
00:15 Singularo joined #salt
00:17 vejdmn joined #salt
00:26 aquinas_ joined #salt
00:26 jamfade joined #salt
00:29 kusams joined #salt
00:37 kusams joined #salt
00:37 dalexander joined #salt
00:39 saurabhs joined #salt
00:46 hasues joined #salt
01:02 kingel joined #salt
01:03 druonysus joined #salt
01:04 ndrei joined #salt
01:09 jalbretsen joined #salt
01:11 nitti joined #salt
01:13 dude051 joined #salt
01:21 possibilities joined #salt
01:24 skarn joined #salt
01:26 otter768 joined #salt
01:27 saurabhs left #salt
01:29 druonysuse joined #salt
01:30 fannet joined #salt
01:31 fannet hey guys - what would be the best way to deploy nginx if I have a custom nginx.conf file per host group? I looked at the saltstack-formula nginx packages on github but it seems overly complex
01:31 rypeck joined #salt
01:34 fannet my idea was to create a pillar for each host group type and have a single jinja template build the virtualhost config
01:34 arctan joined #salt
01:34 baconbeckons joined #salt
01:35 arctan joined #salt
01:39 iggy the existing nginx formula is definitely not ideal for everyone
01:39 iggy fwiw, we wrote our own
01:43 possibilities joined #salt
01:45 mgw joined #salt
01:45 baconbeckons joined #salt
01:45 possibilities joined #salt
01:48 acidrainfall joined #salt
01:48 acidrainfall Hey everyone
01:49 acidrainfall I'm a little confused - I've got hadoop1 - hadoop20 in my inventory
01:49 acidrainfall they appear in salt-key properly
01:49 acidrainfall but `salt 'hadoop[1-20] cmd.run 'hostname'` only runs on hadoop1 and hadoop2
01:49 acidrainfall :(
01:50 anotherZero joined #salt
01:52 ndovu joined #salt
01:53 ndovu am trying to use a built-in returner and get the following messge "Job state.over using invalid returner: mysql Ignoring". What could be wrong?
01:56 linjan joined #salt
01:58 iggy acidrainfall: hadoop*
01:59 acidrainfall iggy: Hm.  I tried that before, I guess I forgot to put it in quotes
01:59 acidrainfall My bad thanks
01:59 anotherZero joined #salt
01:59 acidrainfall I'm so excited to finally push this into use
02:00 dude051 joined #salt
02:00 anotherZero joined #salt
02:02 possibilities joined #salt
02:02 SheetiS joined #salt
02:03 obimod_ joined #salt
02:04 ndovu new to salt,who can share a basic schedule from the master?
02:05 acidrainfall left #salt
02:05 dccc_ joined #salt
02:05 SheetiS http://docs.saltstack.com/en/latest/topics/jobs/schedule.html has some ok examples
02:06 ndovu i looked at those but could not get the master scheduler working and the documentation above is somewhat circular, i.e. the same examples no matter where you look. So if one is not cear, the rest are the same
02:07 ndovu otherwise I got the schedule from the minions working perfectly
02:08 badon joined #salt
02:12 baconbeckons when i use salt-cloud to start up several servers in parallel, only 75% of the instances are created
02:17 oz_akan joined #salt
02:18 wt joined #salt
02:21 oz_akan_ joined #salt
02:30 otter768 joined #salt
02:47 swa_work joined #salt
02:48 malinoff joined #salt
02:49 jalaziz joined #salt
02:51 kingel joined #salt
03:04 MTecknology joined #salt
03:08 acabrera_ joined #salt
03:20 robinsmidsrod joined #salt
03:31 UForgotten joined #salt
03:32 UForgotten joined #salt
03:33 rypeck joined #salt
03:38 logix812 joined #salt
03:38 ajolo joined #salt
03:38 robinsmidsrod joined #salt
03:40 mosen joined #salt
03:53 nyx joined #salt
04:11 ndrei joined #salt
04:13 semarie joined #salt
04:18 acabrera_ joined #salt
04:25 ndrei joined #salt
04:33 oz_akan joined #salt
04:35 grove_ joined #salt
04:39 TheThing joined #salt
04:40 kingel joined #salt
04:41 delinquentme joined #salt
04:46 nnion joined #salt
04:46 bhosmer joined #salt
04:51 linjan joined #salt
04:53 ajprog_laptop joined #salt
04:56 ajprog_laptop2 joined #salt
04:57 jms joined #salt
04:57 jms jms1
04:58 jms with salt.client.cmd_async, is there a way to register a callback?
05:04 nnion joined #salt
05:11 oyvjel1 joined #salt
05:11 nnion joined #salt
05:12 SkyRocknRoll__ joined #salt
05:13 bhosmer joined #salt
05:17 mgw joined #salt
05:18 jasonrm joined #salt
05:18 EntropyWorks joined #salt
05:18 Topic for #salt is now Welcome to #salt | 2014.1.10 is the latest | Help us test the 2014.7 RC! http://bit.ly/salt-rc | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
05:21 grove_ joined #salt
05:33 oz_akan joined #salt
05:38 catpigger joined #salt
05:40 kingel joined #salt
05:47 linjan joined #salt
05:49 lahwran joined #salt
05:51 aw110f joined #salt
05:51 duncanmv_ joined #salt
05:54 beneggett joined #salt
06:01 baconbeckons joined #salt
06:04 felskrone joined #salt
06:07 felskrone1 joined #salt
06:08 baconbeckons joined #salt
06:10 oyvjel joined #salt
06:11 yomilk joined #salt
06:14 masm joined #salt
06:17 oyvjel1 joined #salt
06:18 lahwran joined #salt
06:24 flyboy joined #salt
06:24 TyrfingMjolnir joined #salt
06:25 ramishra joined #salt
06:27 kingel joined #salt
06:28 xsteadfastx joined #salt
06:29 krissaxton joined #salt
06:32 intellix joined #salt
06:34 oz_akan joined #salt
06:35 bhosmer joined #salt
06:35 gmcwhistler joined #salt
06:35 lcavassa joined #salt
06:39 krissaxton joined #salt
06:39 Shiftos joined #salt
06:40 sarkis joined #salt
06:41 kingel joined #salt
06:42 n8n_ joined #salt
06:59 duncanmv__ joined #salt
07:03 Sweetshark joined #salt
07:05 jensnockert joined #salt
07:07 darkelda joined #salt
07:08 jdmf joined #salt
07:09 duncanmv_ joined #salt
07:11 pjs joined #salt
07:12 krissaxton joined #salt
07:13 jensnockert joined #salt
07:14 duncanmv__ joined #salt
07:14 retrospek joined #salt
07:15 jensnock_ joined #salt
07:18 yes456 joined #salt
07:20 aquinas joined #salt
07:24 wnkz joined #salt
07:26 rattmuff joined #salt
07:32 Katafalkas joined #salt
07:35 oz_akan joined #salt
07:38 ramishra joined #salt
07:40 jhauser joined #salt
07:40 sarkis joined #salt
07:41 spo0nman joined #salt
07:47 linjan joined #salt
07:53 CeBe joined #salt
08:01 viq joined #salt
08:04 krissaxton joined #salt
08:12 TyrfingMjolnir joined #salt
08:15 linjan joined #salt
08:16 sgate1 joined #salt
08:19 darkelda joined #salt
08:24 bhosmer joined #salt
08:25 agj joined #salt
08:28 glyf joined #salt
08:34 MasterJ joined #salt
08:36 oz_akan joined #salt
08:38 darkelda joined #salt
08:38 linjan joined #salt
08:41 sarkis joined #salt
08:46 cDR joined #salt
08:46 cDR Hi
08:46 jhauser joined #salt
08:48 istram joined #salt
08:49 cDR is pkg.upgrade "fromrepo" argument broken? I get the error "Possibly a missing arguments issue:  ArgSpec(args=['refresh'], varargs=None, keywords=None, defaults=(True,))". What am I missing?
08:50 ndrei joined #salt
08:54 duncanmv_ joined #salt
08:54 Outlander joined #salt
08:56 wnkz joined #salt
09:03 glyf joined #salt
09:08 jalaziz joined #salt
09:09 kusams joined #salt
09:11 iamtew good morning :)
09:11 iamtew question, I have an outdated bootstrap-salt.sh on my master, this is failing when deploying machines using salt-cloud
09:11 linjan joined #salt
09:11 iamtew what's the process to update this package? https://github.com/saltstack/salt-bootstrap
09:11 iamtew er
09:11 iamtew I mean/usr/lib/python2.7/site-packages/salt/
09:17 saravanans joined #salt
09:22 astol joined #salt
09:22 iamtew or hm.. can I use the bootstrap script to update the master and minions perhaps..
09:29 vnico joined #salt
09:31 ramishra joined #salt
09:35 jhauser joined #salt
09:36 oz_akan joined #salt
09:36 che-arne joined #salt
09:39 jensnockert joined #salt
09:42 sarkis joined #salt
09:42 Kakwa joined #salt
09:47 ndrei joined #salt
09:53 N-Mi joined #salt
09:54 diegows joined #salt
09:59 jensnockert joined #salt
09:59 iamtew ah nevermind, I can just install over it, seems to work fine
09:59 giantlock joined #salt
10:06 TheThing joined #salt
10:07 johtso joined #salt
10:10 agend joined #salt
10:11 cDR Solved my own problem, needed a salt-master upgrade :)
10:13 bhosmer_ joined #salt
10:19 bhosmer_ joined #salt
10:22 saravanans joined #salt
10:24 andrein joined #salt
10:26 andrein Hello. I'm trying to set up salt mine, but I have an issue. I'm trying to mine the ip address, but some of the nodes have it on eth0, others on bond0.10 for example. Any ideas how I could get the public IP regardless of the interface?
10:29 hasues joined #salt
10:30 glyf joined #salt
10:31 linjan joined #salt
10:32 babilen andrein: use network.ip_addr with a specific netmask as mine function (you might bemoan the lack of mine function alias support in 2014.1 at this point, but still)
10:32 babilen (also, interfaces can have multiple ip addresses)
10:33 the_drow joined #salt
10:34 viq joined #salt
10:37 oz_akan joined #salt
10:39 babilen You can specify a cidr range there which should get you what you want. Otherwise implement your logic in your state or pillar (no idea who you figure out what the public IP is)
10:39 Ztyx joined #salt
10:39 mage_ joined #salt
10:40 rypeck joined #salt
10:43 sarkis joined #salt
10:46 Ztyx Godday - I just discovered some issues with executing `salt` as non-root. It used to work yesterday (I've configured client_acl previously), but something must have gotten reset probably due to a security upgrade reboot I just made. I suspect this could have something to do with file permissions. Does anyone know how `salt` communicates with the master?
10:47 Ztyx …I guess it's through IPC, and in that case something in /var/run/salt could have the wrong permissions. Maybe something would like to dump `ls -lR /var/log/salt` output for me to cross-verify?
10:47 Ztyx Ooops, I meant /var/run/salt
10:48 Ztyx `ls -lR /var/run/salt`
10:48 bhosmer_ joined #salt
10:49 babilen Ztyx: "some issues" ?
10:50 babilen No problem no solution
10:51 Ztyx Babilen; My apologies - I get "Failed to connect to the Master, is the Salt Master running?" and running `sudo salt machine cmd` works as expected.
10:51 babilen Ztyx: So, do all necessary files/directories belong to the user in question?
10:53 babilen I guess that that user lost ownership of "/var/run/salt" and that a "chown -R salt:salt /var/run/salt" would fix it (assuming "salt" is the user you want to run salt as)
10:53 Ztyx I don't know. I don't know which files should belong to whom. I haven't set any file/directory privileges previously. The only thing I had to do was to add users to client_acl.
10:53 babilen You configured it earlier, didn't you?
10:53 Ztyx Nope.
10:53 babilen Why do you think that salt would run as an unprivileged user then?
10:55 Ztyx setuid flag on the python executable was one idea I had. I haven't investigated. I was hoping someone could tell me.
10:55 Ztyx :)
10:55 babilen Ah ... I might have misunderstood. The salt-master is still running as root, but you want to run "salt" commands as a non-root user/not through root?
10:56 N-Mi joined #salt
10:56 babilen http://docs.saltstack.com/en/latest/ref/clientacl.html that is
10:56 Ztyx Yes. Exactly. So, my salt-master is running as root and that is all fine and dandy.
10:56 babilen http://docs.saltstack.com/en/latest/ref/clientacl.html#permission-issues done?
10:56 Ztyx Just noticed that one :) Will try and see if that fixes the issues.
10:57 babilen As I said: I guess that /var/run/salt is not accessible to the user(s) in question
10:58 cDR Anyone having issues running development bootstrap for a CentOS5.10 salt-minion? I get no connections with the master server, a stable release works...
11:01 Ztyx Babilen: Looks like the `chmod` is not solving it. I'll create an issue on Github because I think the documentation needs a little bit of updating.
11:01 cDR Downgrading to stable fixes this
11:01 babilen Ztyx: Which chmod exactly?
11:02 babilen cDR: Downgrading where/what?
11:05 akafred joined #salt
11:05 Ztyx Babilen: chmod 755 /var/cache/salt /var/cache/salt/master/jobs /var/run/salt
11:05 cDR I use bootstrap to install salt-minions on CentOS5, the lateste development version does not seem to connect to the master
11:06 cDR It works only when I remove the salt-minion and reinstall the stable release, could be some low level ZMQ related issue
11:08 Ztyx Babilen: FYI, https://github.com/saltstack/salt/issues/16318
11:09 obimod joined #salt
11:10 cDR Running in debug, the minion tries to connect but no tcpdump activity is shown on the master
11:12 babilen cDR: Which version is your master?
11:12 ramteid joined #salt
11:12 cDR salt-master 2014.7.0rc2-2427-g2d2bf49 (Helium)
11:13 cDR Using ZeroMQ
11:22 saravanans joined #salt
11:24 logix812 joined #salt
11:25 yomilk joined #salt
11:25 saravanans joined #salt
11:27 astol joined #salt
11:30 scottpgallagher joined #salt
11:30 intellix joined #salt
11:38 Ztyx left #salt
11:38 duncanmv__ joined #salt
11:40 ramishra joined #salt
11:41 sleepy_ joined #salt
11:42 mechanicalduck joined #salt
11:42 krissaxton joined #salt
11:44 sarkis joined #salt
11:48 sleepy_ who could share an example of a functional schedule from the master (other than what is in the documentation)?
11:51 duncanmv_ joined #salt
11:55 felskrone1 does someone else see more than one minion process running on latest develop?
11:55 hintss joined #salt
12:00 the_drow hi guys, I'm writing a state and python says that global name __salt__ does not exist when I run the unit tests
12:00 duncanmv__ joined #salt
12:01 bhosmer joined #salt
12:04 ggoZ joined #salt
12:04 duncanmv_ joined #salt
12:04 the_drow what do I need to do to have the global __salt__ dict available?
12:04 jensnockert joined #salt
12:05 sleepy_ felkrone1 .... not me
12:05 jeddi joined #salt
12:09 crane hey ho, it's me again ^^
12:09 crane felskrone1: hi ;)
12:09 stewba joined #salt
12:09 felskrone1 hello
12:10 the_drow does anyone know how to make the global __salt__ dict to be available when writing a state?
12:11 scottpgallagher joined #salt
12:11 CycloHex joined #salt
12:12 CycloHex sometime when I try to deploy a minion on digitalocean through salt-cloud i get an error  Executing the command '/tmp/.../deploy.sh -c ... failed
12:13 CycloHex It doesn't alays do that.. Is it a problem with digitalocean or salt-cloud?
12:16 Outlander joined #salt
12:17 martoss joined #salt
12:18 TyrfingMjolnir joined #salt
12:30 fredvd joined #salt
12:31 jaimed joined #salt
12:33 to_json joined #salt
12:38 dccc_ joined #salt
12:41 ramishra joined #salt
12:43 krissaxton joined #salt
12:44 vbabiy joined #salt
12:44 sarkis joined #salt
12:45 cpowell joined #salt
12:45 tld_wrk joined #salt
12:46 Katafalkas joined #salt
12:46 SheetiS1 joined #salt
12:47 krissaxton joined #salt
12:47 vejdmn joined #salt
12:48 oz_akan joined #salt
12:48 supplicant joined #salt
12:50 miqui joined #salt
12:52 vejdmn joined #salt
12:56 bhosmer joined #salt
12:58 snuffeluffegus joined #salt
13:03 BrendanGilmore joined #salt
13:06 eunuchsocket joined #salt
13:07 FeatherKing joined #salt
13:07 CF917284 joined #salt
13:08 racooper joined #salt
13:09 zsoftich_ joined #salt
13:10 saravanans joined #salt
13:11 mpanetta joined #salt
13:13 flyboy82 joined #salt
13:13 ramishra joined #salt
13:13 kusams joined #salt
13:14 ericof joined #salt
13:17 superted joined #salt
13:17 PI-Lloyd joined #salt
13:18 micah_chatt joined #salt
13:22 micah_chatt_ joined #salt
13:24 krissaxton joined #salt
13:26 mpanetta joined #salt
13:32 yomilk joined #salt
13:38 kermit joined #salt
13:41 mpanetta joined #salt
13:41 VSpike Does anyone know, if I use cmd.run with the shell as "cmd" on Windows, do I need to do "my_command param1 param2; exit %ERRORLEVEL%" or something like that so that Salt sees if the command succeeded or failed?
13:45 SheetiS1 I don't know, so what I'd do is test something you know would return a nonzero errorlevel for sure and see what it does.
13:45 sarkis joined #salt
13:45 spo0nman salt-cp works fine for a 5kb file but doesn't work for a 2mb file even after adding a 5 minute timeout. why? what can i do to debug?
13:46 war2 joined #salt
13:47 sroegner joined #salt
13:47 intellix joined #salt
13:47 VSpike SheetiS1: I will.. just wondering if someone would have a standard pattern up their sleeve
13:48 VSpike I have the same question about powershell too ... which I think is more complex
13:50 VSpike My nagios on Windows does something like cmd.exe /c echo /path\to\script arg1 arg2; exit($lastexitcode) | powershell.exe -command -
13:50 oyvjel joined #salt
13:52 dude051 joined #salt
13:53 jensnockert joined #salt
13:56 perfectsine joined #salt
13:57 johtso How do you keep pillar data DRY? What should I do if I have an SSH key that should be added for multiple users in the system?
13:58 ggoZ joined #salt
14:00 jcockhren OK. a self-contained salt installation is possible
14:00 jcockhren :)
14:01 jcockhren self-contained means 'salt+python deps in a virtual env'
14:01 ramishra joined #salt
14:02 UtahDave joined #salt
14:02 johtso I think I'm a bit confused about formulas.. if I was just to use simple states, then I could define the SSH key once in the pillar and reference it in two user states
14:02 UtahDave left #salt
14:03 TyrfingMjolnir joined #salt
14:03 johtso but when using pillar data to describe >everything<.. you've lost that separation
14:04 retrospek joined #salt
14:04 grove_ joined #salt
14:05 duncanmv_ joined #salt
14:08 tld_wrk joined #salt
14:10 iggy johtso: do what works best for you
14:10 johtso iggy: can pillar files cross reference variables?
14:10 iggy everybody's setup is different, salt is flexible enough to work for a lot of different situations for good reason
14:11 bhosmer joined #salt
14:11 iggy johtso: I've never tried it, but you can target a pillar to multiple systems
14:13 johtso sounds like you can't
14:15 johtso ah, I think I might be able to use jinja includes! http://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html#include-and-import
14:16 hasues joined #salt
14:18 kaptk2 joined #salt
14:19 capricorn_1 joined #salt
14:20 anotherZero joined #salt
14:20 v0rtex johtso: are you trying to do something along the lines of this: http://hastebin.com/okusotigem.vhdl
14:21 v0rtex johtso: you can target minions in your pillar/top.sls
14:21 johtso let me write down what I mean
14:24 SheetiS1 joined #salt
14:24 johtso @v0rtex http://hastebin.com/buqitugawa.yaml
14:24 johtso I'm using the users-formula
14:25 alexwh left #salt
14:26 chrisj_ joined #salt
14:27 v0rtex ahh, I haven't used the users formula - let me take a look at that
14:28 iggy the same way I said salt is flexible enough for a lot of use cases earlier, the same doesn't always apply to all of the formulas
14:28 v0rtex ^ for sure
14:28 iggy i.e. if that's all you've got going on, you're probably better off open coding that vs using a formula
14:29 ndrei joined #salt
14:29 iggy and pretty much everybody I've heard of that's looked at the nginx formula ends up writing their own
14:30 ckao joined #salt
14:31 johtso that's a shame, the users formula does some nice things, including dealing with sudoers/visudo etc
14:31 johtso I really like the idea of common patterns being shared in something like a formula
14:32 _ikke_ joined #salt
14:32 Ahrotahntee can I make states cross-require eachother?
14:32 johtso couldn't they be custom states instead, so you could still take advantage of the separation of pillar data and your state templates?
14:32 Ahrotahntee eg nginx -> php5?
14:32 v0rtex johtso: you could always add some additional flexibility to the users formula and submit a PR
14:32 v0rtex for example the ability to specify a 'source' file would probably help in your situation
14:33 v0rtex it doesn't support that at the moment
14:33 iggy ^ that's an option too, I've already had 3 -formula PRs pulled
14:33 _ikke_ With salt-ssh, is matching hosts on grains supported or not? The salt guide seems to imply it isn't yet, but the manual does mention the -G option.
14:33 iggy _ikke_: it is not, only globbing and regex
14:33 _ikke_ ok
14:33 johtso v0rtex: not really sure how that would look.. really I want variables on top of the users pillar data
14:34 johtso I could have my pillar data in a single file and use a jinja variable right?
14:34 iggy how would the master keep the grain data updated in a salt-ssh setup?
14:34 _ikke_ iggy: So I'm basically stuck on giving each host a name I could match on?
14:34 johtso and I could still explicitly target bits of it using dot notation in my top.sls?
14:34 iggy if you insist on using salt-ssh, yes
14:34 _ikke_ iggy: Well, simple data like OS doesn't change that mus
14:34 _ikke_ much
14:34 toastedpenguin joined #salt
14:34 _ikke_ currently, I'm stuck to salt-ssh
14:35 johtso wait, no I can't do that.. pillar data doesn't work like that
14:36 jalbretsen joined #salt
14:36 martoss1 joined #salt
14:37 blackhelmet joined #salt
14:37 v0rtex johtso: you can use jinja variables in pillar files
14:37 v0rtex johtso: how about something similar to this: http://hastebin.com/yizeveqozu.sm
14:38 johtso v0rtex: supposedly you can't do that..
14:39 johtso https://github.com/saltstack/salt/issues/1064
14:39 v0rtex johtso: yeah, now that my tired brain is thinking about it you are correct
14:39 johtso that's what I wanted to do though :)
14:39 v0rtex it hasn't processed the pillar fully and so it's not going to have that set
14:40 johtso and using jinja variables.. I think my two users would have to be in the same file, meaning that i could target them individually
14:40 jensnockert joined #salt
14:42 ndrei joined #salt
14:42 kusams joined #salt
14:42 StDiluted joined #salt
14:44 eunuchsocket joined #salt
14:44 n8n joined #salt
14:46 pdayton joined #salt
14:46 sarkis joined #salt
14:48 v0rtex johtso: okay, I'm wondering if you can do something like this: http://hastebin.com/mohivakuxo.vbs
14:49 v0rtex johtso: basically I have that set up a map.jinja file that you can import into any pillar files you need the data from
14:49 v0rtex s/from/in
14:51 johtso v0rtex: aha! I was thinking maps might be a solution!
14:51 johtso going to give that a go
14:52 v0rtex johtso: you can also make the map.jinja more flexible as it can pull data from pillar...see http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#abstracting-platform-specific-data
14:53 johtso think I can leave off the `with context` too
14:53 v0rtex johtso: you can 'merge' other pillar data in that will override things in the map.jinja
14:53 thedodd joined #salt
14:53 johtso again that's only in states though..
14:53 johtso the same pillar chicken and egg problem
14:54 johtso but I think static data would work
14:54 v0rtex johtso: honestly I don't know if the 'with context' is necessary - I have never tested any of this so YMMV
14:54 johtso I think that gives you access to the various salt objects
14:55 v0rtex ahh, yeah...could be
14:55 prosper_ joined #salt
14:57 CycloHex I want my minion to restart a service after I put the file on the server.. I use watch for this, but the service is never restarted
14:57 johtso @v0rtex oh nice! http://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html#salt.utils.jinja.SerializerExtension
14:57 CycloHex Can I put my watch in the same sls as where i put the file on the server?
14:58 johtso {% import_yaml "myfile.yml" as myfile %}
14:58 SheetiS1 CycloHex: I like to use watch_in for that so that the file can say 'watch me in this service'.
14:59 SheetiS1 though either way should work.
14:59 iggy ^
15:00 v0rtex johtso: nice, that's a lot simpler :)
15:00 CycloHex I think I found why it doesn't restart, the file never changes.. it just gets created, but I watch that file before it is created, so I thought it would trigger the watch
15:00 CycloHex nonetheless trying the watch_in
15:00 anotherZero joined #salt
15:02 ramishra joined #salt
15:03 jeffrubic joined #salt
15:03 kusams joined #salt
15:03 eunuchsocket joined #salt
15:04 murrdoc joined #salt
15:04 murrdoc yo did baconbeckons get his stuff solved
15:05 jensnockert joined #salt
15:08 CycloHex how is it possible that sometimes when I create a virtual machine, some states have not been executed.. eg I deploy a minion with nginx, nginx is sometimes installed, sometimes it isn't.. on the next highstate I call it'll install nginx..
15:11 krissaxton joined #salt
15:11 timoguin CycloHex: are there errors where some states failed?
15:11 johtso Is it not possible to configure a minion to have no master?
15:12 timoguin johtso: it is
15:12 johtso I'm running masterless.. but the minion still tries fruitlessly to connect to a master
15:12 timoguin johtso: do you have file_client: local in the minion config?
15:13 anotherZero joined #salt
15:15 TyrfingMjolnir joined #salt
15:15 conan_the_destro joined #salt
15:16 johtso timoguin: oops, I think it might be a bug in the salt-formula
15:16 schristensen joined #salt
15:17 johtso timoguin: hmm, my minion config has file_client: local
15:17 johtso but the minion is still "Attempting to authenticate with the Salt Master at 127.0.0.1"
15:18 murrdoc type in salt-key
15:18 murrdoc what doth it say
15:18 CycloHex timoguin, nope, no errors
15:18 johtso I have one unaccepted key
15:18 CycloHex because the next time i call highstate it executes
15:18 murrdoc salt-key -A
15:19 bhosmer_ joined #salt
15:19 johtso murrdoc: but why am I accepting a key? I don't want a master
15:19 murrdoc well you are using a local master
15:19 murrdoc yes ?
15:19 johtso but salt-call --local doesn't require a master at all does it?
15:20 murrdoc i think , that means the file store is local
15:20 obimod joined #salt
15:20 murrdoc or
15:20 murrdoc stop the master ?
15:21 timoguin johtso: by default it'll try to connect to 'salt'. sounds like you might have that set to localhost in your hosts file?
15:21 murrdoc http://docs.saltstack.com/en/latest/ref/configuration/minion.html#std:conf_minion-file_client
15:21 murrdoc and set that to local too
15:21 timoguin but it shouldn't be trying to connect with the file_client: local setting. but i've seen this problem before
15:21 johtso timoguin: it's definitely trying to connect to localhost, it's just that I don't want/need it to connect to anything :)
15:21 johtso I think I misunderstood the masterless/local concept
15:21 timoguin I'm wondering why it's trying to connect to localhost.
15:21 johtso oh right
15:22 johtso so it shouldn't be doing this
15:22 timoguin johtso: no, it shouldn't
15:22 timoguin masterless is no master
15:22 johtso murrdoc: I have no master
15:22 murrdoc does your minion config have a file_client: local setting ?
15:22 timoguin a local master is possible, but that's different
15:22 johtso only salt-common and salt-minion are installed
15:22 johtso murrdoc: it does
15:22 murrdoc das weird
15:22 timoguin what's in your /etc/hosts file?
15:23 timoguin mainly, is there an entry for 'salt' in there?
15:23 johtso @timoguin nope
15:23 ndrei joined #salt
15:24 murrdoc what version u running ?
15:24 murrdoc have u rebooted the internet
15:24 murrdoc :D
15:24 johtso 2014.7.0-n/a-2d2bf49
15:25 murrdoc and minion config doesnt have a 'master: ' config set up
15:25 jeffspeff joined #salt
15:27 johtso murrdoc: http://hastebin.com/ixutagijeh.yaml
15:27 smcquay joined #salt
15:27 johtso cat /etc/salt/minion | grep "^[^#]" --> nothing
15:27 jeffspeff i'm trying to update my 2014.1.10 minion to 2014.1.11 via the saltutil.update command. I have http://docs.saltstack.com/downloads/ configured as my update URL, but when I tell the minion to update it just says that no updates are available.
15:28 sarkis joined #salt
15:28 timoguin johtso: that should be working. someone in here a few days ago was having the same problem.
15:28 timoguin i could have sworn it was an old issue, but i can't find it.
15:29 timoguin try clearing out /var/cache/salt and trying again
15:29 CycloHex How can I assure that my service gets restarted when I file.managed create a file? My service will not restart although I have it watched
15:32 SheetiS1 CycloHex: is the service getting installed at the same time as the file?  You could make the service require the file, so that when it is first created, it will be there on first start already if so.
15:33 CycloHex the service gets installed in the same sls as the file, yes.
15:33 CycloHex I think I want the opposite
15:34 CycloHex ah no, you might be right! if the file is already on there, it won't need a restart
15:34 murrdoc look up watch_in
15:34 CycloHex because it'll be started from the moment the configfile is already on the minion
15:34 mgw joined #salt
15:35 SheetiS1 CycloHex: that's how I do it.  require the file the service uses, then use watch_in to handle future changes
15:35 SheetiS1 so it knows to restart the service if it changes down the road.
15:35 murrdoc +1
15:35 intellix joined #salt
15:35 snuffeluffegus joined #salt
15:35 CycloHex watch_in is already there.. But right before your comment I required the pkg on the file.. But I was doing the opposite of what I need
15:36 Katafalkas joined #salt
15:37 SheetiS1 sounds like you are where you need to be (or will be in a few moments) then :D
15:37 CycloHex yes, the minion is being deployed as we speak :d
15:37 murrdoc das crazy
15:37 murrdoc LATE
15:38 CycloHex SheetiS1, thanks a lot for your input! I'll report back here whether it worked or not
15:38 SheetiS1 sounds good.
15:39 ndrei joined #salt
15:40 tligda joined #salt
15:41 delinquentme joined #salt
15:41 astol anybody knows how to add key for apt repo from local file?
15:42 astol setting key_url to file:// doesn't seem to do anything
15:46 sleepy_ joined #salt
15:49 iggy local to the minion?
15:54 gmcwhistler joined #salt
15:55 war2 joined #salt
15:57 desposo joined #salt
15:59 berserk joined #salt
16:01 johtso timoguin: clearing /var/cache/salt made no difference
16:01 jeremyb joined #salt
16:02 KyleG joined #salt
16:02 KyleG joined #salt
16:02 penguin_dan joined #salt
16:03 ramishra joined #salt
16:04 mechanicalduck joined #salt
16:04 wendall911 joined #salt
16:06 Ahlee Are grain values exposed to states?
16:06 CycloHex SheetiS1, still working.. I edited the file when I already deployed my minion, so I had to destroy it and re-deploy it :(
16:06 troyready joined #salt
16:06 CycloHex Ahlee, you can use grain values there yes..
16:06 CycloHex should be in jinja
16:07 Ahlee right
16:07 CycloHex {{ salt['grains.get']('grain-id') }}
16:07 Ahlee ah, {{ not {% - does grains.get have a default like pillar.get?
16:08 SheetiS1 You can {% set variable = grains.get('grain', 'default') %} or use the {{ }} like CycloHex said
16:08 Ahlee awesome, thanks
16:08 CycloHex {{ will print {% is used for logic
16:09 johtso timoguin: https://github.com/saltstack/salt/issues/16326
16:09 vejdmn joined #salt
16:09 kingel joined #salt
16:11 Katafalkas joined #salt
16:12 kingel joined #salt
16:14 Ahlee thanks CycloHex, that's helpful
16:14 Ahlee thanks SheetiS1, i'm testing that now
16:15 toastedpenguin joined #salt
16:16 scottpgallagher anybody running halite? and have it just show up as a blank white page when you try to access it?
16:23 Ahlee those worked CycloHex and SheetiS1, thanks again!
16:25 CycloHex welcome!
16:25 scottpgallagher nevermind
16:26 liquidat joined #salt
16:26 jeffspeff i'm trying to update my 2014.1.10 minion to 2014.1.11 via the saltutil.update command. I have http://docs.saltstack.com/downloads/ configured as my update URL, but when I tell the minion to update it just says that no updates are available.
16:30 Ahlee Are you running a bdist_esky build of 2014.1.10?
16:30 kingel joined #salt
16:30 aparsons joined #salt
16:32 wnkz joined #salt
16:33 Ahlee huh, they have that down as existing since 0.10.3?
16:33 possibilities joined #salt
16:34 Ahlee jeffspeff: are you updating a windows minion?
16:34 jeffspeff yes
16:35 glyf joined #salt
16:36 the_drow joined #salt
16:38 Gareth morning morning
16:40 war2 joined #salt
16:44 rihannon joined #salt
16:49 rallytime joined #salt
16:51 yes456 joined #salt
16:54 vejdmn joined #salt
16:54 dan_johnsin joined #salt
16:56 spookah joined #salt
16:57 utahcon is there a way to get salt to not report an error for a "half-configured" install?
16:57 utahcon mariadb wants username and password and such, but since the install is unattended, I either need that from an answer file, or to have teh machine not complain when I install that state.
16:58 zerthimon joined #salt
16:59 zerthimon left #salt
16:59 zerthimon joined #salt
17:00 holler joined #salt
17:02 holler hello, I have a masterless minion setup with vagrant + virtualbox that provisions a local ubuntu VM for development.. now I want to venture out and be able to provision a fresh ubuntu rackspace or aws VPS.. what are my next steps?
17:02 aparsons joined #salt
17:03 prosper_ joined #salt
17:03 ramishra joined #salt
17:04 jensnockert joined #salt
17:05 zerthimon joined #salt
17:07 lcavassa joined #salt
17:08 bhosmer_ joined #salt
17:08 utahcon holler: you want to get a VPS and then configure it exactly the same?
17:09 holler utahcon: yes at first, next after that will be to have it use a different e.g. nginx conf file
17:09 holler baby steps so I learn... :)
17:11 TheThing joined #salt
17:12 djaime joined #salt
17:12 trevorj Hi guys, I assume salt does not allow for submodules as a part of gitfs?
17:12 trevorj I feel like that would really make formulae shine
17:12 prosper_ joined #salt
17:13 trevorj Currently, you have to restart the master to get it to notice a new gitfs repo
17:13 tld_wrk joined #salt
17:13 trevorj It's a giant pain and I hate that all of the states are not managed with a single versioned copy
17:14 rap424 joined #salt
17:15 delinquentme joined #salt
17:17 kermit joined #salt
17:21 giantlock joined #salt
17:23 holler can someone explain where the 'webserver*dev*' comes from? what is that targeting? http://dpaste.com/03HYD9G
17:23 holler is that a name of a minion? how is that set etc?
17:23 Phibs joined #salt
17:23 davidnknight joined #salt
17:23 Phibs why would the salt master have 502 connections to the same host.....
17:24 Ryan_Lane joined #salt
17:25 Phibs and pushing 150Mbit of traffic :(
17:25 yes456 joined #salt
17:25 pfallenop joined #salt
17:25 iggy utahcon: if it's debian, there are dpkg-preconfigure and friends to help with that
17:26 iggy big dist directory?
17:28 prosper_ joined #salt
17:31 seanz joined #salt
17:31 aparsons joined #salt
17:33 jeffspeff Ahlee, yes it is a windows minion.
17:34 jeffspeff iggy, are you familia with the upate minion system for windows minions?
17:34 jeffspeff *familiar
17:34 fannet are there any examples of salt states sharing a package but using different config files for the same package based on pillar files ? Example: Install and configure NGINX but for each hostgroup have different pillars w/ variables for the types of virtual hosts?
17:35 holler how can I tell vagrant / salt to load a specific environment as defined in my top.sls? I originally had just base: '*': -stuff, but I now expanded the minion.file_roots to include a dev: '*' environment
17:35 holler how can I have that environment built?
17:36 holler fannet: thats something Im trying to figure out as well.. I think you have to set up different environments
17:36 holler http://docs.saltstack.com/en/latest/ref/states/top.html
17:36 semarie joined #salt
17:36 fannet nah I'm using environments for dev/qa/prod / etc
17:36 jeffspeff holler, i just went through the same thing, making different environments for my systems. this helped a lot http://docs.saltstack.com/en/latest/topics/tutorials/starting_states.html
17:36 holler fannet: I see... maybe im mistaken then
17:37 holler how do you have a specific environment used when say provisioning via vagrant
17:37 holler ?
17:37 anotherZero joined #salt
17:37 fannet I'd like to be able to say "use my nginx module but for the /etc/nginx/hosts-enabled/default.conf" build it based on a pillar tied to a hostname or host group
17:37 iggy jeffspeff: thankfully I don't have to mess with Windows these days
17:38 yomilk joined #salt
17:39 holler can you set pillar environments just like salt?
17:40 yes456 @whiteinge hi
17:41 Ryan_Lane joined #salt
17:41 holler fannet: "roles cna be assigned the hosts" http://docs.saltstack.com/en/latest/topics/tutorials/states_pt4.html#practical-example
17:42 trollolol joined #salt
17:42 fannet meh its not as elegant as I would like but it will do
17:43 cpowell joined #salt
17:44 yes456_ joined #salt
17:44 yes456_ @https://github.com/saltstack/salt/issues/12827
17:45 wnkz joined #salt
17:45 n8n joined #salt
17:48 UtahDave joined #salt
17:49 UtahDave left #salt
17:50 dccc_ joined #salt
17:58 druonysus joined #salt
18:01 logix812 joined #salt
18:03 djstorm joined #salt
18:04 ek6 joined #salt
18:05 aw110f joined #salt
18:05 whiteinge yes456_: thanks for the catch! looks like an easy fix
18:06 perfectsine_ joined #salt
18:07 ek6 So if I hard set environment: notbase on a minion should it not be looking/pulling the files from under file_roots: notbase ?
18:08 yes456_ whiteinge:  can u give me hint regarding fix. i was not able figureout
18:08 yes456_ :(
18:08 anotherZero joined #salt
18:09 Gareth I wonder why these scheduled jobs aren't showing up in the jobs.list_jobs runner.
18:09 whiteinge i think we just need to edit the opts['file_roots'] dictionary that we're generating to have a 'base' key. it should have a default value anyway
18:13 mechanicalduck joined #salt
18:13 iggy anybody ever seen a filename with a + in it fail on a file.recurse?
18:16 war2 joined #salt
18:18 Ahlee i still have hte odd 'grains.setval foo something' will set foo: h
18:18 astol joined #salt
18:19 astol1 joined #salt
18:22 mechanicalduck joined #salt
18:23 yes456_ whiteinge:  what figureout was when opts dict have file_client : local it failed  otherwise it get rendered. thanks wating for u r fix.
18:27 tafa2 joined #salt
18:28 rihannon left #salt
18:30 tafa2 is the point of a syndic like for offsite minions?
18:30 tafa2 master -> syndic -> more minions?
18:31 bhosmer joined #salt
18:32 anotherZero joined #salt
18:32 anotherZero joined #salt
18:33 eunuchsocket joined #salt
18:33 chrisjones joined #salt
18:34 kingel joined #salt
18:37 kermit joined #salt
18:37 kermit joined #salt
18:38 kingel joined #salt
18:38 * geekatcmu thinks that is exactly the point of syndic: keep a master near the minions.
18:38 aw110f joined #salt
18:38 baconbeckons joined #salt
18:39 jalaziz joined #salt
18:39 geekatcmu Perhaps not important when you're tiny enough to fit in a single DC, but if you live in multiple DCs or, workse, multiple continents, syndic will make your minions much, much happier.
18:39 mechanicalduck_ joined #salt
18:39 geekatcmu s/workse/worse/
18:39 XenophonF joined #salt
18:39 druonysuse joined #salt
18:40 ndrei joined #salt
18:41 XenophonF does anyone online have salt installed on openindiana or solaris? any gotchas i should be aware of?
18:42 eunuchsocket joined #salt
18:45 TheThing joined #salt
18:45 perfectsine joined #salt
18:52 NotreDev joined #salt
18:52 NotreDev i have a state executing right now, and it’s taking a while. anything i can do to see if it’s stuck?
18:52 martoss joined #salt
18:52 NotreDev Executing command 'freshclam' in directory ‘/tmp’
18:53 jensnockert joined #salt
18:54 iggy log into the system and see if anything is happening?
18:54 martoss1 joined #salt
18:55 druonysuse joined #salt
18:55 druonysuse joined #salt
18:55 iggy on a file.recurse... "Source file salt://|dist/repo/www/repo/public_html/all/debian/pool/main/o/oracle-j2sdk1.7_1.7.0+update55_amd64.deb not found"
18:56 iggy is that | after salt:// normal?
18:59 diegows joined #salt
18:59 baconbeckons is there a project that is using proxy config to manage aws services (RDS database servers etc) out there yet?
19:01 SheetiS1 baconbeckons: the salt.states.boto* stuff in 2014.7 would probably be worth looking at. http://docs.saltstack.com/en/latest/ref/states/all/salt.states.boto_elb.html this is the elb docs for example.
19:01 NotreDev strace is my friend
19:01 NotreDev nvm
19:02 baconbeckons SheetiS1: cool, i’ll take a look. thanks!
19:03 mechanicalduck joined #salt
19:06 tafa2 so im reading teh docs its great! I've got an sls called larch for example and it installs ruby, ruby dev etc but then how do in the same sls get it to run the command gem install larch?
19:06 heewa joined #salt
19:06 SheetiS1 http://docs.saltstack.com/en/latest/ref/states/all/salt.states.gem.html for all your rubygem needs :D
19:07 tafa2 0o
19:07 tafa2 nice
19:07 SheetiS1 makes it easy
19:07 SheetiS1 just make sure that it requries your ruby that's installed and the like
19:08 SheetiS1 so that it doesn't try to run before ruby/rvm/whatever is installed
19:08 murrdoc joined #salt
19:08 tafa2 0o
19:09 SheetiS1 http://docs.saltstack.com/en/latest/ref/states/requisites.html for requisite stuff
19:09 tafa2 my first sls
19:09 tafa2 http://pastebin.com/fPnssdbS
19:09 tafa2 is that correct?
19:09 tafa2 apart from the typo on line 3
19:10 SheetiS1 you could condense line 2 and 3 together to pkg.installed
19:10 tafa2 coo
19:10 tafa2 *cool
19:10 tafa2 SheetiS1 thansk for the gem.installed link prob saved me a lot of time
19:10 kingel joined #salt
19:11 SheetiS1 then under gem.installed do - require: \n   - pkg: larch
19:11 Katafalkas joined #salt
19:11 mechanicalduck joined #salt
19:12 SheetiS1 so that it knows it reuires the other stuff
19:12 mechanicalduck joined #salt
19:13 heewa I’m getting “Data failed to compile” (with no extra info) + “No matching sls found for ..”, but if I make that sls an empty file, it runs fine. Even debug output shows no problems: it renders the yaml ok, but doesn’t say anything else about it. Any ideas where to start digging into this?
19:14 SheetiS1 you could try and run the state with '-l debug'
19:14 jalaziz joined #salt
19:14 SheetiS1 otherwise, feel free to share a pastebin.com/refheap.com/bpaste.net/whatever of the state file for someone to look at
19:15 SheetiS1 sometimes it's easy to eyeball it when you aren't the one who wrote the state
19:16 tafa2 SheetiS1 like so? http://pastebin.com/e1483MXp
19:17 SheetiS1 tafa2: that looks like that would work at first glance.  Lots of indent there :).  I'm used to seing 2-space indents on most yaml :)
19:18 tafa2 haha thanks, yeah I wrote it straight on the server and nano indents like hell
19:18 SheetiS1 If it doesn't work, we might have to separate the gem.installed from the pkg.installed states
19:18 tafa2 ill give it go, first sls woop
19:18 SheetiS1 ahh I use a heavily-cusomized vimrc with auto-indent profiles for most of it
19:18 SheetiS1 tafa2: good luck!
19:19 mpanetta_ joined #salt
19:19 heewa SheetiS: Ok, tracked it down. It looks like if I “include: - nonexistent” Then it says the state that’s doing the including isn’t found, not the nonexistent thing being included. Any idea where in the code I can hunt that down (and if it’s not too much trouble, submit a fix)?
19:19 war2 joined #salt
19:20 tafa2 haha ive never had anything first time in the lab
19:20 SheetiS1 heewa: what version are you running?
19:20 tafa2 ok the : in require: seems to have triggered it
19:20 mechanicalduck joined #salt
19:21 heewa SheetiS1: v2014.1.10. Should I try with some other tag, or branch, or latest master (to see if it’s been fixed)?
19:21 war3 joined #salt
19:21 SheetiS1 well 2014.7 is in RC status right now, and I know a lot of the error reporting has gotten better in it, but not anything specific to your issue.
19:21 mechanicalduck joined #salt
19:22 SheetiS1 but some people here are already running 2014.7 to gain use of the new features it has.  I've been a little more conservative myself (still running 2014.1.10 like yourself)
19:23 semarie joined #salt
19:26 baconbeckons joined #salt
19:29 tafa2 how can i include cmd.run as part of one of my states?
19:29 * Ahrotahntee thumbs through salt.modules.nagios
19:29 Ahrotahntee this is pretty neat
19:31 rypeck joined #salt
19:31 kballou joined #salt
19:31 heewa SheetiS1: Ok, checked 2014.1.11, and it’s a correct error message there. Thanks for the help!
19:34 SheetiS1 glad you found what you needed :D
19:35 Ahrotahntee Does anyone have a recommendation on how to keep two filesystems in sync for the purposes of having two upstream webservers?
19:35 * iggy listens in
19:35 Ahrotahntee does not necessarily need to be a salt solution
19:36 Ahrotahntee but could very well be
19:37 SheetiS1 Ahrotahntee: Have a specific platform in mind?  There are a lot of ways to solve that
19:37 Ahrotahntee SheetiS1: Debian /w nginx + php5-fpm
19:37 Ahrotahntee my deployment is fairly monochromatic. Debian 7, x64
19:38 SheetiS1 If you need to do it at the OS level, something like glusterfs can work.  If you can use something like rackspace cloud files or amazon s3 in your app, these are good choices as well.
19:38 SheetiS1 If you do not have dynamic assets, deploying everything from source control to both webservers could work.
19:38 kickerdog joined #salt
19:38 ggoZ joined #salt
19:38 tafa2 i hate to say it
19:38 kickerdog Is there a simple way to spin up 1000 vm's using salt-cloud cli?
19:38 Ahrotahntee like a git pull
19:38 Ahrotahntee that would work
19:38 tafa2 but bittorent sync coul do that Ahrotahntee
19:39 Ahrotahntee hadn't considered btsync
19:39 tafa2 secure, low overhead, fast
19:39 Ahrotahntee also interesting
19:39 * Ahrotahntee scribbles
19:39 tafa2 u can lock down the known IP's
19:39 Ahrotahntee source control had crossed my mind before
19:40 Ahrotahntee if I go the github/source control root I could actually make a salt formula for each site, couldn't I?
19:40 tafa2 can someone tell me why this is failing by any chance? http://pastebin.com/TxeR8Rsm like 12 illegal tab character
19:40 Ahrotahntee specify the source from the repo and use a regular highstate to get it to sync
19:40 tafa2 *line
19:41 Ahrotahntee tafa2: tab on line 12? maybe after the :?
19:42 heewa tafa2: Looks like `cmd.run` doesn’t have a `:`
19:42 Ahrotahntee ha, I'm blind
19:42 tafa2 heewa same
19:42 tafa2 just added : and same error :(
19:42 Ahrotahntee you're using spaces (not tabs) to indent, right?
19:42 tafa2 uh no
19:42 heewa tafa2: Can you update the pastebin with the error you’re getting?
19:43 Ahrotahntee doesn't yaml require spaces?
19:43 * tafa2 <--- first salt installation
19:43 tafa2 heewa yea
19:43 Ahrotahntee <-- not overly familiar with yaml
19:43 tafa2 heewa http://pastebin.com/DJTJQjtU
19:44 heewa Yea, apparently yaml forbits tabs: http://www.yaml.org/faq.html I didn’t know, cuz I personally forbit tabs ;)
19:44 tafa2 0oooooo
19:44 tafa2 i was tabbing
19:44 tafa2 ok then lemme try that
19:44 war2 joined #salt
19:44 juice joined #salt
19:44 Ahrotahntee the decision has been made
19:44 Ahrotahntee iggy: source control
19:44 murrdoc joined #salt
19:45 Ahrotahntee well, source control + salt formula
19:45 Ahrotahntee just to make it easier on me
19:46 tafa2 looks like it worked!
19:46 tafa2 Ahrotahntee but then u gotta store a git repo?
19:46 dan_johnsin Is there a way to generate random strings of arbitrary length via salt?
19:47 Ahrotahntee tafa2: yeah
19:47 tafa2 bt sync u could store a conf file on the master to send over for the directory structure that needs to be synced
19:47 tafa2 but git is prob better actually....
19:48 tafa2 dan_johnsin ive been using salt for 2minutes, but couldnt u write a bash function to do that and pass it into whatever ytou need as a variable
19:48 tafa2 and have that called by salt?
19:49 tafa2 cool heewa SheetiS1 it worked thanks guys
19:50 ajprog_laptop Ahrotahntee: I setup a cluster the would copy the files from gitlab for the site files for php backend servers
19:53 jaimed joined #salt
19:54 mechanicalduck_ joined #salt
20:01 heewa dan_johnsin: Where do you want those strings to end up? The entire contents of a single file? Inside a templated file? Inside a salt state file itself? This is really hacky, but here’s templated random strings: http://pastebin.com/m83iph4r
20:03 NotreDev joined #salt
20:10 dan_johnsin heewa: Yeah that was what I was thinking I would need to do.
20:10 dan_johnsin heewa: which is fine for my situation
20:10 pdayton joined #salt
20:11 kingel joined #salt
20:13 mechanicalduck joined #salt
20:13 kingel joined #salt
20:17 druonysus joined #salt
20:18 forrest joined #salt
20:19 murrdoc joined #salt
20:20 johngrasty left #salt
20:21 CaptinHokk joined #salt
20:22 heewa joined #salt
20:24 TheThing joined #salt
20:25 martoss joined #salt
20:27 prosper_ joined #salt
20:27 tafa2 If you have 100's of machines on salt surely it doesnt output everything on the master?
20:27 spookah\ joined #salt
20:27 mpanetta tafa2: If you tell it not to
20:27 mpanetta It won't
20:27 mechanicalduck_ joined #salt
20:27 tafa2 hmmm ok
20:28 mpanetta Just do everything async
20:28 tafa2 async?
20:28 mpanetta The returns will come back anyway though
20:28 mpanetta yeah, can't remember the exact command, but basically tell it to run your jib and return immediately
20:28 mpanetta *job
20:29 tafa2 oh cool!
20:29 tafa2 so it doesnt run in parallel anyway?
20:29 mpanetta tafa2: --async
20:29 tafa2 *by default
20:29 tafa2 ive only just it installed a few hours ago so still figuring it all out
20:29 mpanetta No, salt does not work like that.  Everything is in parallel because it sends job info on the event bus
20:30 mpanetta Basically it fires an event that says 'these minions go do x' and waits for them to return.
20:30 tafa2 ah ok
20:30 mpanetta you can learn a lot about how salt works by watching the event bus :)
20:30 mpanetta It is quite enlightning
20:31 mpanetta tafa2: http://docs.saltstack.com/en/latest/topics/event/index.html
20:32 TyrfingMjolnir joined #salt
20:33 fannet whats the difference between "dot" syntax and "slash" syntax in pillar files? Example:     - webserver.prod   vs  - webserver/prod
20:35 tafa2 mpanetta thanks for that :)
20:35 tafa2 ill check it out
20:35 pipps joined #salt
20:35 Josh joined #salt
20:36 prosper__ joined #salt
20:36 pdayton joined #salt
20:39 peters-tx joined #salt
20:40 mpanetta tafa2: Of course :)
20:41 mpanetta wow I have never seen slash syntax...
20:41 kickerdog joined #salt
20:41 yomilk joined #salt
20:41 fannet :-)
20:41 jensnockert joined #salt
20:42 possibilities joined #salt
20:42 yomilk joined #salt
20:42 tbxyz joined #salt
20:42 possibilities joined #salt
20:42 yomilk joined #salt
20:42 jalaziz joined #salt
20:43 jhauser joined #salt
20:44 ecdhe Is there a way I can disable a single state from taking action?
20:44 ecdhe I want to use file.mknod to check that a /dev/tty* device exists, but I don't want to actually run mknod if it doesn't exist.
20:46 iggy exists?
20:47 iggy somebody was talking about this the other day
20:48 iggy kind of hacky, but {% if salt['file.exists']('/dev/ttywhatever') %} or something similar
20:49 jeffspeff iggy, just in case you ever need to, the last post here https://groups.google.com/forum/#!topic/salt-users/JXPET9Mzp2E works pretty well for upgrading salt minions on windows
20:50 iggy I don't use Windows
20:50 iggy at all
20:50 jeffspeff lucky
20:51 dlam joined #salt
20:52 jcockhren heh
20:52 heewa ecdhe: I used file.managed with source: ‘’, replace: false, create: false (doesn’t modify file contents, doesn’t replace, or create), but you can change permissions
20:52 to_json joined #salt
20:52 fannet guys can someone please provide a working example of a single STATE using different PILLARS based on environment?
20:53 iggy basically any state should work with different pillars
20:55 jcockhren fannet: you mean. get pillars from different environments?
20:57 fannet Well not actually environments - I want to be able to say  hostname1 use apache/pillar1.sls and hostname2 uses apache/pillar2 but both rely on a single STATE which pulls variables from the appropriate pillar
20:57 iggy you do that in your top files
20:58 fannet I pointed hostname1 to hostname.sls in the pillar top.sls and hostname.sls loads apache.pillar1
20:58 ecdhe thanks heewa!
20:59 TheThing joined #salt
20:59 fannet but by apache/init.sls calls a jinja template which errors out saying the object defined in apache.pillar1 is not defined
20:59 n8n joined #salt
21:00 iggy "loads apache.pillar1"?
21:00 fannet includes
21:01 akitada__ joined #salt
21:01 iggy I was under the impression you could not use include in pillars
21:01 fannet include: apache.pillar1
21:01 fannet ah
21:02 fannet let me move the reference to the top file
21:02 druonysus joined #salt
21:02 druonysus joined #salt
21:03 aparsons joined #salt
21:03 Katafalkas joined #salt
21:03 XenophonF is anyone running salt on solaris?
21:03 XenophonF the package in OpenCSW is broken
21:04 XenophonF it wants Python 2.7
21:04 XenophonF but the package pulls in Python 2.6 as a dependency
21:08 sxar joined #salt
21:10 fxhp joined #salt
21:11 utahcon so if debconf-get-selections shows: "mariadb-galera-server-10.0  mysql-server/root_password_again password" -- my states should be http://pastie.org/9615098 -- right?
21:11 fannet moved the definition to the top.sls and still no love
21:12 fannet my pillar1.sls just has one line: my: my.domain.com
21:13 fannet if I try to reference "my" in my jinja template it can't find it
21:14 fannet also if i do a pillar.items it doesn't show
21:14 ozzzo I'm trying to use salt to install nagios on a masterless minion and it's failing. Can anyone tell me what I'm doing wrong?
21:14 ozzzo http://pastebin.com/MfKLGis8
21:14 ozzzo error on top, config files below
21:14 heewa I can’t seem to get anything to show up in pillar. salt-call pillar.items is empty. I tried with -l debug, and it looks like it’s rendering my sls files in /src/pillar just fine, and shows “Results of YAML rendering”, but still empty pillar. :(
21:15 heewa ozzzo: Indentation. The `- name: |` part and all the lines after should be indented 2 more spaces.
21:16 fannet ozzzo: also isnt it cmd.run and not cmd-run
21:16 utahcon shouldn't "cmd-run" be "cmd.run" ?
21:16 ozzzo oic ty
21:17 steve1 heewa: try throwing an asterisk after the hostname in your pillar/top.sls file.  if that fails, look what the minion thinks its hostname is (on the minion): salt-call grains.items.  I've had some wonky minion hostnames that don't match the machine's hostname due to reverse DNS.
21:19 ozzzo is there a document that explains how .sls files must be formatted?
21:20 utahcon http://docs.saltstack.com/en/latest/topics/tutorials/starting_states.html
21:20 fannet ozzzo by default they are YAML
21:21 heewa steve1: I have a ‘*’ match only (trying to simplify to track it down), and the one sls I mention is rendered (can see it in debug output), but the values it finds don’t end up in the pillar.
21:21 NotreDev joined #salt
21:23 steve1 heewa: you have '*' in your salt/top.sls and pillar/top.sls?
21:24 smcquay joined #salt
21:28 heewa Here’s the problem I’m having with an empty pillar, with my top.sls and a simple.sls and the debug output of salt-call pillar.items: http://pastebin.com/cjLwCr48
21:28 dan_johnsin So I need to copy a file, if it is not already present, then update that same file.  Can this be done inside a single state?
21:29 fannet iggy and jcockhren here is my simple config: http://pastebin.com/jQAbDzkA
21:29 kingel joined #salt
21:30 heewa dan_johnsin: You want to backup the file before it’s changed? http://docs.saltstack.com/en/latest/ref/states/backup_mode.html
21:31 iggy fannet: if pillar.items doesn't show what you expect, you need to start there
21:31 fannet it does not
21:32 dan_johnsin heewa: Naw, I am copying a file from one location to another on disk if it doesn't exist, then I need to conditionally update a line of said copied file if it matches a certain pattern.  But only if I copied the file
21:32 fannet iggy - can you reference a pillar without a matching state and have those pillar items still be available across all states?
21:34 heewa dan_johnsin: Sadly, no. Because you can’t have two file.* things under the same top-level state name. So you have to use one for copying and one for updating, and use watch or require in the updating one. Unless you use something else for one of them, like maybe cmd.run: name: ‘cp …’ and file.something to modify it, maybe?
21:34 iggy sure
21:34 iggy pillars and states are in now way tied to each other
21:35 heewa iggy: I’m also having a problem with stuff not being in my pillar. Any tips on tracking it down? http://pastebin.com/cjLwCr48
21:36 iggy fannet: if nginxserver doesn't show up in pillar.items (assuming that pastebin is your actual config), you need to start there... don't worry about the states until that is right
21:37 fannet ok I literaly put a test.sls in the root pillar folder and referenced it directly using the same top file and nothing happened
21:37 fannet I did a saltutil.refresh_pillar and then a pillar.items
21:38 iggy heewa: no clue, that all looks fine
21:38 baconbeckons joined #salt
21:39 Ryan_Lane joined #salt
21:39 mordonez joined #salt
21:40 n8n joined #salt
21:40 agj joined #salt
21:40 nihe joined #salt
21:40 Heartsbane joined #salt
21:40 Heartsbane joined #salt
21:40 utahcon hey Heartsbane
21:40 micko joined #salt
21:41 corvus joined #salt
21:41 redondos joined #salt
21:41 IOMonster joined #salt
21:41 IOMonster joined #salt
21:42 bhosmer_ joined #salt
21:43 fannet OK i Literally did a '*' match on my top.sls and Nothing
21:44 heewa Ugh, v2014.1.11 doesn’t show my pillar items, but v2014.7.0rc2 does. So.. the responsible thing to do would be to try to track down the bug in v2014.1.11, huh? ..but I have work to do :(
21:45 fannet This is my pillar file: http://pastebin.com/bDtDwErJ
21:46 iggy fannet: what version of salt?
21:47 fannet 2014.1.10
21:48 iggy there goes that theory
21:49 fannet lol
21:49 peters-tx joined #salt
21:49 fannet if I point to a non existent pillar then highstate breaks so its def. reading top.sls
21:50 iggy worksforme
21:50 iggy haha sucker
21:50 fannet =(
21:51 iggy but for reals... I have no idea
21:51 fannet I'm using gitfs
21:51 iggy I am too
21:51 fannet not that it should matter
21:51 iggy oh...
21:51 iggy one thing we did notice is gitfs doesn't seem to like anything other than the master branch
21:52 fannet oh?
21:52 iggy yeah, never bothered tracking it down
21:52 fannet I have branches working fine for states- is this a pillar thing
21:55 Guest73668 Question is there a way to trace back what is calling a state to run on a minion? I have a state that being called during highstate and I am unable to find out what is calling it. My top.sls has become fairly complexed, and reading though the pattern matching is becoming more difficult as we grow. Is there a way to list out what states are called in some kind of tree view?
21:57 iggy fannet: yes, specifically pillars
21:57 iggy fannet: what's your pillar line look like?
21:57 fannet wow thats a massive bug isnt it?
21:57 iggy I figured we were just using it wrong
21:57 iggy that may still be the case
21:57 iggy I'm not really sure
21:58 fannet my pillar line is this: nginxserver: my.server.com
21:58 kingel joined #salt
21:59 iggy no, in the master config
22:00 fannet :-/ I pushed it to master and it worked
22:00 fannet Thats not good
22:01 iggy that answers that
22:02 fannet so that kinda breaks our ability to have multi-environments doesn't it?
22:06 smcquay joined #salt
22:13 wramthun joined #salt
22:15 iggy that's what I thought
22:15 jalaziz joined #salt
22:15 iggy but like I said, I assumed I was doing something wrong or expecting something wrong
22:18 Ahrotahntee didn't I read that you can get salt state managed files from a repo?
22:18 Ahrotahntee I'm not seeing the example in the dos
22:18 Ahrotahntee docs*
22:19 ggoZ joined #salt
22:19 iggy you mean from salt:// ?
22:20 iggy what do you mean by repo?
22:21 Ahrotahntee like source control
22:21 Ahrotahntee I thought theere was a git:// for source
22:21 Ahrotahntee or something
22:21 Ahrotahntee but I'm not seeing it in the docs
22:21 Ahrotahntee found it, gitfs backend walktrhough
22:22 homelinen joined #salt
22:23 n8n joined #salt
22:23 iggy that's to have your entire state/pillar tree in git
22:23 iggy then you'd still just use salt://
22:23 mosen joined #salt
22:23 aparsons joined #salt
22:24 fannet Ahrotahntee: This is how I've got it tied to my git repo: http://pastebin.com/isubqTm2
22:24 fannet put it in /etc/master and make sure your file roots aren't conflicting
22:25 fannet sorry /etc/salt/master :)
22:25 Ahrotahntee yeah actually this is not what I was expecting
22:25 Ahrotahntee I was expecting to have file.managed > source: git://
22:25 fannet what were you expecting
22:25 chrisjones joined #salt
22:25 smcquay joined #salt
22:26 fannet you can do that
22:26 fannet not quite how you put it but its possible
22:26 Ahrotahntee yeah? is there something in the docs for it?
22:27 fannet http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.git.html
22:27 Ahrotahntee ah OK
22:28 kermit joined #salt
22:30 badon joined #salt
22:30 jensnockert joined #salt
22:31 kingel joined #salt
22:33 fannet iggy:   https://github.com/saltstack/salt/issues/16341   feel free to comment on your experience
22:35 glyf joined #salt
22:36 to_json joined #salt
22:39 iggy I'm still not sure it isn't acting the way it should
22:39 iggy but we'll see what they say
22:40 rihannon joined #salt
22:40 jalaziz joined #salt
22:41 aquinas_ joined #salt
22:41 jalaziz joined #salt
22:42 rihannon Is there a way to replay the logs from a jid?  Salt is constantly telling me that it will store the results of a command into jid XXXXXX, how do I display that later?   Better yet, is there a way I can process those logs with a script?
22:42 mosen lookup_jid is the only one i know
22:43 honestly salt job control is pretty comprehensive
22:43 honestly and I saw it documented somewhere
22:43 mosen ah yeah, the manual section on job control is a good place
22:43 ahammond joined #salt
22:44 rihannon I checked it out before posting.  My favorite bit: http://docs.saltstack.com/en/latest/topics/development/logging.html
22:45 rihannon I run salt on a scheduled basis, and what I'd ideally like is a way to run a report of nodes which had failures, and what those failure were.
22:45 ahammond hi all. I installed salt into a virtualenv using /srv/salt_virtualenv/bin/pip install -U salt    my next task is getting the minion up and running. is there a standard approach for this, or should I just steal the init.d script from the package based install and hack it to support the venv?
22:46 mosen rihannon: ah yeah im wondering if theres anything out there that already does it too
22:46 mosen saw some mention of salmon for monitoring
22:48 rihannon I'm happy to parse the files myself, if it comes to that, but knowing the format of return.p files ahead of time would save me a bit of trouble.
22:49 jcockhren ahammond: firstly, make sure your config files are in the right place. for now it seems /etc/salt/minion and /etc/salt/minion.d are hard reqs
22:50 jcockhren all other config vars that deal with config paths respect the root_dir variable
22:50 ahammond jcockhren yeah, the config files should all end up in their usual locations. I just want to isolate the python binaries and libs into a virtualenv.
22:51 jcockhren ahammond: yeah. either grab the init script for the system packages or write your own upstart
22:51 ahammond jcockhren I'll steal the default init script. I don't need / want to be clever about this. :)
22:54 schimmy joined #salt
22:57 pipps_ joined #salt
22:57 schimmy1 joined #salt
22:57 XenophonF joined #salt
22:58 XenophonF hey all, will a salt 2014.1.3 minion talk to a 2014.1.10 master?
22:58 XenophonF alternatively, does the salt-bootstrap script work on OpenIndiana?
22:58 manfred it should
22:59 manfred but it is recommended to get the newest version if possible
22:59 Ahrotahntee now here's the real question: on git.latest does the identity value point to a path on the minion, or a path on the master?
22:59 XenophonF so far I've checked both the SmartOS and OpenCSW package repos for Solaris, and neither has an up-to-date version of Salt
22:59 XenophonF the Salt package in OpenCSW is broken, which sucks because that's what the SaltStack docs tell you to use
23:00 brendangilmor joined #salt
23:01 manfred smartos should have 2014.1.11 i thought, i know the packager said he did 2014.1.10
23:01 pipps joined #salt
23:03 desposo joined #salt
23:03 monokrome joined #salt
23:04 wolfpack joined #salt
23:06 monokrome joined #salt
23:07 yomilk joined #salt
23:08 monokrome joined #salt
23:09 spookah joined #salt
23:09 jasonrm joined #salt
23:12 wolfpackmars2 it appears the PDF docs are not compiling
23:12 wolfpackmars2 anyone know where I can get a PDF version of the docs?
23:13 Ahrotahntee fannet: got it working; thanks a bunch!
23:17 olasd joined #salt
23:18 Outlander joined #salt
23:20 monokrome joined #salt
23:21 * Ahrotahntee sprays Guest73668 with a fire extinguisher
23:22 Guest73668 ?
23:23 Ahrotahntee sorry I missed, I meant to spray Guest78888
23:23 Ahrotahntee he clearly needed help and as a precaution I wanted to ensure he was flame retardant
23:23 Ahrotahntee in case he needed help as a direct result of fire
23:23 wolfpackmars2_ joined #salt
23:24 druonysuse joined #salt
23:24 druonysuse joined #salt
23:29 rawtaz joined #salt
23:31 pipps joined #salt
23:34 possibilities joined #salt
23:36 iggy wolfpackmars2_: if you look at the older versions or the current version, one of them works
23:36 iggy wolfpackmars2_: it's a known issue that should be sorted out pretty soon
23:37 iggy hmm, the old one is gone now too
23:37 iggy so much for that
23:38 wolfpackmars2_ ok as long as it's a known issue.  in my situation, the PDF docs are really helpful
23:39 xsteadfastx joined #salt
23:39 iggy wolfpackmars2_: I don't think it'll be fixed in the next couple of weeks unfortunately (all focus is on release right now)
23:39 iggy wolfpackmars2: if you want something sooner, try google cache/waybackmachine/etc.
23:42 baconbeckons i want to run a state only if a library isn’t installed. do i use `unless` like this? `- unless: ldconfig -p | grep mypkgname`?
23:46 manfred yes
23:46 manfred if unless is available in that state (on 2014.1, it is in file git and cmd, on 2014.7, it is in all of them)
23:47 baconbeckons is unless looking for the exit code ?
23:47 manfred yes
23:47 manfred it runs cmd.retcode
23:48 manfred (i wrote it :))
23:48 manfred https://github.com/saltstack/salt/blob/develop/salt/state.py#L621
23:49 manfred git file and cmd all have there own seperately
23:49 manfred but they do basically the same thing
23:50 manfred and are specified by mod_run_check functions inside the state files https://github.com/saltstack/salt/blob/develop/salt/state.py#L1530
23:50 kickerdog joined #salt
23:51 wolfpackmars2 joined #salt
23:55 kickerdog1 joined #salt
23:56 peno joined #salt
23:59 NotreDev joined #salt

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