Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-10-04

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

All times shown according to UTC.

Time Nick Message
00:10 pentabular joined #salt
00:15 mwillhite joined #salt
00:16 bhosmer joined #salt
00:20 dthom91 joined #salt
00:22 pipps joined #salt
00:31 mianos salty dogs, a question, I want to edit /etc/network/interfaces to add a route, is file.sed the tool for the job?
00:34 mwillhite joined #salt
00:36 nahamu http://docs.saltstack.com/ref/modules/all/salt.modules.augeas_cfg.html
00:37 nahamu if augeas already knows how to parse that file, it might be better
00:37 nahamu (I've only used augeas with puppet, not yet with salt...)
00:38 jesusaurus hm, is there no network module yet?
00:40 jesusaurus oh, looks like the network state is redhat-only and doesnt do routes
00:42 mianos ehe
00:42 mianos this works OK
00:42 mianos interesting if I specify a list int he after it put a stringified python list in my file :)
00:42 mianos not what I expected
00:44 faldridge joined #salt
00:52 mwillhite joined #salt
01:05 teebes joined #salt
01:07 juicer2 joined #salt
01:09 mwillhite joined #salt
01:14 forrest joined #salt
01:16 djn joined #salt
01:16 forrest andrej, you around/
01:16 forrest *?
01:16 andrej Hi Forrest
01:16 andrej Yah
01:16 andrej thganks for your pointers
01:16 andrej thanks
01:16 forrest Did you get it working?
01:16 andrej things are sorted - I was being an idiot
01:16 forrest what was wrong?
01:17 andrej My file path on the server to the scripts directory
01:17 forrest ahhhh
01:17 forrest ok that would make sense
01:17 andrej Heh
01:17 drags andrej: did you say that the minion didn't produce any errors though?
01:17 andrej Indeed
01:17 drags that might be worth capturing in an issue
01:17 andrej some sort of error would have been good, though
01:17 andrej drags - that's correct
01:18 forrest yea I'd say file an issue if you still have those pastebins around, showing the job is complete, and everything
01:18 forrest as well as what your fix was
01:18 forrest Did anyone go to the atlanta devopsdays today?
01:18 andrej I cullded the pastebins, but can easily enough reproduce it if you think it's worth capturing
01:19 forrest I agree with drags
01:19 forrest It is worth at least filing to see what the team says
01:19 andrej Sure
01:19 forrest because it should have said the file was missing or something you'd think
01:19 andrej Heh
01:20 andrej Yah - most of the little things I did over the years would have ;}
01:21 forrest Well I'm glad you figured it out.
01:23 mwillhite joined #salt
01:25 dthom91 joined #salt
01:25 andrej Me too ... this was bugging me, as there was no actual error
01:26 crane joined #salt
01:26 andrej Now that I know it was my fault, and in what way I failed :} ... I'm content with the solution
01:26 andrej @forrest Ignore the memos ;)
01:30 forrest lol
01:30 crane hi, i've got many servers which all connect to my own repository when downloading new files. the problem is that there are so many servers that my switches are going down... any ideas to solve this?
01:31 forrest staggered the amount of machines you're running crane
01:32 forrest split them into groups, then apply the highstate to your machines on a per group basis
01:32 crane forrest, thx :)
01:33 forrest crane, np
01:35 taylorgumgum joined #salt
01:39 andrej so ...
01:40 andrej I undid my fix, and ran the "failure" again ...
01:40 redondos joined #salt
01:40 andrej what's the preferred option to submit the bug?
01:40 andrej Mailing list?
01:40 andrej github issue?
01:40 drags andrej: github issues I believe are preferred
01:44 wkf_ joined #salt
01:44 elfixit joined #salt
01:46 deepakmd_oc joined #salt
01:49 andrej ta
01:50 forrest andrej, yea do a github issue
01:50 jpeach joined #salt
01:51 logix812 joined #salt
01:54 andrej https://github.com/saltstack/salt/issues/7601
01:54 andrej does it make sense the way I presented it?
01:59 dthom91 joined #salt
02:00 jefftriplett joined #salt
02:00 newbie00 joined #salt
02:00 juicer2 left #salt
02:00 saras how would got requir package to be download form website
02:01 saras in a sls file
02:01 saras ie https://www.erlang-solutions.com/downloads/download-erlang-otp
02:02 saras boo
02:03 saras can use wget or some thing in a sls some how
02:05 sixninetynine joined #salt
02:06 forrest saras, check out the 'sources' section on this page: http://docs.saltstack.com/ref/states/all/salt.states.pkg.html
02:06 forrest you can provide an RPM source that is aURL
02:06 pipps joined #salt
02:09 saras so - elrang: https://packages.erlang-solutions.com/erlang/esl-erlang-src/otp_src_R16B02.tar.gz
02:09 saras will work
02:10 jpeach left #salt
02:10 jefimenko joined #salt
02:11 forrest not for a tar it won't
02:12 forrest using cmd.run, and having a script to untar the source would probably be your best bet in that case.
02:13 saras forrest can i do that in a sls file
02:14 forrest saras, sure http://docs.saltstack.com/ref/states/all/salt.states.cmd.html
02:14 mianos joined #salt
02:18 Lue_4911 joined #salt
02:22 jefftriplett left #salt
02:23 StDiluted joined #salt
02:31 saras http://pastebin.com/q4c88B6u will this work
02:33 forrest no
02:33 forrest you can't use pkg.installed for tar.gz files, since it's not a package
02:37 lineman60 joined #salt
02:44 UtahDave joined #salt
02:46 vipul joined #salt
02:48 blee joined #salt
02:48 Ryan_Lane joined #salt
02:53 saras http://pastebin.com/iKb7sYve this should work right
02:56 saras got to run
02:56 saras will be back
02:56 forrest You should probably fully define the path, otherwise it will run as root and do /root/user.
02:56 forrest I've gotta go for the evening, good luck!
02:59 andrej If I wanted to use a state to run my command, would http://pastebin.com/CQk7ugnG this suffice?
03:00 druonysus this does not seem to work as I had expected it to: http://paste.opensuse.org/21205590
03:01 druonysus perhaps I am doing something wrong?
03:07 cnelsonsic joined #salt
03:30 Kraln- joined #salt
03:47 mmilano joined #salt
03:49 Ryan_Lane joined #salt
03:55 pipps1 joined #salt
03:57 saras joined #salt
03:57 saras forrest you still their
03:59 UtahDave druonysus: no, you can't do that, unfortunately. The jinja will get evaluated all at the same time
03:59 UtahDave saras: no, you can't do that.
04:00 UtahDave you can't have two "git.latest" state and function declarations under one ID Declaration
04:01 UtahDave andrej: is that your top.sls?
04:01 druonysus UtahDave: so is the solution /only/ to use if statments?
04:01 UtahDave Yeah, that's probably correct.
04:02 saras so how do pull from two git repoes
04:05 saras UtahDave: so i need to get elixir build it needs at least 16r1 build of erlang to work
04:07 dthom911 joined #salt
04:08 UtahDave saras: you need to have 2 ID declarations. One for each git.latest
04:10 saras http://pastebin.com/2uppLDgB
04:10 saras like that
04:10 mannyt joined #salt
04:12 UtahDave saras: yep. just like that.
04:12 saras is their way to make all the build stuff go into the sls it self
04:14 Katafalkas joined #salt
04:15 ze- hey. any thought on how to get some "private" sls files to only be available for some minions ?
04:16 jcockhren ze-: you can simulate that with environments
04:16 saras UtahDave: is their a easy way to download tar.gz unpack it
04:16 UtahDave ze-: pillar data is really the only way to do that
04:17 ze- UtahDave: but can you use pillar data to get states, dependencies, ... ?
04:17 UtahDave ze-: no, not really.
04:18 UtahDave saras: would something like this work for you?  https://gist.github.com/UtahDave/6125409
04:19 mianos joined #salt
04:20 ze- UtahDave: so, not possible yet. Would it be a bad thing to have the fileserver able to get some basic access control ?
04:21 ze- jcockhren: nope, environments would still be technicaly available for everyone.
04:22 UtahDave I've talked about it with Tom several times in the past. There are a lot of performance reasons that the file_roots are visible to all minions.
04:22 UtahDave ze-: I think Tom would be open to a good implementation of access control, but I don't think it's a high priority for him right now.
04:23 UtahDave ze-: Why do you need access control to the whole sls file?
04:24 ze- because i'd like to use salt to generate some stuffs on a couple minions, without having the whole process "public".
04:24 ze- I consider that any minion could be compromised, and don't want them to have that part
04:25 ze- Any thought on what would be a good access control configuration ? (for the user)
04:25 UtahDave So the process itself has sensitive information?  Is there any way you can pull sensitive parts out of it and put it in pillar?
04:25 ze- If I get an idea where it should be configured, I could implement it :)
04:27 ze- can file.managed user pillar sources ?
04:27 ze- s/user/use/
04:27 UtahDave ze-: yes, it can
04:28 woebtz joined #salt
04:28 ze- I thought pillar was only key: value. How can you have a whole jinja file into it ?
04:31 UtahDave ze-: you can have multiline entries in pillar, also you can include the contents of other files
04:32 ze- will look more into that. But I guess some access control on the fileserver might still be a good idea for salt... so if I get around to how I would like it configured... i could get to implement it :)
04:32 saras https://gist.github.com/sarasfox/6820917
04:32 saras ps devry network is a pain in my butt
04:34 UtahDave saras: did that work for you?
04:35 saras I think going in the right directiong
04:37 saras I think mod that script to work with python
04:37 saras with elixir
04:38 saras who whould i call that form a sls
04:38 saras do i need to do any thing to get that file on to new minons
04:40 UtahDave so if that file was named   elixir.py put it in   /srv/salt/_modules
04:40 UtahDave run   salt \* saltutil.sync_modules
04:41 UtahDave then on each minion you could run   salt \* elixir.install_elixir
04:42 saras is their a way to make that part of a sls
04:42 UtahDave yeah, so what you have here is an execution module.   You don't have a state for it yet
04:43 UtahDave so you could use   the module state to execute your execution module
04:43 UtahDave elixir.install_elixir:
04:43 UtahDave module.run
04:44 UtahDave http://docs.saltstack.com/ref/states/all/salt.states.module.html#module-salt.states.module
04:45 saras sweet thanks
04:46 UtahDave you're welcome.
04:46 robertkeizer joined #salt
04:48 jdenning joined #salt
04:49 dthom91 joined #salt
04:49 Ryan_Lane joined #salt
04:51 mmilano joined #salt
04:54 saras good by
04:54 dthom911 joined #salt
05:20 Ryan_Lane joined #salt
05:27 gildegoma joined #salt
05:29 jdenning joined #salt
05:29 jdenning left #salt
05:33 deepakmd_ joined #salt
05:34 blee joined #salt
05:36 blee_ joined #salt
05:37 pipps1 joined #salt
05:41 taylorgumgum joined #salt
05:41 druonysus joined #salt
05:41 emocakes joined #salt
05:42 TheCodeAssassin joined #salt
05:43 taylorgumgum1 joined #salt
05:50 Ryan_Lane joined #salt
05:54 anuvrat joined #salt
05:55 deepakmd__ joined #salt
06:03 taylorgumgum joined #salt
06:07 Chocobo joined #salt
06:07 Chocobo joined #salt
06:10 hotbox joined #salt
06:11 emocakes joined #salt
06:18 swa_work joined #salt
06:21 Ryan_Lane joined #salt
06:30 mmilano joined #salt
06:31 ronc joined #salt
06:37 ml_1 joined #salt
06:47 CansaSCity joined #salt
06:48 emocakes joined #salt
06:51 Ryan_Lane joined #salt
06:52 malinoff joined #salt
06:55 balboah joined #salt
07:01 Furao joined #salt
07:05 az87c joined #salt
07:05 az87c_ joined #salt
07:19 dcmorton joined #salt
07:19 packeteer hey, i'm running 0.16.4 but there is no "mine" related config in /etc/salt/minion . do i just need to add it?
07:22 Ryan_Lane joined #salt
07:31 malinoff packeteer: If you want to use Salt Mine, yes, you must add this section by yourself.
07:45 klymr99 joined #salt
07:45 klymr99 hey
07:45 klymr99 anyone know saltsyndic?
07:47 [M7] joined #salt
07:49 malinoff klymr99: Docs and issues on github, plus mailing list :)
07:50 klymr99 been through all that
07:50 klymr99 missing a lot of detail
07:51 klymr99 specifically, nothing really says whether or not I'm supposed to run a minion on a master/syndic server
07:51 klymr99 or does syndic do the job of the minion?
07:51 klymr99 but that's beside the point for the moment
07:52 klymr99 what I need answered is:
07:52 klymr99 I've got a masterofmasters -> master/syndic -> minion
07:52 Ryan_Lane joined #salt
07:53 klymr99 running salt cmd.run to the minion
07:53 klymr99 I see in the logs that the command is received and the response is passed to the syndic/master
07:53 klymr99 but I don't get the output on the masterofmasters
07:54 klymr99 wondering what I'm missing
07:57 klymr99 actually, I even see in the masterofmasters log that it receives the response, but it doesn't output the response
07:57 klymr99 any ideas
07:57 klymr99 ?
08:05 deepakmd__ joined #salt
08:08 matanya joined #salt
08:09 matanya joined #salt
08:11 mafrosis joined #salt
08:15 matanya joined #salt
08:23 Ryan_Lane joined #salt
08:23 emocakes joined #salt
08:29 matanya_ joined #salt
08:37 matanya joined #salt
08:40 matanya joined #salt
08:44 matanya joined #salt
08:48 xl1 joined #salt
08:53 Ryan_Lane joined #salt
08:56 zooz joined #salt
08:57 multani joined #salt
09:07 axiom I cannot write yaml, is there any easy way to make it possible to write my state files in json? (or possibly something else)
09:08 axiom #!json ?
09:19 Furao joined #salt
09:23 scott_w joined #salt
09:23 Ryan_Lane joined #salt
09:27 packeteer yaml as used by salt is EASY. even I can figure it out ;)
09:29 N-Mi joined #salt
09:30 packeteer have a look at some of the examples. it is really straight forward
09:31 ze- axiom: if you *must* try to simply convert from json to yaml.
09:32 ze- json being must harder to edit directly anyway.
09:32 ze- and most language have libs for both
09:42 Boohbah joined #salt
09:51 yota joined #salt
09:53 Koma joined #salt
09:54 Ryan_Lane joined #salt
09:55 Jason-AVST joined #salt
10:00 malinoff axiom: JSON is subset of YAML, so you can use your beautiful braces in YAML renderer
10:06 emocakes_ joined #salt
10:17 adepasquale joined #salt
10:21 andyshinn` joined #salt
10:24 ze- - Detected conflicting IDs, SLS IDs need to be globally unique.
10:24 ze- -     The conflicting ID is "/etc/salt/master" and is found in SLS "base:role.salt-master" and SLS "base:role.salt-master"
10:24 * ze- sighs.
10:24 Ryan_Lane joined #salt
10:25 malinoff ze-: Not sure what's going on
10:26 ze- neitheir am I :)
10:26 ze- at least not yet. :)
10:29 ze- might have to do with top.sls somehow stating twice role.salt-master
10:30 ze- yup, that was it.
10:35 ze- oh, just noticed the summary at the end of a highstate. Guess that's "new" :)
10:36 malinoff ze-: Yes, very nice feature
10:40 ze- at least i won't have to do grep Result: | sort | uniq -c every time :)
10:55 shiin joined #salt
10:55 Ryan_Lane joined #salt
10:56 shiin with 0.17 the hostname changed to what /etc/hostname contains - whats the intended usage there? not rely on .sub.domains.anymore and use grains instead?
10:59 xl1 left #salt
11:26 Ryan_Lane joined #salt
11:27 scristian can I install a deb without cmd.run ?
11:28 packeteer to apply a certian state against one machine, is the command: salt 'server1' state.sls statefile ?
11:30 packeteer nm, figure it out
11:31 packeteer i forgot the include the path to the state file
11:39 giantlock joined #salt
11:45 shiin this brings me to the general question of how the intended usage of salt is, to control 1000 servers.
11:46 shiin whats the unique identifier of a node, and how to I assign roles to pools of nodes which have different ips and some common states - and some individual states.
11:52 sgviking joined #salt
11:53 diegows joined #salt
11:56 Ryan_Lane joined #salt
11:57 bhosmer joined #salt
12:05 ninkotech joined #salt
12:05 ze- multiple include of the same sls is ok, but not having it multiple times in the top.sls.
12:05 ze- :(
12:06 Drawsmcgraw shiin: My favorite way of organizing machines is using Nodegroups but I often see people targeting via Grains as well.
12:08 * ze- checks.
12:11 ze- looks like nodegroup would be a pain to manage for us. We have dynamic grains generated for each node, gathering info from global data.
12:12 ze- and top.sls loads available sls depending on hostname and roles.
12:12 Drawsmcgraw Fair enough. Grains may be the way to go for you
12:12 ze- on what do you filter host for your groups ?
12:12 Drawsmcgraw We typically use hostnames whose names are indicative of their role, so we can glob on Minion names and create nodgroups. I know not everyone does the same.
12:12 malinoff Drawsmcgraw: You will never integrate salt mine using nodegroups, btw
12:13 Drawsmcgraw malinoff: Noted, thank you. I'm not very famililar with Salt Mine but it's good to know that much.
12:14 malinoff Drawsmcgraw: Well, there is a possibility to do this. But it's MUCH more easyly with grains because of dynamic nature of using Salt Mine
12:14 Drawsmcgraw That's fine. I'm not heavily invested in Nodegroups so I can look more into grains & salt mine
12:15 bhosmer joined #salt
12:15 ze- in case anyone is interested, we use something like http://pastebin.com/L8wpZ4Pd
12:16 ze- and have two top dirs role and host, with subdir/file for specific roles/hosts. :)
12:17 Drawsmcgraw ze-: Where can I find more documentation on how to use the Jinja incantations like what's on line 3 there ?
12:17 Drawsmcgraw Or really, all of those Jinja+Salt incantations?
12:19 jslatts joined #salt
12:21 bhosmer_ joined #salt
12:22 ze- no idea. :)
12:22 ze- for the salt part, I mainly tested stuffs to find out what little objects/stuffs were available.
12:25 Drawsmcgraw fair enough
12:26 Ryan_Lane joined #salt
12:27 unicoletti_ joined #salt
12:30 blee joined #salt
12:31 ninkotech joined #salt
12:38 logix812 joined #salt
12:45 blee joined #salt
12:45 deepakmd__ joined #salt
12:46 wkf_ joined #salt
12:47 jbunting joined #salt
12:47 timoguin joined #salt
12:48 wkf_ joined #salt
12:54 brianhicks joined #salt
12:55 geak joined #salt
12:57 Ryan_Lane joined #salt
12:57 Ryan_Lane joined #salt
13:03 mgw joined #salt
13:05 blee left #salt
13:07 Kholloway joined #salt
13:09 juicer2 joined #salt
13:13 mgw joined #salt
13:16 Gifflen joined #salt
13:16 mua joined #salt
13:16 elfixit joined #salt
13:16 mannyt joined #salt
13:18 bhosmer joined #salt
13:18 racooper joined #salt
13:21 geak_ joined #salt
13:27 Ryan_Lane joined #salt
13:28 geak joined #salt
13:30 tinuva joined #salt
13:32 jefftriplett joined #salt
13:35 geak joined #salt
13:38 mgw joined #salt
13:41 JaredR joined #salt
13:43 imaginarysteve joined #salt
13:51 bhosmer_ joined #salt
13:52 bhosmer_ joined #salt
13:55 micah_chatt joined #salt
13:57 Brew joined #salt
13:58 Ryan_Lane joined #salt
13:59 kaptk2 joined #salt
14:04 lineman60 joined #salt
14:05 mannyt joined #salt
14:06 lineman60__ joined #salt
14:06 tyler-baker joined #salt
14:06 tyler-baker joined #salt
14:08 ccase joined #salt
14:10 multani I just upgraded some of my nodes to 0.17 and I have some problems related to encoding using file.managed
14:11 ldlework is .17 still rc?
14:11 multani I have non-ASCII characters in my source file, and file.managed crashed because of a UnicodeDecodeError when writing the file
14:11 ldlework heh
14:11 lineman60 joined #salt
14:12 mmilano joined #salt
14:12 anteaya joined #salt
14:12 multani ldlework: looks like 0.17 is out :)
14:13 copelco joined #salt
14:14 multani something like this: http://pastebin.com/ETfSKG99
14:17 mgw joined #salt
14:19 timoguin ldlework, it's been released.
14:21 cwright is there an eta for ubuntu packages for 0.17?
14:21 cro joined #salt
14:21 cwright http://ppa.launchpad.net/saltstack/salt/ubuntu/pool/main/s/salt/ still only has 0.16.4
14:22 ldlework Should update the channel topic
14:22 jY cwright: they told me they would be there last Monday
14:22 jY :)
14:22 cwright jY: interesting.
14:26 multani oh ok, I just hit https://github.com/saltstack/salt/issues/7576
14:29 Ryan_Lane joined #salt
14:33 wkf_ joined #salt
14:35 cnelsonsic joined #salt
14:37 cnelsonsic left #salt
14:38 unicoletti_ left #salt
14:39 danielbachhuber joined #salt
14:42 teskew joined #salt
14:45 abe_music joined #salt
14:46 or1gb1u3 joined #salt
14:50 pdayton joined #salt
14:51 micah_chatt joined #salt
14:55 jalbretsen joined #salt
14:56 jeffasinger So I know I've asked this before, but does anyone here do database migrations via salt states?
14:57 jeffasinger As in handling schema changes in a database
14:57 shiin Drawsmcgraw: thank you
14:58 BrendanGilmore joined #salt
14:59 Ryan_Lane joined #salt
15:02 shinylasers joined #salt
15:05 ipmb joined #salt
15:08 SunSparc joined #salt
15:14 mmilano joined #salt
15:16 jbunting joined #salt
15:17 lemao joined #salt
15:19 StDiluted joined #salt
15:20 lemao joined #salt
15:29 wilywonka joined #salt
15:30 Ryan_Lane joined #salt
15:31 alunduil joined #salt
15:34 clintonb joined #salt
15:36 redondos joined #salt
15:36 Ahlee_ anybody extend the salt-api to be a bit more graceful with error handling, i.e. not just throwing up a 500 if your glob doesn't match any minions?
15:38 Chief__ joined #salt
15:39 Furao joined #salt
15:39 Chief__ Hello, I'm trying to pass some environment variables to cmd.run
15:40 Chief__ I thing I have the right struture, but for some reason it only sets the last env in the list
15:41 Chief__ So in cmd.run I have "    env: " followed by a list and each entry is in the style...
15:41 colinbits joined #salt
15:42 Chief__ "       - JAVA_HOME=/opt/jdk1.7.0_40"
15:42 Chief__ and that works, only when I run env (the bash command) as the cmd.run, the only env it prints out is the last one in that list
15:43 bpgoldsb left #salt
15:47 ze- ChiefWiggam: can you paste somewhere your yaml ?
15:47 ze- calling it in cli seems to work with env and multiple values.
15:48 ze- sudo salt-call cmd.run 'export' 'env={"foo":"bar","bar":"baz",}'
15:48 JaredR joined #salt
15:49 clintonb Does the ec2 provider support attaching ephemeral storage? I submitted https://github.com/saltstack/salt-cloud/issues/845.
15:49 or1gb1u3 anyone using salt to manage multiple nagios configs?
15:49 pipps1 joined #salt
15:50 rmt_ joined #salt
15:51 arthurlutz joined #salt
15:51 Marion joined #salt
15:51 yano joined #salt
15:52 ze- ChiefWiggam: well, works with a dict.
15:52 ze- env:
15:53 ze- JAVA_HOME: /opt/jdk1.7.0_40
15:53 LucasCozy joined #salt
15:53 ChiefWiggam ze-: I'll try that...
15:54 imaginarysteve joined #salt
15:54 Marion Hello!  I need some help.  I'm on a new project that uses vagrant-salt for nginx vm.  The person who set it up got it working on my computer on his last day at the company.  I've never used salt.  I'm familiar with vagrant-puppet-ubuntu though.  My VM is not starting now.  It times out.  My config files look very similar to various examples I have found online.
15:54 ChiefWiggam ze-: many thanks, that worked
15:57 wkf_ joined #salt
15:58 ze- Marion: seems to be a problem with your VM. not sure what kind of VM you use...
15:58 micah_chatt joined #salt
15:58 Marion debian
15:58 ze- what system of VM are you using ?
15:58 TheCodeAssassin joined #salt
15:59 Marion virtualbox … does that answer your question?
15:59 ze- yup. so, it has to do with virtualbox configuration. (which I never used :)
15:59 Marion hmmmm
15:59 cachedout Do you get any output on the Virtualbox console as it starts up?
16:00 jcockhren hey, is there a way to set a returner for anything ran on the minion?
16:00 TheCodeAssassin2 joined #salt
16:00 ze- anyone knows how to call a user-module for pillar generation ?
16:01 Marion cachedout: not sure what you mean by virturalbox console.  I'm on mac, in terminal.  issue vagrant up.
16:01 Marion I do get messages.  It times out.
16:02 Boohbah joined #salt
16:04 jcockhren nm
16:04 cachedout Marion: Ah, sorry. I didn't scroll up to see you're using Vagrant.
16:04 jcockhren for any that was wondering the same: http://docs.saltstack.com/ref/configuration/master.html#ext-job-cache
16:05 Ryan_Lane joined #salt
16:05 Lue_4911 joined #salt
16:06 jdenning joined #salt
16:09 bitz joined #salt
16:10 Marion I just have no idea how to go about debugging this
16:11 mgw Is anyone using the carbon_returner?
16:11 jcockhren Marion: I can try to help
16:11 jcockhren I use salt+vagrant all the time
16:11 jcockhren (everyday)
16:12 Marion awesome!  Thanks.  Should we move to PM?
16:12 jcockhren sure, whatever works for you
16:14 Ryan_Lane joined #salt
16:15 KyleG joined #salt
16:16 KyleG joined #salt
16:19 taylorgumgum joined #salt
16:20 ml_1 joined #salt
16:29 deepakmd_oc joined #salt
16:30 jslatts joined #salt
16:32 derelm joined #salt
16:41 Katafalkas joined #salt
16:42 taylorgumgum joined #salt
16:47 ze- {% set val = '{clear}foo' %}
16:47 ze- foo: {{ val }}
16:47 ze- - Rendering SLS 'global.common' failed, render error:
16:47 ze- - while parsing a block mapping
16:47 ze- -   in "<string>", line 1, column 1:
16:47 ze- -     placeholder: empty
16:47 ze- -     ^
16:47 ze- - expected <block end>, but found '<scalar>'
16:47 ze- -   in "<string>", line 13, column 13:
16:47 ze- -     foo: {clear}foo
16:47 ze- -                 ^
16:47 ze- any idea how to not get an error when I have a value with {} in it ?
16:47 ze- (generating a pillar...)
16:47 sgviking joined #salt
16:48 imaginarysteve joined #salt
17:00 taylorgumgum joined #salt
17:00 troyready joined #salt
17:03 wkf_ joined #salt
17:10 Ryan_Lane joined #salt
17:13 esogas joined #salt
17:19 anuvrat joined #salt
17:28 jefimenko joined #salt
17:29 avienu joined #salt
17:32 Ryan_Lane joined #salt
17:35 amckinley joined #salt
17:36 faldridge joined #salt
17:39 pentabular joined #salt
17:42 cro joined #salt
17:42 bhosmer joined #salt
17:52 josephholsten joined #salt
17:57 bhosmer joined #salt
18:03 amckinley joined #salt
18:10 goodwill MTecknology: ping
18:11 jefimenko joined #salt
18:11 giantlock joined #salt
18:13 gildegoma joined #salt
18:14 geak joined #salt
18:15 gildegoma_ joined #salt
18:20 mgw joined #salt
18:24 Cidan When bootstraping with salt-cloud, is it possible to pass user-data to EC2 instances?
18:26 mua joined #salt
18:30 geak_ joined #salt
18:33 druonysus joined #salt
18:33 druonysus joined #salt
18:39 benno joined #salt
18:40 benno left #salt
18:43 bitz joined #salt
18:44 lemao_ joined #salt
18:51 bitz joined #salt
19:00 jslatts joined #salt
19:03 faldridge_ joined #salt
19:04 jslatts joined #salt
19:11 jeffasinger What are the URL schemes that are supported for source in file.managed?
19:13 timoguin pretty sure there is salt:/// and s3:///.
19:13 timoguin salt: being the local filesystem on the saltmaster
19:19 jeffasinger I thought there were other options
19:20 timoguin yea i'm sure there are, but those are the only two i can remember atm.
19:21 jeffasinger Was hoping for scp support
19:23 cbloss What is the best source to bootstrap from to get the latest stable releases?
19:24 cbloss I've used the ubuntu apt-get, but it seems like the releases are lagged behind for apt
19:25 ifnull @cbloss: are you using https://github.com/saltstack/salt-bootstrap
19:25 cbloss ifnull: yes
19:25 ifnull you can just run"./bootstrap-salt.sh  git v0.17.0"
19:26 ifnull you can replace  v0.17.0 with any branch
19:26 ifnull *release
19:27 cbloss what about maintaining updates on minions?
19:28 ifnull good question. not sure about that.
19:29 dthom91 joined #salt
19:36 Katafalkas joined #salt
19:48 jeffasinger Browsing through the code, it appears http and ftp would work, but https wouldn't work ....
19:49 amckinley joined #salt
19:52 ipmb joined #salt
19:52 oz_akan_ joined #salt
20:00 CheKoLyN joined #salt
20:09 taylorgumgum1 joined #salt
20:12 taylorgumgum joined #salt
20:15 qba73 joined #salt
20:19 jeffasinger joined #salt
20:25 quist joined #salt
20:29 redondos joined #salt
20:31 xuru joined #salt
20:32 josephholsten joined #salt
20:35 troyready joined #salt
20:41 xuru I'm a little confused on the best way to do things…   I've got a django site that uses mysql in production, but for our vagrant boxes, we want just sqlite.  How do I optionally leave out some steps?  If statements using grains?  pillar?  How about when doing a syncdb, i require mysqld to be installed, but I don't want to require that in vagrant...
20:41 xuru hehe, sorry for writing a book
20:45 xuru In the grains documentation, they talk about adding grains to the minion config.  Is that the proper way to do it?
20:46 jimallman joined #salt
20:51 robawt is there a systematic approach to renaming a salt master for a set of minions?
20:52 lemao joined #salt
20:52 robawt should I simply file.manage the /etc/salt/minion file?
20:53 mgw robawt: you need to change the master's hostname?
20:53 robawt mgw: yes
20:53 robawt but i'd like to be as systematic as possible
20:54 mgw I usually do that with dns CNAME records, but if you want to do a rolling upgrade… yeah, I think you'd want to manage /etc/salt/minion (or a config in /etc/salt/minion.d/)
20:54 robawt mgw: I definitely agree with CNAME, in this instance I've changed the network domain that it's on
21:01 redondos joined #salt
21:04 amckinley joined #salt
21:05 mgw robawt: do you have a master: option in your minion configs already?
21:06 mgw Or is it finding it via the search domain and the default hostname of 'salt'?
21:06 robawt mgw: already have a master
21:06 robawt I suspected managing the minion file and you confirmed atleast one other person on the internet agrees
21:07 robawt good enough for now
21:07 mgw the i think your best bet is to use to manage the minion file in some way
21:13 pentabular joined #salt
21:21 rawzone joined #salt
21:24 redondos joined #salt
21:26 alunduil joined #salt
21:26 SunSparc joined #salt
21:31 quantumsummers|c joined #salt
21:31 quantumsummers|c joined #salt
21:32 amckinley joined #salt
21:36 bhosmer joined #salt
21:38 lemao joined #salt
21:44 qba73 joined #salt
21:53 elfixit joined #salt
21:54 lineman60__ joined #salt
21:57 efixit joined #salt
22:03 faldridge joined #salt
22:06 druonysuse joined #salt
22:06 druonysuse joined #salt
22:06 cro joined #salt
22:06 druonysuse joined #salt
22:21 druonysuse joined #salt
22:21 druonysuse joined #salt
22:25 abe_music joined #salt
22:38 pentabular left #salt
22:38 tempspace [ERROR   ] An un-handled exception was caught by salt's global exception handler:
22:38 tempspace AttributeError: 'list' object has no attribute 'get'
22:38 tempspace Anybody having issues with .17? Getting this when I highstate after the upgrade
22:39 pentabular joined #salt
22:39 nijotz joined #salt
22:42 tempspace it looks like all my lines using pillar.get are completely broken in 0.17
22:44 amckinley joined #salt
22:45 mgw tempspace: so it thinks pillar is a list now?
22:45 MohShami joined #salt
22:47 MohShami hey guys, I'm setting up salt for a web server cluster. I have all my configuration files ready and working perfectly. One last thing I haven't been able to figure out. I have nginx monitoring a folder, if it finds a file called maintenance.html it blocks all access to the site and just shows that page. How can salt put and remove that file? been searching for days for this
22:49 bhosmer joined #salt
22:58 woebtz joined #salt
23:04 forrest joined #salt
23:06 honestly MohShami: you make a new file called "maintenance_on.sls" which has a file.managed state copying the file to the webserver, and a fille called "maintenance_off" with a file.absent state for the file
23:06 m_george|away joined #salt
23:07 jslatts joined #salt
23:07 honestly then you can run "salt webserver state.sls maintenance_on"
23:07 m_george left #salt
23:08 MohShami thanks honestly, which one will be executed by highstate? or can I put a condition that will never match?
23:08 honestly the state tutorial should fill you in on the details ->http://docs.saltstack.com/topics/tutorials/states_pt1.html
23:08 honestly just don't include it in your top.sls
23:08 honestly then it won't be touched by highstate
23:08 MohShami and just place it in my states folder, right?
23:08 honestly yup
23:08 MohShami why didn't I think of that, thanks a million mate :)
23:09 honestly and place the maintenance.html in your... whatever the place to put files is called in salt
23:09 honestly files_root or something
23:09 MohShami same as I do with my config files
23:09 honestly yeah, exactly
23:10 MohShami awesome
23:10 MohShami btw, do you know of a document of some sort that explains how to use salt for deploying new code to a web server cluster?
23:10 MohShami or a single server, I can tweak it for a cluster
23:13 forrest MohSami, what kind of new code? just static files?
23:14 MohShami forrest: PHP
23:14 MohShami and static files like css, js, ...
23:15 forrest yea that is just static, you can check out my repo at github, guthib.com/gravyboat, it's the hungryadmin-sls repo, that pulls in my static blog content from git if you want an example.
23:16 forrest I'm on my phone so no direct link, but it is easy to find.
23:17 forrest the git_fs system is pretty slick if you push those php changes to a repo.
23:17 MohShami Thanks forrest, I'll be sure to check
23:17 MohShami but I thought git_fs was only supposed to be used with configuration, not code
23:17 oz_akan_ joined #salt
23:18 forrest MohSami, no way! i use it for all of my static blog content.
23:19 MohShami I don't remember where I read it, but someone said not to use salt to copy code directly. Have you faced any problems with this configuration?
23:21 forrest Really? I mean the data is just files, so I dont't see why it would be an issue depending on the size of the app, other people might have different opinions, but it works great for what i use it for.
23:22 forrest It isn't as if this is an app you should bundle into an RPM.
23:22 forrest maybe if the app is really big there are better ways.
23:22 MohShami I'm in charge of a couple of websites, some of which are 19MB compressed
23:22 MohShami I'll have to test
23:23 MohShami thanks a million mate :)
23:24 forrest yea np, terminalmage also has a great django app repo on his github where he manages a db and everything, check that out too (i stole a bunch from it).
23:26 forrest anyways working on this phone keyboard sucks, let me know how that goes. I will probably be around tonight/this weekend.
23:26 MohShami forrest: cool, thanks again :)
23:37 Katafalkas joined #salt
23:40 cachedout_home left #salt
23:47 dthom91 joined #salt
23:53 pipps joined #salt
23:54 druonysus joined #salt

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