Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-03-21

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

All times shown according to UTC.

Time Nick Message
00:03 __number5__ http://docs.saltstack.com/topics/tutorials/salt_bootstrap.html
00:03 sroegner joined #salt
00:04 __number5__ RandalSchwartz: and it's shell compliant, not bash
00:04 allanparsons for whatever reason my multi-line pillar data is getitng placed on one line
00:04 allanparsons i'm using data: |
00:04 allanparsons (it's an rsa private ket)
00:05 allanparsons and if i cat it out, i have spaces where line breaks should be
00:07 __number5__ allanparsons: I don't have that problem, how do you reference the pillar data in your sls?
00:09 allanparsons __number__5 : http://pastebin.com/cbu0FNCF
00:11 allanparsons technically i should be able to reference it without the "{{ myvar }}
00:11 allanparsons "{{ myvar }}"
00:11 allanparsons but when i omit the double quotes it screws up my sls
00:12 allanparsons but it puts everything on one line with a space where \n should be
00:12 __number5__ allanparsons: try use the contents_pillar in your file state
00:13 allanparsons what do you mean
00:13 __number5__ http://docs.saltstack.com/ref/states/all/salt.states.file.html#salt.states.file.managed
00:13 __number5__ search contents_pillar
00:13 bhosmer_ joined #salt
00:16 allanparsons oh sweet
00:16 luminous http://paste.debian.net/plainh/18d6b3ea <<< anyone able to make anything of this craziness?
00:16 allanparsons new-ish
00:16 allanparsons http://pastebin.com/4xS9pTYy
00:16 allanparsons trying now
00:18 __number5__ allanparsons: you should use your pillar key name after contents_pillar, instead of jinja template var
00:18 allanparsons :( ok
00:18 allanparsons yeah, i got this error: http://pastebin.com/5cbaa5d6
00:19 __number5__ https://github.com/JustinCarmony/vagrant-cloud/blob/master/saltstack/salt/master/ssh.sls
00:20 allanparsons since im looping, im gonna have to do something like this: - contents_pillar: "deploy:%s:deploy_keys:%s:public_key" % (name, name)
00:20 __number5__ and your pillar should look like this https://github.com/JustinCarmony/vagrant-cloud/blob/master/saltstack/pillar/master/auth.example.sls#L22
00:21 __number5__ yep, that make sense
00:21 allanparsons 4 spaces or two spaces indentation?
00:21 allanparsons i think i remember reading somewhere 2 spaces
00:22 __number5__ yaml don't care, keep it consistent you'll be ok
00:22 allanparsons yeah, i keep getting a yaml error
00:22 allanparsons lemme paste my key
00:22 allanparsons well, 1 sec... key omitted
00:24 allanparsons it complains about that: contents_pillar: "deploy:%s:deploy_keys:%s:public_key" % (name, name)    <======================
00:25 allanparsons http://pastebin.com/eyePaZj8
00:26 __number5__ try first without looping, hard code your pillar key name
00:26 allanparsons trying: - contents_pillar: deploy:{{ name }}:deploy_keys:{{ name }}:public_key
00:27 __number5__ wait, the real key should be in your pillar file not sls
00:27 allanparsons the real key is in my pillar
00:27 allanparsons the real key is in my pillar
00:27 __number5__ so what's this http://pastebin.com/eyePaZj8?
00:28 allanparsons it says removed
00:28 allanparsons oh there was a ?
00:28 __number5__ that's the link you gave me, remove the '?'
00:29 allanparsons yeah, i omitted my private key for security (pastebin)
00:29 [diecast] joined #salt
00:29 __number5__ is that a pillar file or a state file
00:29 allanparsons thats the pillar file
00:30 allanparsons thats the pillar file
00:30 allanparsons ugh, i hate when my terminal window loses focus :)
00:30 allanparsons sorry
00:31 __number5__ remove all your variables in your sls, try it with static one once
00:31 allanparsons __number5__, that worked!  contents_pillar: deploy:{{ name }}:deploy_keys:{{ name }}:key
00:31 __number5__ :)
00:32 allanparsons i wish there was a way to simulate a loop from salt-call
00:32 allanparsons i hate checking stuff go git then running a salt-call to test it
00:34 younqcass joined #salt
00:37 n8n joined #salt
00:39 justlooks joined #salt
00:40 __number5__ setup a masterless minion for testing new code
00:42 jeddi vm's are cheap :)
00:45 krow joined #salt
00:47 n8n joined #salt
00:50 oz_akan_ joined #salt
00:58 tdilly joined #salt
00:58 pentabular joined #salt
01:02 bhosmer_ joined #salt
01:07 mgw joined #salt
01:10 tdilly I noticed that there are some salt modules for netbsd but couldn't determine if salt supports netbsd's pkgsrc. Does anyone know?
01:12 snuffeluffegus joined #salt
01:18 krow joined #salt
01:18 yomilk joined #salt
01:18 mgw joined #salt
01:20 TyrfingMjolnir joined #salt
01:21 stevetodd joined #salt
01:22 jnials joined #salt
01:26 dman777_alter joined #salt
01:27 dman777_alter hi, I'm new to salt. what does - installed mean exactly under pkg: ? and also, what is managed exactly mean/doing in file.managed?
01:27 dman777_alter I've been reading the tutorials but still am not clear on those 2
01:28 sandbender1512 pkg.installed checks to make sure the pkg is installed, and installs it if it's not
01:29 sandbender1512 file.managed makes sure the file exists and has the correct ownership/perms/content, and creates/adjusts if not
01:30 dman777_alter withouth file.managed the example on http://docs.saltstack.com/topics/tutorials/pillar.html for vim....- mode: 644 would not happen even if it is there?
01:31 manfred dman777_alter: if pkg.installed didn't succeed, then the file.managed won't happen
01:32 sandbender1512 http://docs.saltstack.com/ref/states/highstate.html?highlight=highstate
01:32 sandbender1512 ^^ This explains the highstate data structure
01:32 dman777_alter solely speaking ofr file.managed though
01:32 dman777_alter or managed in particular
01:32 manfred dman777_alter: if you just do file.managed, just remove the require: pkg: vim and it will run no matter what
01:32 sandbender1512 file.managed is short for file:\n  - managed
01:33 tvs_ joined #salt
01:33 tvs_ is there an Ubuntu package for salt version 2014.01.0?
01:33 manfred which version of ubuntu
01:34 taion809 joined #salt
01:34 tvs_ 13.04
01:34 manfred launch pad wouldn't let them upload the package for raring
01:34 manfred so no
01:35 tvs_ that 'no' is temporary? will it be one available later?
01:37 tvs_ I mean, will a package for ubuntu 13.04 be available?
01:38 manfred tvs_: manfred_#salt_20140317.log:[05:37:39] <joehh> manfred: unfortunately launchpad can no longer host/build packages for raring as it is now EOL
01:38 manfred looks like never
01:38 manfred http://fridge.ubuntu.com/2014/01/28/ubuntu-13-04-raring-ringtail-end-of-life-reached-on-january-27-2014/
01:38 yomilk joined #salt
01:39 tvs_ ok, thanks manfred for the information
01:44 HeadAIX joined #salt
01:46 jacobra joined #salt
01:46 fridiculous joined #salt
01:47 fridiculous what's the best way to get grains from the other minions
01:47 bhosmer_ joined #salt
01:47 ipalreadytaken joined #salt
01:47 fridiculous say i want to make a list of minions with specific grains within a salt state
01:48 n8n joined #salt
01:48 fridiculous kinda like this
01:48 fridiculous http://stackoverflow.com/questions/17158665/how-to-get-a-list-of-all-salt-minions-in-a-template
01:49 yomilk joined #salt
01:53 oz_akan__ joined #salt
01:53 n8n joined #salt
01:54 StDiluted joined #salt
01:55 manfred you can peer them and do publish.publish, or you can use the saltmine
01:55 manfred yeah
01:55 manfred the ones in that guide
01:56 manfred https://github.com/saltstack/salt/blob/5f63035e3681c37e4e3017517d20241fefc518e5/doc/topics/mine/index.rst
01:57 manfred https://github.com/saltstack/salt/blob/develop/doc/topics/mine/index.rst
01:57 krow joined #salt
01:58 manfred fridiculous: https://github.com/saltstack/salt/blob/develop/doc/ref/peer.rst
02:01 krow1 joined #salt
02:04 sroegner joined #salt
02:05 MedicalJaneParis joined #salt
02:06 krow joined #salt
02:06 Gordonz joined #salt
02:12 stevetodd joined #salt
02:12 krow joined #salt
02:17 krow joined #salt
02:20 mapu joined #salt
02:22 krow joined #salt
02:23 jay-atl1 joined #salt
02:23 rostam joined #salt
02:25 krow1 joined #salt
02:25 tzero joined #salt
02:27 krow joined #salt
02:33 krow joined #salt
02:38 krow joined #salt
02:39 mgw joined #salt
02:40 mapu joined #salt
02:41 svs_ joined #salt
02:44 krow joined #salt
02:45 mapu joined #salt
02:48 faldridge joined #salt
02:50 krow joined #salt
02:51 Gordonz joined #salt
02:53 yomilk joined #salt
02:53 l0x3py joined #salt
02:53 xl1 joined #salt
02:55 krow joined #salt
02:59 pentabular1 joined #salt
03:01 krow joined #salt
03:06 frasergraham joined #salt
03:06 krow joined #salt
03:07 jacobra left #salt
03:11 krow joined #salt
03:20 jeremyfelt joined #salt
03:21 mgw joined #salt
03:24 oz_akan_ joined #salt
03:27 justlooks hi, how can i run a formula?
03:32 druonysuse I just opened an issue about salt-ssh https://github.com/saltstack/salt/issues/11403
03:36 krow joined #salt
03:49 oz_akan_ joined #salt
04:05 sroegner joined #salt
04:12 Furao joined #salt
04:12 suckaplease joined #salt
04:13 thayne joined #salt
04:21 dvogt joined #salt
04:22 druonysuse joined #salt
04:22 druonysuse joined #salt
04:23 StDiluted joined #salt
04:25 malinoff joined #salt
04:39 ravibhure joined #salt
04:49 jalbretsen joined #salt
04:50 oz_akan_ joined #salt
04:56 ajw0100 joined #salt
05:05 druonysuse joined #salt
05:05 druonysuse joined #salt
05:32 druonysuse joined #salt
05:32 druonysuse joined #salt
05:44 schimmy joined #salt
05:48 schimmy joined #salt
05:49 akitada joined #salt
05:49 StDiluted joined #salt
05:51 oz_akan_ joined #salt
05:58 tvle joined #salt
06:05 faldridge joined #salt
06:06 sroegner joined #salt
06:11 ravibhure joined #salt
06:16 ravibhure joined #salt
06:22 n8n joined #salt
06:25 MTecknology I feel compelled to share. http://imgur.com/a/pG3HR
06:25 TheRealBill_here joined #salt
06:31 bhosmer_ joined #salt
06:32 yomilk joined #salt
06:39 justlooks one of my minion connect a master which has custom returner ,now i change it to another master ,it get error https://gist.github.com/justlooks/9680815 ,how can i do this?
06:52 oz_akan_ joined #salt
06:55 quickdry21 joined #salt
06:57 Ztyx joined #salt
06:57 justlooks how can i find old master pub file and delete? if i change to a new master?
07:00 Ztyx joined #salt
07:02 Ztyx left #salt
07:07 gammalget joined #salt
07:08 xl1 joined #salt
07:18 Katafalkas joined #salt
07:22 Katafalkas joined #salt
07:28 mattmtl joined #salt
07:34 faldridge joined #salt
07:38 dcolish joined #salt
07:48 nedrocks joined #salt
07:50 justlooks joined #salt
07:50 justlooks anyone can help https://gist.github.com/justlooks/9680815
07:50 Nazzy joined #salt
07:51 malinoff http://docs.saltstack.com/ref/states/all/salt.states.pkg.html#salt.states.pkg.installed
07:51 malinoff version argument
07:52 estjang joined #salt
07:52 oz_akan_ joined #salt
07:53 alfborge joined #salt
07:58 kadel joined #salt
08:02 justlooks why sometime execution get no response? no error and no any information
08:04 malinoff justlooks, timeout is over
08:06 balboah joined #salt
08:06 Ryan_Lane joined #salt
08:07 justlooks malinoff: what your means timeout?
08:07 sroegner joined #salt
08:07 justlooks malinoff: what timeout?
08:07 malinoff justlooks, well, each command call has timeout
08:07 justlooks malinoff:  i use # salt -t 100 'saltslave2' state.sls tomcat ,still silence
08:08 malinoff Seems it's a bug
08:08 malinoff What is the output from salt-run manage.up ?
08:08 Doqnach joined #salt
08:08 Furao unless it take more than 100 seconds
08:09 malinoff Yeah
08:09 estjang also, if minion dies, salt seems to lose the job output.
08:09 justlooks malinoff:  it just echo "saltslaver" not "saltslaver2"
08:09 malinoff justlooks, so saltslaver2 is dead
08:10 justlooks malinoff: i use vm snapshot to back the past ,that's the reason?
08:10 malinoff Idk
08:14 justlooks malinoff: but i restart my minion ,master still can not find it ,why?
08:14 estjang what does 'salt-keys -L' say?
08:15 justlooks my mistake ,the minion connect to other master ,when it go back to past
08:17 justlooks when i switch between masters ,is there anything need clean in minion?
08:18 Furao just found that my ISP is ipv6 ready, mtr -n 2404:6800:4001:c01::68 works!
08:19 nmistry joined #salt
08:19 gamedna joined #salt
08:20 gamedna have a simple question, is it possible to for key,value using pillar data?
08:20 slav0nic joined #salt
08:22 Katafalk_ joined #salt
08:22 justlooks gamedna: pillar data is a key-value format
08:23 gamedna have something like mydata:\n   whatever1: blah\n, whatever2: blah2
08:23 gamedna and trying to do {% for k,v, in pillar['mydata'] %}
08:25 gamedna im guessing im missing something, but not finding a decent example
08:25 mike25ro joined #salt
08:26 harobed_ joined #salt
08:26 justlooks gamedna: definitly can
08:26 gamedna justlooks: is that the correct syntax for that type of query?
08:26 harobed_ joined #salt
08:26 gamedna its erroring out sayign that too many values to unpack
08:29 justlooks gamedna: i think it is a python complaint,not salt
08:29 gamedna its definitely jinja2 complaining.
08:32 justlooks gamedna: yes ,jinja2 can not understand this syntax
08:33 gamedna justlooks: how does salt pass pillar data over w/ the example i listed above?  is it a dict or a list?
08:33 justlooks gamedna:  you can iterate key ,
08:34 giantlock joined #salt
08:36 gamedna justlooks, found the problem, needs .iteritems()
08:37 gamedna {% for k,v, in pillar['mydata'].iteritems() %} works
08:39 viod joined #salt
08:39 sieve joined #salt
08:40 googolhash joined #salt
08:41 yomilk joined #salt
08:46 andersb left #salt
08:53 kermit joined #salt
08:53 oz_akan_ joined #salt
08:54 alfborge I'm struggling with creating a state for unzipping a file in windows.  It seems that I need to install the unzip command first, and then I need to fix the path.  Unfortunately, it seems I need to restart the salt-minion to pick up the changes in the path...
08:59 Furao joined #salt
09:00 sdlarsen joined #salt
09:00 Katafalkas joined #salt
09:03 sdlarsen What is a good way of templating file names? I'm using pillar to keep the state file simple, but have changing file names/hashes from our CI.
09:05 justlooks sdlarsen: not catch your means
09:07 sdlarsen justlooks: I have tarballs from my build with changing names (they include build-number and other variables). I need the correct name in the state file and have them in a pillar for now. So dynamically updating a pillar is what I'm looking at
09:09 alfborge sdlarsen: Sounds like something I'm going to be looking at next week. :)
09:10 sdlarsen alfborge: interesting!
09:10 justlooks sdlarsen: set filename : xxxx in pillar ,and use pillar['filename'] in your state file ,so what you want to do is modify pillar ,when the old tarballs need replace
09:10 alfborge sdlarsen: Not really, since I'm all new at this. :)
09:13 alfborge sdlarsen: you could use a symlink <name>-latest.tar.gz that points to the actual file, in which case you wouldn't need to be changing your pillar or state...
09:15 sdlarsen justlooks: exactly. I can to that with sed, but find it a little brutal :)
09:15 alfborge sdlarsen: Or the state could include an sls that sets the name based on some python code.
09:21 thayne joined #salt
09:22 alfborge sdlarsen: An alternative is to use an external pillar, I have a feeling this might be a good solution...
09:22 rjc joined #salt
09:23 alfborge Then the external pillar can generate the neccessary data based on the state in you build system or wherever...
09:28 justlooks how to write content to file ? file.append will check if the file exist
09:31 bhosmer_ joined #salt
09:33 sdlarsen alfborge: external pillar? I'll have to investigate...
09:33 alfborge http://docs.saltstack.com/topics/development/external_pillars.html
09:35 sdlarsen alfborge: reading... thanks :)
09:38 rdorgueil joined #salt
09:38 rdorgueil Hello.
09:39 nedrocks joined #salt
09:40 rdorgueil I might have broken something but I don't know where to look. I interrupted previous salt-call state.highstate with KeyboardInterrupts (Ctrl-C), and I don't know if it is related but I now have a "Passed invalid arguments: 'NoneType' object is not iterable" error on each run. (full output : https://gist.github.com/hartym/e9568bca65746372fe22). A quick google search did not help me a lot, does someone has either a quick solution or a way to inspect t
09:40 rdorgueil his error ? Even being able to get the full stack trace instead of the exception label would be a great start for me. Thanks.
09:40 rdorgueil btw, I'm running masterless salt.
09:41 rdorgueil and the setup was working like 5 minutes ago, too.
09:43 rdorgueil I think I found it, was an error in a sls file. The error could have been more verbose though.
09:47 magenbrot joined #salt
09:49 carlos joined #salt
09:51 yomilk joined #salt
09:54 oz_akan_ joined #salt
09:57 millz0r joined #salt
10:00 Katafalkas joined #salt
10:01 sabayonuser_ joined #salt
10:03 pentabular joined #salt
10:04 pentabular1 joined #salt
10:07 ajw0100 joined #salt
10:08 sroegner joined #salt
10:08 mekstrem joined #salt
10:16 yota joined #salt
10:16 yota_ joined #salt
10:16 johtso joined #salt
10:17 alfborge Should I be able to restart the salt-minion from salt?
10:18 alfborge When I try that it seems to break on my windows minion.
10:18 alfborge As in the minion does stops but it doesn't start again.
10:19 honestly not surprised by anything breaking on windows.
10:23 sieve joined #salt
10:23 sieve Hello salty dogs.
10:24 mortis__ im using this https://github.com/mortis1337/nagios-plugins/blob/master/check_by_salt.py at home, to run nagios-plugins via salt w/o the need to use nrpe or ssh-keys (since im running nagios and salt on the same server .... BUT what if i would want to do that via peers from a nagios-server and using salt-call (caller.function) ....
10:24 ravibhure1 joined #salt
10:24 sieve I am using a file per machine to define network settings https://gist.github.com/anonymous/22e938ecb680505a480d
10:24 sieve however this is cumbersome as hell
10:25 sieve Is there a better way to manage this?
10:25 sieve Perhaps some kind of list?
10:32 Tlost joined #salt
10:34 viod joined #salt
10:34 viod left #salt
10:38 OwenW joined #salt
10:41 pentabular joined #salt
10:41 Gordonz joined #salt
10:42 pentabular1 joined #salt
10:43 Gordonz joined #salt
10:47 raizyr joined #salt
11:00 ggoZ joined #salt
11:00 Katafalk_ joined #salt
11:02 ggoZ joined #salt
11:03 viod joined #salt
11:03 viod left #salt
11:05 Tlost joined #salt
11:06 Tlost joined #salt
11:11 fke joined #salt
11:16 mikko__ joined #salt
11:21 pentabular joined #salt
11:26 lessismore joined #salt
11:29 occup4nt joined #salt
11:30 diegows joined #salt
11:32 hartym joined #salt
11:36 Katafalkas joined #salt
11:39 OwenW Anyone know why my "127.0.0.1 localhost" entry in /etc/hosts keeps getting removed after having it managed by salt?
11:39 OwenW http://pastebin.com/yTG7ebV4
11:42 diegows RandalSchwartz, depends on the platform
11:43 OwenW debian wheezy
11:43 OwenW oh sorry, thought that was a reply to me
11:43 diegows RandalSchwartz, service uses different execution modules that depends on the plafform, for example, is uses the upstart execution module in Ubuntu
11:44 diegows you should check that documentation if you want to verify what kwargs you have available
11:44 diegows anyway, usually, you don't need it
11:49 halfss joined #salt
11:55 faldridge joined #salt
12:04 tomasfejfar joined #salt
12:05 tomasfejfar Hello everyone :)
12:06 tomasfejfar Is it possible to set a cronjob to run every 5 minutes using salt.states.cron in v0.17? The manual does not looks like it can...
12:07 nn0101 joined #salt
12:08 sroegner joined #salt
12:15 alfborge How can I pass extra arguments to a cmd.script jinja template?
12:15 alfborge defaults doesn't seem to work.
12:17 viod joined #salt
12:23 Tlost_ joined #salt
12:24 Tlost__ joined #salt
12:25 Katafalkas joined #salt
12:27 alfborge context seemed to help.
12:28 whitepaws joined #salt
12:34 sporkd2 joined #salt
12:34 lsc joined #salt
12:35 lsc Hey guys
12:35 lsc I've got a problem with my Windows minions
12:35 lsc none of the reconnect after a master restart
12:36 lsc both are running 2014.04, ZMQ3 on Master and ZMQ4 on minions
12:37 lsc the Linux minions are reconnecting just fine
12:37 lsc did anyone encounter this problem before?
12:37 lsc *2014.01
12:39 Katafalkas joined #salt
12:42 Tlost joined #salt
12:43 clemenko joined #salt
12:43 Tlost joined #salt
12:44 Tlost joined #salt
12:45 Tlost joined #salt
12:46 wkf_ joined #salt
12:46 Tlost joined #salt
12:47 rfree joined #salt
12:48 rfree psi wakeup, wakeup, it's the NSA, we came to bring you freedom and democracy
12:48 clemenko joined #salt
12:48 rfree psi other then that, what do you think about encryption scheme I thought about - https://infotomb.com/2ob6x
12:49 rfree this is the Salt, like from salt.i2p, right?
12:50 carlos_ joined #salt
12:59 napper2 joined #salt
13:00 oz_akan_ joined #salt
13:02 R_Shackleford joined #salt
13:03 R_Shackleford joined #salt
13:03 yomilk joined #salt
13:05 lsc rfree: this channel is about the configuration management tool Salt
13:06 babilen rfree: ... as in http://www.saltstack.com/community/
13:06 halfss joined #salt
13:07 Gordonz joined #salt
13:08 rfree ah ok. bye guys o/
13:08 rfree left #salt
13:10 mapu joined #salt
13:10 Gifflen joined #salt
13:12 jaimed joined #salt
13:14 juicer2 joined #salt
13:14 juicer2 left #salt
13:15 HeadAIX joined #salt
13:15 racooper joined #salt
13:20 ravibhure joined #salt
13:21 gnugnu9 joined #salt
13:37 xmj lsc: from what i've seen, many people had that issue
13:37 xmj you could try to find it on github
13:38 tdilly joined #salt
13:38 Katafalk_ joined #salt
13:39 lsc xmj: there are many issues regarding this problem, but I thought they were supposed to be resolved on ZMQ>=3
13:39 lsc apparently not: https://github.com/saltstack/salt/issues/6862
13:41 lsc but all of the issues I found were about timeouts, not master restarts
13:42 StDiluted joined #salt
13:43 dvogt joined #salt
13:44 Networkn3rd joined #salt
13:46 melb joined #salt
13:46 Gifflen joined #salt
13:51 quickdry21 joined #salt
13:53 faldridge joined #salt
13:54 faldridge joined #salt
13:58 tdilly Does anyone know if the netbsd's pkgsrc is supported by salt? I didn't see a module for it but I did see somme other netbsd modules.
13:59 MrTango joined #salt
14:00 kaptk2 joined #salt
14:01 thayne joined #salt
14:02 tyler-baker joined #salt
14:03 HeadAIX joined #salt
14:05 Tlost joined #salt
14:05 rdorgueil joined #salt
14:05 sroegner joined #salt
14:08 GradysGhost joined #salt
14:10 rlarkin joined #salt
14:13 [diecast] joined #salt
14:13 [diecast] joined #salt
14:19 jrdx joined #salt
14:22 jrdx What's the proper way to pull back multi-level pillar values, from the command line... I can't seem to find good examples (just with grains). Something like: salt "*" pillar.get "db:port"
14:23 rostam joined #salt
14:24 jrdx (where under "db", you'd have other various items like IP, port, username, etc)
14:24 GradysGhost joined #salt
14:25 millz0r jrdx: that works
14:27 StDiluted joined #salt
14:27 jrdx millz0r: ah, so it does... after a pillar refresh. Got confused because pillar.items (with params) was coming back with the correct values (so I assumed the cache was updated). Thanks for the confirmation!
14:28 millz0r np
14:28 jrdx (first time really getting into pillars for me)
14:30 repl1cant lsc: i just looked and 4.0.4 was released with the following: * Fixed #797; fixed setting TCP keepalive on Windows.
14:32 seapasulli joined #salt
14:33 [diecast] joined #salt
14:33 jeremyBass joined #salt
14:35 colinbits joined #salt
14:36 suckaplease joined #salt
14:38 lsc repl1cant: that explains it, I guess… the current Windows build is using 4.0.3
14:38 lsc thanks
14:40 vejdmn joined #salt
14:40 lsc it seems that Salt's Windows support isn't really ready for production
14:41 lsc many of the modules break on localized Windows builds
14:41 alfborge joined #salt
14:41 sijis left #salt
14:41 lsc (because of hardcoded values)
14:42 mike25ro lsc: i haven't used it for win... is it worth wasting test-time?
14:42 mike25ro hardcoded where?
14:43 lsc example: https://github.com/saltstack/salt/blob/develop/salt/modules/win_useradd.py#L290
14:43 yomilk joined #salt
14:44 zirpu joined #salt
14:44 lsc the string "Local Group Memberships" is usually translated
14:45 lsc I'm evaluating Salt vs Puppet for the company I'm working for
14:46 lsc about 110+ production servers running Windows Server 2003-2012
14:46 mike25ro lsc i did that too ... and i ended up with salt ... but all servers are linux
14:47 jaimed joined #salt
14:47 repl1cant I've been looking at windows support as well, but to basically just execute powershell and return json data
14:47 repl1cant so i just need a constant connection to the agent
14:47 lsc that's exactly what I need to do as well
14:50 danielbachhuber joined #salt
14:51 lsc I'll happily fix some modules to make them work on localized builds or write some new ones to improve Windows support in Salt
14:51 lsc but there seem to be some other strange issues as well: https://github.com/saltstack/salt/issues/10773, for example
14:51 yomilk joined #salt
14:51 mike25ro lsc:  repl1cant that is a good idea.. just the agent to return data
14:56 melb anyone have any ideas on how to bypass the source_hash requirement for file.managed?
14:56 lsc melb: Salt needs the source hash to see if the remote file changed
14:56 melb dammit
14:56 melb ok, thanks
14:59 utz joined #salt
15:00 lsc has anyone here set up a Windows build system for Salt before?
15:00 lsc I'm contemplating to try to build it using ZMQ 4.0.4
15:01 lsc to see if that resolves it
15:02 mozg joined #salt
15:02 mozg hello guys
15:02 ipmb joined #salt
15:02 mozg could some one help me to understand how communication between the master and the minions work
15:03 lsc what don't you understand?
15:03 mozg in particular, does the Master need to have a network access to the menion servers, or do the minions contact the master?
15:04 JesseCW joined #salt
15:04 mozg ideally, I do not want to expose the minions server to the master. I was hoping to give the master public ip address and have the minions contacting the master
15:06 wendall911 joined #salt
15:07 nshalman joined #salt
15:07 slav0nic joined #salt
15:08 bhosmer joined #salt
15:09 rallytime joined #salt
15:09 bhosmer joined #salt
15:11 utz joined #salt
15:11 lsc mozg: that's exactly how it works
15:12 lsc mozg: minions connect to the master
15:12 gmoro joined #salt
15:14 ckao joined #salt
15:16 napper2 joined #salt
15:17 toastedpenguin joined #salt
15:18 Gifflen_ joined #salt
15:18 mozg oh, cool
15:18 mozg so i do not need to set any port forwardings to the minions if they are behind fw?
15:19 mozg is it only the master that need fw rules?
15:20 jalbretsen joined #salt
15:20 ek6 joined #salt
15:20 bhosmer joined #salt
15:22 Ahlee terminalmage: you around?
15:23 jeremyfelt joined #salt
15:24 lsc mozg: yes
15:25 lsc rules for incoming connections, that is
15:28 Gifflen joined #salt
15:28 gadams999 joined #salt
15:29 g4rlic mozg: unless your default iptables ruleset on the OUTPUT for FORWARD chains is set to DENY, you should be ok. ;)  Minions don't receive new connections, just initiate outbound to the master.
15:29 dvogt joined #salt
15:30 gadams999 joined #salt
15:33 frasergraham joined #salt
15:37 halfss joined #salt
15:41 sandbender1512 having an issue with a cmd.run state... the command ('name') is basically this: /usr/bin/test -d <dir_in_question> || /bin/echo changed=true
15:41 sandbender1512 this is a stateful cmd.run
15:41 sandbender1512 I get a KeyError exception when running the sls that contains it via state.sls
15:42 Heartsbane cro: ping
15:42 sandbender1512 'cmd_|-<id of state>_|-/usr/bin/test -d <dir_in_question> || /bin/echo changed=true_|-run
15:43 sandbender1512 ^^ this is they key it's complaining about... anyone have any ideas?
15:43 druonysus joined #salt
15:43 druonysus joined #salt
15:43 meteorfox joined #salt
15:44 ravibhure left #salt
15:46 sandbender1512 hrm
15:47 * sandbender1512 changes that to utilize unless: for the first part and re-tests to see if it still complains... suspects the double pipe is messing it up internally somehow
15:47 sandbender1512 nope :/
15:50 diegows joined #salt
15:51 bhosmer joined #salt
15:52 lsc if I wait a few seconds between stopping and restarting the master, all Windows minions reconnect
15:53 lsc that's interesting
15:53 ksalman joined #salt
15:53 utz1 joined #salt
15:54 ksalman doesn't file.append create a file if it does not exist? https://gist.githubusercontent.com/anonymous/9689290/raw/09be2476f7dc3285d10d6b2f06ff35243d859539/gistfile1.txt says /etc/locale.gen not found
15:54 ksalman according to this it does create a file https://github.com/saltstack/salt/issues/1864
15:55 thayne joined #salt
15:56 cro joined #salt
15:56 mozg thanks guys
15:57 mozg that's awesome!
15:57 [diecast] joined #salt
15:57 g4rlic sandbender1512: are your commands double or single quoted?
15:58 g4rlic We had a few pipe chains like that, and they were double quoted (and beneath an unless) and worked quite well.
15:59 thehaven joined #salt
15:59 sandbender1512 I tried single quoting, same diff, but not double
15:59 sandbender1512 sec
16:02 txmoose Howdy all.  Just FYI, the guys at True Ability just stood up a Salt "Give it a Shot" in case anyone is intersted. Spread the word! http://blog.trueability.com/2014/03/give-it-a-shot-saltstack/
16:03 millz0r joined #salt
16:03 sandbender1512 nope, no difference... this is weird, it doesn't look like the issue is the command itself as I originally thought it might be :/
16:03 * sandbender1512 wonders if 'stateful' is broken?
16:04 slav0nic joined #salt
16:04 g4rlic I don't suppose you have a pastebin URL to the state giving you trouble?
16:04 slav0nic joined #salt
16:05 sandbender1512 no can't paste the whole sls if that's what you want... I can show you the specific state/block though? ie; that specific cmd.run ?
16:05 dfinn joined #salt
16:06 quickdry21 Hey, I upgraded to 2014.1.0, and for the npm.bootstrap state I'm getting Invalid requisite type 'npm.bootstrap' in state 'bouncer', in SLS 'bouncer'. Requisite types must not contain dots, did you mean 'npm'?
16:06 dfinn last night I upgraded my master to 2014.1.0-1 and it went really smooth.  all of my minions are still on 0.17.x and no problems with those.  I did notice though that my one minion that runs 2014.x is no longer working.  it's giving errors about using env which I thought would be fine to keep using for now?
16:06 dfinn http://pastebin.com/ksw8gWNi
16:07 mozg guys, is there a way to automate salt minions installation?
16:07 sandbender1512 g4rlic: http://pastebin.com/dnVHDgjp
16:07 mozg i would like to be able to install it on around 50 ubuntu servers
16:07 mozg without manually installing the repo, changing config, etc
16:07 frasergraham joined #salt
16:08 sandbender1512 hrm
16:08 g4rlic mozg: that's probably outside of the scope of Salt support. ;)  In redhat land, we just install salt via kickstart and push out the baseline config.  Once the minion's up and communicating with the master (post-kick), it's off to the races.
16:09 forrest joined #salt
16:10 g4rlic sandbender1512: I haven't used -stateful yet, so I can't guarantee I'll be of much help.  But I'm guessing that your command, then, has to return some kind of Salt-recognized formatted JSON blob instead of just a return code.  At least I remember reading something *like* that at one point.
16:10 mozg g4rlic, i see
16:10 mozg what about using ssh perhaps?
16:11 mozg like ssh into a machine and run the necessary commands to install and configure the minions?
16:12 g4rlic sandbender1512: https://github.com/saltstack/salt/blob/develop/salt/states/cmd.py#L48
16:12 txmoose mozg: salt-ssh ;)
16:12 sandbender1512 http://docs.saltstack.com/ref/states/all/salt.states.cmd.html  section 19.25.8.1
16:12 g4rlic mozg: why would you do that after the fact, when you can do it during machine build time?
16:13 vxitch joined #salt
16:13 sandbender1512 g4rlic can you plz re-paste that url I cleared it from my client by accident, sorry :/
16:13 g4rlic Don't worry, it's just the in-code documentation.
16:14 g4rlic it's basically the same thing you just linked to me.
16:14 g4rlic ;)
16:14 sandbender1512 oh heh :)
16:14 g4rlic DRY. ;)
16:14 ksalman i assume mozg already has those 50 machines up so he can't do it "during" machine build time
16:14 sandbender1512 yeah it says JSON *or* last line of stdout == space-delimited list of k/v pairs separated by =
16:14 tdilly joined #salt
16:14 ksalman mozg: I'd just do it via ssh in a for loop
16:14 * sandbender1512 will try json
16:15 ksalman sadly
16:15 vxitch my salt state is failing, saying it can't find 'samba4' and 'samba4-common' in the package db, but i can run `yum search samba4` and see those packages. here's the output http://hastebin.com/jimovekexe.vhdl
16:15 g4rlic sandbender1512: is it possible that you're not missing the && condition from the test, and that's what's producing the wrong output?
16:15 tdilly I want salt to manage vhost files in a conf.d folder, do I have to list each file manually with 'file.managed'?
16:16 g4rlic ksalman & mozg: if the boxes are already up, then, well, see shmux. ;)  But really, that's something that should be done @ machine build.
16:16 sandbender1512 g4rlic yeah I keep checking that... the running of the command itself is throwing the exception, not the subsequent stuff anyways, ie: salt-call catches a top level exception while it's trying to execute that
16:16 rgbkrk joined #salt
16:16 mozg thanks
16:16 mozg got it
16:17 g4rlic sandbender1512: copy of the backtrace by any chance?
16:17 sandbender1512 sec
16:18 g4rlic mozg: if you've not looked into preseeding with ubuntu, I would recommend it.  It's the debian equivalent to kickstart.
16:19 vxitch can anyone tell me why pkg.installed won't install samba4?
16:19 Heartsbane basepi: ping
16:20 tvle joined #salt
16:20 basepi Heartsbane: pong
16:20 g4rlic vxitch: sorry, I've got nothing on that.  I know we had an issue like that at one point in time, and doing a yum clean all seemed to remedy that.  But YMMV.
16:20 mozg g4rlic, thanks
16:20 joehillen joined #salt
16:21 g4rlic (also, we found a bug back in the 0.16.4 days that caused it, but it was fixed pretty quickly.)
16:21 Heartsbane basepi: can you tell cro that fix for those i386 RPMs appear to still be working and he can close that ticket I opened
16:21 Heartsbane just as a reminder
16:21 Heartsbane I guess he doesn't get much of a chance to IRC much anymore
16:21 tdilly vxitch: I've also seen somthing similiar but only when I was using Arm, though that bug was fixed. What OS/Arch are you on?
16:22 vxitch tdilly: RHEL 6.5 x86_64
16:22 forrest Heartsbane, he's in here right now :P
16:22 tdilly vxitch: lemme see if I get the same issue
16:22 TheRealBill_here joined #salt
16:23 Heartsbane forrest: he is not responding, and I told him I would followup with him on Tuesday
16:23 forrest Heartsbane, ahh gotcha
16:23 Heartsbane forrest: patience always takes to long
16:23 forrest heh
16:24 conan_the_destro joined #salt
16:24 Heartsbane you ever notice the more patience you have the longer things take
16:25 tdilly vxitch: what command are you running exactly (so I can emulate)
16:25 MedicalJaneParis joined #salt
16:25 vxitch running highstate, and here's my samba.sls, lemme throw it up on hastebin
16:27 vxitch http://hastebin.com/cifikubivu.sm
16:27 Whissi Is there a way to get the current value for the "gather_job_timeout" from a running master?
16:27 forrest vxitch, what happens when you run that state with -l debug?
16:28 vxitch http://hastebin.com/raw/jimovekexe
16:28 vxitch thats the output of `salt-minion -l debug` on the minion
16:28 forrest vxitch, what happens when you run yum list samba* ?
16:29 vxitch i see the packages
16:29 vxitch so i know the repos are all in check. and i can run `yum install samba4 samba4-common` from the minion and itll go
16:29 forrest can you try to wrap the names in single quotes?
16:29 vxitch sure, ill try
16:29 druonysus joined #salt
16:30 forrest vxitch, and also don't run it as a highstate
16:30 forrest vxitch, use state.sls samba_state_name
16:31 vxitch still failed, with single quotes
16:31 forrest ok, let's try to run that again from the master with -l debug
16:31 forrest just to see
16:31 forrest also there isn't a version mismatch between the master and minion right?
16:31 vxitch -l debug on the master or minion?
16:31 g4rlic minion
16:31 forrest salt 'minion' state.sls samba_state_name -l debug on the master
16:32 forrest see if it's seeing something different than the minion is
16:32 vxitch same version
16:32 forrest cool
16:32 Linz joined #salt
16:32 g4rlic Salt should really enforce master/minion version matching..  that set us back like 2 days because we didnt' see it coming..  (we used fedora as a minion and centos as a master, with their respective public repos.)
16:33 yomilk joined #salt
16:33 vxitch ugh i keep getting 'data failed to compile - the function state.sls is running as pid.....'
16:33 forrest g4rlic, this is something that we run into a lot. The big problem is that there isn't ALWAYS a problem
16:33 forrest g4rlic, but yes, I agree that it's very problematic, and annoying :(
16:34 tdilly vxitch: Sorry, gotta put out a fire havent' had a chance to try in my env
16:34 Linz joined #salt
16:34 vxitch s'all good, thats what im trying to do here haha
16:35 fridder joined #salt
16:35 basepi Heartsbane: I relayed your message.
16:35 g4rlic vxitch: if you try running the repoquery command that Salt is trying to run, do you see anything?
16:35 g4rlic I ran it on my Fedora 19 system, and I get some output that looks reasonable.
16:36 g4rlic it also matches yum search
16:36 vxitch i tried it and a bunch of variations, it doesnt return anything. which i cant figure out why. like i said, yum search returns what i expect
16:36 g4rlic but repoquery does not?
16:36 g4rlic That's, strange.
16:36 vxitch nope :(
16:36 g4rlic I think we know where the bug is then..  ;)  they should return similar data points.
16:37 schimmy joined #salt
16:37 g4rlic vxitch: what happens when you remove the --quiet flag and add --verbose to the repoquery command you run by hand?
16:38 vxitch i tried, no og
16:38 vxitch *no go
16:39 vxitch if i run `repoquery -l samba4` it doesnt return anything, but if i run it with the `--plugins` arg it works
16:39 vxitch i tried adding --plugins to the repoquery command salt tries to run, and still nothing
16:39 g4rlic wha?
16:39 g4rlic here's what I get on a regular Fedora 19 system: http://pastebin.com/MRHjP6Kk
16:39 elfixit1 joined #salt
16:39 vxitch --plugins enables it working with RHN satellites or something
16:40 g4rlic this is RHEL proper?
16:40 vxitch yup
16:40 schimmy1 joined #salt
16:40 vxitch registered to a satellite my org runs
16:40 napper2 joined #salt
16:40 racooper known issue...hang on let me find it on github
16:41 debian112 is there a way to inherit environments?
16:41 lessismore left #salt
16:41 vxitch alright....i found something
16:42 g4rlic vxitch: oh?
16:42 vxitch if i run the repoquery with --plugins and without the escaped single quotes around the package names, it returns fine
16:42 cheus joined #salt
16:42 vxitch but salt runs repoquery without --plugins and with escaped single quotes. derp :(
16:43 oz_akan_ joined #salt
16:43 racooper https://github.com/saltstack/salt/issues/11121
16:44 vxitch racooper: thanks!
16:44 vxitch man, if my salt-ci server was finished this would have never been an issue :P
16:45 forrest racooper, thanks for linking that, I was just gonna have to search for it, lol
16:45 racooper custom modules in your master's /srv/salt/_modules override stock of the same name so you can sync the fixed module from that ticket and not worry about replacing the stock one
16:45 forrest vxitch, https://github.com/saltstack/salt/issues/9982
16:46 forrest vxitch, actually that might be wrong
16:46 forrest damn I know there was an issue relating to plugins...
16:46 forrest vxitch, here it is https://github.com/saltstack/salt/issues/11050
16:47 vxitch racooper: wait, what? so if i make a _modules dir and drop the modified .py files in there, itll use those on minions?
16:47 gadams999 joined #salt
16:47 vxitch forrest: thank you!!
16:47 forrest vxitch, yea np
16:47 racooper vxitch,  after you do a saltutil.sync_modules yes
16:48 vxitch thats so great, i didnt know. ive been going around manually changing iptables.py for my minions
16:48 vxitch stupid typos
16:48 smcquay joined #salt
16:49 racooper btw here's the commit for the plugins issue https://github.com/saltstack/salt/pull/11145
16:49 vxitch yup, ive got that open thanks racooper
16:51 luminous say you have a cmd to run (to install an app) that watches a git repo. you want that command to run when the git repo changes, so you have the watch, but you also want to run that command if the app is not present on the host.. do you need a second state for this, or could cmd.run/wait be setup to handle this split?
16:52 druonysus joined #salt
16:52 druonysus joined #salt
16:53 vxitch left #salt
16:54 darrend joined #salt
16:55 kballou joined #salt
16:56 Heartsbane basepi: thank you
16:57 fridiculous manfred, you mentioned salt mine last night
16:57 KyleG joined #salt
16:57 KyleG joined #salt
16:57 fridiculous i unfortunately got pulled away before
17:00 dfinn anyone else have a 2014.x minon talking to a 2014.x master and getting errors about env?
17:00 jmreicha joined #salt
17:02 meteorfox joined #salt
17:02 luminous dfinn: nope, but I've run into other issues and dropped back to v.17.x
17:03 Furao left #salt
17:03 Thiggy joined #salt
17:04 dfinn I'm gonna test with a couple other minions and then submit a bug
17:05 napper2 joined #salt
17:05 luminous is helium 2014.1?
17:06 nahamu 2014.1 is Hydrogen
17:06 meteorfo_ joined #salt
17:06 nahamu Helium hasn't been branched from develop yet.
17:10 [diecast] joined #salt
17:13 luminous ah ok
17:13 luminous thanks for clarifying
17:15 pwistrand joined #salt
17:15 tdilly I'm really sad that Unununium was renamed to Roentgenium I would have loved to see an "Unununium" salt release
17:17 Saint-N joined #salt
17:17 Saint-N morning
17:17 luminous tdilly: HAH
17:18 kermit joined #salt
17:21 Saint-N im not sure im using the right terminology, how would i call just the line of "cat /etc/passwd:" and have it execute the that small portion without running the whole state again?
17:21 mgw joined #salt
17:21 Saint-N ie if i had a managed file /etc/passwd: file.managed source://salt/passwd  in an sls and i wanted to call JUST that one thing
17:21 Saint-N without runnign the whole state again
17:23 jaimed joined #salt
17:24 luminous does wait take prescedence over creates/unless/onlyif?
17:25 luminous yes, looks like it
17:25 luminous Run the given command only if the watch statement calls it
17:25 mortis__ anyone know if there is any way to target specific minions when using the python client api with salt.client.Caller in a script?
17:26 mortis__ trying to start a script from one minion ...that runs a command on another minion via the master
17:28 whiteinge mortis__: take a look at the peer system. you can call it from client.Caller().  http://docs.saltstack.com/ref/peer.html
17:28 mortis__ whiteinge: yeah, im using peers
17:28 mortis__ and it works well
17:28 mortis__ but
17:28 mortis__ when i use the client.Caller() it targets itself :)
17:29 mortis__ im really bad at trying to explain stuff hehe
17:30 TheRealBill joined #salt
17:30 whiteinge i'm with you now :). sec, i'll whip up an example
17:30 mortis__ logged into my work-comp, gonna paste you an example of what im trying to do
17:31 luminous mortis__: Caller is salt-call.. can you target with salt-call?
17:31 luminous I don't think you can
17:31 luminous but maybe I'm wrong
17:32 mortis__ luminous: i dont think you can, no
17:32 whiteinge you can't target with salt-call. but you can target when calling the publish function
17:32 whiteinge caller.sminion.functions['publish.publish']('otherminion', 'grains.get', ['id'])
17:32 mortis__ that is my question really :)
17:32 jake joined #salt
17:32 luminous interesting!
17:32 mortis__ ooooooooh
17:32 mortis__ exactly what im looking for!
17:32 smcquay joined #salt
17:33 mortis__ whiteinge: my hero!
17:33 luminous hah
17:33 mortis__ :)
17:33 luminous I love how many ways we can circle about this stuff :P
17:33 whiteinge or with alternate targeting types: caller.sminion.functions['publish.publish']('os_family:RedHat', 'grains.get', ['id'], expr_form='grain')
17:33 gadams999 left #salt
17:33 ajw0100 joined #salt
17:33 * luminous files this one for later
17:34 whiteinge :D
17:34 mortis__ would this work? client.sminion.functions['cmd.run_all']['cmd.run_all'](plugin)
17:34 mortis__ oops
17:34 mortis__ replace cmd.run_all first one with publish part
17:35 mortis__ client.sminion.functions['publish.publish']['cmd.run_all']
17:36 mortis__ no, that wount work
17:37 mortis__ oh
17:37 mortis__ i got it
17:37 faldridge joined #salt
17:38 HeadAIX joined #salt
17:40 obimod can you declare the minion id in the cloud map file?
17:41 bhosmer joined #salt
17:41 djaime joined #salt
17:41 obimod i'm three days into learnin' this system : )
17:42 arthabaska joined #salt
17:43 obimod joined #salt
17:43 bhosmer_ joined #salt
17:45 ipalreadytaken joined #salt
17:52 mortis__ when friday evening after work ....turns into pizza, beer and saltstack......
17:52 raizyr joined #salt
17:53 allanparsons joined #salt
17:53 allanparsons can i set pillar data within a state?
17:53 allanparsons i need to run a requirements.txt, but i need to add backout/rollback capabilities.  so i was going to tie the virtual env name to the git commit_id
17:57 n8n joined #salt
17:58 allanparsons actually, i may be able to get around this w/: pip_exists_action
17:58 allanparsons can someone explain what each of these switches do? "Default action of pip when a path already exists: (s)witch, (i)gnore, (w)wipe, (b)ackup"  (via: http://docs.saltstack.com/ref/states/all/salt.states.virtualenv_mod.html)
17:59 sieve iptables:
17:59 sieve service:
17:59 sieve - enable: False
17:59 sieve No function declared in state "service" in .....
17:59 sieve How do I go about just disabling a service?
18:03 fridiculous are there good examples of using salt Mine?
18:04 hardwire joined #salt
18:04 stanchan joined #salt
18:05 tdilly sieve: have you tried "- disabled: True"?
18:06 stanchan joined #salt
18:06 tdilly sieve: http://docs.saltstack.com/ref/states/all/salt.states.service.html#salt.states.service.disabled
18:06 \ask joined #salt
18:10 pentabular joined #salt
18:11 n8n joined #salt
18:14 opapo joined #salt
18:14 tdilly joined #salt
18:15 mortis__ allright, i just made a small wrapper that lets you run nagios-plugins via salt using peers  ...should beat nrpe or ssh by far when it comes to maintenance
18:15 mortis__ theres the security (possibly) issue tho
18:15 tdilly How does using gitfs effect file_roots? I am trying to reference an init.sls in a dubdirectory and can't seem to get it working.
18:16 mortis__ https://github.com/mortis1337/nagios-plugins/blob/master/check_by_saltpeer.py for those interested, if any :)
18:16 mortis__ first commit, might miss some stuff, but it works
18:17 fragamus joined #salt
18:25 druonysus joined #salt
18:26 utz joined #salt
18:31 Gordonz joined #salt
18:32 vejdmn joined #salt
18:36 jdenning joined #salt
18:38 opapo joined #salt
18:39 kballou joined #salt
18:42 micah_chatt joined #salt
18:45 ChrisC1 joined #salt
18:48 nedrocks joined #salt
18:51 jaimed joined #salt
18:51 mgw joined #salt
18:53 alunduil joined #salt
18:55 bhosmer joined #salt
18:56 timoguin joined #salt
18:58 jaimed joined #salt
18:58 kermit joined #salt
19:00 raizyr joined #salt
19:11 micah_chatt_ joined #salt
19:14 Twiglet joined #salt
19:14 allanparsons left #salt
19:14 allanparsons joined #salt
19:16 micah_chatt joined #salt
19:25 n8n_ joined #salt
19:31 whiteinge mortis__: cool stuff! thanks for sharing the link
19:34 whiteinge tdilly: the order of your fileserver_backends setting can affect file_roots. (sorry, i don't have more detail on that though.) it might be worth swapping the ``git`` and ``roots`` entries. also it might be useful to run ``cp.list_master`` from a minion to see what files it sees
19:36 frasergraham joined #salt
19:38 johtso joined #salt
19:41 bastion2202 joined #salt
19:42 bastion2202 hey guys quick question, can we use if grains['id'] == test inside a jinja file ?
19:43 whiteinge yes
19:43 bastion2202 {% if grains['id'] == 'test' %} the correct syntax ?
19:43 timoguin grains.get('id') would be better
19:44 timoguin grains['id'] will fail if that grain isn't present. grains.get can let you fall back to a default instead
19:44 whiteinge that is the correct syntax
19:44 obimod should the grains['id'] typically be set to the ip address while the grains['fqdn'] be set to the domain name?
19:45 n8n joined #salt
19:45 timoguin id is the minion id, not the IP.
19:46 timoguin grains['ipv4'] will return a list of IPs
19:47 obimod timoguin: oooo okay
19:48 rawzone joined #salt
19:48 mozg joined #salt
20:01 druonysus joined #salt
20:01 druonysus joined #salt
20:02 Gareth 'lo
20:06 * whiteinge gives Gareth a curt but polite welcome handshake
20:07 tyler-baker joined #salt
20:09 n8n joined #salt
20:10 DaveQB joined #salt
20:16 rallytime joined #salt
20:18 n8n joined #salt
20:19 mozg joined #salt
20:22 smcquay joined #salt
20:23 epicserve joined #salt
20:24 kamal_ joined #salt
20:25 zooz joined #salt
20:25 Ahlee where does multimaster setups and pillars stand?
20:27 epicserve I have this sls, https://dpaste.de/aLRX, but I'm getting these errors when I provision my vagrant vm, https://dpaste.de/u4tD
20:27 epicserve Any ideas anyone?
20:28 kballou joined #salt
20:29 jslatts joined #salt
20:29 n8n joined #salt
20:38 arnoldB forrest: feel free to fork any formulas you are interested in from my account: https://github.com/bechtoldt?tab=repositories
20:40 fridiculous i feel like i'm missing something obvious
20:40 fridiculous i put the following in some python code
20:40 fridiculous {% for host in salt['mine.get']('pulse:true', 'test.ping', 'grain') %} print host {% endfor %}
20:40 fridiculous and i get nothing in there
20:41 suckaplease joined #salt
20:42 conan_the_destro joined #salt
20:44 suckaplease joined #salt
20:44 whiteinge fridiculous: looks ok to me. i'll test the grain arg locally...sec. i'm assuming ``salt '*' grains.get pulse`` returns the right value on those minions?
20:46 fridiculous no i'm an idiot
20:46 fridiculous i need {{ }}
20:46 fridiculous around my host
20:46 fridiculous (facepalm)
20:47 whiteinge ah :)
20:47 whiteinge wait. no
20:47 jdenning joined #salt
20:48 whiteinge you don't need the {{ }} within the {% %}
20:48 fridiculous {% for host in salt['mine.get']('pulse:true', 'test.ping', 'grain') %} print {{ host }} {% endfor %}
20:48 whiteinge oh, you mean around host
20:48 fridiculous yep
20:48 whiteinge ha
20:51 tvle joined #salt
20:52 [diecast] joined #salt
20:56 bastion2202 joined #salt
20:57 kermit joined #salt
20:58 ajw0100 joined #salt
21:01 fridder joined #salt
21:02 druonysus joined #salt
21:02 druonysus joined #salt
21:06 cheus Anyone know if there is an elegant solution to combining data from a jinja filter like {{data|yaml}} with other items in the yaml list/dict?
21:07 n8n joined #salt
21:07 johtso joined #salt
21:09 tvle joined #salt
21:10 cheus Yaml references comes to mind but it's pretty darn difficult to read.
21:12 g4rlic joined #salt
21:15 pentabular joined #salt
21:15 tvle joined #salt
21:16 googolhash joined #salt
21:17 KyleG joined #salt
21:17 KyleG joined #salt
21:19 whiteinge cheus: do you mean combine the result of that filter with the yaml directly in the .sls file?
21:19 cheus whiteinge, Aye
21:23 nedrocks joined #salt
21:27 whiteinge i haven't found a workable pattern for that. (i would *love* one)
21:33 Whissi basepi: Will you notice comments in closed bugs? I have updated https://github.com/saltstack/salt/issues/9526 ...
21:35 basepi Whissi: yes, I glance over all the comments that come in, on both open and closed issues.
21:35 basepi Whissi: reading your updates now
21:36 allanparsons joined #salt
21:37 allanparsons anyone have the link for the irc chat logs for #salt?
21:38 ipmb joined #salt
21:38 whiteinge http://irclog.perlgeek.de/salt/  (it's in the topic)
21:38 allanparsons ah, sorry
21:38 allanparsons missed it
21:39 whiteinge np. long topic... :)
21:39 [diecast] joined #salt
21:41 allanparsons anyone recommend a way to rollback virtual environments?
21:45 ajw0100 joined #salt
21:46 srage joined #salt
21:48 faldridge joined #salt
21:50 napper2 joined #salt
21:51 jaimed joined #salt
21:57 dvogt joined #salt
22:08 frasergraham joined #salt
22:11 smcquay joined #salt
22:12 n8n joined #salt
22:13 meteorfox joined #salt
22:14 bhosmer joined #salt
22:20 tyler-baker left #salt
22:21 moos3 joined #salt
22:27 ipalreadytaken joined #salt
22:38 fridder joined #salt
22:40 Whissi basepi: Can you (or somebody else) tell me, if the "Returned: - jid" is right?
22:42 basepi Whissi: checking
22:43 Katafalkas joined #salt
22:43 meteorfox joined #salt
22:44 n8n joined #salt
22:45 n8n joined #salt
22:45 basepi Whissi: just replied.  I'm getting similar results to you, don't know if the "Returned: - jid" is right or not
22:45 basepi but i'm getting it, same as you
22:46 basepi and my minion that's still running the job is missing from the list
22:46 basepi (this is on current 2014.1 branch, so slightly past 2014.1.1)
22:46 dave_den joined #salt
22:46 Whissi OK. So you can reproduce the problem. That's good for me :)
22:46 basepi Yep, it appears I can
22:47 basepi Don't have time to test further at the moment, but it does look like it's still an issue.
22:47 yomilk joined #salt
22:47 Whissi OK, thanks.
22:49 sroegner what are the chances 2014.1.1 makes it into epel-testing soon?
22:49 basepi sroegner: terminalmage is working on it as we speak, I think.
22:49 sroegner basepi: sounds great
22:50 forrest joined #salt
22:50 robawt hey folks, does anyone have some working examples of integration testing with Salt?
22:51 frasergraham joined #salt
22:53 utz1 joined #salt
22:53 utz1 left #salt
22:56 quickdry21 joined #salt
22:57 baniir joined #salt
22:59 mortis__ robawt: interested in seeing that also
22:59 mortis__ if you come across some
23:00 robawt mortis__: ok i keep seeing some basic doc but it's sparse
23:00 forrest Ok who is going to PyCon?
23:00 robawt i am forrest!
23:00 forrest I'm still looking for someone to split the cost of a hotel room with
23:00 mortis__ forrest: where is it?
23:00 forrest mortis_, friggin Montreal
23:00 robawt oh already stacked with people :\
23:00 mortis__ forrest: are you by chance a really hot blonde girl with really large ...blue eyes?
23:01 forrest robawt, no worries! I will see you there
23:01 forrest mortis_, no
23:01 mortis__ k, was worth a shot
23:01 forrest mortis_, yea you gotta try
23:01 mortis__ im thinking about europython, but not sure i can go
23:01 mortis__ kinda just started new job
23:02 forrest mortis_, I'm paying my own way to this one
23:02 forrest the fact it's in montreal is killing me
23:02 mortis__ forrest: nice one
23:02 mortis__ why so?
23:02 forrest way more expensive
23:02 forrest getting to california is cheap
23:02 forrest hotels there are pretty cheap
23:02 mortis__ cause of planetickets?
23:02 mortis__ ah
23:02 forrest yea
23:02 forrest tickets to california from where I live (AZ) are 200 round trip usually
23:02 forrest montreal is over 600
23:02 mortis__ damn
23:03 Gareth forrest: International flight.
23:03 forrest yep, thus the room sharing, if not I'll find something on airbnb and leg it in the morning
23:03 forrest Gareth, yea I know
23:03 jp_cognet joined #salt
23:03 forrest Gareth, doesn't mean I have to be happy about it :P
23:03 Gareth hah
23:03 conan_the_destro joined #salt
23:03 mortis__ :)
23:03 thayne joined #salt
23:04 forrest are you going Gareth?
23:04 jp_cognet If I wanted to populate a variable for a jinja template from a remote cmd.run, is that possible? and how would I go about doing that?
23:04 mortis__ anyone made any dashboards for salt btw? found a couple, but seems they are either incomplete or inactive projects
23:04 forrest mortis_, did you look at https://github.com/saltstack/halite ?
23:05 mortis__ guess there will be salt-support in foreman tho
23:05 forrest that's the official dashboard
23:05 forrest foreman has no salt support right now
23:05 mortis__ forrest: yeah, its not really what we are looking for
23:05 mortis__ very incomplete too, halite
23:05 mortis__ forrest: nah, i know, but last year they said they were discussing it
23:05 forrest mordred, yea fair enough. Did foreman announce salt support?
23:05 mortis__ so might be
23:05 forrest yea I asked them about it already
23:05 forrest since the new red hat satellite uses foreman
23:05 forrest they said no plans to work on it
23:05 mortis__ bah
23:06 forrest yea they expected the salt team to work on it
23:06 forrest and since it's lol ruby
23:06 mortis__ hehe
23:06 mgw are there any known bugs in develop that would require a minion restart after sync_modules?
23:07 mortis__ mgw: dont think you need a restart, but sometimes if you got an error in the module it wount load
23:07 mortis__ mgw: but can check if its there with sys.doc
23:08 mgw mortis_: yeah, i know about the syntax issue
23:08 mgw but that's not what's happening to me
23:08 mortis__ i had some trouble with a module today and i found it by starting the minion in foreground
23:08 Gareth forrest: to PyCon?  Hadn't planned on it.  Current $dayjob is a ruby shop...so convincing them to send me to a Python conference isn't likely :)
23:08 mortis__ ah ok
23:08 mortis__ i found the error that is
23:09 forrest Gareth, you should write the foreman integration for saltstack
23:09 forrest I've been trying to find someone to do it :P
23:09 mortis__ yeah Gareth !
23:09 mortis__ :D
23:09 mortis__ do eeet
23:09 Gareth ruby *shudder*
23:09 mortis__ hehe
23:09 forrest Oh so you just work there, you don't write the ruby?
23:09 Gareth I work in a ruby shop...never said I knew ruby :)
23:09 robawt Gareth is a ruby rockstar ninja?  knew it ...
23:10 mortis__ lol
23:10 frasergraham joined #salt
23:10 forrest Gareth, damn see this is the problem
23:10 ipalreadytaken joined #salt
23:10 forrest I kept trying to find someone to do the foreman integration
23:10 forrest but no one I know uses ruby
23:11 mortis__ well
23:11 mortis__ foreman has a rest api doesnt it
23:11 mortis__ wrap it all up!
23:11 bhosmer joined #salt
23:13 jp_cognet joined #salt
23:15 jp_cognet If I wanted to populate a variable for a jinja template from a remote cmd.run, is that possible? and how would I go about doing that?
23:15 smcquay joined #salt
23:15 mortis__ peers maybe jp_cognet ?
23:16 jp_cognet got disconnected
23:16 manfred jp_cognet: you would need to either store it in the saltmine or peer them so that the minions can run commands on each other
23:16 manfred http://docs.saltstack.com/topics/mine/
23:16 jp_cognet ty
23:16 manfred http://docs.saltstack.com/ref/peer.html
23:17 [diecast] joined #salt
23:19 Guest10510 joined #salt
23:20 faldridge joined #salt
23:26 dvogt joined #salt
23:26 bhosmer joined #salt
23:29 druonysus joined #salt
23:30 g4rlic left #salt
23:31 n8n joined #salt
23:34 allanparsons why do i get weird formatting issues when looping?
23:34 allanparsons http://pastebin.com/YUNryDzs
23:35 allanparsons here's pillar: http://pastebin.com/TdtuZ7rG
23:38 pwistrand joined #salt
23:39 johtso joined #salt
23:44 bhosmer joined #salt
23:45 srage joined #salt
23:52 Ryan_Lane joined #salt
23:52 frasergr_ joined #salt
23:55 fridiculous what is everyone's favorite way of updating minion configs in production?

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