Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-04-11

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

All times shown according to UTC.

Time Nick Message
00:00 bigpup6 joined #salt
00:01 dendazen joined #salt
00:03 markm_ joined #salt
00:04 cmcmacken joined #salt
00:05 baweaver joined #salt
00:10 markm joined #salt
00:12 baweaver joined #salt
00:16 bigpup6 joined #salt
00:16 otter768 joined #salt
00:20 mapu joined #salt
00:23 desposo joined #salt
00:27 markm_ joined #salt
00:33 bigpup6 joined #salt
00:34 tanhaa joined #salt
00:43 sunkist joined #salt
00:45 markm_ joined #salt
00:46 scbunn joined #salt
00:49 bigpup6 joined #salt
00:56 bubai left #salt
00:59 markm joined #salt
01:03 Tyrm joined #salt
01:05 bigpup6 joined #salt
01:06 markm_ joined #salt
01:09 murrdoc joined #salt
01:16 bVector hey party people
01:16 bVector how do you use an outputter when writing a runner?
01:16 bVector I'm trying to import salt.output.nested but its complaining about __opts__
01:26 markm__ joined #salt
01:28 iggy you don't... the user sets the outputter
01:29 ckao joined #salt
01:32 iggy oh, I see what you're saying... there are some examples in the salt source (but basically just set it to an empty dict or whatever minimal data you need and it should get overwritten)
01:33 bVector finally got it working
01:33 bVector copied what was in https://github.com/saltstack/salt/blob/59babc15e8/salt/runners/doc.py#L72
01:33 keltim joined #salt
01:34 bVector I was missing the __opts__ arg
01:34 markm__ joined #salt
01:35 bVector also I was trying to import salt.output.nested instead of just importing salt.output and calling display_output
01:38 bigpup6 joined #salt
01:40 markm__ joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt | 2014.7.2 is the latest | Please use https://gist.github.com for code, don't paste directly into the channel | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
01:55 bigpup6 joined #salt
01:55 linuxlinux joined #salt
01:57 linuxlinux hey guys. I'm having a little trouble with a jinja conditional configuration.  if a directory exists -> install a file
01:57 linuxlinux {% if salt.modules.file.directory_exists('/home/user') %}
01:58 bVector have you tried a requisite?
01:58 linuxlinux hmmm. let me read up on that
01:58 bVector http://docs.saltstack.com/en/latest/ref/states/requisites.html#check-cmd
01:58 iggy linuxlinux: you don't need salt.modules
01:58 iggy if file.directory_exists
01:59 iggy but yeah, better to use proper requisites
01:59 linuxlinux ok thanks! I'll read up on this for a bit
01:59 iggy if it's a cmd.* you're running, it has a "- creates:" requisite (that's not in the globals)
02:01 iggy but yeah, if you want more help, feel free to paste the code you're working with so far to gist.github.com and let us take a look at it
02:05 linuxlinux https://gist.github.com/anonymous/a97c6d0c847c85e08f30
02:05 linuxlinux thanks!
02:05 linuxlinux Requisite declaration file.directory_exists /home/user in SLS orhanfiles is not formed as a single key dictionary
02:05 linuxlinux is my error
02:05 scbunn joined #salt
02:05 linuxlinux i tried using a requisite
02:08 randomuser joined #salt
02:08 SeeDickCode joined #salt
02:10 SeeDickCode joined #salt
02:11 bigpup6 joined #salt
02:17 otter768 joined #salt
02:25 subsignal joined #salt
02:33 linuxlinux i tried using check_cmd as suggested.  find /home/user -type d && return 1 || return 0
02:34 linuxlinux debug output from the minion gives a 127 retval from bash --- illegal command
02:35 linuxlinux i also tried /usr/bin/find
02:35 linuxlinux thinking it might be a $PATH issue
02:36 michelangelo joined #salt
02:40 writtenoff joined #salt
02:49 sunkist1 joined #salt
02:51 sunkist joined #salt
02:52 scbunn joined #salt
02:56 sunkist1 joined #salt
02:57 pdayton joined #salt
02:59 pullphinger joined #salt
03:01 sunkist joined #salt
03:03 sn00py joined #salt
03:05 markm_ joined #salt
03:06 sunkist1 joined #salt
03:07 otter768 joined #salt
03:11 aukan joined #salt
03:11 sunkist joined #salt
03:12 Guest70 joined #salt
03:13 Guest70 why does this state complain that the sources needs to be a list of dicts, which i think it is, and it is following the documentation's format: https://gist.github.com/anonymous/3669c1357ba2ab86389a
03:14 otter768 joined #salt
03:17 sunkist1 joined #salt
03:21 fusionx86 joined #salt
03:22 sunkist joined #salt
03:26 toastedpenguin joined #salt
03:27 sunkist1 joined #salt
03:31 nzero apparently i had a typo
03:32 sunkist joined #salt
03:37 sunkist1 joined #salt
03:38 seev missing :
03:39 seev line 6
03:42 sunkist joined #salt
03:48 sunkist1 joined #salt
03:52 sunkist joined #salt
03:58 sunkist1 joined #salt
03:59 phpdave11 joined #salt
04:03 sunkist joined #salt
04:04 ORD3R joined #salt
04:05 wm-bot4140 joined #salt
04:06 jerrcs joined #salt
04:06 pdayton joined #salt
04:08 sunkist1 joined #salt
04:12 matthew-parlette joined #salt
04:13 sunkist joined #salt
04:18 sunkist1 joined #salt
04:19 autonomy joined #salt
04:20 Furao joined #salt
04:21 spookah joined #salt
04:22 markm__ joined #salt
04:24 linuxlinux joined #salt
04:27 numkem joined #salt
04:31 sunkist joined #salt
04:33 chitown joined #salt
04:36 tkharju joined #salt
04:40 Furao joined #salt
04:46 dude051 joined #salt
04:50 kermit joined #salt
04:53 I3olle_ joined #salt
04:57 kermit joined #salt
04:59 pdayton joined #salt
05:03 Karlthane Anyone know of a way to get salt on ubuntu 15.04 beta2? I add the ppa and it freaks out. Or do I just need to wait till release to get desktop and test laptop on salt?
05:16 markm_ joined #salt
05:22 markm__ joined #salt
05:33 markm__ joined #salt
05:41 catpigger joined #salt
05:42 bhosmer joined #salt
05:49 preachermanx Karlthane: build from source/github is your best bet for now
05:49 Karlthane Ok, thank you.
05:49 preachermanx it will give you the added benefit of being on the latest version potentially.
05:55 sunkist joined #salt
05:55 peters-tx2 Karlthane, in a pinch you could use salt-ssh
05:56 peters-tx2 ...assuming you are talking about only the minion  :)
05:57 Karlthane I am. Both are going to be minions
06:00 sunkist1 joined #salt
06:02 otter768 joined #salt
06:13 fusionx8_ joined #salt
06:37 Karlthane_ joined #salt
06:40 markm_ joined #salt
07:39 tanhaa joined #salt
07:41 evle1 joined #salt
07:55 ndrei joined #salt
08:03 markm_ joined #salt
08:03 otter768 joined #salt
08:10 markm_ joined #salt
08:17 ggoZ joined #salt
08:21 glyf joined #salt
08:37 dopesong joined #salt
08:46 bhosmer_ joined #salt
08:49 markm__ joined #salt
08:53 JayFK joined #salt
08:54 I3olle joined #salt
08:54 markm_ joined #salt
08:59 robinsmidsrod joined #salt
09:04 ITChap joined #salt
09:06 stoogenmeyer joined #salt
09:09 ITChap joined #salt
09:12 yawniek joined #salt
09:14 illern joined #salt
09:24 sxar_ joined #salt
09:30 slav0nic joined #salt
09:40 ITChap joined #salt
09:52 robinsmidsrod joined #salt
09:53 bluenemo joined #salt
09:53 bluenemo joined #salt
09:56 tomh- joined #salt
09:58 ITChap joined #salt
10:04 otter768 joined #salt
10:11 sxar_ joined #salt
10:11 bigpup6 joined #salt
10:21 sxar joined #salt
10:23 stephanbuys1 joined #salt
10:27 robinsmidsrod joined #salt
10:27 bigpup6 joined #salt
10:31 autonomy joined #salt
10:35 CeBe joined #salt
10:38 robinsmidsrod joined #salt
10:41 dopesong_ joined #salt
10:44 bigpup6 joined #salt
10:47 viq joined #salt
10:47 aquassaut joined #salt
10:49 robinsmidsrod joined #salt
10:56 robinsmidsrod joined #salt
10:59 robinsmidsrod joined #salt
11:00 bigpup6 joined #salt
11:05 robinsmidsrod joined #salt
11:07 robinsmidsrod joined #salt
11:11 robinsmidsrod joined #salt
11:12 malinoff joined #salt
11:16 bigpup6 joined #salt
11:24 tkharju joined #salt
11:25 robinsmidsrod joined #salt
11:28 TyrfingMjolnir joined #salt
11:33 bigpup6 joined #salt
11:33 hasues joined #salt
11:34 hasues left #salt
11:37 mapu joined #salt
11:41 tkharju joined #salt
11:48 amcorreia joined #salt
11:49 bigpup6 joined #salt
11:50 robinsmidsrod joined #salt
11:54 markm joined #salt
11:59 Nazca__ joined #salt
11:59 Duffn joined #salt
12:04 sxar_ joined #salt
12:05 otter768 joined #salt
12:05 bigpup6 joined #salt
12:16 markm_ joined #salt
12:21 bigpup6 joined #salt
12:31 dopesong joined #salt
12:32 markm__ joined #salt
12:37 bigpup6 joined #salt
12:41 markm joined #salt
12:47 markm joined #salt
12:51 markm_ joined #salt
12:54 bigpup6 joined #salt
13:01 markm_ joined #salt
13:05 markm__ joined #salt
13:07 autonomy joined #salt
13:10 bigpup6 joined #salt
13:18 zwi joined #salt
13:19 vincer joined #salt
13:20 sxar_ joined #salt
13:24 slav0nic joined #salt
13:26 TyrfingMjolnir joined #salt
13:26 bigpup6 joined #salt
13:27 TyrfingMjolnir joined #salt
13:29 vincer joined #salt
13:35 illern_ joined #salt
13:38 jonatas_oliveira joined #salt
13:43 bigpup6 joined #salt
13:52 mapu joined #salt
13:53 malinoff joined #salt
13:59 bigpup6 joined #salt
14:06 otter768 joined #salt
14:10 scbunn joined #salt
14:10 tdjb_ joined #salt
14:13 linuxlinux joined #salt
14:14 dendazen joined #salt
14:15 bigpup6 joined #salt
14:19 robinsmidsrod joined #salt
14:23 pdayton joined #salt
14:24 glyf joined #salt
14:26 spootly joined #salt
14:27 scbunn joined #salt
14:27 emid joined #salt
14:30 robinsmidsrod joined #salt
14:31 bigpup6 joined #salt
14:37 tdjb_ joined #salt
14:41 robinsmidsrod joined #salt
14:42 echo joined #salt
14:45 autonomy joined #salt
14:47 bigpup6 joined #salt
14:49 huleboer joined #salt
14:58 fredvd joined #salt
14:58 ice joined #salt
15:01 robinsmidsrod joined #salt
15:04 bigpup6 joined #salt
15:12 Tyrm joined #salt
15:19 Fiber^ joined #salt
15:23 amcorreia joined #salt
15:34 bigpup6 joined #salt
15:39 bigpup6 joined #salt
15:42 SheetiS joined #salt
15:46 Firewalll joined #salt
15:54 bhosmer joined #salt
15:56 robinsmidsrod joined #salt
15:56 scoates joined #salt
15:58 TyrfingMjolnir joined #salt
16:01 totte joined #salt
16:03 slav0nic joined #salt
16:03 slav0nic joined #salt
16:07 otter768 joined #salt
16:18 scbunn joined #salt
16:18 iggy salt-bootstrap git v2014.7.4
16:18 iggy Karlthane: ^
16:29 ggoZ joined #salt
16:29 pullphinger joined #salt
16:31 Dev0n I'm watching some of this SaltConf15 videos, just wish your video had better sound iggy :(
16:36 bVector getting started with salt-cloud, is there a way to re-run the bootstrap script without scrapping the vm?
16:39 _ikke_ What is a good way to get information about other minions in a state? eg, I want to automatically add the host names and ips to a dns zonefile
16:40 Auroch joined #salt
16:41 bVector _ikke_: check out salt mine perhaps
16:41 bVector http://docs.saltstack.com/en/latest/topics/mine/#example
16:42 _ikke_ Was just reading that
16:47 iggy Dev0n: it's also missing the first 5 minutes or so
16:47 Dev0n oh
16:48 iggy Dev0n: they tried to get me to re-record it, but it was the last day of the conf... and I was done
16:49 Dev0n ahh, it does have some pretty good content, just have to blast my speaker up a bit :P
16:50 iggy I have the slides if you want them
16:50 iggy most of the code is in my gist
16:50 baffle joined #salt
16:53 bVector ugh, getting an 'ImportError: No module named salt.scripts' when trying to bootstrap a aws amilinux 2015.3
16:53 iggy salt-bootstrap doesn't support that version yet I don't think
16:58 bVector hrm, should I move back to a 2014 ami?
16:59 bVector ah https://github.com/saltstack/salt-bootstrap/issues/103
17:00 _ikke_ The salt mine documentation says that the mine functions can be applied via the minions pillar. What is exactly meant by that? Does it detect pilar data called mine_functions or something?
17:00 bVector yeah thats what it seems like
17:01 Dev0n iggy, thanks the slides look ok, already been looking through your gist
17:01 bVector and it runs at the interval set by mine_interval
17:03 _ikke_ bVector: Right, the second section in the example shows the mine_functions defined in a pillar
17:04 iggy _ikke_: yes
17:06 robinsmidsrod joined #salt
17:08 Fiber^ joined #salt
17:08 bVector iggy: looks like changing /usr/bin/salt-minion to #!/usr/bin/python26 fixes the issue
17:17 _ikke_ Is there a link to the saltconf15 videos?
17:18 _ikke_ n/m, think I found it
17:19 evle1 joined #salt
17:29 vincer joined #salt
17:30 _ikke_ If I want to store pillar data per host, does that mean I have to add a match for each host in the top.sls, and then add the data in separate files?
17:32 robinsmidsrod joined #salt
17:34 pf_moore joined #salt
17:35 clintberry joined #salt
17:41 _ikke_ Say for example, I want to assign a static ip per host, how / where should I store this?
17:42 robinsmidsrod joined #salt
17:48 scoates joined #salt
17:48 lambpha joined #salt
17:50 bfoxwell joined #salt
17:51 lambpha Hello all! Is it possible to use the state service for a specific user ? To get something like  "systemctl --user enable foo.service".
17:51 patrek joined #salt
17:57 wm-bot4140 joined #salt
17:58 subsignal joined #salt
17:59 robinsmidsrod joined #salt
18:01 sxar_ joined #salt
18:03 robinsmidsrod joined #salt
18:04 subsigna_ joined #salt
18:05 subsign__ joined #salt
18:08 otter768 joined #salt
18:11 robinsmidsrod joined #salt
18:12 bluenemo joined #salt
18:17 robinsmidsrod joined #salt
18:17 Number6 left #salt
18:19 robinsmidsrod joined #salt
18:21 robinsmidsrod joined #salt
18:22 _ikke_ iggy: "We're going to edit that part out, right?": Nope :P
18:25 pravka joined #salt
18:28 pravka joined #salt
18:42 patrek joined #salt
18:45 pravka joined #salt
18:46 robinsmidsrod joined #salt
19:06 scbunn joined #salt
19:20 brianfeister joined #salt
19:33 pravka joined #salt
19:35 _Cyclone_ joined #salt
19:38 p66kumar joined #salt
19:39 Firewalll joined #salt
19:44 jalaziz joined #salt
19:45 bkleef joined #salt
19:52 froztbyte hrm, pkg->pkgs isn't very good, is it?
19:52 froztbyte added 3 more packages to a set of things in a state and now it's failing because some stuff is already installed
19:53 ThomasJ froztbyte: Never experienced it failing due to packages already being installed when doing that
19:53 ThomasJ However, packages not being found will be fatal
19:53 jalaziz_ joined #salt
19:53 froztbyte ID: sentry.packages
19:53 froztbyte Function: pkg.installed
19:53 froztbyte Result: False
19:53 froztbyte Comment: The following packages failed to install/update: supervisord, nginx-full, redis-server, memcached. The following packages were already installed: python-setuptools, libz-dev, python-pip, libssl-dev, libffi-dev, libxslt1-dev, python-dev, libxml2-de
19:54 froztbyte err, missed a couple letters on the end of that line, but you get the idea
19:54 ThomasJ froztbyte: And what happens if you call the installer for those 3 packages manually?
19:54 froztbyte just verifying all those package names now
19:54 froztbyte (based on your comment)
19:54 froztbyte ah, yup; supervisor, not supervisord
19:55 * ThomasJ nods
19:55 drawsmcgraw joined #salt
19:55 ThomasJ salt basically just tells the OS package manager to do it's job, and already installed packages are ignored as "no updates needed/already installed" notices, not errors :)
19:55 froztbyte that error is..slightly misleading, I guess
19:56 ThomasJ Yeah
19:56 ThomasJ Technically it's correct, but it probably should more clearly indicate that it's the OS package manager reporting errors, not salt itself
19:56 froztbyte yeah, something like that
19:56 froztbyte the apt output does show in the minion log
19:57 froztbyte but easy to miss
19:57 froztbyte (moreso with it being 10pm and having worked on things for a couple of hours now)
19:57 ThomasJ :)
20:00 froztbyte another thing which I've found that could be nicer is yaml compilation/testing
20:00 froztbyte not yet sure how that could be improved though
20:00 froztbyte (at least things hard-fail, though, instead of doing who-knows-what)
20:01 JayFK joined #salt
20:02 ThomasJ Hrm, I suppose one way to test is to do salt-call -l debug state.highstate test=true, but still not very convenient
20:08 jalaziz joined #salt
20:09 otter768 joined #salt
20:12 jalaziz joined #salt
20:20 _ikke_ What is the best way to define per host data on the salt-master that can be used in state files?
20:22 viq _ikke_: I would say pillars
20:23 _ikke_ viq: Does that mean I have to create a pillar file per host?
20:23 MatthewsFace joined #salt
20:24 viq _ikke_: you could use ifs in a single file
20:24 viq or have a separate file per host, up to you
20:25 scoates joined #salt
20:36 MatthewsFace joined #salt
20:36 ec3 joined #salt
20:39 viq_ joined #salt
20:46 ProT-0-TypE joined #salt
20:57 Ssquidly joined #salt
21:00 hasues joined #salt
21:01 hasues left #salt
21:01 sandah joined #salt
21:10 clintberry joined #salt
21:11 robinsmidsrod joined #salt
21:17 SeeDickCode joined #salt
21:17 bkleef just installed salt-master and salt-cloud 2014.7.2 by packages on ubuntu 14.04 and get this strange error "The cloud driver, 'digitalocean-config', configured under the 'digitalocean' cloud provider alias was not loaded since 'digitalocean-config.get_configured_provider()' could not be found. Removing it from the available providers list" while running for example "salt-cloud --list-images all -l debug"
21:17 clintberry joined #salt
21:18 bkleef saw some github issues like https://github.com/saltstack/salt/issues/14799 but didnt work out
21:18 stoogenmeyer joined #salt
21:19 bkleef can the reason be that libcloud is on 14.1?
21:23 markm_ joined #salt
21:25 callee joined #salt
21:32 robinsmidsrod joined #salt
21:33 JDiPierro joined #salt
21:34 tedski anyone else in basepi's talk at pycon?
21:36 JDiPierro joined #salt
21:39 bkleef tedski
21:39 bkleef i think the zombies have invaded
21:42 bkleef left #salt
21:55 callee left #salt
21:57 bhosmer_ joined #salt
22:05 scoates joined #salt
22:08 markm joined #salt
22:08 dendazen joined #salt
22:10 otter768 joined #salt
22:10 clintberry joined #salt
22:46 IronBalls joined #salt
22:48 aquassaut joined #salt
23:07 glyf joined #salt
23:11 SpX joined #salt
23:16 echo joined #salt
23:18 jasonrm joined #salt
23:23 sijis joined #salt
23:25 dendazen joined #salt
23:32 zircote joined #salt
23:34 zircote_ joined #salt
23:40 johnkeates joined #salt
23:45 Plastefuchs joined #salt
23:48 bluenemo_ joined #salt

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