Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-05-10

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

All times shown according to UTC.

Time Nick Message
00:10 ALLmightySPIFF joined #salt
00:18 timoguin joined #salt
00:22 VR-Jack okay. think I got the bugs out. fun. fun. a github account helps, too. lol https://gist.github.com/vr-jack/d53733b554fb15b12bfd
00:24 VR-Jack Now I can just add hosts into pillar and they automatically get into the right top.sls permissions.
00:32 VR-Jack iggy: you around?
00:40 kusams joined #salt
00:55 coval3nce joined #salt
00:56 thayne joined #salt
00:59 multani joined #salt
01:12 writtenoff joined #salt
01:14 ALLmightySPIFF joined #salt
01:15 heise joined #salt
01:18 timoguin joined #salt
01:45 Robf_ joined #salt
01:48 NV joined #salt
01:50 fxhp_ joined #salt
01:50 p0rkbelly joined #salt
01:52 fxhp joined #salt
01:56 bhosmer_ joined #salt
01:58 ALLmightySPIFF joined #salt
02:00 otter768 joined #salt
02:03 DaveQB joined #salt
02:09 RobF_ joined #salt
02:10 hasues joined #salt
02:11 hasues left #salt
02:18 timoguin joined #salt
02:25 amcorreia joined #salt
02:33 StDiluted joined #salt
02:34 StDiluted left #salt
02:37 StDiluted_ joined #salt
02:37 StDiluted_ left #salt
02:43 heise joined #salt
02:52 michelangelo joined #salt
03:04 mpanetta joined #salt
03:06 kitplummer joined #salt
03:18 timoguin joined #salt
03:19 otter768 joined #salt
03:29 ALLmightySPIFF joined #salt
03:30 thayne joined #salt
03:41 TyrfingMjolnir joined #salt
03:57 bhosmer_ joined #salt
04:01 zzzirk joined #salt
04:03 nene joined #salt
04:05 yomilk joined #salt
04:18 timoguin joined #salt
04:25 garion_ joined #salt
04:27 garionphx joined #salt
04:28 garionphx Hi all.. QUick question.. I have two minions, one is a database, and the other a webserver.. How do I get the ip address of the database on the webserver (without knowing the IP address ahead of time, and no DNS).
04:29 garionphx I tried a mine inside a pillar, but that seemed to fail.
04:30 ALLmightySPIFF joined #salt
04:31 bdf garionphx: publish grains (or pillar) to the salt mine
04:33 bdf which i did for a while, but ended up using consul to do via dns-based service discovery
04:33 bdf which i find to be cleaner and more dynamaic in several ways
04:35 garionphx not familiar with consul. A quick google says its a service discovery app? Hows that integrate with salt?
04:35 bdf it doesnt directly, it just allows you to use dns in all of your config files that resolve to the right stuff in the local environment
04:36 garionphx Hrm. I'll look into it, thanx.
04:36 bdf as i said, salt can natively do what you want and i used it for such for a while
04:36 joeto joined #salt
04:37 garionphx how would that work.. Currently, I have a mine that gets the ip (mine_functions: network.ip_addrs [eth1])
04:37 garionphx But when I tried to access that in pillar, I ended up with an error.
04:38 bdf it's not published in pillar, its published in the mine.. which has a similar interface in state files
04:39 bdf ergo mine.get
04:40 garionphx Right.. I should have said, i tried accessing the mine in a pillar, and got an error..
04:40 garionphx I had this:
04:40 garionphx database_conn:
04:40 garionphx {% for server, addrs in salt['mine.get']('nodetype:infrastructure', 'network.ip_addrs', expr_form='grain').items() %}
04:40 garionphx host: {{ addrs[0] }}
04:40 garionphx {% endfor %}
04:41 garionphx when when I tried to do a highstate, it gave me an error in the log/salt/master.
04:42 garionphx It looks like I ran into this: https://github.com/saltstack/salt/issues/11509
04:42 garionphx (salt version 2014.7.5)
04:42 bdf you should be able to verify that stuff is actually in the mine properly with salt-call on the local machine
04:45 garionphx I dont seem to get anything. But I'm not sure anything would be there yet, since I havent called highstate yet.
04:47 bdf mine.publish is in the minion config and the minion is restarted?
04:48 bdf thats all that should have needed to happen. the mine is but just a background thread on the minion that occassionally sends a key value to the master for later retrieval by other minions
04:49 bdf a state highstate should have nothing to do with it
04:49 garionphx what mine.publish, I dont see it in the docs? (or I'm just looking in the wrong spot..)
04:50 bdf its a minion config
04:50 bdf its named something like that... apologies, i am using irssi in a screen session on an iphone and speaking from memory, otherwise id send you a link
04:51 bdf basically though you need to configure your minion to periodically publish to the mine
04:51 garionphx Ahh.. I suspect thats what I'm missing? I ony see stuff in the docs about grain_dirs.. Nothing about publish..  I'll look deeper.
04:51 bdf its got its own timer
04:51 garionphx ok.. I'll check.
04:54 bdf ahh i see... the docs say that mine functions live in pillar (they didnt used to by default) but the minion config still needs the interval
05:05 mpanetta joined #salt
05:06 garionphx Ok, so i verified the mine works. I can see the ip I need in there.
05:06 garionphx But when I attempt highstate, I get an error, something about KeyError 'master_uri'...
05:09 garionphx Here's the error I'm getting in the master log file: https://gist.github.com/garionphx/ddd24a29153047aa1b7e
05:10 garionphx And here's the pillar: https://gist.github.com/garionphx/08d4c2a529cbcc4ae000
05:18 timoguin joined #salt
05:20 catpigger joined #salt
05:31 ALLmightySPIFF joined #salt
05:58 zer0def joined #salt
05:58 bhosmer_ joined #salt
06:01 viq joined #salt
06:18 timoguin joined #salt
06:19 zzzirk joined #salt
06:32 ALLmightySPIFF joined #salt
06:57 joeto joined #salt
07:06 mpanetta joined #salt
07:17 steffo joined #salt
07:18 timoguin joined #salt
07:22 c10 joined #salt
07:24 evle joined #salt
07:33 ALLmightySPIFF joined #salt
07:37 stoogenmeyer joined #salt
07:41 viq joined #salt
07:47 teogop joined #salt
07:59 bhosmer_ joined #salt
08:07 otter768 joined #salt
08:18 timoguin joined #salt
08:19 Andre-B joined #salt
08:34 ALLmightySPIFF joined #salt
08:35 Fiber^ joined #salt
08:43 chiui joined #salt
08:52 bfoxwell joined #salt
08:53 slav0nic joined #salt
08:53 slav0nic joined #salt
08:54 jhauser joined #salt
08:56 dalexander joined #salt
09:07 CeBe joined #salt
09:09 jhauser joined #salt
09:16 jhauser joined #salt
09:18 timoguin joined #salt
09:35 ALLmightySPIFF joined #salt
09:41 saltsa joined #salt
09:42 peters-tx joined #salt
09:45 jhauser joined #salt
10:00 bhosmer_ joined #salt
10:08 otter768 joined #salt
10:13 fbergroth joined #salt
10:17 jhauser joined #salt
10:18 timoguin joined #salt
10:26 jhauser joined #salt
10:32 linjan joined #salt
10:35 ALLmightySPIFF joined #salt
10:36 linjan joined #salt
10:44 linjan joined #salt
10:45 jhauser joined #salt
10:55 Chadk joined #salt
11:05 ildiroen joined #salt
11:07 Whissi joined #salt
11:18 timoguin joined #salt
11:28 CeBe1 joined #salt
11:31 ndrei joined #salt
11:36 ALLmightySPIFF joined #salt
11:39 jhauser joined #salt
11:40 ildiroen joined #salt
11:44 kron4eg joined #salt
11:47 jhauser joined #salt
11:48 joeto joined #salt
11:48 mapu joined #salt
11:54 mirko hey, is there any information on when and how releases are managed?
11:55 mirko looking at github there's 2014.7, 2015.2 and 2015.5 - are all of them already released?
11:55 mirko looking at pypy the most recent one is 2014.7 - does that reflect the actual state?
11:55 tomh- joined #salt
12:00 bhosmer_ joined #salt
12:09 otter768 joined #salt
12:09 JayFK joined #salt
12:11 kron4eg left #salt
12:13 mpanetta joined #salt
12:14 evle1 joined #salt
12:16 jhauser joined #salt
12:18 timoguin joined #salt
12:32 ndrei joined #salt
12:36 jhauser joined #salt
12:37 ALLmightySPIFF joined #salt
12:41 Berty_ joined #salt
12:46 jhauser joined #salt
12:49 JayFK joined #salt
12:50 ildiroen joined #salt
12:59 JDiPierro joined #salt
13:04 jhauser joined #salt
13:04 badon joined #salt
13:13 mpanetta joined #salt
13:15 jhauser joined #salt
13:15 joeto joined #salt
13:18 timoguin joined #salt
13:19 amcorreia joined #salt
13:23 al joined #salt
13:26 NV joined #salt
13:34 ndrei joined #salt
13:38 ALLmightySPIFF joined #salt
13:42 zzzirk joined #salt
13:43 ildiroen joined #salt
13:48 sk_0 joined #salt
13:49 iggy mirko: 2015.2 was renamed to 2015.5 and should be out shortly
13:50 iggy and I thought basepi said that they were going to release to pypy already
13:51 basepi 2015.5.0 is up on pypi. It's just hidden, so you have to manually change the URL.
13:51 iggy makes sense
13:51 basepi We'll announce it and unhide tomorrow probably.
13:53 jhauser joined #salt
13:55 badon_ joined #salt
13:55 zzzirk_ joined #salt
13:57 catpig joined #salt
14:00 joeto joined #salt
14:01 bhosmer_ joined #salt
14:09 otter768 joined #salt
14:11 patrek joined #salt
14:18 timoguin joined #salt
14:31 stoogenmeyer_ joined #salt
14:32 ph8 joined #salt
14:38 ALLmightySPIFF joined #salt
14:40 markm joined #salt
14:54 VR-Jack iggy: did you see my pillar list builder?
14:55 iggy sounds scary
14:56 VR-Jack I pushed jinja as far as I know how. https://gist.github.com/vr-jack/d53733b554fb15b12bfd
14:57 VR-Jack but it made my pillar top.sls a lot nicer
14:58 kusams joined #salt
14:59 VR-Jack and it's simple enough to easily customize
15:02 VR-Jack sadly, while jinja include has "ignore missing" both import and salt's extended import_yaml do not. :(
15:05 iggy that looks terrible
15:08 amcorreia joined #salt
15:10 thayne joined #salt
15:15 VR-Jack Hmm, what part of jinja you think I need to study up on more, then?
15:18 timoguin joined #salt
15:20 iggy that's just not something I'd do in jinja
15:20 iggy especially not in a top file
15:20 ALLmightySPIFF joined #salt
15:21 amcorreia_ joined #salt
15:21 VR-Jack Was limited on options to get a set of lists imported into top.sls for easy matching
15:26 lictor36 joined #salt
15:38 Chadk Is Beryllium a dev branch, or current?
15:41 pdayton joined #salt
15:42 thayne joined #salt
15:49 babilen Chadk: https://github.com/saltstack/salt/milestones + http://docs.saltstack.com/en/latest/topics/releases/version_numbers.html (so: In a way "neither")
15:51 Chadk But if docs say new in Beryllium, it won't bein 2014.7.3, correct?
15:53 VR-Jack Chadk: probably not. 2015.5.0 which is due out soon
15:54 Chadk Gotcha!
15:54 Chadk Thanks :)
15:54 stoogenmeyer_ joined #salt
15:57 VR-Jack Hmm. would be nice if pillar had a way to match/specify what master can see for orchestrate and such.
16:01 babilen Chadk: 2015.5.0 is "Lithium" (to be announced tomorrow) and "Beryllium" will be the next release.
16:02 babilen Nobody knows when that'll happen.
16:02 bhosmer_ joined #salt
16:02 babilen So it is neither the "dev branch" nor the "current branch", but simply the codename of the next release - https://en.wikipedia.org/wiki/List_of_elements
16:03 babilen It would, however, make sense to call the *branch* in git "beryllium" until the date of the release when it's being renamed according to the YYYY.MM version number scheme
16:04 babilen basepi: Why don't you simply do that ^^^ ?
16:04 iggy we've mentioned it before
16:04 babilen I mean I'm happy that they decided to rename 2015.2, but what will they do to prevent that from happening over and over again?
16:06 babilen iggy: What was the reaction? I have the feeling as if I have been going on about this for a while now :)
16:06 iggy we all have
16:06 VR-Jack I wonder how much of the documented Ber functionality is in 2015.5, though
16:07 iggy if it says new in beryllium, none
16:07 iggy otherwise it'd say new in Lith
16:07 VR-Jack so it's been forked for awhile, then?
16:07 babilen When did they start the 2015.2 branch? Some time in November?
16:08 iggy december
16:08 VR-Jack someone said they had kept adding features to it, so wasn't sure
16:10 iggy they should also have been updating the docs
16:10 otter768 joined #salt
16:11 ek6 joined #salt
16:18 timoguin joined #salt
16:20 writtenoff joined #salt
16:20 pdayton joined #salt
16:24 VR-Jack lol. well. I stand corrected. salt already has an id for master in pillar. Looks like it defaults to hostname_master, but it could be localminionid_master. not sure since mine is the same here
16:25 VR-Jack noticed the name in an error calling orchestrate, so just tried it.
16:25 VR-Jack haven't found any documentation on it
16:50 saffe joined #salt
16:51 VR-Jack ugh. at some point my orchestration broke. :(
16:56 linjan joined #salt
17:02 saffe joined #salt
17:03 bdols joined #salt
17:15 VR-Jack iggy: serves me right. doing an import in pillar:top.sls changes "base" when using salt-run. nasty bug
17:16 VR-Jack I copied the orchestarte sls file into the pillar tree and it worked. haha
17:18 timoguin joined #salt
17:28 jhujhiti joined #salt
17:29 otter768 joined #salt
17:30 mirko iggy: basepi: oh, thanks for explanation
17:35 VR-Jack well, may be an issue of "don't do that!" we'll see. https://github.com/saltstack/salt/issues/23524
17:39 evle3 joined #salt
17:40 jhujhiti joined #salt
17:45 jhujhiti joined #salt
17:45 mirko is that also true for salt-ssh (re: v2015.05)? if it's already uploaded but hidden, how would I install/upgrade it via pip?
17:50 amcorreia_ joined #salt
17:52 kusams joined #salt
17:53 iggy mirko: as was mentioned, just change the version number
17:54 mirko iggy: didn't get that bit - thanks
17:55 iggy mirko: I don't know if salt-bootstrap has the ability to install from pip, but it can install from a git tag
17:56 otter768 joined #salt
17:57 timoguin joined #salt
17:57 mirko is there any way to save some bits within a state file? concrete case: i'm generating an gpg-key via salt.modules.gpg.create_key() and i'd liek to fetch the key-id via salt.modules.gpg.list_keys() and then using that key-id as a string within the same sls file - e.g. for replacing the string '###GPGID###' with the generated/fetched keyid in some file?
17:57 mirko iggy: ack, will try
18:01 iggy wheel modules are useful for that
18:01 StDiluted joined #salt
18:03 bhosmer_ joined #salt
18:05 VR-Jack Threw in a request for documentation on pillar targetting master. It's working for me, but not sure where all it works or if the id is based on hostname or local minion_id.
18:09 coval3nce joined #salt
18:22 c10 joined #salt
18:33 bash124512 joined #salt
18:45 mpanetta joined #salt
18:50 noway_ joined #salt
19:05 ALLmightySPIFF joined #salt
19:09 pkimber joined #salt
19:14 ajw0100 joined #salt
19:15 JlRd joined #salt
19:20 c10b10 joined #salt
19:34 VR-Jack aha! Further testing. Apparently top.sls doesn't properly maintain base. other pillar files can use imports, but top.sls doing so messes up base search paths.
19:37 VR-Jack wonder if problem persists in 2015.5.. will find out in a few days, i hope.
19:37 ckao joined #salt
19:46 mpanetta joined #salt
20:04 bhosmer_ joined #salt
20:04 MaliutaLap joined #salt
20:04 MaliutaLap left #salt
20:06 JlRd joined #salt
20:25 otter768 joined #salt
20:37 ALLmightySPIFF joined #salt
20:40 keimlink joined #salt
20:45 j-saturne joined #salt
20:46 thehaven joined #salt
20:48 hasues joined #salt
20:48 hasues left #salt
20:51 amcorreia_ joined #salt
20:57 Chadk Has anybody ever seen this exception when using salt-cloud? The following exception was thrown by libcloud when trying to run the initial deployment: 'image'
21:07 bhosmer_ joined #salt
21:07 CeBe1 joined #salt
21:11 yidhra_ joined #salt
21:12 badon joined #salt
21:12 thayne joined #salt
21:17 sunz left #salt
21:27 kusams joined #salt
21:47 mpanetta joined #salt
21:51 basepi babilen: we very well may name the next branch beryllium. Still a question of what to call the RCs in that case.
21:51 basepi Beryllium is targeted for August.
21:52 basepi There are a number of issues that made Lithium late, and we're working on solutions to stop the delays from continuing to happen
21:58 VR-Jack hmm, blast. the git repo version returned the same problem with base. :(
22:07 chiui joined #salt
22:09 VR-Jack Well, at least I know how to give the "master" access to the pillars
22:10 VR-Jack <localminion_id>_master is a pretty weird name, though.
22:23 MaliutaLap joined #salt
22:23 MaliutaLap left #salt
22:26 otter768 joined #salt
22:28 c10b10 joined #salt
22:43 thayne joined #salt
22:45 aurynn joined #salt
22:46 CeBe1 joined #salt
22:48 MoonSweep joined #salt
22:51 MoonSweep left #salt
22:59 mosen joined #salt
23:09 amcorreia_ joined #salt
23:19 evilrob joined #salt
23:21 evilrob joined #salt
23:22 keimlink_ joined #salt
23:29 bhosmer_ joined #salt
23:30 mike25de joined #salt
23:32 thayne joined #salt
23:32 cozby_ hi, I'm experiencing the following when I run salt "*" state.sls -> The function "state.sls" is running as PID
23:32 cozby_ I use to be able to run stuff before using that command but now I see the following...?
23:41 thayne joined #salt
23:41 evilrob joined #salt
23:42 VR-Jack cozby_ I think I've seen that a few times when it's still running something. ie, if the master timed out and the minion kept running.
23:44 VR-Jack hmmm. think I found a fix for the top sls processing. *crosses fingers*
23:47 VR-Jack woot! my first salt debug. umm. I don't git, though. :(
23:47 mpanetta joined #salt
23:48 badon joined #salt
23:50 subsignal joined #salt
23:52 VR-Jack I've never used git, so if someone who has can possibly look at my fix on my bug report and submit a patched fix, I'd appreciate it. https://github.com/saltstack/salt/issues/23524
23:54 VR-Jack it's a single file, add the same thing to 3 lines fix. heh. Eventually tells the lower down renderers that it's pillar_root so they don't mess up file_root, if I understand right.

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