Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-05-17

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

All times shown according to UTC.

Time Nick Message
00:02 aw110f_ joined #salt
00:07 jaycedars joined #salt
00:07 mpanetta Hmm, quick question...  Is there a simple 'echo' state module?  I want to test some ideas, but not actually execute anything...
00:07 mpanetta I looked through the list but nothing really popped out at me...
00:08 cast salt '*' test.echo 'foo bar baz quo qux'
00:08 cast from sys.doc
00:08 mpanetta I want to do it in a state thought
00:08 mpanetta though...
00:08 cast oh. sorry, wasn't reading :)
00:09 mpanetta I am templating a state and I want to test the template before I bother fleshing out the state...  If my template idea won't work then why bother right? :P
00:09 mpanetta Ah
00:10 whiteinge !state.test.suceed_without_changes | mpanetta
00:10 whiteinge helps if you spell it right
00:10 mpanetta haha, thanks!
00:10 whiteinge it's new in Helium
00:11 mpanetta Sweet
00:11 whiteinge but you can grab it off github and put it in your /srv/salt/_states folder
00:11 mpanetta Ok cool.
00:11 mpanetta So one more question :)  Is it possible to get the environment id passed on the command line in a base state?
00:12 MTecknology note to self... never ever again run salt '*' state.highstate  WOW... never again
00:12 mpanetta I need access to pillar data from the base state..  Trying to see if I can DRY a few things...
00:12 mpanetta MTecknology: oops? heh
00:12 joehoyle joined #salt
00:13 MTecknology mpanetta: 18+ load average
00:13 MTecknology for about an hour
00:13 mpanetta Let me paste my template...
00:13 mpanetta MTecknology: Haha!  You have a lot of machines don't you? heh
00:13 cast MTecknology: how many clients?
00:13 MTecknology 550ish
00:13 mr_chris joined #salt
00:14 MTecknology 180 of them have ~100 states and one of them have >800 states
00:14 MTecknology has*
00:15 whiteinge mpanetta: {{ env }}
00:15 MTecknology This halite system is incredibly neat, but it's very obviously in its infancy.
00:15 whiteinge MTecknology: that's a hell of a state tree. highstate is overrated, imo. it's all about state.sls and state.top for specific-targeted actions :)
00:17 MTecknology whiteinge: many of my servers are managed and deployed 100% by salt. I can even say this about work now! :D
00:17 cast nice :)
00:17 whiteinge woot
00:18 MTecknology many of these boxes get turned on with dns/dhcp configured and in an hour or two, they're ready (because the reactor takes care of verifying the box and doing authentication
00:18 MTecknology but, ya... I have been working my way toward letting people do things against boxes using state.sls
00:19 blast_hardcheese joined #salt
00:19 MTecknology It'd be really gosh darned swell if halite could show you why an execution failed, provide a little better "are you sure" before re-executing a task (I thought clicking that would expand, not re-exec), and ... I forgot the other thing.
00:22 DarkLinkXXXX joined #salt
00:29 mpanetta Thanks whiteinge!
00:32 theo-SLC joined #salt
00:33 joehoyle joined #salt
00:37 DaveQB joined #salt
00:45 mpanetta joined #salt
00:49 MTecknology k... time to write states to install halite via salt
00:50 MBroadhead joined #salt
00:50 theo-SLC joined #salt
00:50 redondos joined #salt
00:50 redondos joined #salt
00:54 jhulten joined #salt
00:54 elfixit1 joined #salt
00:58 taion809 joined #salt
01:00 bhosmer joined #salt
01:00 MTecknology Apparently I can no longer run servers with 32MB RAM. :(
01:05 cast why is that?
01:05 mr_chris joined #salt
01:13 MTecknology cast: aptitude update goes breaky when no swap and 32mb ram and running another service
01:14 eliasp MTecknology: 20y ago, I was sooo happy having 32MB EDO RAM
01:14 MTecknology edo?
01:15 MTecknology I've never heard of this
01:15 eliasp MTecknology: the stuff you needed to run a Pentium I 133 MMX :)
01:15 MTecknology proxmox is getting less and less exciting to see grow :(
01:16 eliasp MTecknology: http://en.wikipedia.org/wiki/Dynamic_random-access_memory#Extended_data_out_DRAM_.28EDO_DRAM.29
01:16 MTecknology 5% was noticable?
01:17 eliasp MTecknology: it's all about imagination ;)
01:17 MTecknology :P
01:17 eliasp but the best thing was: 32MB instead of 4
01:17 eliasp this was the upgrade of my life
01:17 MTecknology My server has 16GB ECC RAM in it, I've just been giving servers between 32mb and 64mb of it
01:18 eliasp ;)
01:19 MTecknology 2014-05-16 20:11:53,662 [salt.crypt    ][WARNING ] SaltReqTimeoutError: Waited 60 seconds  <-- this is a good message?...
01:19 Nexus_x1 joined #salt
01:19 MTecknology funny thing is that all minions connect fine except the minion process on the salt server
01:21 aw110f joined #salt
01:21 eliasp uh, never seen it… no idea
01:22 eliasp is there a Salt event today? no one of the core devs is around…
01:23 MTecknology duhr.... forgot /etc/hosts
01:23 eliasp :)
01:24 eliasp MTecknology: maybe write a state which ensures no crap is leftover in all /etc/hosts files…
01:25 xzarth_ joined #salt
01:25 MTecknology eliasp: I did, but... in order for the state to work, the minion needs to connect to the master. If the hosts file is telling the minion on the salt server that the salt server is somewhere else, it can't talk to the master on the same box....
01:26 eliasp MTecknology: well, that's a kind of chicken-egg issue then ;)
01:26 MTecknology all the other boxes only have their hostname in the hosts file, so they connected to the master just fine and got that state applied.
01:26 MTecknology aight... NOW! to install halite on the salt master via salt!
01:27 eliasp :)
01:27 MTecknology at home, I have a rule about jumping into boxes read-only :)
01:28 eliasp MTecknology: "read-only" like "leave all write-operations to salt"?
01:31 ninkotech joined #salt
01:38 mr_chris joined #salt
01:42 ninkotech_ joined #salt
01:45 joehoyle joined #salt
01:48 rgbkrk joined #salt
01:48 jraby joined #salt
01:51 ckao joined #salt
01:51 mr_chris joined #salt
01:57 Furao joined #salt
02:00 ninkotech__ joined #salt
02:06 ninkotech joined #salt
02:12 MTecknology eliasp: yup
02:12 MTecknology eliasp: I don't install or configure anything unless done via salt
02:12 MTecknology even installing halite on the master is done via salt
02:13 eliasp MTecknology: that's where I want  to get to at some point as well, but especially Windows and it's broken ecosystem makes this nearly impossible
02:13 eliasp MTecknology: great!
02:13 MTecknology the only thing I don't configure via salt is the master configs and salt data
02:14 MTecknology that's where I am at home. I'll never get there at work
02:14 eliasp my home environment is unfortunately really neglected…
02:14 eliasp need to give it some love at some point
02:14 MTecknology time to start over and start fresh
02:14 eliasp yep :)
02:15 eliasp need to refresh my hardware anyways… just need to put some money aside…
02:15 eliasp the current fileserver is ~8y old
02:17 MTecknology hrm... halite isn't letting me authenticate. I set up external_auth and have a system user and it looks like it 'should' be working...
02:18 ninkotech_ joined #salt
02:18 tristianc joined #salt
02:21 krow joined #salt
02:24 joehoyle joined #salt
02:24 ajw0100 joined #salt
02:24 rgbkrk joined #salt
02:25 MTecknology seems to be completely because of something wrong in external_auth, but still not sure what
02:27 ninkotech__ joined #salt
02:30 MTecknology heh... when trying to authenticate, I get this - Exception AttributeError: "'SREQ' object has no attribute 'poller'" in <bound method SREQ.__del__ of <salt.payload.SREQ object at 0x2a75210>> ignored
02:33 ninkotech__ joined #salt
02:34 malinoff joined #salt
02:38 MTecknology heh... it's just a trivial bug in salt-master. Very easy resolution
02:40 MTecknology heh... but live doc search and executing anything isn't working
02:42 krow joined #salt
02:44 MTecknology Authentication failure of type "eauth" occurred.  works fine when running salt commands from the user, we're now to strictly a halite issue
02:48 aw110f joined #salt
02:48 bhosmer joined #salt
02:51 ninkotech__ joined #salt
02:52 MTecknology I can run any salt commands as this user, hilite lets me log in, but I can't run commands or use live doc search
02:53 MTecknology however... the web ui /will/ let me click the macro to ping all hosts
02:55 MTecknology nope- now it all works except doc search, and... I changed nothing
02:56 ninkotech__ joined #salt
03:06 MTecknology There really should be a yellow "working" icon for halite...
03:06 MTecknology still- this thing is awesome.
03:07 otter768 joined #salt
03:17 martoss joined #salt
03:17 krow joined #salt
03:19 krow1 joined #salt
03:32 Nexus_x1 joined #salt
03:35 joehoyle joined #salt
03:39 krow joined #salt
03:46 googolhash joined #salt
03:49 redondos joined #salt
03:52 catpigger joined #salt
03:53 malinoff joined #salt
03:55 krow joined #salt
04:03 thayne joined #salt
04:04 ninkotech joined #salt
04:08 joehoyle joined #salt
04:09 jnials joined #salt
04:13 fragamus joined #salt
04:15 joehoyle joined #salt
04:16 otter768 joined #salt
04:18 fragamus joined #salt
04:20 mgw2 joined #salt
04:25 anuvrat joined #salt
04:29 coo-coo-pigeon joined #salt
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon v
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon v
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:29 coo-coo-pigeon Poopy ass toilet crap shit turd balls penis fuck bitch doosh anus holy bullshit dick pussy gay son of a boner hell
04:36 mgw joined #salt
04:36 davet joined #salt
04:37 bhosmer joined #salt
04:37 davet1 joined #salt
04:41 mateoconfeugo joined #salt
04:47 mgw joined #salt
05:00 krow joined #salt
05:02 joehoyle joined #salt
05:12 ashw7n joined #salt
05:37 stanchan joined #salt
05:47 mgw1 joined #salt
05:48 mgw1 joehh: We're planning to upgrade our network from 2014.1.4 on Monday, will let you know if we have any trouble
05:50 MTecknology from it?
05:54 manfred mode +b
05:54 manfred mmm
05:55 jchen if you're not running HEAD you're behind
06:04 fragamus joined #salt
06:04 jnials joined #salt
06:10 xmj joined #salt
06:25 bhosmer joined #salt
06:35 ramteid joined #salt
06:36 krow joined #salt
06:39 thayne joined #salt
06:51 aantony joined #salt
06:59 cast joined #salt
06:59 davidnknight joined #salt
07:07 davidnknight_ joined #salt
07:09 esogas_ joined #salt
07:28 renoirb joined #salt
07:31 ashw7n joined #salt
07:31 troyready joined #salt
07:33 oeuftete joined #salt
07:37 Tekni joined #salt
07:46 stanchan_ joined #salt
07:48 SEJeff_work joined #salt
07:51 swissknife joined #salt
07:51 joehoyle joined #salt
07:51 zanegrey joined #salt
07:53 zanegrey Question: In the context of the bootstrap script, what is a git based installation?  https://github.com/saltstack/salt-bootstrap/blob/develop/bootstrap-salt.sh#L29
08:02 ashw7n joined #salt
08:10 ashw7n joined #salt
08:13 bhosmer joined #salt
08:28 jnials joined #salt
08:38 krow joined #salt
08:42 joehillen joined #salt
08:44 SEJeff_work joined #salt
09:10 CeBe joined #salt
09:22 Kenzor joined #salt
09:24 ashw7n joined #salt
09:37 harobed_ joined #salt
09:37 harobed_ joined #salt
09:38 malinoff joined #salt
09:40 krow joined #salt
09:52 davidnknight_ joined #salt
09:52 ggoZ joined #salt
10:02 bhosmer joined #salt
10:26 ashw7n joined #salt
10:41 krow joined #salt
10:42 ggoZ joined #salt
10:47 Kenzor joined #salt
10:56 joehoyle joined #salt
11:18 faldridge joined #salt
11:27 ashw7n joined #salt
11:36 tristianc joined #salt
11:41 nadley joined #salt
11:43 krow joined #salt
11:47 harobed joined #salt
11:48 __hudson__ joined #salt
11:50 bhosmer joined #salt
12:13 linjan joined #salt
12:23 jerrcs joined #salt
12:28 ashw7n joined #salt
12:39 alunduil joined #salt
12:39 Duddle joined #salt
12:41 rgbkrk joined #salt
12:42 ghartz_ joined #salt
12:47 Duddle joined #salt
12:49 Duddle the site http://docs.saltstack.com/en/latest/ points to https://media.readthedocs.org/pdf/salt/latest/salt.pdf for an offline copy of the documentation. that file is only 1.9kB and just the logo. am I looking in the wrong place or is this an error?
13:01 Comradephate_ joined #salt
13:16 scalability-junk joined #salt
13:20 diegows joined #salt
13:24 Furao joined #salt
13:24 elfixit1 joined #salt
13:26 nebuchadnezzar joined #salt
13:26 Furao_ joined #salt
13:28 sroegner_ joined #salt
13:29 ashw7n joined #salt
13:29 diegows is there an easy way to get all the minions that do not responde a command?
13:30 diegows I have a couple of died minions, but I'm not sure which ones :)
13:33 sroegner_ joined #salt
13:35 mgw joined #salt
13:36 mgw joined #salt
13:56 loque joined #salt
13:56 loque hi
13:56 loque I need a bit of assistance
13:56 loque I need to return a list of maps from  a pillar
13:57 loque something like the following
13:57 loque [                        {'cache_id':'a', 'recv_port':2103, 'pickle_port':2104, 'query_port':7102},                       {'cache_id':'b', 'recv_port':2203, 'pickle_port':2204, 'query_port':7202},                       {'cache_id':'c', 'recv_port':2303, 'pickle_port':2304, 'query_port':7302},                       {'cache_id':'d', 'recv_port':2403, 'pickle_port':2404, 'query_port':7402},                       {'cache_id':'e', 'recv_port'
13:58 loque I know that in jina a - makes a list
13:58 loque and withouth it its a map
13:59 loque i.e - caches
13:59 loque make a list
13:59 loque - caches :
13:59 loque a:
14:00 ramteid joined #salt
14:00 loque a: < value> woul be a dict entry
14:00 mgw joined #salt
14:00 loque how can I create a pillar that is a list of dicts like I have described
14:02 loque { { some values}, {some more} ....]
14:03 rgbkrk joined #salt
14:06 mateoconfeugo joined #salt
14:21 joehoyle joined #salt
14:26 joehoyle joined #salt
14:28 clone1018 joined #salt
14:29 joehoyle_ joined #salt
14:29 ashw7n joined #salt
14:30 tristianc joined #salt
14:31 jnials joined #salt
14:32 thayne joined #salt
14:41 joehoyle joined #salt
14:43 tristianc joined #salt
14:45 martoss joined #salt
14:46 mgw joined #salt
14:47 yy_ joined #salt
14:47 fredrik joined #salt
14:48 Guest15416 left #salt
14:49 sYFFAN joined #salt
14:52 joehoyle joined #salt
14:53 alunduil joined #salt
14:59 rgbkrk joined #salt
15:05 krow joined #salt
15:09 Kenzor joined #salt
15:10 mgw joined #salt
15:12 malinoff joined #salt
15:16 ramteid joined #salt
15:17 ajprog_laptop1 joined #salt
15:23 jraby joined #salt
15:25 mateoconfeugo joined #salt
15:26 bhosmer joined #salt
15:30 ashw7n joined #salt
15:38 martoss joined #salt
15:46 jraby joined #salt
15:52 krow joined #salt
15:55 joehoyle joined #salt
15:55 ashw7n joined #salt
15:57 malinoff joined #salt
15:57 jraby joined #salt
16:00 jnials joined #salt
16:02 tristianc joined #salt
16:05 Furao joined #salt
16:39 martoss joined #salt
16:42 diegows joined #salt
16:45 uestra joined #salt
16:56 joehoyle joined #salt
16:56 harobed joined #salt
16:57 harobed joined #salt
16:59 anuvrat joined #salt
17:13 catpig joined #salt
17:14 uestra joined #salt
17:15 bhosmer joined #salt
17:19 tristianc joined #salt
17:22 jraby joined #salt
17:24 OffTheRails joined #salt
17:31 martoss joined #salt
17:56 tristianc joined #salt
18:10 redondos joined #salt
18:10 redondos joined #salt
18:11 toastedpenguin joined #salt
18:13 mnaser is there a way to define a custom command to restart a service?
18:16 MTecknology none that I've seen, but it sounds like a good idea
18:17 mnaser so id have to run a manual command for now
18:19 MTecknology with service.running, you have -watch to restart the service if the state changed, you could create cmd.run and use -onlyif instead of watch  (i think...)
18:19 pentabular joined #salt
18:19 MTecknology err... no
18:19 MTecknology you can use cmd.wait with -watch
18:24 rgbkrk joined #salt
18:25 jraby joined #salt
18:30 faldridge joined #salt
18:50 stanchan joined #salt
18:50 uestra joined #salt
18:55 joehoyle joined #salt
18:57 taion809 joined #salt
19:02 slav0nic joined #salt
19:02 toddnni joined #salt
19:03 bhosmer joined #salt
19:08 toddnni joined #salt
19:13 mateoconfeugo joined #salt
19:20 krow joined #salt
19:30 uestra joined #salt
19:31 ashw7n joined #salt
19:35 jnials joined #salt
19:40 rawzone joined #salt
19:55 ashw7n joined #salt
19:56 rgbkrk joined #salt
19:59 Luke_ joined #salt
20:05 tristianc joined #salt
20:07 schimmy joined #salt
20:09 mnaser is there no way at all to combine a few files into one in a state..?
20:09 mnaser i tried making a jinja template with includes
20:09 mnaser and it's giving "TemplateNotFound" ..
20:10 Luke_ joined #salt
20:10 NV mnaser: why not use include?
20:10 schimmy1 joined #salt
20:10 mnaser NV: what include?
20:10 NV ie, incldue:\n  - myotherfile\n  - someotherfile
20:10 NV http://docs.saltstack.com/en/latest/ref/states/include.html
20:10 mnaser oh, that's possible? where can i read more
20:10 mnaser ah but this is a file include
20:11 mnaser my problem is that i hae ssl crt, key and cabundle
20:11 mnaser some software want them all combined, some want crt+cabundle and key alone
20:11 mnaser so i wanted to have 3 individual files for crt/key/cabundle and use templates to combine them to whatever software that needs it
20:11 mnaser instead of having multiple files with the same data repeated
20:11 NV ah, put them in a pillar then
20:12 NV then you can use
20:12 NV {{ pillar.get('cert') }}
20:12 mnaser that's a good idea
20:12 NV pillars should be used for private keys and other sensitive information anyway
20:12 mnaser yeah
20:12 NV (otherwise any minion can see the data)
20:12 mnaser second you mentioned pillar iw as like
20:12 mnaser o
20:13 mnaser thanks NV
20:13 NV np
20:16 _2_sophia932 joined #salt
20:17 redondos joined #salt
20:17 MTecknology mnaser: for a second, I was going to suggest file.accumulated
20:19 londo__ joined #salt
20:20 jslatts joined #salt
20:24 mpanetta joined #salt
20:25 mpanetta joined #salt
20:27 uestra joined #salt
20:47 joehoyle joined #salt
20:50 joehoyle joined #salt
20:51 bhosmer joined #salt
20:56 ashw7n joined #salt
21:01 mgw joined #salt
21:02 mpanetta Does anyone here know what the docs for the onlyif, and unless parameters mean? http://docs.saltstack.com/en/latest/ref/states/all/salt.states.cloud.html#salt.states.cloud.profile
21:03 manfred mpanetta: no idea why those are there, they are built into states backend
21:04 mpanetta Ah
21:04 MTecknology mnaser: ya, that wording is bad... -onlyif means the state will only execute if that executes and -unless means the state will execute unless that fails
21:05 mnaser :>
21:05 mnaser s/mnaser/mpanetta/
21:05 MTecknology 'that' meaning... I don't know if it's depending on a state or command or...
21:05 MTecknology manfred: *
21:05 manfred nope
21:05 manfred mpanetta:
21:05 MTecknology grr...
21:05 MTecknology that
21:05 manfred heh
21:05 mpanetta Thanks :)
21:06 MTecknology I'm going to go for the ssce
21:06 programmerq joined #salt
21:06 manfred mpanetta: so, unless: ls /etc ... if ls /etc returns a retcode of 0 then it won't execute
21:06 manfred if it returns something else, then it will
21:06 manfred onlyif only executes if the commandline ret value is 0
21:07 mpanetta Ah ok
21:07 MTecknology http://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html <-- this has a better explanation imo
21:07 mpanetta So unless only does it if the unless clause failed
21:07 mpanetta onlyif is for if the onlyif clause succeeded  I think ;)
21:08 MTecknology do xyz only if true unless true; I'm thinking of it as an 'or'
21:08 manfred mpanetta: it only executes... unless the command succeeds
21:08 manfred it always executes * unless the command succeeds
21:08 MTecknology but manfred says I'm wrong
21:09 manfred it only exectutes if the command succeeds
21:10 rgbkrk joined #salt
21:11 jnials joined #salt
21:11 manfred oh, unless is only part of the cmd state... lame
21:12 manfred i thought it was in the salt/state.py for some reason as a STATE_INTERNAL_KEYWORDS
21:12 manfred but yeah, still stands, the cmd.run state executes, unless the unless command returns a 0
21:12 MTecknology manfred: nah, it's in cloud state too, cloud.profile (which he asked about)
21:13 MTecknology I just referenced cmd.run because it makes more sense and is easier to read.
21:13 manfred yeah
21:13 manfred but it should do the same way it works in cmd
21:14 manfred i thought it was something that was on the backend of states, so you wouldn't need to specify unless or onlyif in the actual state like they were doing...
21:14 manfred like names
21:14 manfred or require
21:14 MTecknology I'd assume so.
21:14 MTecknology ^ ignore
21:14 manfred mpanetta: http://paste.gtmanfred.com/W3G7s/
21:14 manfred so
21:15 manfred the first one, it only cats the file, if ls returns a 0, meaning the file exists
21:15 mpanetta ah ok
21:15 manfred mpanetta: and then in the second one, always touches the file... unless ls returns a zero, meaning the file already exists
21:15 * MTecknology is working on authenticating users/groups for halite using ldap
21:16 mpanetta manfred: ok sweet, that makes perfect sense
21:17 londo_ joined #salt
21:17 MTecknology in case nobody's ever used it - this is AMAZING - http://yaml-online-parser.appspot.com/
21:17 dangra joined #salt
21:19 MTecknology I need to make salt states so that I can update the masters the minions should connect to
21:20 mpanetta Hrm... Is it possible to get a minion in one environment to access the pillar data of another environment?
21:21 mpanetta So far I am not having success...
21:22 MTecknology never played with multiple environments
21:23 manfred mpanetta: i do not believe you can do that, because you don't want the minion to be able to access pillar data that isn't specifically assigned to them.
21:23 manfred mpanetta: you could put the minion into a highstate in a different environment
21:23 mpanetta crap, good point...
21:23 manfred salt-call state.highstate saltenv=dev or something iirc
21:24 mpanetta I'm trying to use a local minion on my master to build the other envs using salt cloud states...
21:25 manfred you can specify the environment in the state
21:25 mpanetta Yeah, but I want it to be the one I used on the command line...
21:25 mpanetta Wait, how?
21:26 manfred saltenv: iirc?
21:26 manfred lemme find it
21:26 ajw0100 joined #salt
21:26 manfred https://github.com/saltstack/salt/blob/develop/salt/state.py#L59
21:26 manfred yeah
21:26 manfred it is in every state
21:26 manfred that one we do have on the backend
21:26 manfred so you can set any variable in that list, in a state
21:28 alunduil joined #salt
21:28 mpanetta Are there any examples?
21:28 manfred you just have like...
21:28 manfred nginx:
21:28 manfred pkg.installed:
21:28 manfred - saltenv: base
21:28 manfred and it will pull in the base env for pillars and shit
21:29 manfred or you could have saltenv: dev
21:29 mpanetta Ah!
21:29 mpanetta Hmm
21:29 manfred and for jinja in that state will have dev for your pillar data iirc
21:29 manfred it is state specific afaik
21:31 manfred also usefull for gitfs, because then you can specify the specific commit to use for some states iirc http://docs.saltstack.com/en/latest/topics/releases/2014.1.0.html#gitfs-improvements
21:32 mpanetta how do I get the env that was passed on the command line?  I thought it was {{ env }} but that is not working... :(
21:33 mpanetta Wait
21:33 mpanetta maybe it is my fault... sec
21:33 manfred env is deprecated, use saltenv, and you can't always pass it for every module
21:34 mpanetta Oh are they the same?
21:34 manfred saltenv replaced env
21:35 mpanetta Ah ok
21:35 uestra joined #salt
21:37 mpanetta https://gist.github.com/bentwire/1aa58ceb2ed53136bd2c  <-- I am trying to do that, but my pillar data is still not there :(
21:38 manfred ¯\(°_o)/¯
21:38 Luke_ joined #salt
21:42 MTecknology WOOHOO!!! I'm using ldap authentication to let users run salt commands!
21:43 MTecknology not working with halite, though
21:44 MTecknology and now it is
21:46 joehoyle joined #salt
21:50 * MTecknology can't figure out how to use ldap groups... :(
21:53 roolo joined #salt
21:57 ashw7n joined #salt
21:59 joehoyle joined #salt
21:59 ashw7n joined #salt
21:59 MTecknology I give up... done for the day, heading home!
22:01 tligda joined #salt
22:04 Nazzy joined #salt
22:11 Kenzor joined #salt
22:11 roolo joined #salt
22:15 loque joined #salt
22:19 miqui joined #salt
22:20 TyrfingMjolnir joined #salt
22:20 mpanetta joined #salt
22:21 dangra joined #salt
22:22 TyrfingMjolnir joined #salt
22:31 diegows joined #salt
22:39 bhosmer joined #salt
22:41 uestra joined #salt
22:42 dangra joined #salt
22:44 Ymage joined #salt
22:46 ndrei joined #salt
22:47 jslatts joined #salt
22:57 tligda joined #salt
22:57 otter768 joined #salt
22:59 schimmy joined #salt
23:00 anuvrat joined #salt
23:03 rgbkrk joined #salt
23:05 SaveTheRbtz joined #salt
23:09 joehoyle joined #salt
23:17 thayne joined #salt
23:18 scarcry joined #salt
23:30 jnials joined #salt
23:32 tligda joined #salt
23:32 faldridge joined #salt
23:38 orbit_darren joined #salt
23:59 krow joined #salt

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