Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-05-24

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

All times shown according to UTC.

Time Nick Message
00:11 dalexander joined #salt
00:26 nethershaw joined #salt
00:37 catpig joined #salt
00:42 aCodinMan joined #salt
01:11 Rkp_ joined #salt
01:12 sunkist joined #salt
01:13 baffle_ joined #salt
01:13 sunkist joined #salt
01:13 cheus__ joined #salt
01:13 sk_0_ joined #salt
01:14 dunz0r joined #salt
01:14 eichiro_ joined #salt
01:14 SaveTheRbtz joined #salt
01:15 Guest238 joined #salt
01:15 markm joined #salt
01:16 hasue1 joined #salt
01:18 seb`- joined #salt
01:18 jamin joined #salt
01:19 hasue1 left #salt
01:20 power8ce joined #salt
01:20 Sypher joined #salt
01:21 ahale joined #salt
01:22 patrek_ joined #salt
01:25 armguy joined #salt
01:29 zz_Cidan joined #salt
01:29 Cidan joined #salt
01:29 ecdhe joined #salt
01:30 dunz0r joined #salt
01:32 iwishiwerearobot joined #salt
01:37 otter768 joined #salt
01:41 beauby joined #salt
01:49 c10 joined #salt
01:56 Scotti_ joined #salt
01:56 Scotti_ good evening
02:00 Scotti_ New to saltstack. There is a built in SALT.STATES.DOCKERIO. How do I use this to install and use docker on a minion? Are these states different from formulas?
02:00 mrbigglesworth joined #salt
02:02 aurynn Scotti_, dockerio is used to control the Docker daemon
02:08 beauby joined #salt
02:10 Scotti_ So all the SALT.STATEs are different than the formulas you find on github? There are not really any built in STATES that install anything that come with saltstack?
02:17 aurynn Scotti_, States are used to perform actions on the target machine; you would use states to install software.
02:17 aurynn Formulas as you'd find on github use states to install and configure software
02:23 Scotti_ aurynn, so in order to install anything on a minion through a state. I need a formula from the saltstack-formulas reposistory? There are not any built in formulas?
02:23 aurynn er..
02:23 aurynn you can use the pkg.installed state
02:23 aurynn which will install stuff from your package manage of choice
02:25 Scotti_ aurynn, sorry for sounding so dense but I was confused when I read the docs and saw a list of built in STATEs and I guess I didn't understand the difference between those states and the ones at saltstack-formulas.
02:26 aurynn Scotti_, forumlas are composed from states. states are functions that you can run on a remote machine.
02:26 aurynn so "installing software" uses several states, and composes that into a formula
02:26 Scotti_ aurynn, and them modules are?
02:26 aurynn modules are what states use internally
02:26 Scotti_ them -> then
02:28 amcorreia joined #salt
02:29 Scotti_ aurynn, ok. Thanks. I guess I need to configure the dockerio in pillar also.
02:29 aurynn Scotti_, yes, you will
02:30 Scotti_ aurynn, thanks for you help. Much appreciated.
02:31 aurynn Scotti_, np :)
02:33 jhujhiti say i have some data that is generated on a particular minion and i need to distribute that to certain other minions. what's the best way to go about this?
02:41 ageorgop joined #salt
02:49 c10 joined #salt
02:52 clintberry joined #salt
02:55 beauby joined #salt
02:58 MatthewsFace joined #salt
03:00 michelangelo joined #salt
03:01 pheer1 joined #salt
03:12 badon_ joined #salt
03:14 bash124512 joined #salt
03:20 badon joined #salt
03:20 iwishiwerearobot joined #salt
03:27 mrbigglesworth joined #salt
03:27 mrbigglesworth joined #salt
03:38 otter768 joined #salt
03:43 aCodinMa_ joined #salt
03:56 samart joined #salt
03:59 kekem joined #salt
04:31 evle joined #salt
04:35 ajw0100 joined #salt
04:38 c10 joined #salt
04:45 GrueMaster joined #salt
04:53 aCodinMan joined #salt
04:56 aarontc joined #salt
04:58 freelock joined #salt
05:08 solidsnack joined #salt
05:09 iwishiwerearobot joined #salt
05:11 solidsnack joined #salt
05:14 lz-dylan_ Hey, is anyone familiar with the postgres_user state?
05:15 lz-dylan I'm setting password: 'a-psql-MD5-hashed-string' and psql gives me password errors. Using plaintext instead of the hash, it works fine.
05:16 lz-dylan The docs give the example: 'md5{MD5OF({password}{role}}' ... which I'm not finding too explanatory.
05:16 lz-dylan I tried feeding in `- password: 'md5{my-hash}'` to no avail.
05:17 lz-dylan and jhujhiti I'm no expert on it but you're looking for salt-mine; getting data from one minion & acting on it/redistributing to others is its whole purpose :)
05:21 glyf joined #salt
05:38 otter768 joined #salt
05:39 c10 joined #salt
05:43 loz-- joined #salt
06:09 loz-- joined #salt
06:32 BillCozbie joined #salt
06:39 c10 joined #salt
06:58 TyrfingMjolnir joined #salt
06:58 iwishiwerearobot joined #salt
07:13 joeto joined #salt
07:39 otter768 joined #salt
07:40 c10 joined #salt
07:47 stoogenmeyer joined #salt
07:52 WildPikachu is there a notion of an && or AND in an IF expression?  like {% if A && B %}
07:59 al joined #salt
08:03 slav0nic joined #salt
08:03 slav0nic joined #salt
08:03 subsignal joined #salt
08:12 stoogenmeyer joined #salt
08:16 viq joined #salt
08:16 glyf joined #salt
08:35 markm joined #salt
08:39 linjan joined #salt
08:47 iwishiwerearobot joined #salt
08:53 markm joined #salt
09:01 snuffychi joined #salt
09:11 c10 joined #salt
09:11 julez joined #salt
09:11 dalexander joined #salt
09:15 pix9_ joined #salt
09:16 pix9_ hello friends is it possible to push new host file across minions?
09:18 pix9_ ithink I found this on google :D
09:18 pix9_ http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.cp.html
09:25 noway_ joined #salt
09:30 pix9_ what is cp.cache_dir
09:30 pix9_ I am not able to get how this things works?
09:40 otter768 joined #salt
09:43 pix9_ blah
09:43 pix9_ sorry wrong chat.
09:53 stooj joined #salt
10:04 tomh- joined #salt
10:09 TyrfingMjolnir joined #salt
10:11 CeBe joined #salt
10:36 iwishiwerearobot joined #salt
10:45 spiksius joined #salt
11:00 c10 joined #salt
11:35 vankooch joined #salt
11:39 __alex_ joined #salt
11:40 saifi joined #salt
11:41 otter768 joined #salt
11:44 jngd joined #salt
11:53 linjan joined #salt
11:54 Tyrm joined #salt
11:55 Berty_ joined #salt
12:18 WildPikachu is there a notion of an && or AND in an IF expression?  like {% if A && !B %}
12:20 Hipikat joined #salt
12:20 catpig joined #salt
12:24 iwishiwerearobot joined #salt
12:25 jcristau joined #salt
12:26 drawsmcgraw joined #salt
12:33 zekoZeko WildPikachu: http://jinja.pocoo.org/docs/dev/templates/#logic
12:33 WildPikachu thanks zekoZeko
12:34 WildPikachu {% if 'awit_allow_relaying' in grains and grains['awit_allow_relaying'] %}  <= so that would be right?
12:41 zekoZeko that's a little redundant, isn't it?
12:41 zekoZeko what are you trying to achieve?
12:42 WildPikachu zekoZeko, I get an undefined error if I test for that grain without having "in grains"
12:42 WildPikachu it may or may not even be set
12:42 zekoZeko but you want to print it out or what do you want to do with it?
12:42 zekoZeko because you test with the first part
12:42 zekoZeko the second one does nothing
12:43 zekoZeko as far as i can understand
12:43 WildPikachu If the grain is set to "False" would the second not fail?
12:43 zekoZeko oh yeah
12:43 zekoZeko right
12:43 zekoZeko probably
12:43 WildPikachu awit_allow_relaying: False  :)
12:44 WildPikachu thanks zekoZeko !
12:44 zekoZeko but i'm not knowledgeable enough to give you a good answer here
12:45 zekoZeko i'd use is False or something to that effect to make it more readable
12:45 zekoZeko probably == False, check the docs link i gave you above, it's all there.
12:46 zekoZeko as said, i don't really do jinja daily so i'm not really good at it.
12:46 jcristau joined #salt
12:49 julez joined #salt
12:53 Dev0n joined #salt
12:57 Tyrm joined #salt
13:00 jeremyr joined #salt
13:09 Tyrm joined #salt
13:13 tzero joined #salt
13:20 drawsmcgraw left #salt
13:42 otter768 joined #salt
13:49 Tyrm joined #salt
14:13 iwishiwerearobot joined #salt
14:17 wackycaptain joined #salt
14:19 wackycaptain joined #salt
14:20 c10 joined #salt
14:22 wackycaptain left #salt
14:24 sunkist joined #salt
14:29 ndrei joined #salt
14:39 ndrei joined #salt
14:41 subsignal joined #salt
14:50 jngd joined #salt
14:56 peters-tx joined #salt
15:12 bluenemo joined #salt
15:12 bluenemo joined #salt
15:19 jngd joined #salt
15:20 aparsons joined #salt
15:31 aparsons joined #salt
15:40 c10 joined #salt
15:40 c10 joined #salt
15:43 otter768 joined #salt
15:47 CeBe joined #salt
15:50 c10 joined #salt
15:51 viderbit joined #salt
15:51 aparsons joined #salt
15:52 c10 joined #salt
16:02 iwishiwerearobot joined #salt
16:03 donmichelangelo joined #salt
16:06 c10 joined #salt
16:07 aparsons joined #salt
16:12 aparsons_ joined #salt
16:20 clintberry joined #salt
16:22 aparsons joined #salt
16:22 clintberry joined #salt
16:32 c10 joined #salt
16:36 iggy WildPikachu: for the most part jinja uses python semantics
16:36 iggy oops, was scrolled up a little
16:37 vlcn joined #salt
16:38 iggy WildPikachu: {% if salt['grains.get']('awit_allow_relaying') %}
16:50 c10 joined #salt
16:52 WildPikachu thanks iggy
16:57 TyrfingMjolnir joined #salt
17:00 iggy WildPikachu: grains.get also takes a default value (which defaults to something False-ish)
17:01 iggy so you could use something like {{ salt['grains.get']('somegrain', '') }} if you just want to print nothing if the grain doesn't exist
17:01 iggy etc
17:01 TyrfingMjolnir_ joined #salt
17:01 WildPikachu oooo, and  'default' instead of '' if I want a default value?
17:04 iggy yes
17:08 dimeshake joined #salt
17:14 stooj joined #salt
17:21 c10 joined #salt
17:27 bfoxwell joined #salt
17:37 c10 joined #salt
17:39 c10 joined #salt
17:41 dimeshake joined #salt
17:44 otter768 joined #salt
17:50 amcorreia joined #salt
17:51 iwishiwerearobot joined #salt
17:56 monkey66 joined #salt
17:59 keimlink joined #salt
18:01 monkey66 joined #salt
18:04 dthorman joined #salt
18:09 ajw0100 joined #salt
18:15 julez joined #salt
18:24 ndrei joined #salt
18:30 jhujhiti so uh, i broke a minion. it dies with AttributeError: 'module' object has no attribute 'update' at start
18:30 jhujhiti i removed the custom grain that caused it, but it's still happening
18:37 jhujhiti ah, found it, it keeps them in extmods cache too
18:45 c10 joined #salt
18:48 ndrei joined #salt
18:56 forrest joined #salt
18:59 ndrei joined #salt
19:03 TyrfingMjolnir joined #salt
19:07 ndrei joined #salt
19:12 CeBe joined #salt
19:17 kfmjr432jm joined #salt
19:17 kfmjr432jm Hey. What this chan is all about?
19:18 ndrei joined #salt
19:18 tmclaugh[work] joined #salt
19:22 kfmjr432jm 0/nVZ11ZaZWoeXfX3dgVt
19:22 kfmjr432jm just testing
19:23 ndrei joined #salt
19:24 dimeshake joined #salt
19:29 ndrei joined #salt
19:39 rwaterbury joined #salt
19:40 iwishiwerearobot joined #salt
19:45 otter768 joined #salt
19:45 kfmjr432jm left #salt
19:47 ndrei joined #salt
19:52 c10 joined #salt
19:55 dimeshake joined #salt
20:02 ndrei joined #salt
20:12 mgw joined #salt
20:19 ajw0100 joined #salt
20:40 amcorreia joined #salt
20:52 jasonrm joined #salt
21:01 badon joined #salt
21:02 markm joined #salt
21:28 iwishiwerearobot joined #salt
21:32 Nazca joined #salt
21:37 Nazca__ joined #salt
21:46 otter768 joined #salt
22:09 subsignal joined #salt
22:34 cberndt joined #salt
22:34 cberndt joined #salt
22:51 mosen joined #salt
23:17 iwishiwerearobot joined #salt
23:29 keimlink_ joined #salt
23:32 markm joined #salt
23:41 c10 joined #salt
23:46 otter768 joined #salt
23:50 Aidin joined #salt
23:53 subsignal joined #salt

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