Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-04-18

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

All times shown according to UTC.

Time Nick Message
00:01 Alexey1 but it will save all returned data to file, and i need to put part of returned json data to specific place in config
00:01 iggy in newer versions, there's salt.modules.http
00:03 Singularo joined #salt
00:04 Alexey1 thanks, that might help. but how to call module not from cmd and from state?
00:05 iggy {% set html = salt['http.query']('http://someserver.com') %}
00:06 Alexey1 thanks! now i can make simple module for consul and use it in same way :)
00:07 solidsnack iggy: As the root user, I am able to fetch.
00:09 iggy solidsnack: hmm, and it still doesn't work from the fileserver.update?
00:10 solidsnack iggy: Right. `gitfs is fetching from git@github.com:__/_.git`
00:11 solidsnack `gitfs received 0 objects for remote git@github.com:__/_.git`
00:11 TheoSLC joined #salt
00:14 eca joined #salt
00:15 eca left #salt
00:16 desposo joined #salt
00:17 iggy are there any other github repo's working?
00:17 solidsnack iggy: Don't know, haven't tried that.
00:22 catpig joined #salt
00:24 mattiaswolff joined #salt
00:32 Alexey1 joined #salt
00:33 shaggy_surfer joined #salt
00:33 XenophonF left #salt
00:39 solidsnack joined #salt
00:39 solidsnack joined #salt
00:39 troyready joined #salt
00:41 fusionx86 joined #salt
00:43 subsignal joined #salt
00:46 voxxit joined #salt
00:50 fusionx86 joined #salt
00:57 yomilk joined #salt
00:58 solidsnack iggy: It turns out that gitfs2 is returning an error to pygit2: Config value 'branch.master.remote' was not found
01:11 Alexey1 joined #salt
01:15 Alexey3 joined #salt
01:19 ajw0100 joined #salt
01:27 pdayton joined #salt
01:34 Alexey1 joined #salt
01:36 ckao joined #salt
01:41 desposo joined #salt
01:44 fusionx86 joined #salt
01:46 solidsnack joined #salt
01:50 TheoSLC joined #salt
01:52 Noshenim joined #salt
01:56 scbunn joined #salt
01:58 capricorn_1 joined #salt
02:00 solidsnack joined #salt
02:00 solidsnack joined #salt
02:01 solidsnack Switching to GitPython got things working.
02:03 _Cyclone_ joined #salt
02:07 catpig joined #salt
02:09 Alexey1 joined #salt
02:12 schristensen joined #salt
02:20 ajw0100 joined #salt
02:21 cyclonis joined #salt
02:22 _Cyclone_ joined #salt
02:29 MatthewsFace joined #salt
02:37 _Cyclone_ joined #salt
02:40 Nazca joined #salt
02:40 donmichelangelo joined #salt
02:41 _Cyclone_ joined #salt
02:43 sunkist joined #salt
02:46 _Cyclone_ joined #salt
02:48 RabidCicada joined #salt
02:52 CeBe joined #salt
03:00 viq joined #salt
03:01 malinoff joined #salt
03:16 pdayton joined #salt
03:17 favadi joined #salt
03:18 mosen joined #salt
03:19 Alexey1 joined #salt
03:20 pdayton joined #salt
03:20 bhosmer_ joined #salt
03:29 writtenoff joined #salt
03:34 yomilk joined #salt
03:55 thayne joined #salt
03:56 clintberry joined #salt
04:07 sunkist1 joined #salt
04:16 huleboer joined #salt
04:40 evle1 joined #salt
04:54 mosen joined #salt
05:05 desposo joined #salt
05:06 isodude_ joined #salt
05:17 Alexey2 joined #salt
05:20 p66kumar joined #salt
05:27 Vynce joined #salt
05:28 p66kumar joined #salt
05:29 dewdrop joined #salt
05:33 solidsnack joined #salt
05:33 solidsnack joined #salt
05:34 catpigger joined #salt
05:35 SeeDickCode joined #salt
05:42 yomilk joined #salt
05:45 solidsnack joined #salt
06:09 otter768 joined #salt
06:13 jpaetzel_ joined #salt
06:16 p66kumar joined #salt
06:21 lempa joined #salt
06:22 tkharju joined #salt
06:28 evle1 joined #salt
06:32 jasonrm joined #salt
06:38 Alexey2 joined #salt
06:43 yomilk joined #salt
06:52 scbunn joined #salt
06:58 glyf joined #salt
06:59 fusionx8_ joined #salt
07:02 fusionx8_ joined #salt
07:05 Alexey2 joined #salt
07:06 teogop joined #salt
07:10 tkharju joined #salt
07:13 blacked joined #salt
07:27 badon joined #salt
07:30 JlRd joined #salt
07:40 soren joined #salt
07:43 I3olle joined #salt
07:44 ggoZ joined #salt
07:44 monkey661 joined #salt
07:54 I3olle joined #salt
07:54 mattiaswolff joined #salt
07:55 dthorman joined #salt
07:57 blacked joined #salt
07:59 dewdrop joined #salt
08:03 Vynce joined #salt
08:06 losh joined #salt
08:10 otter768 joined #salt
08:10 monkey661 left #salt
08:10 tkharju joined #salt
08:20 aquassaut joined #salt
08:24 dopesong joined #salt
08:24 monkey66 joined #salt
08:32 yomilk joined #salt
08:47 oebs joined #salt
09:00 wwwBUKOLAYcom joined #salt
09:04 pelzi_ joined #salt
09:11 glyf joined #salt
09:15 I3olle_ joined #salt
09:18 malinoff joined #salt
09:26 I3olle joined #salt
09:32 Guest8940 left #salt
09:39 peters-tx joined #salt
09:48 yomilk joined #salt
10:01 mattiaswolff joined #salt
10:04 JayFK joined #salt
10:10 otter768 joined #salt
10:14 bhosmer_ joined #salt
10:21 mattiaswolff joined #salt
10:30 dopesong joined #salt
10:32 dramagods joined #salt
10:34 dramagods joined #salt
10:34 violin_da joined #salt
10:35 CeBe1 joined #salt
10:36 Not joined #salt
10:39 dramagods joined #salt
11:06 paolo hello, i have some problem using file.replace correctly http://pastebin.com/cwAziA4H
11:06 paolo it gives Specified file ... is not an absolute path
11:06 paolo what's wrong?
11:08 [arx] joined #salt
11:08 [arx] joined #salt
11:08 paolo --versions http://pastebin.com/KsyPq56t
11:18 yomilk joined #salt
11:29 yomilk joined #salt
11:39 mapu joined #salt
11:41 hasues joined #salt
11:44 matthew-parlette joined #salt
11:45 Furao joined #salt
11:50 I3olle joined #salt
11:50 monkey661 joined #salt
11:59 I3olle joined #salt
12:08 lictor36 joined #salt
12:09 amcorreia joined #salt
12:11 otter768 joined #salt
12:16 bhosmer joined #salt
12:28 thayne joined #salt
12:42 bhosmer joined #salt
12:44 dramagods joined #salt
12:44 buhman joined #salt
12:52 yomilk joined #salt
12:55 Not joined #salt
12:59 bhosmer joined #salt
13:11 sunkist joined #salt
13:17 monkey661 left #salt
13:31 CeBe1 joined #salt
13:35 dopesong joined #salt
13:45 eliasp any idea, why this https://bpaste.net/show/70acd919d019 leads to this: https://bpaste.net/show/5440681dc133
13:45 scbunn joined #salt
13:46 eliasp is there any Jinja filter to prevent this or does this more look like a bug in pkg.owner?
13:48 I3olle joined #salt
13:58 tomh- joined #salt
13:59 I3olle joined #salt
14:04 keimlink joined #salt
14:12 otter768 joined #salt
14:13 I3olle joined #salt
14:17 hasues left #salt
14:24 bhosmer joined #salt
14:31 clintberry joined #salt
14:40 cpowell joined #salt
14:51 volongato joined #salt
14:54 cpowell joined #salt
15:00 brianfeister joined #salt
15:03 tmclaugh[work] joined #salt
15:08 64MACM0B1 joined #salt
15:12 Fiber^ joined #salt
15:17 cpowell_ joined #salt
15:19 ndrei joined #salt
15:29 timoguin joined #salt
15:31 timoguin joined #salt
15:40 bhosmer joined #salt
15:42 jngd joined #salt
15:46 mattiaswolff joined #salt
15:54 awpti joined #salt
15:56 bhosmer joined #salt
15:58 echo joined #salt
16:01 timoguin joined #salt
16:03 zwi joined #salt
16:07 catpig joined #salt
16:11 jerrcs joined #salt
16:12 scbunn_ joined #salt
16:13 otter768 joined #salt
16:15 CaptainMagnus joined #salt
16:24 northway joined #salt
16:24 noway_ joined #salt
16:28 ndrei joined #salt
16:35 ajw0100 joined #salt
16:36 TheOtherDude joined #salt
16:39 scbunn joined #salt
16:42 scbunn_ joined #salt
16:47 scbunn joined #salt
16:48 ndrei joined #salt
16:50 scbunn_ joined #salt
16:52 noway_ joined #salt
16:59 p66kumar joined #salt
17:01 [M7] joined #salt
17:01 zwi joined #salt
17:02 eliasp any idea why the requisite "- sls: otrs.webserver.config.{{ webserver_type }}" (see: https://gist.github.com/eliasp/022de464b17b322a5ab7#file-otrs-webserver-config-init-sls-L40) can't be extended? the "include" of this SLS works just fine and also when using it directly (e.g. "salt-call state.sls otrs.webserver.config.apache2_httpd") there's no problem…
17:02 eliasp I already tried quoting it, but the result stays the same
17:02 timoguin joined #salt
17:04 MaliutaLap joined #salt
17:04 MaliutaLap left #salt
17:08 brianfeister joined #salt
17:25 hasues joined #salt
17:25 Dev0n joined #salt
17:25 Dev0n joined #salt
17:30 ndrei joined #salt
17:38 SpX joined #salt
17:45 arif-ali joined #salt
17:46 bVector hello fellows
17:46 bVector in the gpg renderer, it says conflicting statements
17:47 bVector "in such a way that only your Salt master can decrypt them and distribute them only to the minions that need them"
17:47 bVector "This will apply the renderers to all pillars and states while requiring python-gnupg to be installed on all minions since the decryption will happen on the minions."
17:47 bVector where does the decryption happen?
17:48 armguy joined #salt
17:57 hasues left #salt
18:02 _Cyclone_ joined #salt
18:02 amfranz joined #salt
18:12 echo joined #salt
18:14 CeBe1 joined #salt
18:14 otter768 joined #salt
18:14 scbunn joined #salt
18:15 Zachary_DuBois joined #salt
18:20 subsignal joined #salt
18:22 bhosmer joined #salt
18:26 GrueMaster joined #salt
18:31 patrek joined #salt
18:31 Qwazerty joined #salt
18:45 ndrei joined #salt
18:47 _1_fundaop joined #salt
18:48 Aidan_ joined #salt
18:49 Zachary_DuBois joined #salt
18:50 adyromantika joined #salt
18:51 echo joined #salt
18:55 HexOffender joined #salt
19:00 isodude_ joined #salt
19:02 capricorn_1 joined #salt
19:07 Aidanjl joined #salt
19:18 zach joined #salt
19:20 zach Ya know, when you write documentation it should be consistent throughout the entire example: http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html -- it starts with Apache and somehow shifts to EPEL and then OpenStack
19:20 zach Super confusing at first
19:20 babilen That needs to be rewritten to reflect the current state of the art anyway
19:20 babilen Feel free to make it consistent though
19:21 zach Have things changed recently to where that isnt accurate?
19:24 iggy paolo: it's name, not path... don't know where you got path from
19:28 paolo iggy: my fault, I got tricked reading "Params are identical to the remote execution function file.replace." in salt.states.file.replace docs. The function salt.modules.file.replace has a path argument but the state doesn't -> the error
19:32 iggy paolo: ahh, good catch... you might open an issue asking for clarification of the docs
19:32 paolo btw, https://bootstrap.saltstack.com/ this connection is untrusted?
19:33 iggy basepi: bootstrap ssl cert is expired (I know that's not you, but figure you know who to harass ;)
19:33 paolo iggy: https://github.com/saltstack/salt/issues/22825
19:34 litwol Hello
19:35 litwol How exactly do i return true/false or 0/1 from a command to make sure the cmd.run 'unless' or 'onlyif' is satisfied?
19:35 litwol for example. i want to execute a command when i have exactly 1 process running
19:36 litwol i could do 'ps -ef| grep [my process]| wc -l' to get number of said processes
19:36 litwol i would get "1" or '0'
19:37 litwol basically i want to run arbitrary command inside the 'unless' clause
19:38 litwol and i'm not sure whether i need to 'return' command status, or 'print' command status to trigger the 'unless'
19:40 iggy return I think
19:42 litwol hmm
19:42 litwol but how do i "return" ?
19:42 litwol all i know is i can get a numeric value from 0 and up
19:42 litwol using "wc -l"
19:43 litwol how do i take that value and "return" it to "unless" so salt understands it?
19:44 Aidanjl joined #salt
19:45 zach Is there additional documentation on the xmpp state?
19:46 zach disregard, didnt see the module documentation
19:47 litwol oh my
19:47 litwol simply doing "wc -l" works as intended
19:47 litwol "unless" stops execution when "wc -l" shows number over 0
19:48 litwol hmm
19:48 litwol actually it doesn't
19:48 litwol "0" doesn't register as "false"
19:49 zwi joined #salt
19:52 litwol bah this is so confusing
19:52 litwol isn't there a way to trigger unless/only if based on a grep of program's status?
19:52 litwol ie "cmd.run onlyif some log has specific string"
19:52 litwol ?
19:53 litwol hmm !
19:54 litwol i've tried the same approach but removed 'wc -l'. used just "grep"
19:54 litwol when grep shows no output 'unless' triggers.
19:54 litwol with output 'unless' does not
19:54 litwol good
19:57 bhosmer joined #salt
19:58 zach just use grep -c vs wc -l
19:59 litwol oh thanks!
19:59 zach instead of grep blah |wc -l, just do grep -c blah
20:01 zach PROC_SSHD=$(ps -ef | grep -c sshd); if ${PROC_SSHD} -lt 1 ]; then echo ZOMG ; fi or something
20:02 zach forgot a [
20:02 gibmachine1 joined #salt
20:02 llua or just use pgrep
20:04 bfoxwell joined #salt
20:04 zach that too
20:05 pdayton joined #salt
20:05 pelzi_ grep -q
20:06 bobB joined #salt
20:09 ALLmightySPIFF joined #salt
20:15 otter768 joined #salt
20:16 keimlink joined #salt
20:16 pdayton1 joined #salt
20:19 aquassaut joined #salt
20:20 blacked joined #salt
20:22 Aidanjl_ joined #salt
20:24 bhosmer joined #salt
20:25 mattiaswolff joined #salt
20:26 fusionx86 joined #salt
20:28 blacked1 joined #salt
20:30 g3cko joined #salt
20:35 g3cko joined #salt
20:41 isodude_ joined #salt
20:43 cpowell joined #salt
20:45 p66kumar joined #salt
20:47 g3cko joined #salt
20:52 litwol Can i have variables in "name:" directives?
20:52 litwol for example i have a dynamically generated string saved in file.
20:52 litwol and i use that name to create directories
20:52 litwol can i write name: /etc/init.d/service-$(cat [my file])
20:52 litwol ?
20:53 litwol i bet i could do that using jinja .. would like to not get into that yet
20:53 isodude_ just use {{ variable }}
20:53 isodude_ check out the jinja2 documentation
20:54 litwol oh yeah! set variable by reading from file, then use the variable.
20:54 litwol isodude_: thx for the idea!
21:03 zach I'm pretty confused why my file_roots defination is not working
21:05 zach paste for output: http://pastebin.com/LDxcvbhZ
21:10 soren_ joined #salt
21:15 iggy zach: sudo salt-call cp.list_master
21:15 ALLmightySPIFF joined #salt
21:16 tux007 joined #salt
21:16 tux007 hello
21:17 zach The output is empty -- is that expected?
21:17 zach I get the same response as previously
21:17 iggy zach: no, you should see at least top.sls
21:18 tux007 puppet vs salt ? what's your position on this subject ?
21:18 zach I got nothing
21:18 zach even ran salt '*' cmd.run 'salt-call cp.list_master' and the same
21:18 zach just "local:"
21:19 zach Heh, I think I may have discovered part of the issue
21:19 zach "salt-master 0.17.5"
21:19 zach Not sure how that super old version got installed
21:20 iggy it's in most repos sadly
21:21 zach updating and checking
21:23 zach nope, same thing. mind=blown
21:23 iggy find /srv/salt
21:25 zach http://pastebin.com/8xk3KhrX
21:26 jasonrm joined #salt
21:27 iggy obviously you've restarted the minion since making the config changes
21:27 g3cko joined #salt
21:27 zach yep
21:27 zach both minion and master
21:27 zach both are the same version now
21:27 bluenemo joined #salt
21:27 bluenemo joined #salt
21:28 MatthewsFace joined #salt
21:30 soren_ joined #salt
21:30 zach pretty bizarre
21:31 mattiaswolff joined #salt
21:31 imanc_ left #salt
21:34 zach so I tried it again, only one host is able to get anything for some reason
21:37 iggy stop master and make sure there aren't any rogue salt-master processes
21:42 whyic joined #salt
21:45 sunkist1 joined #salt
21:46 catpig joined #salt
21:49 zach yeah I reboot the box just now
21:54 p66kumar joined #salt
22:02 Aidanjl joined #salt
22:16 brianfeister joined #salt
22:16 otter768 joined #salt
22:21 blacked joined #salt
22:26 ALLmightySPIFF joined #salt
22:27 bhosmer_ joined #salt
22:36 mapu joined #salt
22:39 blacked joined #salt
22:51 echo joined #salt
22:54 richardc joined #salt
22:57 catpig joined #salt
22:58 iromli joined #salt
23:09 mapu joined #salt
23:12 ALLmightySPIFF joined #salt
23:24 ALLmightySPIFF joined #salt
23:45 zwi joined #salt
23:50 jeblair joined #salt
23:57 jeblair joined #salt
23:57 blacked joined #salt

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