Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-06-15

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

All times shown according to UTC.

Time Nick Message
00:06 logix812 Ok, a better question might be this, looks like pillar data is available in templates.
00:07 logix812 given this data: http://dpaste.com/1240184/
00:07 logix812 I'm trying to figure out why I don't get the expected output with ServerAdmin and ServerName
00:22 logix812 Hmmm, it only looks like an issue when I use pillar.get
00:22 logix812 if I do the [] access, I get my values
00:23 logix812 I just don't get defaults
00:26 logix812 ah.. if I go though salt['pillar.get'] it works
00:27 logix812 just not {{ pillar.get
00:32 [diecast] that doesn't seem properly designed
00:49 DanGarthwaite joined #salt
00:49 DanGarthwaite left #salt
00:53 danielbachhuber- joined #salt
01:03 cron0 joined #salt
01:13 mgw joined #salt
01:19 sgviking joined #salt
01:56 kmwhite joined #salt
01:59 guest1234 joined #salt
01:59 bemehow joined #salt
02:15 mgw joined #salt
02:17 DanGarthwaite joined #salt
02:22 raydeo joined #salt
02:32 maspwr joined #salt
02:58 Nexpro joined #salt
03:00 akoumjian Hey, this is awesome! http://lincolnloop.com/blog/2013/jun/14/introducing-salmon/
03:14 fragamus joined #salt
03:16 jeddi joined #salt
03:27 maspwr joined #salt
03:30 fragamus my dream is a script I can run on a laptop and it will set up a bunch of machines in the cloud, one of them being master and the rest minions. Has anyone done this?
03:39 sgviking joined #salt
03:40 Furao fragamus: salt-cloud + salt
03:41 fragamus is salt-cloud a gem?
03:41 Furao no
03:41 Furao all salt related components are in python
03:42 Furao no gem, no problem :P
03:47 [vaelen] joined #salt
03:51 Viaken_ joined #salt
03:51 [vaelen] joined #salt
04:35 efixit joined #salt
04:36 jalbretsen joined #salt
04:57 joshe joined #salt
04:59 KyleG joined #salt
05:05 tanglisha joined #salt
05:06 tanglisha I'm having a heck of a time setting up a git.latest with an ssh identity.
05:06 tanglisha Can anyone help me?
05:27 dthom91 joined #salt
05:29 joehh there are potentially lots of bits to that, what exactly are you trying to do?
05:30 tanglisha joehh:  I am trying to checkout from a remote repo that I access using an ssh key
05:31 tanglisha It keeps giving me an error that it can't find the key, doesn't seem to matter where I put it on my filesystem
05:31 joehh are you trying to run ssh-keygen on the minion through salt or using a pre generated key?
05:31 tanglisha I'm trying to use a key that I've created on the master
05:32 tanglisha I have it in salt://id_rsa
05:32 joehh and are using file.managed to put it somewhere on the minion?
05:32 tanglisha No, I didn't do that
05:32 tanglisha I thought it was looking on master
05:33 tanglisha I have git.latest > -identity: salt://id_rsa
05:33 tanglisha Is it looking on the minion for that?
05:34 joehh I'm just checking the docs, but I would use file.managed to get that on the minion and then use that file
05:35 tanglisha Thank you.  I couldn't tell from the docs I looked at
05:35 joehh no worries - has that worked?
05:35 tanglisha Trying now
05:38 kmwhite joined #salt
05:38 tanglisha joehh:  That totally worked!!!
05:38 tanglisha joehh:  Thank you so much, I've been beating at this for like 5 hours
05:39 Ryan_Lane joined #salt
05:39 joehh ~.
05:40 joehh no worries
05:40 tanglisha That's not too bad considering I only started on salt on Wed
05:40 tanglisha It's otherwise been really easy to pick up
05:40 joehh yeah - its a pretty quick learning curve
05:40 joehh For me the hardest part was learning what happened on the master and what on the minion
05:40 tanglisha One of the devs is trying to get me to switch to ansible, and I just don't get why
05:40 tanglisha Yes, that's confusing
05:41 tanglisha I used cfengine before, it took me weeks to make it do ANYTHING
05:41 joehh Once I learned that most the intersting stuff happens on the minions, it was much simpler
05:41 tanglisha :)
05:41 tanglisha This is just the first time I've run into a file expectation on the minion
05:41 tanglisha I'll keep an eye out for that moving forward
05:42 kmwhite left #salt
05:50 raydeo joined #salt
06:01 fragamus joined #salt
06:55 yaroot joined #salt
06:57 koolhead17 joined #salt
07:06 milind joined #salt
07:25 Ryan_Lane joined #salt
07:27 faust joined #salt
07:35 a1j joined #salt
07:50 ronc joined #salt
07:53 linjan_ joined #salt
08:04 Boshomi joined #salt
08:15 y0j joined #salt
08:18 Boshomi left #salt
08:23 VHifjdd joined #salt
08:27 CRAYfish joined #salt
08:40 __gotcha joined #salt
08:40 __gotcha joined #salt
08:58 __gotcha joined #salt
08:58 __gotcha joined #salt
09:10 orion joined #salt
09:10 __gotcha joined #salt
09:10 __gotcha joined #salt
09:16 SpX joined #salt
09:43 JordanRinke Morning.
09:45 EugeneKay Am I a silly person for naming my Salt master machine 'slug' ?
09:46 JordanRinke No, but if it ever fails/goes down you are just going to have to accept that as fate.
09:57 zooz joined #salt
10:06 aranhoide joined #salt
10:37 fam joined #salt
10:46 ronc joined #salt
11:21 milind joined #salt
11:26 jslatts joined #salt
11:53 faust joined #salt
11:54 __gotcha joined #salt
11:54 __gotcha joined #salt
11:56 sgviking joined #salt
12:00 maspwr joined #salt
12:00 mikedawson joined #salt
12:05 z3uS joined #salt
12:09 timl0101 joined #salt
12:42 felixhummel joined #salt
12:55 sgviking joined #salt
13:03 jslatts joined #salt
14:18 kmwhite joined #salt
14:30 zooz joined #salt
14:41 clintberry joined #salt
14:47 kho joined #salt
14:48 aat joined #salt
14:51 kmwhite left #salt
15:13 aat joined #salt
15:28 clintberry joined #salt
15:34 __gotcha joined #salt
15:43 faust joined #salt
15:46 freelock_ joined #salt
16:01 mgw joined #salt
16:15 EugeneKay When running a state module, how should I specify that a daemon should be restarted if a file.managed has been changed?
16:16 nliadm use a watch
16:18 EugeneKay http://docs.saltstack.com/ref/states/all/salt.states.service.html#salt.states.service.mod_watch ?
16:18 nliadm yup
16:19 nliadm but file: instead of pkg:
16:24 EugeneKay That works. Docs on it aren't too clear.
16:38 Furao joined #salt
16:55 pentabular joined #salt
16:57 ronc joined #salt
17:03 koolhead17 joined #salt
17:03 koolhead17 joined #salt
17:29 up_the_irons joined #salt
17:31 [ilin] joined #salt
17:32 sarkis joined #salt
17:39 bhosmer_ joined #salt
17:44 logix812 joined #salt
17:45 logix812 Is there a config option I'm missing to have a minion run high state on connect? I thought I saw one in the docs, but I can't find it for the life of me
17:47 efixit joined #salt
17:52 quantalrabbit joined #salt
17:52 mgw joined #salt
17:54 quantalrabbit If I'm using salt without a master, then is it okay to not specify a host entry for 'salt' in /etc/hosts or is it better to maybe point it to localhost (127.0.0.1)?
18:04 milind joined #salt
18:06 sarkis joined #salt
18:09 ange joined #salt
18:10 ange hi
18:10 ange iMil, hotbox  : \o/
18:25 Nexpro1 joined #salt
18:42 terminalmage joined #salt
18:43 azbarcea joined #salt
18:44 clintberry joined #salt
19:01 stevetodd joined #salt
19:02 jacksontj joined #salt
19:07 felixhummel joined #salt
19:13 kmwhite joined #salt
19:27 pcarrier_ joined #salt
19:38 kmwhite joined #salt
19:42 milind joined #salt
20:06 LarsN anyone around who both knows their way around salt-cloud & the HP public cloud?
20:10 bja joined #salt
20:13 Ryan_Lane joined #salt
20:14 clintberry joined #salt
20:19 sarkis joined #salt
20:52 dthom91 joined #salt
21:03 pcarrier_ joined #salt
21:15 sarkis joined #salt
21:15 sarkis left #salt
21:17 crashmag joined #salt
21:20 orion left #salt
21:22 pentabular joined #salt
21:33 danieljn joined #salt
21:37 danieljn joined #salt
21:41 LarsN When I spin up an instance in HP Cloud using Salt-Cloud it looks like salt-cloud is properly receiving both the public and private IP address from the API, and then maybe is querying the instance to verify the addresses
21:41 LarsN except in HP Cloud the instance doesn't have a public address, so after several minutes of querying, it eventually errors out and destroys the VM.
21:41 LarsN are there any flags I can issue to work around this?
21:55 the_drow joined #salt
21:56 the_drow Hi, I'm using salt on a vagrant machine and it seems that it is stuck on the highstate. It also freezes my terminal.
22:04 jacksontj joined #salt
22:11 Corey the_drow: Interesting, if you crank up verbosity / throw it into debug mode, where's it'g ettting stuck?
22:12 Corey the_drow: Also, which version / OS are you doing this upon?
22:12 the_drow Corey: My host is Ubuntu 13.04. I'm using the official 12.04 box.
22:13 [vaelen] joined #salt
22:14 kermit joined #salt
22:16 pnl joined #salt
22:17 the_drow Corey: I don't see an option to run salty-vagrant on debug/verbose mode
22:17 the_drow Corey: the verbosity is only for the bootstrap script
22:18 the_drow Corey: I set the verbosity to true and maybe I'll see something
22:20 the_drow Corey: It's currently printing the bootstrap script.
22:21 the_drow Corey: Do you know  a way to run salty vagrant in debug mode?
22:22 LarsN http://pastebin.com/r3yRmKc3
22:22 akoumjian the_drow: YOu already have verbose set to true in your Vagrantfile?
22:22 the_drow akoumjian: yes.
22:23 akoumjian the_drow: And it's getting stuck on state.highstate?
22:23 LarsN that pastebin shows the problems I'm having with salt-cloud.
22:23 the_drow akoumjian: yup
22:23 akoumjian the_drow: You should be seeing the state.highstate output, are you not?
22:23 the_drow akoumjian: nada
22:23 akoumjian What happens when you run state.highstate from inside the guest manually?
22:23 the_drow and I have shared the salt/roots/ folder and I do have the top.sls file
22:24 the_drow akoumjian: I never tried. Hold on.
22:24 akoumjian All it's doing is running "salt-call state.highstate -l debug"
22:26 the_drow akoumjian: http://pastebin.com/kG46ZmcU It's stuck forever here. I do have salt & salt master installed but I am not using them currently. The box should be mas
22:27 the_drow * masterless by default no/
22:27 akoumjian Yeah, try salt-call --local state.highstate -l debug
22:29 the_drow akoumjian: works but data fails to compile.
22:29 [vaelen] joined #salt
22:31 the_drow akoumjian: so how exactly do I make salty-vagrant run only locally?
22:31 akoumjian the_drow: Just specify it in your minion config file. file_client: local
22:32 the_drow salt.file_client :local?
22:34 the_drow akoumjian: still stuck
22:34 the_drow akoumjian: http://pastebin.com/L7gF0JMx this is the vagrant file
22:35 akoumjian No, specify a minion config file first. salt.minion_config = "path/to/minion", in side that file you need to specify file_client: local
22:35 akoumjian Take a look here https://github.com/saltstack/salty-vagrant/tree/develop/example/masterless
22:37 akoumjian the_drow: The plugin should be showing you exaclty what you see when you run it manually
22:37 Saipngor joined #salt
22:38 aat joined #salt
22:39 the_drow akoumjian: retrying...
22:40 the_drow akoumjian: woot. everything is correctly broken.
22:40 akoumjian the_drow: Awesome. Let the debugging begin :-)
22:44 zz___number5__ joined #salt
22:45 the_drow akoumjian: how do I install multiple packages?
22:46 akoumjian the_drow: Using salt?
22:46 the_drow akoumjian: yup
22:46 akoumjian the_drow: Do you already have some sls files setup?
22:46 the_drow http://pastebin.com/q8sEy2jB
22:47 the_drow akoumjian: the problem is at - names:
22:47 akoumjian the_drow: You are missing a ':' after installed
22:47 akoumjian the_drow: And it should be "pkg" not "pkgs"
22:48 akoumjian Better to use "pkg.installed"
22:48 akoumjian "pkg.installed:" *
22:48 the_drow akoumjian: ok works :)
22:48 akoumjian And instead of names, use the pkg state specific "pkgs:" option
22:48 akoumjian It will save time
22:49 the_drow akoumjian: example?
22:49 akoumjian See example here: http://docs.saltstack.com/ref/states/all/salt.states.pkg.html#salt.states.pkg.installed
22:49 akoumjian skip down to the pkgs section
22:50 the_drow akoumjian: got it
22:53 the_drow akoumjian: How do I install one package from the ubuntu sources and the rest from a PPA?
22:53 akoumjian the_drow: You should take a moment to browse over the list of state modules http://docs.saltstack.com/ref/states/all/index.html
22:54 akoumjian the_drow: There is a pkgrepo state module which has a nice shortcut to add a ppa to your sources http://docs.saltstack.com/ref/states/all/salt.states.pkgrepo.html#module-salt.states.pkgrepo
22:55 akoumjian the_drow: And when in doubt, if there isn't a state module for it, it's always best to figure out how you would do it manually, and then see how salt can automate that process.
22:55 akoumjian the_drow: In the worst case you will just use a cmd.run
22:55 quantalrabbit I have a question... regarding grains, what do most people use to differentiate between different systems?  I see that the grains for 'host', 'id', and 'nodename' all differ and I'm not sure which one is best to go by and how these grains are determined from the system.
22:55 the_drow akoumjian: from my experience with puppet you end up doing that too much :)
22:56 LarsN Is there any flag I can issue to Salt Cloud, or write into the config that will tell it to warn about the IP addresses, but NOT actually error and give up?
22:56 akoumjian the_drow: Well, it's pretty easy to write a state module as well. Under the hood its always going to be imperitive anyway
22:57 pcarrier_ joined #salt
22:59 the_drow akoumjian: when writing a module in puppet it's not really imperative.
23:01 akoumjian They can be. You can just write a ruby script
23:02 Corey LarsN: Hmm, good question. Not sure offhand. To the man pages we go!
23:03 LarsN I didn't see anything that looked terribly promising :(
23:04 LarsN http://pastebin.com/r3yRmKc3  <---- last 11 or so lines of output
23:04 LarsN the first group of those repeat every few seconds for 10 minutes before it bails out and kills the VM.
23:06 Corey LarsN: You spinning these up in a VPC?
23:06 the_drow "Failed to confirm config of repo http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu: too many values to unpack"
23:06 LarsN Corey: spinning up the instance in HP Cloud
23:06 LarsN Corey: I see the instance in the cloud management console, and can even connect to it.
23:06 Corey LarsN: Ahhh, my only exposure thus far has been via AWS. :-)
23:07 Corey Unfortunately that means I'm kinda-sorta useless to you.
23:07 LarsN the killer is, instances in our cloud don't get public addresses assigned directly to them.
23:07 the_drow http://pastebin.com/EG3QR4eE - What's wrong here?
23:07 Corey LarsN: Sounds like a bug report then?
23:08 LarsN it "looks" like salt-cloud gets the two IP addresses from the API, and then queries the VM via perhaps grains.ipv4
23:08 the_drow akoumjian: care to help again?
23:08 LarsN although I'm not sure if that's what's happening at all or not.
23:08 akoumjian the_drow: if I can!
23:09 Corey the_drow: Oh hey, I was just playing with that!
23:09 Corey the_drow: What're you erroring on?
23:09 Corey akoumjian: Sorry, not trying to step on your toes. You want first crack at it? :-)
23:10 the_drow Corey akoumjian it says "Failed to confirm config of repo http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu: too many values to unpack" http://pastebin.com/EG3QR4eE I'm just trying to add a repo
23:10 Corey the_drow: Yeah, your key URL is wrong for one.
23:10 akoumjian Corey: Be my guest. :-)
23:10 pentabular joined #salt
23:10 the_drow Corey: what's the right one?
23:10 Corey the_drow: And ppa: fkrull/deadsnakes/ <-- drop the trailing slash
23:11 akoumjian the_drow: Here is the bare minimum you should need for a vanilla ppa https://gist.github.com/akoumjian/5789949
23:11 quantalrabbit do pillar data get substituted in managed files?
23:11 Corey the_drow: akoumjian is correct. I'd forgotten that-- ppa syntax handles the key exchange for you.
23:12 Corey But that trailing slash isn't doing you any favors. :-)
23:12 akoumjian Just wrote that up the other day. Was not clear first time I read the docs you don't need al those extra options for a ppa. Only if it's a custom apt server
23:12 the_drow akoumjian: Can I just invent my own *.list name?
23:12 akoumjian the_drow: yes
23:12 Corey akoumjian: Yeah, I ran into some "fun" with a custom yum repo.
23:13 akoumjian Corey: I bet
23:13 akoumjian the_drow: It just needs to live in /etc/apt/sources.d/
23:13 Corey Historically my configs predate the pkgrepo module, I was doing it all by hand. :-) Drop the file in there, add-key, etc.
23:14 the_drow akoumjian: woot. I caused salt to raise an exception
23:14 akoumjian Corey: Yeah, I still have one or two that work that way
23:14 Corey the_drow: Yay, do tell which? :-)
23:14 danieljn joined #salt
23:14 the_drow Corey: http://pastebin.com/1NBhQTbV
23:15 the_drow Corey: KeyError
23:15 Corey Uhhh.... that's adorable. :-)
23:15 Corey Okay, so ppa isn't handling the keyserver maybe? One sec, will check the codebase.
23:15 the_drow What did I do wrong?
23:15 jrgifford joined #salt
23:15 the_drow Corey: but it's for pkgs not pkgrepo
23:16 akoumjian the_drow: Why are you specifying python2.6?
23:16 Corey the_drow: On the box itself, can you apt-get install a package from that repo by hand (then immediately remove it)?
23:16 Corey If you get a gpg key error, we found the problem.
23:17 akoumjian the_drow: Also, if you have packages that are being installed at the same time, pkgs will only give you a performance speed if you list them under the same state
23:18 the_drow akoumjian Corey I can't install python2.5 so something is wrong with the repo
23:18 akoumjian the_drow: Also, you cannot have two instances of the same state type with the same state name. ie: you have two pkg.latest states under the name "python"
23:18 Corey the_drow: What error do you get?
23:19 the_drow Package python2.5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'python2.5' has no installation candidate
23:21 the_drow Corey: so what could be wrong?
23:23 the_drow Corey akoumjian here's the latest file: http://pastebin.com/dv2EqR2d
23:24 akoumjian the_drow: It means there is no 2.5 build available. You might want to make extra sure your deadsnakes repo is installed before it tries installing those packages
23:25 the_drow akoumjian: it is available by the PPA. Salt says it's managed...
23:26 akoumjian the_drow: Sure, but the order is important. Might be good to have a require statement. https://gist.github.com/akoumjian/5790006
23:27 danieljn joined #salt
23:27 the_drow akoumjian: it shouldn't throw an exception anyway :)
23:27 the_drow akoumjian: and nope. same result.
23:29 akoumjian the_drow: Can you search apt for python2.5? If there's no install candidate that means it's either 1) not in the repo 2) you are looking for it by the wrong name
23:29 danieljn joined #salt
23:31 the_drow akoumjian: It doesn't find it.
23:31 the_drow akoumjian: and you can check it's there https://launchpad.net/~fkrull/+archive/deadsnakes
23:32 akoumjian the_drow: Then the ppa is not installed and/or apt is not updated
23:32 the_drow akoumjian: why not?
23:32 akoumjian the_drow: I don't know.
23:33 danieljn joined #salt
23:33 freelock_ strange. Getting a Specified SLS ... in environment base is not available on the salt master
23:33 freelock_ when running salt from the master
23:33 freelock_ works fine running salt-call from the minion
23:34 freelock_ the SLS it's indicating is in a pillar, and loaded by the pillar top.sls
23:34 freelock_ it shows up in pillar.data just fine, it just gets that message when I try to apply a state on that host from the master
23:35 the_drow akoumjian: :(
23:35 the_drow Corey: any ideas?
23:36 danieljn joined #salt
23:37 adotbrown joined #salt
23:39 danieljn joined #salt
23:42 the_drow akoumjian Corey It certainly exists in the PPA. If I remove pgks.latest there is no exception
23:43 danieljn joined #salt
23:44 aat joined #salt
23:48 akoumjian the_drow: The first step in debugging salt is to first perform the actions manually, then test how to get salt to do it. So I would say on a fresh vm, add the ppa, apt-get update, and try installing the package.
23:49 akoumjian if that doesn't work, then salt is certainly going to have a hard time doing it
23:52 Corey akoumjian: As a next step, I would see if Salt is properly installing the PPA. If that's working correctly, is the key being added? If so, check the package itself.
23:55 Corey Er, the_drow ^
23:57 the_drow Corey: If I provision the PPA I can't find python2.5 for example
23:57 Corey the_drow: Then it sounds like a PPA issue?
23:57 Corey Alternately, apt-get update and see if you still cant find it?
23:57 the_drow Corey: checking now...
23:58 the_drow Should I create an issue about this anyway?
23:58 Corey the_drow: Not until you can isolate the fault into a repeatable case. :-)
23:58 zz___number5__ joined #salt
23:59 the_drow Corey: kk
23:59 Corey the_drow: Have you pastebinned your current states?
23:59 the_drow not yet
23:59 Corey I'll attempt to apply on a scratch VM  here if so.
23:59 the_drow just a second

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