Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-10-31

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

All times shown according to UTC.

Time Nick Message
00:01 jcockhren jcsp: I never got saltutil.update to work
00:01 jcockhren jcsp: just use pkg.refresh_db & pkg.install
00:08 redondos joined #salt
00:08 redondos joined #salt
00:08 jacksontj joined #salt
00:12 SmileyChris joined #salt
00:14 m0hit joined #salt
00:20 ctdawe joined #salt
00:29 jacksontj joined #salt
00:30 bemehow joined #salt
00:31 terminalmage any debian users know why when I add a repo, even though the new repo provides a newer version of a package, the newer version is not the install candidate? See http://dpaste.com/1435703/
00:33 ctdawe joined #salt
00:34 nkuttler terminalmage: i think you need to specify -t wheezy-backports
00:35 terminalmage lame
00:36 nkuttler terminalmage: no, it's good, or you'd install *all* packages from backports...
00:36 terminalmage true
00:38 mua joined #salt
00:39 blast_hardcheese joined #salt
00:49 m_george|away joined #salt
01:03 berto- joined #salt
01:07 bemehow joined #salt
01:11 Marsdominion joined #salt
01:15 bemehow_ joined #salt
01:15 m0hit joined #salt
01:24 ndivad joined #salt
01:25 kamal_ joined #salt
01:29 berto- joined #salt
01:32 az87c joined #salt
01:37 bemehow joined #salt
01:40 justlooks joined #salt
01:41 bemehow_ joined #salt
01:41 justlooks hi,can i reference the var which i defined on same pillar file? like A:B  myvar: pillar[A]/other
01:45 m0hit joined #salt
01:49 carmony Hmmmmm, I do not think so
01:56 vespakoen joined #salt
01:57 levicook joined #salt
01:58 levicook not having much luck with searches here; anyone know where i can find advice / practices around salt master failover? I'm not looking for HA, just simple and effective
01:59 levicook the majority of my salt config is kept in git
02:00 levicook so i'm mostly looking for info on convincing minions they have a new master
02:09 justlooks how can i get substring in jinja? like i have string "channel-mywork" and i want to get substring "mywork"
02:10 m0hit joined #salt
02:11 vespakoen left #salt
02:13 prooty joined #salt
02:16 xl1 joined #salt
02:19 justlooks can i use {% for i in a['att'] or b['att'] %} ?
02:20 zzzirk joined #salt
02:28 xmltok joined #salt
02:30 taylorgumgum joined #salt
02:40 m0hit joined #salt
02:41 oz_akan_ joined #salt
02:48 ctdawe joined #salt
02:51 prooty joined #salt
02:52 foxx[cleeming] joined #salt
02:52 foxx[cleeming] joined #salt
02:56 anti joined #salt
02:57 jimallman joined #salt
02:58 berto- joined #salt
03:13 potus98 joined #salt
03:22 cachedout joined #salt
03:38 cachedout joined #salt
03:47 bemehow joined #salt
03:51 retr0h joined #salt
03:51 Gifflen joined #salt
03:51 Gifflen_ joined #salt
03:51 cachedout joined #salt
03:53 newellista joined #salt
04:17 pentabular joined #salt
04:19 steveoliver I'm trying to use salt to manage a small web and ftp hosting infrastructure with a few minion. On salt master, I'm having a little trouble knowing how to decide how to split users, service/site definitions, and file roots between pillar and states.  Specifically, I'm tempted to add onto user pillar data variables that may hold locations to nginx site definitions, etc. and define services (i.e. site definitions) in users.sls state file ..
04:19 steveoliver #woah
04:22 __number5__ steveoliver: your users/sites will be changing quite often right?
04:22 steveoliver yeah, i suppose, at least for now
04:22 __number5__ then it make sense to put them in pillar
04:22 chutzpah joined #salt
04:23 steveoliver ok, so i've got users.sls...
04:23 steveoliver and so far so good with keeping only user-relevant info in there...
04:23 steveoliver but now i've got to define site definitions for users...
04:23 ddv joined #salt
04:24 apergos joined #salt
04:24 steveoliver (services don't all need users (ftp/shell), btw…)
04:24 steveoliver and i will want multiple site definitions tied to different users...
04:24 __number5__ steveoliver: see this example http://docs.saltstack.com/topics/tutorials/pillar.html#more-complex-data
04:24 steveoliver ok
04:25 steveoliver so i've got pillar data in states for users, just fine...
04:25 steveoliver managing keys, ids, file paths, ssh_auths, etc…
04:25 steveoliver data in pillar (dynamic thanks to grains check in pillar templates)
04:25 berto- joined #salt
04:25 steveoliver logic in states
04:26 steveoliver user and service domains are blurring in states, mainly, though...
04:26 steveoliver i guess i could use the same pillar data in different states...
04:26 steveoliver like in nginx.sls i can go through all users and see if any have defined nginx config or webroot properties...
04:26 steveoliver ?
04:26 steveoliver is that kinda the idea?
04:26 __number5__ defintely
04:27 steveoliver ok
04:27 steveoliver helps
04:27 steveoliver salt++
04:27 steveoliver :) thanks, number5
04:28 __number5__ np
04:30 adamisos joined #salt
04:32 anuvrat joined #salt
04:33 ctdawe joined #salt
04:34 ctdawe joined #salt
04:38 cachedout joined #salt
04:49 taylorgumgum joined #salt
04:57 jkleckner joined #salt
05:04 druonysus joined #salt
05:04 druonysus joined #salt
05:29 dvogt joined #salt
05:32 pdayton joined #salt
05:34 dvogt joined #salt
05:36 dvogt joined #salt
05:37 dvogt joined #salt
05:55 jalbretsen joined #salt
06:05 berto- joined #salt
06:11 Boohbah joined #salt
06:12 gadams joined #salt
06:12 gadams joined #salt
06:12 tempspace joined #salt
06:13 bretep joined #salt
06:15 djinni` joined #salt
06:16 minaguib joined #salt
06:19 bretep joined #salt
06:20 Furao joined #salt
06:22 HeadAIX joined #salt
06:24 bretep joined #salt
06:27 fragamus joined #salt
06:27 bretep joined #salt
06:30 Furao joined #salt
06:40 Furao joined #salt
06:40 pdayton joined #salt
06:44 TheCodeAssassin joined #salt
06:47 Katafalkas joined #salt
06:50 Furao joined #salt
06:50 jkleckner joined #salt
06:54 ajw0100 joined #salt
06:55 Katafalkas joined #salt
06:58 malinoff joined #salt
07:00 Furao joined #salt
07:00 fragamus joined #salt
07:07 unknown__ joined #salt
07:10 Furao joined #salt
07:16 jbub joined #salt
07:26 Furao joined #salt
07:36 ml_1 joined #salt
07:38 middleman_ joined #salt
07:52 sebgoa joined #salt
08:01 groovehunter joined #salt
08:02 giantlock joined #salt
08:02 Destro joined #salt
08:03 balboah joined #salt
08:04 whiskybar joined #salt
08:08 gildegoma joined #salt
08:10 HeadAIX joined #salt
08:27 permalac joined #salt
08:35 carlos joined #salt
08:35 matanya joined #salt
08:44 middleman_ joined #salt
08:47 arapaho joined #salt
09:05 arapaho joined #salt
09:07 tonthon joined #salt
09:10 malinoff Hi all
09:10 malinoff Is there any function which can parse compound target string?
09:39 aleszoulek joined #salt
09:40 linuxnewbie joined #salt
09:40 linuxnewbie left #salt
09:40 thutton joined #salt
09:44 thutton Hi All, Has anyone used salt to automate password changes on a Cisco switch or ASA using salt-ssh?
09:44 bhosmer joined #salt
09:46 anuvrat joined #salt
09:54 Iwirada joined #salt
09:54 linuxnewbie joined #salt
09:58 Ixan i'm having a problem with a state.sls rendering: http://pastebin.com/KsZVipge If i remove the for-loop and use {%set environment='sandbox'%} everything works fine, but with the loop, i get that error. Anyone able to explain why?
09:59 Furao joined #salt
10:00 zooz joined #salt
10:01 krissaxton joined #salt
10:12 ninkotech joined #salt
10:16 scott_w joined #salt
10:23 viq Ixan: try running saltutil.refresh_pillar beforehand
10:24 viq Ixan: also, that's a state, or pillar that you pasted?
10:24 viq Ah, state, sorry
10:25 jbub_ joined #salt
10:35 jbub_ joined #salt
10:52 lemao joined #salt
10:53 viq Can someone apply some cluestick as to why this doesn't work? https://gist.github.com/viq/7247775
10:53 HeadAIX joined #salt
10:56 srage joined #salt
10:57 Ixan viq: tried with refresh_pillar && state.sls, same error
11:00 srage_ joined #salt
11:06 deepakmd_oc joined #salt
11:07 viq Ixan: https://github.com/jesusaurus/hpcs-salt-state/blob/master/apt/sample.pillar https://raw.github.com/jesusaurus/hpcs-salt-state/master/apt/repo/distro - see how he uses two "variables" (whatever), maybe you need to do something similiar?
11:20 srage joined #salt
11:25 flebel joined #salt
11:31 groovehunter hi there. What way do you document your state files for the IT department? Is there a doc generator, ie html pages?
11:38 whiskybar joined #salt
11:42 jslatts joined #salt
11:43 jbub_ joined #salt
11:45 Ixan groovehunter: I use the comments tag whenever i do something magcial. A readme.md tossed into the directories also works
11:45 Ixan seems a bit like overkill to generate docs from yaml
11:46 Ixan especially when state function names are human readable
11:46 Ixan viq: found the error. I was of course missing some pillar data. thanks for the pointers
11:47 vkurup joined #salt
11:47 viq gah, what the hell am I doing wrong?? https://gist.github.com/viq/7248362
11:47 viq Ixan: glad you figured it out. As you can see I'm struggling some with pillars myself
11:49 Ixan i try to indent the macro tags whenever i go "one step deeper", makes it a bit more readable
11:50 Ixan but i'll bet you have the sasme problem as me. there's one item in your pillar lacking a key
11:50 Ixan use pillar.get() instead
11:51 viq The pillars are fine. It right now works fine if I include just one of the files, but errors out when I include both
11:51 viq Argh, no
11:52 Ixan :)
11:53 viq I forgot to include pillar data for group1 x.x'
11:55 Ixan that sounds earily familiar :)
11:55 viq hehe
11:58 djinni` joined #salt
11:58 ninkotech joined #salt
12:27 blee joined #salt
12:34 donatello joined #salt
12:36 donatello hi
12:37 donatello is it possible to run commands on minions by multiple grains' values? something like `salt -G 'profile:X;role:Y
12:37 donatello sorry
12:37 donatello something like `salt -G 'profile:X;role:Y' grains.get 'name'`?
12:39 ninkotech joined #salt
12:39 donatello basically i want to match according to multiple grain values
12:40 viq donatello: AND or OR ?
12:40 donatello i want AND, but knowing OR would also help :)
12:40 viq donatello: http://docs.saltstack.com/topics/targeting/compound.html
12:40 fishpen0 joined #salt
12:41 donatello viq: just what i needed. Thank you!
12:41 imaginarysteve joined #salt
12:45 mgw joined #salt
12:48 jrdx joined #salt
12:48 oz_akan_ joined #salt
12:48 oz_akan_ joined #salt
12:49 jrdx joined #salt
12:49 jslatts joined #salt
12:49 fishpen0 joined #salt
12:55 oz_akan_ hi guys, anyone using salt 0.17.1 and having issues with connectivity?
12:55 oz_akan_ we seem to loose connection to minions after a while
13:03 brianhicks joined #salt
13:05 scott_walton joined #salt
13:05 Gifflen_ joined #salt
13:05 Gifflen joined #salt
13:12 mgw joined #salt
13:15 juicer2 joined #salt
13:15 mpanetta joined #salt
13:17 Furao joined #salt
13:17 ipmb joined #salt
13:21 micah_chatt joined #salt
13:21 timoguin joined #salt
13:23 pass_by_value joined #salt
13:24 bhosmer joined #salt
13:24 mpanetta joined #salt
13:25 mua joined #salt
13:26 timoguin_ joined #salt
13:26 mpanetta joined #salt
13:26 joehh oz_akan_: which os/release?
13:27 timoguin_ joined #salt
13:29 mpanetta_ joined #salt
13:32 amahon joined #salt
13:40 HeadAIX joined #salt
13:41 oz_akan_ joehh: hi
13:41 oz_akan_ 0.17.1
13:42 sebgoa joined #salt
13:43 BogdanR I have a salt minion running on windows 7 and I can see messages that it autenthenticates to the master every few seconds but I can't ping it
13:44 joehh oz_akan_: sorry, I wasn't clear - debian/ubuntu/redhat/... also which version of os
13:44 joehh ?
13:44 oz_akan_ ubuntu 12.10
13:44 joehh BogdanR: the key has been accepted on master?
13:44 oz_akan_ connection is lost with windows and rhea 5 minions
13:44 BogdanR In the system monitor I can see a lot of salt-minion processes appear as terminated and new ones are launched
13:45 BogdanR joehh: yes, the key is accepted
13:45 oz_akan_ joehh: we have another environment where we use 16.1, which never had issues
13:45 kaptk2 joined #salt
13:45 oz_akan_ we seem to have same zmq versions on both environment
13:45 BogdanR Even the master sair "Authentication accepted from user1"
13:46 joehh oz_akan_: same oses? the main thing that causes problems like this is using libzmq older than version 3
13:47 oz_akan_ let me verify zmq in linux minions
13:47 HeadAIX joined #salt
13:48 BogdanR How would I debug Salt on Windows?
13:48 pass_by_value BofdanR: I would run the minion with —log-level debug
13:48 pass_by_value er BogdanR
13:49 pass_by_value Also as the master was able to see its message, could it be the case that something like Windows firewall is rejecting incoming connections?
13:50 BogdanR pass_by_value: I disabled Win firewall to make sure it's not this
13:50 pass_by_value cool
13:51 BogdanR pass_by_value: What is strange is that the Windows machine attempts authentication evey few seconds
13:51 BogdanR It's like it crashes and then it starts again
13:51 BogdanR The Linux minion does't act like that
13:51 HeadAIX_ joined #salt
13:51 pass_by_value so u see something like "authentication attempt from…" on the master? where … is the windows machine?
13:52 mgw joined #salt
13:52 BogdanR Yes
13:52 pass_by_value That has usually happened to me when I had issue with minion key. I would try salt-key -l on master and see what keys are accepted
13:52 mapu joined #salt
13:53 BogdanR pass_by_value: The key is accepted
13:53 BogdanR http://pastie.org/pastes/8445559/text
13:53 joehh oz_akan_: salt-minion --versions-report
13:55 pass_by_value hmm are u able to run the minion with "—log-level debug"? That way we might be able to see any errors / debug info on the minion
13:56 HeadAIX joined #salt
13:57 BogdanR pass_by_value: How do I do that in Win? :)
13:57 BogdanR I have no experience with Windows
13:57 pass_by_value how are you starting the minion, using some command or is it a batch file?
13:57 BogdanR At first I would have to stop the minion which is already running and I think is the problem
13:58 BogdanR The minion stats on it's own after boot
13:58 pass_by_value hmm you might be able to kill it from the task manager; but hold on. Lemme look a couple things up before you do so.
14:00 pass_by_value on this page http://docs.saltstack.com/topics/installation/windows.html
14:00 adamisos joined #salt
14:00 pass_by_value "4. 4.Start the salt-minion"
14:00 pass_by_value You might be able to run that command like "python salt-minion —log-level debug"
14:01 joehh pass_by_value, BogdanR: I think if you have used the installer, you will want to go to the services panel and stop it
14:01 joehh then open a command prompt in c:\salt (or cd into it)
14:01 joehh then salt-minion -c conf -l debug
14:02 joehh (from memory - salt-minion -h) if that doesn't work
14:02 HeadAIX_ joined #salt
14:02 oz_akan_ joehh: let me get back to you about it later, we are just re-installing minion
14:02 joehh oz_akan_: no worries
14:03 pass_by_value joehh: I see, good to know about the -c and -l options :)
14:03 BogdanR pass_by_value: I just ran it dithout stoping the service and apparently it's something wrong with authentication
14:03 pass_by_value what was the error message?
14:04 Khollowa_ joined #salt
14:05 BogdanR The master key has changed
14:05 BogdanR pass_by_value: And indeed that is correct
14:05 joehh that will do it
14:05 BogdanR How do I go around that?
14:06 joehh there is a file you need to delete in c:\salt - something like master.pem
14:06 joehh ?
14:06 joehh look for pki then master
14:07 BogdanR minion_master.pub ?
14:07 pass_by_value that seems like it
14:07 pass_by_value https://groups.google.com/forum/#!msg/salt-users/q9YHzL2hmRs/XmIrbQ8cXlAJ
14:07 pass_by_value its on linux though
14:07 HeadAIX joined #salt
14:08 joehh I think they will be the same
14:08 BogdanR Thanks guys
14:08 BogdanR That did the trick
14:09 pass_by_value :)
14:10 BogdanR The Windows shell is really "funny"
14:11 HeadAIX joined #salt
14:12 thutton joined #salt
14:13 aberant joined #salt
14:14 vespakoen joined #salt
14:14 joehh agreed
14:14 vespakoen Hey guys, I am trying to check whether a value exists in multiple arrays, does anyone know how I can do this within jinja? (see http://paste.laravel.com/13mC)
14:15 pass_by_value joehh: Good point. I was just trying to be clear.
14:15 jergerber joined #salt
14:16 [M7] left #salt
14:16 N-Mi joined #salt
14:17 mannyt joined #salt
14:21 pdayton joined #salt
14:27 pass_by_value vespakoen: You might be able to get it to work by doing something like http://stackoverflow.com/questions/12272695/if-variable-and-variable-is-defined-jinja2
14:31 cachedout joined #salt
14:32 vespakoen pass_by_value, thanks! thinking about it a bit more, I don't want to search in all those "environments (development, production) but only the one that is "currently being executed", basically, in my salt/top.sls file, it has some environments and states in there, I need to know which environment is currently being run, and if I know that, checking against it in my template will be a lot easier too
14:33 kermit joined #salt
14:33 vespakoen so does anyone know if I can get the "environment" that salt is running for?  (base: \n '*' \n - some.stuff \n 'development' \n - some.stuff) <-- I am referring to the '*'  and 'development' in this example
14:34 ashtonian joined #salt
14:36 Khollowa_ joined #salt
14:37 btorch joined #salt
14:38 btorch is there a way to play with pillar and template files to see what the end result would be instead of running salt updating a node's config ?
14:39 HeadAIX joined #salt
14:40 quickdry21 joined #salt
14:41 alunduil joined #salt
14:43 pass_by_value vespakoen: I am not sure if this is exactly what you are looking for. But this http://developer.rackspace.com/blog/marconi-and-salt-part-2.html Rackspace article talks about configuring multiple environments.
14:45 sroegner joined #salt
14:46 rpd joined #salt
14:47 opapo joined #salt
14:48 sgviking joined #salt
14:48 abe_music joined #salt
14:49 pniederw joined #salt
14:50 pniederw hi there. is there a way to use ssh agent forwarding with salt-ssh? not sure what to enter under "priv" in the roster file, as I want it to use the "forwarded" key.
14:52 __number5__ pniederw: if your key already in ssh agent (forwarded or not) salt-ssh will use it
14:52 adamisos joined #salt
14:53 pniederw my goal is to use salt-ssh from a vagrant vm, without having to install my private key there.
14:53 rpd I am having a problem with salt-server not loading the modules under file_roots/_modules. It looks the master entirely skips the directory. None of the files under _modules make it to the minion caches. This works fine on a different installation. Nothing of note in the logs
14:55 pniederw I can ssh -A into the vagrant vm, but what next? are you saying that salt-ssh should just pick that up?
14:55 SEJeff_work pniederw, No I don't think that will work
14:55 SEJeff_work the agent is forwarded from your current pty
14:55 SEJeff_work the salt master is started in a different session with a different pty
14:56 SEJeff_work so the SSH_AUTH_SOCK env variable and socket won't exist
14:57 pniederw worth a feature request, or is this not doable?
14:58 anuvrat joined #salt
14:58 scott_w joined #salt
14:59 pniederw my idea was to make it easy for everyone to use salt-ssh, without having to install salt (which is inconvenient on mac) and creating a roster file.
15:00 UtahDave joined #salt
15:00 pniederw (everyone on our team)
15:01 m_george left #salt
15:03 whidbeywalker joined #salt
15:03 ctdawe joined #salt
15:04 abe_music does anyone have any documentation or examples on how to use the runners.state.sls?
15:08 timoguin_ joined #salt
15:09 m_george joined #salt
15:12 SEJeff_work Is there a way to have cmd.run run a list of commands?
15:13 UtahDave SEJeff_work: have you tried something like this?  https://gist.github.com/UtahDave/6125409
15:14 SEJeff_work UtahDave, That would work, but this is a one time thing the first time I create a postgres database. it will happen rarely
15:14 cachedout joined #salt
15:15 UtahDave SEJeff_work: well, that example is basically concatenating a bunch of commands.
15:15 SEJeff_work UtahDave, https://gist.github.com/SEJeff/91e2ec11ae4c896d665d I've got the createdb and createlang done perfectly, but from PGSHARE down, I'm trying to think of the right way
15:17 UtahDave Hm. I'm not sure what the best way to do that would be
15:17 SEJeff_work Yeah :D
15:17 SEJeff_work I might just cheat and use cmd.script. Didn't there used to be a way to have an inline script in a state file that the cmd module would execute? I could have swore there used to be
15:18 pdayton joined #salt
15:19 pentabular joined #salt
15:20 forrest joined #salt
15:21 jdenning joined #salt
15:24 racooper joined #salt
15:25 m0hit joined #salt
15:26 terminalmage SEJeff_work: I thought there was a way
15:26 terminalmage lemme check
15:26 terminalmage are you talking about the cmd.run CLI or state
15:26 terminalmage ?
15:26 SEJeff_work state
15:26 dfaught joined #salt
15:26 SEJeff_work l've given up on being clever and am going to give cmd.wait_script a state
15:27 SEJeff_work watch when the db is created
15:27 dfaught left #salt
15:27 SEJeff_work and when it is run a bash script that is a jinja template
15:27 SEJeff_work so it is reusable when I pass it a different database
15:27 terminalmage have you tried using the "names" param to a cmd.run state?
15:28 terminalmage of course this executes all commands irrespective of whether the previous one ran
15:29 SEJeff_work terminalmage, Are the docs wrong? http://docs.saltstack.com/ref/states/all/salt.states.cmd.html#salt.states.cmd.run
15:29 SEJeff_work I could look at the source, but figured the docs would be accurate
15:29 SEJeff_work for 0.17.1
15:29 terminalmage how so?
15:29 SEJeff_work there is no names argument :D
15:29 terminalmage the names argument is in every state
15:30 SEJeff_work Ah that's a magical arg I take it?
15:30 SEJeff_work Wasn't aware of that
15:30 terminalmage yeah
15:30 SEJeff_work grrrrrrr
15:30 SEJeff_work Salt needs less magic
15:30 SEJeff_work not more
15:30 terminalmage it executes the state once for each list
15:30 * terminalmage shrugs
15:30 SEJeff_work knowledge++
15:30 SEJeff_work terminalmage, thanks!
15:30 terminalmage no prob
15:31 terminalmage again though, this doesn't allow for && or ||-like logic
15:31 terminalmage it would be a good enhancement to make, and not all that difficult
15:32 SEJeff_work Thats fine
15:32 pniederw is it possible to use salt-ssh in a more ad-hoc way, e.g. without setting up file_roots in /etc/salt/master and instead just passing an .sls file as an argument?
15:35 pniederw ideally, I'd also like to avoid the roster file, and instead pass the host name as an argument and use the current user's ssh keys.
15:35 yota joined #salt
15:38 danielmcbawse joined #salt
15:38 mua joined #salt
15:41 danielmcbawse Hi all, I'm using ubuntu & apt and having some trouble with pinning package versions. Can anyone lend a hand? :(
15:45 SEJeff_work Has anyone used the mount.mounted state with a bind mount?
15:45 SEJeff_work Just curious before I try it
15:46 pass_by_value danielmcbawse: I use Ubuntu. I can try and help.
15:47 danielmcbawse Awesome, thanks!
15:47 danielmcbawse So I'm using salt to configure my boxes, and I want to make sure future installations install the same versions of packages that I'm using now to avoid confusion
15:48 danielmcbawse When I used puppet at a previous job, I remember being able to just specify python's version as 2.7.3 for example
15:49 danielmcbawse Is there a way to tell Salt that I want the version 2.7.3 for a package, without needing to specify 2.7.3-0ubuntu7 or whatever?
15:49 SEJeff_work danielmcbawse, http://docs.saltstack.com/ref/states/all/salt.states.pkg.html#salt.states.pkg.installed See the first example
15:50 pniederw how do you all bootstrap salt masters/minions? is there a better way than executing the megalomaniac shell script, then manually putting the config file in place? I was hoping to use salt-ssh instead, but that seems to require several config options on its own (roster, master config), which again doesn't make things as easy as they should be.
15:50 SEJeff_work From kickstart
15:50 bhosmer joined #salt
15:50 SEJeff_work likely doesn't help you though
15:51 SEJeff_work or preseed
15:51 danielmcbawse SEJeff_work thanks!
15:52 danielmcbawse I'll fiddle with that some
15:52 pniederw preseed is difficult with our provider. I am preseeding for the vms, but not for the physical machines.
15:52 fys Hola, I am defining a nodegroup with this definition:
15:52 fys wheezy: 'L@wheezytest.foo'
15:52 fys however when i try to set it
15:52 fys Node group wheezy unavailable in /etc/salt/master
15:52 pentabular joined #salt
15:52 jalbretsen joined #salt
15:53 fys Any ideas?
15:53 rlarkin @pniederw: I've not gotten all the through a salt environment setup yet.  but what I did was just write an install.sh and scp it to the new system, then ssh [command]
15:55 pniederw given the apparent limitations of salt-ssh, that may be my best option.
15:56 cnelsonsic joined #salt
15:56 rlarkin I do it in this order:  install salt-minion from the salt-stack repo.  immediately stop the salt service.  echo the master's name into the config file.  start the salt service.
15:57 rlarkin i have no choice because I don't own the image.
15:58 SEJeff_work rlarkin, Perhaps you could create /etc/salt and put the minion's master name down first
15:58 SEJeff_work OR... echo "ip.of.master salt" >> /etc/hosts
15:58 SEJeff_work then just install and salt the minion and it will work
15:58 SEJeff_work without stopping it and editing the config
15:59 rlarkin yeah.  I will do something like that soon.  I'm just now getting to salt states...when I get through everything, I'll come back through with a little more elegance
15:59 rlarkin for now I didn't take time to see if the install would clobber the config
16:01 pentabular joined #salt
16:01 Gifflen joined #salt
16:02 Gifflen_ joined #salt
16:02 danielmcbawse SEJeff_work: I think I might be missing something. What does the tilde in the version imply?
16:02 ctdawe joined #salt
16:02 redondos joined #salt
16:02 SEJeff_work danielmcbawse, That is the ubuntu package version
16:03 Gifflen joined #salt
16:04 danielmcbawse My problem though is that the ubuntu package version changes somewhat regularly (at least it seems like that to me…). Every time I've tried creating a new box with my salt config, I've had to go in and change that value
16:07 SEJeff_work danielmcbawse, Why not set your salt states to do: pkg.latest
16:07 newellista joined #salt
16:07 s0undt3ch joined #salt
16:07 jdenning joined #salt
16:07 SEJeff_work that way the latest version will be installed on all minions?
16:07 mgw joined #salt
16:07 SEJeff_work And by design, synced
16:10 danielmcbawse I guess I was hoping to prevent things like a major version change in a package making it into use without anyone knowing, but at the same time not having to worry about constantly updating the ubuntu package version
16:10 KyleG joined #salt
16:10 KyleG joined #salt
16:21 troyready joined #salt
16:25 diegows_ joined #salt
16:26 anti_ joined #salt
16:28 danielmcbawse joined #salt
16:32 jacksontj joined #salt
16:32 smccarthy joined #salt
16:33 fys So this may be a stupid question.
16:33 fys I inherited an incomplete Salt setup, and all the keys installed before I got here are shortnames.
16:34 fys when I add a salt minion the key is named after the fqdn
16:34 fys Not a huge deal, just curious.
16:34 bemehow joined #salt
16:36 taylorgumgum joined #salt
16:39 nineteeneightd joined #salt
16:40 viq fys: keys by default are generated with whatever hostname is, but you can force id in minion config
16:45 dave_den fys: the short hostname was used by salt v0.17. they switched it back to using socket.get_fqdn() in v0.17
16:46 dave_den 0.17.1
16:46 viq How can I include this state to have {{groupname}} replaced by desired value? https://gist.github.com/viq/7252972
16:48 oz_akan_ joined #salt
16:52 UtahDave viq: where is groupname defined?
16:53 ajw0100 joined #salt
16:53 viq UtahDave: I was hoping to define it when including the file
16:53 bhosmer joined #salt
16:53 opapo joined #salt
16:53 UtahDave viq: well while you're inside a jinja block you can just use     groupname    if it has been defined inside of the jinja
16:54 viq But that would be only in context of single file, right?
16:54 amckinley joined #salt
16:54 UtahDave viq: Well, I believe you can use jinja imports to get it from another file.
16:55 viq hmm
16:55 viq Indeed, I saw something about that regarding formulas
16:56 fys dave_den: thanks!
16:56 KyleG1 joined #salt
16:57 viq here http://docs.saltstack.com/topics/conventions/formulas.html?highlight=context#map-jinja
16:59 viq UtahDave: thanks for the pointer, I'll see where I can get from there
16:59 UtahDave cool, good luck!
16:59 viq thanks :)
17:00 imaginarysteve joined #salt
17:00 SEJeff_work Does anyone have an example of passing env vars to a command via cmd.run using the env argument?
17:02 viq SEJeff_work: almost. https://github.com/viq/cm-lab-salt/blob/master/salt/roots/salt/wordpress/init.sls  - I had there above '- args:' '- env: something' (though not sure it worked)
17:03 mike_perdide joined #salt
17:04 SEJeff_work viq, I think this works: https://github.com/saltstack/salt/issues/4325#issuecomment-15784494
17:04 viq oh
17:04 viq I just ended up modifying the script to take that value as a flag instead from env ;)
17:05 mike_perdide left #salt
17:05 oz_akan_ joined #salt
17:08 dave_den SEJeff_work: from the cmd state module, or from the module from CLI/salt-call?
17:08 SEJeff_work from a state
17:09 scott_walton joined #salt
17:09 dave_den you should be able to just:  ' - env:\n    - THISVARIABLE=something'
17:10 danielbachhuber joined #salt
17:11 Gifflen__ joined #salt
17:12 carmony woot, I now have salt installing mysql, setting it's root password, and then managing the dbs & users from there
17:14 pniederw when using the ubuntu ppa, is the stable version always the latest release version?
17:15 jcockhren carmony: via formulas?
17:15 carmony since it is for a tutorial, this one isn't using a forumla
17:15 UtahDave pniederw: yes.
17:15 carmony but we'll cover forumla later in the tutorial :)
17:15 jcockhren carmony: how are you setting the root pw and such?
17:15 jcockhren oh. writing the tutorial for that. I see
17:16 ksalman is cmd.run syncrhronous?
17:16 abe_music joined #salt
17:16 carmony https://gist.github.com/JustinCarmony/84f8bfa9740cf4719c14
17:17 carmony on ubuntu if you no-interactive install mysql
17:17 carmony it is passwordless
17:17 carmony so I run a command right after it installs
17:17 carmony to set the root password from pillar
17:19 jcockhren carmony: \o/
17:19 nineteeneightd Does pip.installed support installing from git repos? It looks like in >=0.17 you guys changed some stuff and now my pip.installed state whch uses "git+git://..." as the package name is failing with errors about the versionspec.
17:22 xmltok_ joined #salt
17:25 zzzirk joined #salt
17:25 backjlack joined #salt
17:28 m0hit joined #salt
17:29 jmlowe joined #salt
17:29 jmlowe So still no 0.17.1 packages for saucy?
17:30 bhosmer joined #salt
17:36 cron0 joined #salt
17:37 bhosmer joined #salt
17:38 druonysus joined #salt
17:40 pniederw I have a git repository with salt/ and pillar/ subdirs. how do I reference the pillar/ dir from ext_pillar in the master config file?
17:41 pniederw it seems I can do `gitfs_root: salt` for states, but how to do it for pillar?
17:41 berto- joined #salt
17:43 aserdp joined #salt
17:44 bemehow joined #salt
17:44 pass_by_value nineteeneightd: I used pip install -E dir to install from git repo
17:44 imaginarysteve joined #salt
17:45 amahon joined #salt
17:47 pass_by_value er -e rather
17:52 bemehow joined #salt
17:56 mgw joined #salt
17:56 brimpa joined #salt
17:59 pniederw pillar data in git subdirectory doesn't seem to be supported. raised https://github.com/saltstack/salt/issues/8198
18:00 abe_music joined #salt
18:00 jacksontj joined #salt
18:02 micah_chatt joined #salt
18:03 elfixit joined #salt
18:05 mannyt_ joined #salt
18:07 oz_akan_ UtahDave: hi, I hope you are doing fine
18:08 oz_akan_ any change 0.17.1 has issues with mine? heard it before?
18:08 oz_akan_ change = chance
18:09 oz_akan_ (even when there is only one master)
18:09 oz_akan_ basepi: ^^
18:10 basepi oz_akan_: yes, there was a regression which caused breakage in the mine in 0.17.1.  can you test in `develop`?
18:10 basepi 0.17.2 should have the fix
18:10 bemehow joined #salt
18:10 UtahDave oz_akan_: Hm.  Plus, the master and all the minions must be on 0.17.1 as well.
18:11 jmlowe UtahDave: mixed 0.16.4 and 0.17.1  causes problems?
18:12 basepi jmlowe: yes, we added a token field in 0.17.1 to fix a small security issue
18:12 basepi it broke reverse compatibility
18:12 oz_akan_ basepi: UtahDave thanks you saved a few hours of ours
18:12 basepi i added a note to the release notes
18:12 UtahDave basepi: what basepi said
18:12 basepi oz_akan_: glad we could help!
18:14 druonysuse joined #salt
18:14 oz_akan_ basepi: but 0.16.4 is ok right? (having it on master and minions)
18:14 basepi oz_akan_: yes.  but if you upgrade any of your systems to 0.17.1 you must upgrade all of them.
18:15 oz_akan_ yes, I got that, in our case would have to be 0.17.2 as mine is foundation of everything we have
18:15 oz_akan_ and I sent a proposal to talk about it in the saltstack conference  :)
19:16 gatoralli joined #salt
19:17 gatoralli when I run a command targeting a minion that is down, it returns without failing. is this supposed to happen?
19:19 lineman60 joined #salt
19:19 pentabular1 joined #salt
19:19 imaginarysteve joined #salt
19:19 redondos joined #salt
19:19 jdenning joined #salt
19:19 bhosmer joined #salt
19:19 bemehow joined #salt
19:19 yano joined #salt
19:19 rjc joined #salt
19:19 newellista joined #salt
19:19 kermit joined #salt
19:19 monokrome joined #salt
19:19 aberant joined #salt
19:19 jimallman joined #salt
19:19 danielmcbawse joined #salt
19:19 druonysuse joined #salt
19:19 mannyt joined #salt
19:19 elfixit joined #salt
19:19 micah_chatt joined #salt
19:19 jacksontj joined #salt
19:19 brimpa joined #salt
19:19 amahon joined #salt
19:19 aserdp joined #salt
19:19 berto- joined #salt
19:19 jmlowe joined #salt
19:19 backjlack joined #salt
19:19 zzzirk joined #salt
19:19 xmltok_ joined #salt
19:19 Gifflen__ joined #salt
19:19 danielbachhuber joined #salt
19:19 amckinley joined #salt
19:19 opapo joined #salt
19:19 nineteeneightd joined #salt
19:19 taylorgumgum joined #salt
19:19 smccarthy joined #salt
19:19 anti_ joined #salt
19:19 diegows_ joined #salt
19:19 troyready joined #salt
19:19 s0undt3ch joined #salt
19:19 ctdawe joined #salt
19:19 Gifflen_ joined #salt
19:19 jalbretsen joined #salt
19:19 yota joined #salt
19:19 cachedout joined #salt
19:19 timoguin joined #salt
19:19 whidbeywalker joined #salt
19:19 anuvrat joined #salt
19:19 adamisos joined #salt
19:19 pniederw joined #salt
19:19 sgviking joined #salt
19:19 alunduil joined #salt
19:19 quickdry21 joined #salt
19:19 btorch joined #salt
19:19 Khollowa_ joined #salt
19:19 ashtonian joined #salt
19:19 N-Mi joined #salt
19:19 mapu joined #salt
19:19 kaptk2 joined #salt
19:19 mpanetta_ joined #salt
19:19 pass_by_value joined #salt
19:19 ipmb joined #salt
19:19 Furao joined #salt
19:19 juicer2 joined #salt
19:19 brianhicks joined #salt
19:19 fishpen0 joined #salt
19:19 jslatts joined #salt
19:19 ninkotech joined #salt
19:19 blee joined #salt
19:19 djinni` joined #salt
19:19 whiskybar joined #salt
19:19 lemao joined #salt
19:19 jbub joined #salt
19:19 aleszoulek joined #salt
19:19 tonthon joined #salt
19:19 arapaho joined #salt
19:19 giantlock joined #salt
19:19 groovehunter joined #salt
19:19 Katafalkas joined #salt
19:19 bretep joined #salt
19:19 minaguib joined #salt
19:19 gadams joined #salt
19:19 Boohbah joined #salt
19:19 apergos joined #salt
19:19 ddv joined #salt
19:19 chutzpah joined #salt
19:19 retr0h joined #salt
19:19 xmltok joined #salt
19:19 xl1 joined #salt
19:19 kamal_ joined #salt
19:19 ndivad joined #salt
19:19 blast_hardcheese joined #salt
19:19 mjulian joined #salt
19:19 dcmorton joined #salt
19:19 xet7 joined #salt
19:19 PoLuX joined #salt
19:19 Savagedlight joined #salt
19:19 ckao joined #salt
19:19 Teknix joined #salt
19:19 toastedpenguin joined #salt
19:19 EWDurbin joined #salt
19:19 zloidemon joined #salt
19:19 pmcg joined #salt
19:19 cmthornton joined #salt
19:19 anteaya joined #salt
19:19 viq joined #salt
19:19 kyusan joined #salt
19:19 linjan_ joined #salt
19:19 APLU joined #salt
19:19 zach joined #salt
19:19 debasish joined #salt
19:19 swa_mobil joined #salt
19:19 mnemonikk joined #salt
19:19 MTecknology joined #salt
19:19 vipul joined #salt
19:19 Tekni joined #salt
19:19 canci joined #salt
19:19 robawt joined #salt
19:19 jesusaurus joined #salt
19:19 Ixan joined #salt
19:19 ClausA joined #salt
19:19 lynxman joined #salt
19:19 z3uS joined #salt
19:19 supplicant joined #salt
19:19 chrism joined #salt
19:19 AlcariTheMad joined #salt
19:19 mollerst1and joined #salt
19:19 a1j joined #salt
19:19 Vivek_ joined #salt
19:19 jasiek joined #salt
19:19 g4rlic joined #salt
19:19 godber joined #salt
19:19 whiteinge joined #salt
19:19 cowmix joined #salt
19:19 clone1018 joined #salt
19:19 eightyeight joined #salt
19:19 alexandrel joined #salt
19:19 nahamu joined #salt
19:19 EvaSDK joined #salt
19:19 ede joined #salt
19:19 eskp joined #salt
19:19 zz__ joined #salt
19:19 octagonal joined #salt
19:19 Zethrok joined #salt
19:19 tseNkiN joined #salt
19:19 robinsmidsrod joined #salt
19:19 MK_FG joined #salt
19:19 Ymage joined #salt
19:19 baoboa joined #salt
19:19 scalability-junk joined #salt
19:19 eliasp joined #salt
19:19 alekibango joined #salt
19:19 xnxs joined #salt
19:19 honestly joined #salt
19:19 crashmag joined #salt
19:19 londo joined #salt
19:19 dave_den joined #salt
19:19 scristian joined #salt
19:19 chjohnst_work joined #salt
19:19 c0bra joined #salt
19:19 trevorj joined #salt
19:19 joehh joined #salt
19:19 SEJeff_work joined #salt
19:19 Zuru joined #salt
19:19 ksk joined #salt
19:19 nocturn joined #salt
19:19 nn0101 joined #salt
19:19 pmrowla joined #salt
19:19 carmony joined #salt
19:19 [ilin] joined #salt
19:19 tallpaul joined #salt
19:19 mirko joined #salt
19:19 Nazca joined #salt
19:19 pviktori joined #salt
19:19 esogas joined #salt
19:19 fxdgear joined #salt
19:19 ewong- joined #salt
19:19 f47h3r joined #salt
19:19 dork joined #salt
19:19 ksalman joined #salt
19:19 indymike joined #salt
19:19 JesseC joined #salt
19:19 cce joined #salt
19:19 cyp joined #salt
19:19 rgarcia_ joined #salt
19:19 cbloss joined #salt
19:19 octarine joined #salt
19:19 goki joined #salt
19:19 Ahlee joined #salt
19:19 rlarkin joined #salt
19:19 mackstick joined #salt
19:19 supervacuo joined #salt
19:19 lyddonb joined #salt
19:19 mhayden joined #salt
19:19 gmoro joined #salt
19:19 jeblair joined #salt
19:19 _FL1SK joined #salt
19:19 __number5__ joined #salt
19:19 bwq joined #salt
19:19 totte joined #salt
19:19 terminalmage joined #salt
19:19 nkuttler joined #salt
19:19 simonmcc joined #salt
19:19 mekstrem joined #salt
19:19 Khazix joined #salt
19:19 mattmtl joined #salt
19:19 andersb joined #salt
19:19 oc joined #salt
19:19 dccc joined #salt
19:19 Damoun joined #salt
19:19 micko joined #salt
19:19 basepi joined #salt
19:19 [vaelen] joined #salt
19:19 pt|Zool joined #salt
19:19 dcolish joined #salt
19:19 crane joined #salt
19:19 d10n joined #salt
19:19 ldlework joined #salt
19:19 SoR joined #salt
19:19 xerxas joined #salt
19:19 godog joined #salt
19:19 patrek joined #salt
19:19 Psi-Jack joined #salt
19:19 pears joined #salt
19:19 mr_chris joined #salt
19:19 VertigoRay joined #salt
19:19 bezaban joined #salt
19:19 cjh973 joined #salt
19:19 arnoldB joined #salt
19:19 ze- joined #salt
19:19 mau_ joined #salt
19:19 vlcn joined #salt
19:19 Koma joined #salt
19:19 xt joined #salt
19:19 fys joined #salt
19:19 cro joined #salt
19:19 penguin_dan joined #salt
19:19 marcel joined #salt
19:19 BogdanR joined #salt
19:19 morganfainberg joined #salt
19:19 seba joined #salt
19:19 dpac|away joined #salt
19:19 nliadm joined #salt
19:19 chuffpdx_ joined #salt
19:19 benturner joined #salt
19:19 Sypher joined #salt
19:19 krandun joined #salt
19:19 Heartsbane joined #salt
19:19 copelco joined #salt
19:19 baffle joined #salt
19:19 hotbox joined #salt
19:19 rawzone joined #salt
19:19 \ask joined #salt
19:19 jfalco joined #salt
19:19 akio joined #salt
19:19 austin987 joined #salt
19:19 drogoh joined #salt
19:19 balltongu joined #salt
19:19 dottedmag joined #salt
19:19 fxhp joined #salt
19:19 _mzito___ joined #salt
19:19 jasonrm joined #salt
19:19 renoirb joined #salt
19:19 jtrucks joined #salt
19:19 jschairb_away joined #salt
19:19 lahwran joined #salt
19:19 mfournier joined #salt
19:19 dlloyd joined #salt
19:19 Guest17361 joined #salt
19:19 marcinkuzminski joined #salt
19:19 brutasse joined #salt
19:19 icarus joined #salt
19:19 puppet joined #salt
19:19 EnTeQuAk joined #salt
19:19 larstr joined #salt
19:19 defunctzombie joined #salt
19:19 jefferai joined #salt
19:19 Gareth joined #salt
19:19 Xena joined #salt
19:19 g3cko joined #salt
19:19 reinsle joined #salt
19:19 modafinil joined #salt
19:19 akitada joined #salt
19:19 pnl joined #salt
19:19 djn joined #salt
19:19 melinath joined #salt
19:19 LarsN joined #salt
19:19 keen joined #salt
19:19 aparashar joined #salt
19:19 whyzgeek joined #salt
19:19 goodwill joined #salt
19:19 madduck_ joined #salt
19:19 cwright joined #salt
19:19 emilisto joined #salt
19:19 fivethreeo joined #salt
19:19 mephx joined #salt
19:19 neilf joined #salt
19:19 welby_away joined #salt
19:19 packeteer joined #salt
19:19 rhand joined #salt
19:19 luminous joined #salt
19:19 EugeneKay joined #salt
19:19 msil joined #salt
19:19 NV joined #salt
19:19 pcarrier joined #salt
19:19 steveoliver joined #salt
19:19 ange joined #salt
19:19 plethora joined #salt
19:19 sashka_ua joined #salt
19:19 eclectic joined #salt
19:19 Kraln joined #salt
19:19 tru_tru joined #salt
19:19 mortis joined #salt
19:19 aptiko joined #salt
19:19 Chocobo joined #salt
19:19 bawnzai joined #salt
19:19 namtab joined #salt
19:19 pexio joined #salt
19:19 dh joined #salt
19:19 drags joined #salt
19:19 intchanter joined #salt
19:19 d0ugal joined #salt
19:19 jcristau joined #salt
19:19 jeffrubic joined #salt
19:19 freelock joined #salt
19:19 kvbik joined #salt
19:19 bashcoder joined #salt
19:19 andyshinn` joined #salt
19:19 iMil joined #salt
19:19 gamingrobot joined #salt
19:19 ggherdov joined #salt
19:19 andrewclegg joined #salt
19:19 jgelens joined #salt
19:19 Parabola joined #salt
19:19 polaco joined #salt
19:19 cedwards joined #salt
19:19 cetex joined #salt
19:19 _0x4b joined #salt
19:19 crazysim joined #salt
19:19 Valdo joined #salt
19:19 ar joined #salt
19:19 sinh joined #salt
19:19 tamentis joined #salt
19:19 ahale_ joined #salt
19:19 Jarus joined #salt
19:19 echos joined #salt
19:19 seanz joined #salt
19:19 bcc joined #salt
19:19 eculver joined #salt
19:19 pygmael joined #salt
19:19 jpaetzel joined #salt
19:19 nijotz joined #salt
19:19 LordOfLA joined #salt
19:19 genkimind joined #salt
19:19 shine joined #salt
19:19 jhermann joined #salt
19:19 Kyle joined #salt
19:19 axiom joined #salt
19:19 Corey joined #salt
19:19 bigmstone joined #salt
19:19 shennyg joined #salt
19:19 rachbelaid joined #salt
19:19 jrgifford joined #salt
19:19 johnsocp joined #salt
19:19 ioni joined #salt
19:19 scofflaw joined #salt
19:19 seb` joined #salt
19:19 gwar9999 joined #salt
19:19 rizumu joined #salt
19:19 yml joined #salt
19:19 Anb joined #salt
19:19 jphall_ joined #salt
19:19 Striki joined #salt
19:19 rockey joined #salt
19:19 codysoyland joined #salt
19:19 txmoose joined #salt
19:19 jY joined #salt
19:19 doki_pen joined #salt
19:19 insatsu joined #salt
19:19 twiedenbein joined #salt
19:19 kula joined #salt
19:19 tmmt joined #salt
19:19 Bosse joined #salt
19:19 bdf joined #salt
19:19 bui joined #salt
19:19 mordred joined #salt
19:19 kevinbrolly joined #salt
19:19 letterj joined #salt
19:19 twinshadow joined #salt
19:19 akoumjian joined #salt
19:19 bejer joined #salt
19:19 Daviey joined #salt
19:19 keekz joined #salt
19:19 andrew_seattle joined #salt
19:19 utahcon joined #salt
19:19 mattikus` joined #salt
19:19 jcockhren joined #salt
19:19 aurigus joined #salt
19:19 ahammond joined #salt
19:19 EntropyWorks joined #salt
19:19 coolj joined #salt
19:19 holmb joined #salt
19:19 vbabiy joined #salt
19:20 mgw joined #salt
19:20 * Gareth waves
19:23 pdayton joined #salt
19:33 timoguin joined #salt
19:35 az87c joined #salt
19:35 az87c_ joined #salt
19:40 UtahDave joined #salt
19:41 loungin_light joined #salt
19:41 bhosmer joined #salt
19:41 ckao joined #salt
19:41 notanumber joined #salt
19:43 notanumber Just rebuilt a Vagrant VM, provisioned with Salt, and now I can't seem to access sudo anymore.  It prompts for a password and I have no idea what it should be ("vagrant") doesn't work.  This is an existing setup that has worked for in the past without any issue.  Not sure why rebuilding the VM caused this.
19:44 carmony what vm provider are you using, VirtualBox?
19:45 notanumber VirtualBox.  Precise64
19:45 carmony did you do a vagrant destroy and then a vagrant up to rebuild it?
19:45 notanumber Yup.
19:45 defunctzombie is there a way to make a whole sls file depend on another one?
19:45 notanumber There was no issue until I did that, actually.
19:45 carmony defunctzombie: you can include it
19:46 defunctzombie carmony: sorry, I meant depend like in execution order?
19:46 defunctzombie like.. I want to run all the stuff in a "core" sls file
19:46 defunctzombie before I get into machine specific stuff
19:46 notanumber defunctzombie: Wouldn't that be `- require:`
19:47 carmony yeah, so they changed the ordering system in 0.17
19:47 loungin_light Does anyone know of a way to preserve file permissions of a directory using the file.recurse state?
19:47 defunctzombie notanumber: I don't want to have a runtime dep mess and add require to everything
19:47 defunctzombie carmony: link? or do you know in what way?
19:47 carmony defunctzombie: http://docs.saltstack.com/ref/states/ordering.html
19:47 pniederw which users can use the salt-master command? only the user under which salt-master is running?
19:48 defunctzombie carmony: ah ok.. so it seems that they are executed in order
19:48 pniederw plus the ones mentioned in client_acl?
19:48 carmony oh wow, it looks like you can do a sls in a require too
19:49 defunctzombie interesting
19:49 Katafalkas joined #salt
19:49 carmony so that a state can depend on everything in that sls file
19:49 carmony that is really neat
19:49 defunctzombie for the ordering, it seems that at my top level the '*' are applied after my machine specific ones which was giving me problems
19:50 carmony defunctzombie: I've noticed something similar
19:50 pniederw sorry, I mean who can use the `salt` command
19:50 carmony typically I always include my files
19:50 carmony to make sure
19:50 defunctzombie yea.. I guess will need to start doing that
19:50 carmony so all my sls files have an "include: \n - common"
19:51 defunctzombie but according to this: http://docs.saltstack.com/ref/states/top.html
19:51 defunctzombie I would expect otherwise
19:51 defunctzombie maybe I need to set that auto_order stuff to false
19:55 bemehow_ joined #salt
19:55 danielmcbawse left #salt
20:02 brimpa joined #salt
20:02 notanumber Rebuilt the VM with verbose on this time, and no errors are showing.  Google isn't being much help either.  I'm stumped.
20:04 brimpa joined #salt
20:05 defunctzombie yea.. I think there is a bug with ordering where '*' states are applied after
20:05 jergerbe_ joined #salt
20:06 UtahDave joined #salt
20:11 jacksontj joined #salt
20:11 ajw0100 joined #salt
20:11 patrek can anyone point me to an example of how to remplace multiple (different) lines in a file. I want (for example) to keep the package php.ini config file, but replace 2-3 lines that are not grouped together. Is there something more elegant than having multiple file.replace: name: /etc/php.ini stanza?
20:13 brimpa joined #salt
20:16 pentabular joined #salt
20:19 notanumber Also, don't seem to have an issue with sudo if I don't provision with Salt.  Don't want to switch though, as I'd need to rewrite all my states.
20:19 anuvrat joined #salt
20:21 UtahDave patrek: file.replace is probably your best bet if you're not going to templatize the file yourself
20:22 UtahDave notanumber: what issue are you having? I missed your earlier comments
20:22 patrek ok, thanks
20:22 notanumber UtahDave: Newly provisioned VM won't let me sudo.  Prompts for a password.
20:23 notanumber This is a Vagrant (Virtualbox) using a config I've used for months.  Previous VM had no issue.  Only happened after I destroyed and reloaded it.
20:26 Ahlee somebody had a trick to getting salt modules that just got re-sync'd with saltutil.sync_modules to be available, anybody know it?
20:26 Ahlee i just copied in my new _module/foo.py, saltutil.sync_modules it over to the host
20:26 troyready joined #salt
20:26 UtahDave Ahlee: and it's still not available?
20:26 Ahlee but it's still using the old version when I call foo.bar
20:27 Ahlee UtahDave: I coded in a version(), and it returns the old version even after syncing
20:27 taylorgumgum left #salt
20:27 aberant joined #salt
20:27 Ahlee oh crap.
20:27 Ahlee Looks like there's a problem with the pthon
20:27 Ahlee trying to strip NoneType, so it didn't update
20:27 UtahDave Ah, ok
20:28 UtahDave notanumber: do you have to put your public key on the vm?
20:29 carmony notanumber: what happens when you do a "vagrant destroy; vagrant up --no-provision" and you try to ssh?
20:30 carmony that way you can see if it is a vagrant issue
20:30 notanumber UtahDave: Yes.  It's copied over.
20:30 carmony because with a --no-provision it won't invoke salt at all
20:31 notanumber carmony: I removed the salt provision bit already and did that, sudo worked after that.
20:31 carmony k, do you have any salt states that deal with users?
20:31 carmony or ssh keys?
20:32 notanumber carmony: Yes.  One to copy the id_dsa.pub
20:32 carmony where do you copy it to?
20:32 notanumber carmony: Another to ensure the user is present
20:32 carmony is that user root?
20:33 notanumber carmony: http://dpaste.com/1436711/
20:33 snuffeluffegus joined #salt
20:33 carmony hmmmm I don't see why that would mess up with sudo
20:34 notanumber Yup.  Me neither.
20:34 notanumber Think that's my only user related bits.
20:34 pentabular joined #salt
20:34 carmony what happens if you comment out that users stuff
20:34 carmony and provision?
20:34 notanumber Should ale mention, this worked just fine for months, even destroy/reloading.  Only ran into the issue today.
20:35 carmony notanumber: one idea is you can have the salt provisioner install a different version of salt
20:35 carmony i.e. salt.install_type = 'git' and salt.install_args = 'v0.16.4'
20:36 carmony since 0.17.0 and 0.17.1 came out relatively recently
20:37 carmony and I believe salt-bootstrap will install the latest stable
20:38 notanumber Trying without the user...
20:41 notanumber Wat?  Removing the user state and it worked.
20:41 notanumber Of course, a ton of dependant states broke.
20:44 newellista joined #salt
20:44 btorch is this correct ? http://goo.gl/194ieN
20:44 btorch not sure if I can use those "{%" like that or not
20:48 carmony notanumber: if you ssh on the machine, what does salt-call --version say?
20:49 pentabular joined #salt
20:52 notanumber salt-call 0.17.1
20:57 bemehow joined #salt
20:57 dmwuw joined #salt
20:58 letterj left #salt
20:59 cewood joined #salt
21:00 jergerber joined #salt
21:01 jumperswitch joined #salt
21:01 morton joined #salt
21:01 bhosmer joined #salt
21:03 carmony notanumber: yeah, I'd try installed an older version of salt
21:03 carmony maybe a bug was introduced for you
21:03 carmony what is the username in your pillar file?
21:03 notanumber Trying to narrow down which state is causing the issue now.
21:04 notanumber Should be 'vagrant'
21:04 notanumber Can I list the "grains"?
21:05 carmony salt-call grains.items
21:05 carmony you can list pillar stuff too
21:06 m_george|away joined #salt
21:06 carmony and its the fact that you can sudo to root anymore, ssh still works?
21:08 carmony notanumber: I'd add to your user definition to manually state which groups they belong to to make sure they belong to admin and sudo
21:09 notanumber I have this.  Probably not very good(?) http://dpaste.com/1436739/
21:09 seanz whiteinge: Greetings!
21:10 seanz It's good to see you back online.
21:10 carmony well not in your pillar, but your user's state file
21:10 notanumber Why one but not the other?
21:11 carmony what I mean is to put something like this in your state file:
21:12 robawt happy halloween seanz
21:12 jdenning joined #salt
21:12 seanz robawt: Who are you?
21:12 carmony https://gist.github.com/JustinCarmony/e917d326140c2439fa8d
21:12 steveoliver getting "undefined jinja variable" error with this pillar and state code: http://paste2.org/hy9XZ8Ov   I feel like I'm messing up both the pillar list/dict (which is it?) and the state file trying to traverse the list of ssh_authorized_keys
21:12 robawt seanz: stranger danger!!
21:12 mapu joined #salt
21:12 seanz robawt: haha. Happy Halloween back towards yourself.
21:13 robawt seanz: i don't believe you at this point
21:13 notanumber Hmm.  I understood that something like what I have would belong in a pillar.
21:13 robawt nice try
21:13 * robawt highfives UtahDave
21:13 notanumber carmony: Yours has a 'groups: -sudo'  I don't have that...
21:13 notanumber Could that be the issue?
21:15 carmony notanumber: I'd give it a try
21:22 notanumber Nope.  That didn't work.
21:22 notanumber Back to removing and re-adding each state one at a time.
21:23 foxx joined #salt
21:24 steveoliver re: my previous post: Is line 16 in http://paste2.org/hy9XZ8Ov the right way to access data for the root user on line 5 ?
21:25 steveoliver …i tried a bunch of other variations on the pillar data, using and not using dashes…  and tried .items(), iteritems(), etc., in addition to the syntax seen currently in that paste
21:30 pears steveoliver: your ssh_authorized_keys pillar is a lists of lists
21:30 notanumber Wait, Vagrant has a built-in provisioner for Salt now?  Hmm.  I don't see it documented in the docs though...
21:30 pears you probably want a list of dicts
21:30 steveoliver pears, ok — that is determined by the dashes?
21:30 pears take out the - before enc and key
21:30 pears yes
21:31 steveoliver leave the dash on it's own line for each list item under ssh_authorized_keys ?
21:33 linuxnewbie joined #salt
21:33 linuxnewbie joined #salt
21:35 steveoliver pears: still getting undefined vars… :/
21:37 pears is there more to that init.sls file?  where is the "user" variable coming from?
21:40 steveoliver the user is working...
21:40 steveoliver and the username is working, too...
21:40 steveoliver both defined in top level loop
21:41 steveoliver already working with other properties...
21:41 steveoliver when i try to introduct the ssh_authorized_keys, I'm getting error(s)
21:41 steveoliver http://paste2.org/J5eesA62
21:41 steveoliver that's where i'm at currently
21:41 steveoliver Those 'undefined jinja variable'  errors are rarely helpful
21:41 pears what is line 372?
21:42 whiteinge seanz: thanks! good to be back
21:42 steveoliver line numbers never line up...
21:42 steveoliver pears: i don't have any file that has a line 372, I don't think...
21:42 steveoliver every time i see that error, even generated by other issues, it always points to those same line numbers… strange
21:43 steveoliver "for key in user.ssh_authorized_keys" works...
21:44 ajw0100 joined #salt
21:45 alunduil joined #salt
21:46 pears nothing jumps out at me from what you have there
21:47 steveoliver k, i'll keep digging
21:47 steveoliver thanks
21:50 jacksontj joined #salt
21:55 kermit joined #salt
22:03 cjh973 salt: are there any builds for raring out yet?
22:03 cjh973 i only see quantal
22:04 jmlowe cjh973: I second that, I'd like some raring and saucy builds
22:04 cjh973 jmlowe: :)
22:06 bhosmer joined #salt
22:08 pdayton joined #salt
22:10 aboe joined #salt
22:10 troyready joined #salt
22:13 newellista joined #salt
22:13 aserdp joined #salt
22:13 seanz whiteinge: Hey, may I ask you about your experience with git-svn? I wanted to see if you remember some of the quirks you may have encountered when you used it.
22:13 seanz For example: git svn clone seems to make @<rev> versions of each branch in addition to the branch name.
22:13 seanz Do you recall that?
22:18 josephholsten joined #salt
22:21 oleksiy joined #salt
22:21 forrest joined #salt
22:29 cbloss joined #salt
22:31 linuxnewbie joined #salt
22:31 linuxnewbie joined #salt
22:32 cbloss joined #salt
22:33 cbloss joined #salt
22:33 joehh cjh973, jmlowe: I prepared one overnight, launchpad should have built it by now, i'll check its status and let your know
22:33 joehh you know
22:34 joehh I've just requested they copy across to the saltstack ppa, should be there shortly
22:34 oleksiy_ joined #salt
22:36 oleksiy_ joined #salt
22:36 jmlowe nothing says saucy here: http://ppa.launchpad.net/saltstack/salt/ubuntu/pool/main/s/salt/
22:37 jmlowe there is a repo for saucy http://ppa.launchpad.net/saltstack/salt/ubuntu/dists/
22:37 jmlowe just no packages
22:39 abe_music UtahDave: any idea when the state.sls docs/examples will be up or know where there are some examples? i went ahead and implemented the overstate for orchestration in stackdio, but would like to see how the state.sls differs
22:39 joehh we haven't caught up to saucy yet
22:39 oleksiy_ left #salt
22:40 joehh I'll see how I go building for it, but may not get to it till 0.17.2 (I believe due shortly)
22:40 UtahDave abe_music: I'm not sure.  We have a lot of our staff traveling through next week. I'll see if I can get Tom to put something together.
22:40 oleksiy_ joined #salt
22:40 ajw0100 Anyone running salt as non-root user? I have edited both the master and minion configs to contain "user: vagrant". The master starts fine and runs as vagrant however the minion still seems to be running as root and causes one of the master processes to be <defunct>. Also, salt '*' test.ping does not return anything. https://gist.github.com/ajw0100/7258331
22:41 abe_music UtahDave: no rush, just wondering if i was missing it or if you knew someone that had already been playing with it and had something online
22:41 ajw0100 vagrant user is a sudoer too
22:42 cbloss joined #salt
22:42 forrest abe_music, sorry I just logged back in a bit ago. Are you talking about the basic usage of state.sls from the command line?
22:43 UtahDave forrest: no, the state.sls runner
22:43 abe_music forrest: i've seen this: http://docs.saltstack.com/ref/runners/all/salt.runners.state.html#salt.runners.state.sls
22:43 cbloss joined #salt
22:43 abe_music forrest: oh i misread the question i think :)
22:44 forrest ahh ok
22:49 joejack joined #salt
22:50 jumperswitch_ joined #salt
22:50 joejack is keeping a key log on a salt minion a good idea?  just wondering if that is only meant for the salt master?
22:51 anthrope joined #salt
22:51 anthrope Hey!  I'm trying to manage the supervisor daemon with salt.  I've got the package installed, and I'm trying to get service: running to work.  The service watches a couple of files and tries to restart the daemon when they change.
22:52 anthrope Unfortunately, the init script that comes with my supervisor package is terrible.
22:52 anthrope And restart doesn't really work.
22:52 anthrope Is there a way to specify "use this command to restart instead"?
22:52 forrest can you just stop then start the service?
22:52 anthrope (specifically, stop and then start)
22:52 anthrope Can I?
22:52 forrest are we talking for the salt master?
22:52 forrest or ofr supervisor?
22:53 forrest *for
22:53 anthrope Sorry, on a minion
22:53 anthrope I've got a supervisor state that I'm writing.
22:53 anthrope To manage the main supervisor daemon.
22:53 jumperswitch joined #salt
22:53 forrest and you can't reload the service I assume?
22:53 anthrope Well, here's what I've got:
22:54 anthrope 8 supervisor_service:
22:54 anthrope 9   service.running:
22:54 anthrope 10     - name: supervisor
22:54 anthrope 11     - enable: True
22:54 anthrope 12     - watch:
22:54 anthrope 13       - file: /etc/supervisor/conf.d/*
22:54 anthrope 14     - require:
22:54 anthrope 15       - pkg: supervisor_apt
22:54 anthrope Gross, I'm sorry.
22:54 forrest right, but can you reliad the supervisor service?
22:55 forrest *reload
22:55 forrest can't type today apparently
22:55 anthrope When /etc/supervisor/conf.d/* changes, it triggers "service supervisor restart"
22:55 forrest yea that's only the default setting though
22:55 anthrope Nay.
22:55 anthrope I can't reload.
22:55 forrest if you use - reload: True, then it reloads instead of restarting
22:55 forrest lame
22:55 anthrope It's a horrible init script.
22:55 anthrope And I don't have time to rewrite it.
22:55 forrest yea you should fix it :P
22:56 forrest if you don't have time to do that..
22:56 forrest ok so how about this
22:56 forrest trash the watch
22:57 forrest and instead, modify the actual file entry for /etc/supervisor/conf.d/* with a watch_in, then a cmd run to stop then start the service?
22:57 mannyt joined #salt
22:57 forrest it's lame
22:57 forrest but it should work
22:57 anthrope Isn't that still going to trigger a restart?
22:57 forrest no
22:57 forrest because the watch_in on the file itself (when it changes), triggers the cmd statement
22:58 forrest which stops and starts the service, I mean a literal 'service supervisor stop; service supervisor start'
22:58 anthrope Why are those different?
22:58 forrest because you said that only the service supervisor restart doesn't work
22:58 forrest stop and start work fine right?
22:59 anthrope Oh, they do.
23:00 anthrope But why are they implemented differently?
23:00 forrest in supervisor? I don't know
23:00 joehh cjh973, jmlowe: looks like copy has occurred and packages are there for raring
23:01 cjh973 woot!
23:01 cjh973 i'll let you know how it goes a 5pm pst when my salt minion runs again
23:03 forrest anthrope, as far as I know there isn't a built in way with service to force a full on stop, then a start.
23:04 forrest Might be worth filing an issue to see if that could be added as an option, though really the restart should just work :\
23:04 forrest for supervisor itself.
23:05 pdayton joined #salt
23:08 josephholsten joined #salt
23:08 joehh cjh973: test first - I've just had a report the version reported by the minion is not right - don't see how this could be the case, but checking now
23:10 cjh973 interesting
23:10 cjh973 i don't always test but when i do it's usually in prod ;)
23:11 ctdawe joined #salt
23:11 seba joined #salt
23:14 jslatts joined #salt
23:15 pentabular joined #salt
23:15 mpanetta joined #salt
23:17 joehh cjh973: I haven't reproduced the problem, checking with person who reported it
23:18 mpanetta joined #salt
23:20 joehh cjh973: looks fine, issue was salt --versions-report returns the salt release rather than the package version
23:20 joehh expected behaviour
23:21 wibberwock joined #salt
23:28 Corey UtahDave!
23:29 UtahDave hey, man!
23:29 UtahDave you just caught me.
23:29 Gareth UtahDave: run away...run away.
23:29 Corey I figured! Apparently there's been a packaging bug for Salt for a bit now around thin.py and nobody told me. New packages building as we speak.
23:29 Corey Also, new laptop arrived. Time to figure out what you broke in 0.17.x with Mavericks.
23:30 UtahDave I'm heading to hong kong on Saturday for the openstack summit,  Just double-checked all my reservations and my travel agent has me in a hotel on the other side of Hong Kong from the event center.
23:30 Corey UtahDave: Also: Ansible got accepted into Mac Homebrew due to a policy change in the latter. Guess what my next plan is?
23:30 UtahDave :) nice!
23:30 Corey BUt first we have to get it to... y'know... build.
23:30 UtahDave gotcha
23:31 Corey UtahDave: Only Richard Nixon can go to China. But I suppose you can go to Hong Kong.
23:31 UtahDave :)
23:31 elfixit joined #salt
23:31 UtahDave did you get the fully maxed out macbook pro?
23:32 Corey UtahDave: Of course I did. But the 13" form factor for travel related reasons.
23:32 Corey I want to see what grains has to say about it, but I need that... y'know... working, first.
23:32 UtahDave ah, that's what whiteinge got
23:32 Corey Good lad!
23:32 Corey Yeah, you can't upgrade these things later, full stop there. So 1TB and 16GB was the only really "sane" approach, if you're planning on keeping it for more than a year.
23:33 UtahDave I keep considering getting a smaller laptop, but I just love having a large screen when I'm actually working.
23:33 Corey UtahDave: External display and dock it, best of all worlds. That's how I survived an 11" MBA.
23:34 sfz joined #salt
23:34 UtahDave yeah
23:34 __number5__ 11" is too small for me, I need at least 13"
23:34 Corey 15" just feels like a cafeteria tray, particularly in close quarters.
23:34 Corey This 13 feels huge after that Air. :-)
23:35 Corey That was a long three years!
23:35 __number5__ I feel awkward typing in 11"'s keyboard, even my hands is not that big
23:35 Corey I got used to it, or so I thoguht.
23:35 Corey thought*
23:35 cbloss joined #salt
23:35 cjh973 joehh: ok cool
23:36 Corey But today I'm just typing a LOT faster and more accurately. Typo above was due to crappy latency here at Starbucks.
23:36 Corey So yeah, this was a good upgrade. :-)
23:36 cbloss joined #salt
23:36 Corey Running setup.py egg_info for package Jinja2 throws warnings but not errors.
23:36 Corey Let's see.
23:38 rgbkrk joined #salt
23:38 terminalmage Hey guys, I found a critical bug in the yum provider for RHEL/CentOS 6. It's actually a bug in the yum python API
23:38 terminalmage It's fixed now, pending pull request
23:38 terminalmage https://github.com/saltstack/salt/issues/8201
23:39 Corey UtahDave: Works. Okay, wtf changed? :-)
23:39 terminalmage just, in the meantime, do not try using salt to remove packages that yum and rpm depend on
23:39 Corey mem_total: 16384
23:39 ajw0100 joined #salt
23:39 terminalmage because bad things will happen
23:39 Corey Yum eats itself? :-)
23:44 terminalmage yep, pretty much
23:44 terminalmage Corey: you'll love how I discovered this, too
23:46 terminalmage I was copying a salt command from one tmux instance to another and there was a line-break, I was going to use it to remove python-netaddr
23:46 terminalmage and the line break appeared right after "python"
23:46 terminalmage so it removed python and about 100 other packages
23:46 terminalmage including yum and rpm
23:47 josephholsten joined #salt
23:47 joehh Corey: awesome - I'd figured my way out round launchpad do to the raring build and was looking to tackle that one later this week
23:49 terminalmage Corey: that VM is no longer with us
23:49 terminalmage :)
23:53 rgbkrk joined #salt
23:54 flebel joined #salt
23:54 mufa joined #salt
23:54 wibberwock in a top file, does the search for sls files stop at the first glob match, or does it execute everything it matches?
23:55 mufa hi, just a short question, using salt-cloud is it possible to deploy a Rackspace server with private networks?

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