Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-07-28

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

All times shown according to UTC.

Time Nick Message
00:00 auser joined #salt
00:01 auser hey hey
00:01 JasonSwindle auser:  Howdy
00:01 auser how goes everyone?
00:02 JasonSwindle Go go, added this in today into the docs https://github.com/saltstack/salt/blob/develop/doc/topics/targeting/grains.rst#grains-in-top-file
00:03 JasonSwindle *good good
00:03 JasonSwindle typo, derp
00:06 auser nice!
00:07 auser jinja in the topfile == rad
00:07 JasonSwindle Yep
00:07 JasonSwindle That blew my mind when I got it working
00:07 JasonSwindle It took my top from a huge messy to that single thing
00:09 Corey [WARNING ] Key acceptance_wait_time_max with value None has an invalid type of <type 'NoneType'>, a <type 'float'> is required for this value
00:09 Corey That's still firing on my machine as I itemize grains. Why?
00:11 TOoSmOotH joined #salt
00:19 terminalmage hrm
00:20 terminalmage my guess is that the problem is in minion.py
00:20 Corey I'm about to head out, wife and I have dinner plans.
00:20 terminalmage Corey: have fun, tell her hi from my wife and I
00:21 Corey terminalmage: I shall.
00:26 terminalmage Corey: fwiw I have found the problem to which you were referencing
00:26 terminalmage and am fixing it
00:26 ponderability joined #salt
00:27 scotticus joined #salt
00:28 krissaxton1 joined #salt
00:29 Corey terminalmage: Thanks!
00:29 Corey terminalmage: Let me know when to test.
00:29 terminalmage yeah I'll open an issue before I submit a pull and tag you
00:30 terminalmage quick question, what command did you use to trigger this?
00:30 TOoSmOotH joined #salt
00:30 Corey sudo salt-call --local grains.items
00:30 terminalmage cool
00:30 Corey terminalmage: But you'll note that on Develop it does *NOT* whine about dmidecode anymore.
00:30 terminalmage this is a recent addition, or recently modified that is
00:30 terminalmage yeah
00:30 terminalmage :)
00:31 Corey And if you have a Mac, it populates a lot more grains than it did five hours ago.
00:31 terminalmage sweet
00:31 terminalmage I need to start using that mac mini you generously provided
00:31 rava joined #salt
00:31 UtahDave joined #salt
00:31 Corey terminalmage: You do. Did I get your key onto it?
00:31 Corey UtahDave: \o/
00:32 UtahDave hey, Corey!
00:32 terminalmage I don't think I sent it, so I would be surprised and alarmed if you did :)
00:33 KyleG haha ^
00:33 KyleG After talking w/ and meeting Corey today, it wouldn't surprise me
00:33 terminalmage hahaha
00:34 Corey terminalmage: One second.
00:34 rava so much reverb
00:34 JasonSwindle UtahDave:  Hey
00:35 UtahDave :)  hey, JasonSwindle. I've been drinking all your soda all day today
00:35 Corey terminalmage: Your ssh pubkey is now on salt@oldsalt.epicquinn.net. <-- KyleG
00:35 Corey terminalmage: You may now be surprised and alarmed.
00:35 JasonSwindle UtahDave:  You still there?
00:35 terminalmage :)
00:35 KyleG lol @ JordanRinke
00:35 terminalmage so I did send it?
00:35 terminalmage or you grabbed from github
00:35 Corey terminalmage: Not to my knwoeldge.
00:36 Corey terminalmage: That's the one. :-)
00:36 terminalmage got it
00:36 terminalmage nice
00:36 UtahDave JasonSwindle: yep!
00:36 JasonSwindle When do you live?
00:36 JasonSwindle *leave
00:37 JasonSwindle or live, you seem to be all work
00:37 UtahDave My flight is tomorrow morning.
00:37 terminalmage Corey: I was able to login, sweet
00:37 terminalmage btw, best domain name evar
00:39 avienu joined #salt
00:39 Corey UtahDave: From where to where?
00:39 Corey terminalmage: Thanks!
00:39 UtahDave Corey: San Antonio back to Salt lake
00:39 Corey Ahhh.
00:39 Corey I fly tomorrow back to PDX from LAX.
00:40 dthom91 joined #salt
00:40 UtahDave cooli.  I was in San Fran all week, flew straight here to San Antonio and then tomorrow to Salt Lake
00:41 Nitron left #salt
00:42 JasonSwindle When in San Fran, did you visit the RAX office there?
00:43 terminalmage Corey: I haven't been able to reproduce even after stashing and going back to develop
00:43 terminalmage weird
00:43 terminalmage I can see what *looks* like an issue
00:45 Corey terminalmage: Try it on the Mac?
00:45 Corey It may be mac specific, there are bugs like that.
00:45 terminalmage Corey: nevermind, I found it
00:45 terminalmage one sec, re-applying my stash and seeing if it fixes it
00:45 redbeard2 fyi for those still sprinting, i will stop populating the scoreboard in 15 minutes
00:46 terminalmage redbeard2: well in that case I'M NOT GOING TO WRITE ANY MORE CODE
00:46 terminalmage :)
00:46 Corey Are there prizes or whatnot?
00:46 redbeard2 terminalmage: you know you're tied for 4th place with Corey?
00:46 redbeard2 fight! fight! TO THE PAIN!
00:46 terminalmage nice
00:46 terminalmage haha
00:47 Corey Tom is tied for 1, 2, and 3 with himself.
00:47 terminalmage my file backup stuff took too long, but I like to think that it's because I'm awesome
00:47 redbeard2 Corey: you'd think that. but you'd be wrong.
00:47 redbeard2 looks like tom is #5
00:48 terminalmage Corey: confirmed my changes fix it
00:48 redbeard2 germany took home the prize today
00:48 terminalmage yeah, quantity over quality!
00:48 terminalmage j/k
00:48 terminalmage that was an impressive volume of formula commits
00:50 Corey Okay, leaving for real.
00:52 terminalmage seeya
00:53 ponderability joined #salt
00:59 avienu So, as part of setting up a minion I want to put a code repository on it. I was asking earlier and the solution seemed to be to use git. How would I go about creating the ssh key on the minion and then transferring its public key to the git server?
00:59 rava avienu: as pillar data?
01:01 avienu rava: Right. I figure I'll transfer the data via pillar. But how do I signal that it's created and that the master should then update the git server? Is that via a returner? Also I don't see how to create ssh key with salt.modules.ssh-- am I missing that? I see storing and checking but not creating from scratch
01:02 dlindquist joined #salt
01:04 MarkAtwood joined #salt
01:10 Linz joined #salt
01:13 JordanRinke Good times.
01:15 [diecast] joined #salt
01:15 [diecast] joined #salt
01:15 avienu So, I guess the first question is: if I list a few modules in the top.sls for a minion does the master get a returner for each as each happens?
01:20 avienu Second, is there a ssh.create_key(user,'rya') or something
01:20 avienu rsa*
01:24 Slipo joined #salt
01:29 krissaxton joined #salt
01:35 StDiluted joined #salt
01:35 StDiluted Thanks to everyone at SaltStack for the sprint today
01:36 StDiluted We didn't contribute much of value from our site but we did get some people interested in Salt and get some word out
01:39 geopet joined #salt
01:40 StDiluted hey geo
01:56 dlindquist joined #salt
02:01 rava left #salt
02:06 jalbretsen joined #salt
02:15 redbeard2 joined #salt
02:17 Slipo joined #salt
02:17 geopet joined #salt
02:18 TOoSmOotH joined #salt
02:29 doublerr joined #salt
02:29 krissaxton joined #salt
02:34 dlindquist joined #salt
02:35 intchanter joined #salt
02:37 jaequery joined #salt
02:42 TOoSmOotH joined #salt
02:44 dlindquist1 joined #salt
02:44 p3rror joined #salt
02:51 jaequery joined #salt
02:55 techdragon joined #salt
03:02 mgw joined #salt
03:08 HaxCore joined #salt
03:12 kstaken joined #salt
03:18 mmilano joined #salt
03:18 jxqz 199 pushes
03:18 jxqz pushups
03:23 dlindquist joined #salt
03:24 xl joined #salt
03:24 MZAWeb joined #salt
03:30 krissaxton joined #salt
03:35 whit joined #salt
03:46 muchio joined #salt
03:49 dthom91 joined #salt
04:20 FreeSpencer joined #salt
04:21 FreeSpencer joined #salt
04:24 dthom91 joined #salt
04:30 krissaxton joined #salt
04:37 kstaken joined #salt
04:51 geopet joined #salt
04:52 stevetodd joined #salt
05:06 auser joined #salt
05:07 berto- joined #salt
05:07 nmistry joined #salt
05:12 UtahDave joined #salt
05:17 isomorphic joined #salt
05:23 davisamo joined #salt
05:24 davisamo Quick question.  I have an sls file referenced in top.sls.  The referenced file has jinja wrapping an entry that needs to be executed after everything else in top is executed.  What is the best way to do that?
05:25 kstaken joined #salt
05:27 davisamo Requisites don't seem to be working well for me in this case because the jinja is evaluated before any requisite statement is evauluated.  This causes salt to error because the files the jinja needs to work don't exist yet.
05:31 krissaxton joined #salt
05:32 PlasmaAu joined #salt
05:32 PlasmaAu Hi. Can anyone clarify how require statements work? I'm confused about their syntax. The example on http://docs.saltstack.com/ref/states/requisites.html is not clear
05:33 PlasmaAu "So in this example, the file /etc/vimrc depends on the vim package." - I see 'require' and then 'pkg: vim'
05:33 PlasmaAu Is this asking the state module, pkg, to determine if the named parameter, vim, is installed?
05:33 EugeneKay davisamo - this is only for the first-run? put a conditional in your top.sls such that it won't execute the included statefile the first time, eg by checking for a requisite file
05:34 PlasmaAu or is it somehow referring to the 'vim: pkg.installed' line at the top? Why doesn't it mention vim.installed or something instead as part of the require *confused*
05:35 davisamo @EugeneKay,  I could get by with doing that.  I was trying to get it to complete on one run though.  I'm trying to provision new nodes in one shot.
05:35 EugeneKay PlasmaAu - it indeed refers to the vim:pkg statement; required means that it won't be executed until requisites have been done, in this case because /etc/vimrc is created by the rpm/deb, and creating it with file.managed would result in it getting stepped on by the pkg
05:35 EugeneKay davisamo - just highstate twice instead of once, to "make sure" :-p. I do that, works OK.
05:37 PlasmaAu EugeneKay, so is the syntax 'require: - <state name> : <name argument>'? I am confused because I would have expected a simpler require, like 'require: vim' where 'vim' is the "id" of an earlier state (top of the file)
05:37 davisamo Hmmm,  no other way, ehh.  Well thanks for confirming.  I did look at overstate as a possible way to do it.  Does overstate replace top?  I wasn't sure from the documentation
05:38 PlasmaAu but I am confused because the require statement mentions pkg -- why is this necesssary?
05:38 EugeneKay PlasmaAu - I think the terminology is <state>:<id>, but yes.
05:38 EugeneKay You could have vim:file.managed, and them use a name declaration for /etc/vimrc(which I do)
05:39 EugeneKay Thus the id vim would be ambiguous; it could be the file state or the pkg state
05:39 EugeneKay I'm not sure why <state> is first, but I'm sure there's a good reason.
05:39 EugeneKay Probably so you can list multiple pkgs
05:42 PlasmaAu EugeneKay, ah ok, so in that webpage example, require 'pkg: vim' tells salt to visit the 'vim' id declaration, and then find the usage of the 'pkg' state, and ensure it has returned success
05:43 EugeneKay Correct.
05:43 PlasmaAu if I were to change to require 'vim' alone, would it ensure all states in that id declaration (of which there is just one right now) succeed? seems to have worked on a test script of mine
05:46 * EugeneKay shrugs
05:46 EugeneKay I haven't tried that :-p
05:47 PlasmaAu =]
05:47 EugeneKay In any case, 1AM and my pillow beckons.
05:47 * EugeneKay waves
05:48 PlasmaAu thanks dude!
05:49 davisamo Likewise,  thank you
05:51 MZAWeb left #salt
05:53 sifusam joined #salt
05:54 davisamo left #salt
06:13 xl1 joined #salt
06:14 auser joined #salt
06:17 berto- joined #salt
06:25 dthom91 joined #salt
06:31 krissaxton joined #salt
06:42 Lue_4911 joined #salt
06:46 druonysus joined #salt
07:00 Slipo joined #salt
07:13 matanya joined #salt
07:32 krissaxton joined #salt
07:41 jshare joined #salt
08:13 chunck joined #salt
08:13 chunck hi
08:13 chunck I have a problem when I use halite salt UI.
08:14 chunck who can tell me the username and pass of the UI
08:14 chunck so I can login into the web UI.
08:16 chunck anybody here?
08:25 dthom91 joined #salt
08:32 krissaxton joined #salt
08:36 chunck ?
08:40 ni469770 joined #salt
08:42 Xeago joined #salt
08:42 ni469770 quick q: does a daemonized minion check in w the master, or just wait for commands?
08:44 ni469770 basically, I have off site machines that are NATd and want to make sure the minions will check in occasionally, like puppet agents. if so, I can start doing some testing on Monday. Thanks. :)
08:45 druonysuse joined #salt
08:45 druonysuse joined #salt
08:46 rhino joined #salt
08:50 dzen chunck: the one used with salt-api ?
08:50 chunck yes.
08:52 dzen All interactions with this REST API must be authenticated. Authentication is performed through Salt's eauth system. You must set the eauth backend and allowed users by editing the external_auth section in your master config.
08:52 dzen http://salt-api.readthedocs.org/en/latest/ref/netapis/all/saltapi.netapi.rest_cherrypy.html#saltapi.netapi.rest_cherrypy.app.Login
08:52 dzen try this
08:53 dzen it could use pam o/
08:53 chunck ok, I will have a try.
08:53 chunck thanks
08:53 dzen chunck: halite is using angularjs which is a js framework that can use rest api
08:53 dzen as, salt-api
08:54 chunck this is new to me.
08:55 dzen :)
08:55 Guest53452 left #salt
09:08 VertigoRay Hello. Existing puppet user here, checking out salt
09:10 VertigoRay I have a quick question that hasn't been made clear through some quick googling: does a daemonized minion check in w the master, or just wait for commands? I have off site machines that are NATd and want to make sure the minions will check in occasionally, like puppet agents. if so, I can start doing some testing on Monday. Thanks. :)
09:12 mortis :)
09:12 mortis i wanna know that too
09:12 mortis testing salt on some VMs here right now
09:12 mortis and i love it
09:13 mortis even if you didnt use salt for configmanagement, it seems like a great tool for remote execution
09:13 mortis and gathering data from servers
09:14 chunck I am testing salt
09:21 chunck Thanks, dzen.
09:21 chunck I am successfull login to the web ui now.
09:23 VertigoRay I like the simplicity and the python. I'm ire if nothing else, a corn would do it, but figured since its already daemonized, it should be a config. I'll check it out more tomorrow. GL on ur efforts.
09:24 VertigoRay jeez. iOS autocorrect it killing me. a cron should do it*
09:24 zooz joined #salt
09:33 krissaxton joined #salt
09:38 VertigoRay joined #salt
10:09 Khazix joined #salt
10:11 dthom91 joined #salt
10:14 UtahDave joined #salt
10:24 pjs joined #salt
10:26 SpX left #salt
10:28 up_the_irons joined #salt
10:28 chunck left #salt
10:33 krissaxton joined #salt
10:35 Khazix how did the docs come up with 87? http://docs.saltstack.com/topics/tutorials/starting_states.html#adding-configs-and-users
10:36 UtahDave Khazix: I have no idea.
10:37 krissaxton joined #salt
10:37 karlp joined #salt
10:38 z3uS joined #salt
10:57 scalability-junk and the top contributor of the sprint was... :)
11:16 xl joined #salt
11:22 mfournier joined #salt
11:34 whit joined #salt
12:21 Newt[cz] joined #salt
12:36 Xeago joined #salt
12:57 aat joined #salt
13:02 xl left #salt
13:13 krissaxton joined #salt
13:17 napperjabber joined #salt
13:27 remibernal joined #salt
13:30 whit joined #salt
13:43 remibernal joined #salt
13:57 matanya joined #salt
14:04 remibernal joined #salt
14:15 ponderability joined #salt
14:17 auser joined #salt
14:41 oz_akan_ joined #salt
14:45 remibernal joined #salt
14:47 p3rror joined #salt
14:48 emilisto_ joined #salt
15:13 efixit joined #salt
15:16 krissaxton joined #salt
15:28 geopet joined #salt
15:31 Linz joined #salt
15:37 aat joined #salt
15:38 ponderability joined #salt
15:39 emilisto- joined #salt
15:40 backjlack joined #salt
15:45 remibernal joined #salt
15:53 aat joined #salt
16:08 ponderability joined #salt
16:13 kenbolton joined #salt
16:16 aat joined #salt
16:22 doki_pen joined #salt
16:24 doki_pen if I have a piece of software I want to deploy differently in two different environments, what is the best way to organize the states?
16:25 doki_pen I naively tried having a "base" environment with the common states, but soon realized my environments overrode the "base" state instead of extending it.
16:26 doki_pen ah, I think I got it
16:32 KyleG joined #salt
16:32 KyleG joined #salt
16:34 kstaken joined #salt
16:37 aat joined #salt
16:40 terminalmage joined #salt
16:49 Lue_4911 joined #salt
16:53 oz_akan_ joined #salt
17:11 dvogt joined #salt
17:29 lazyguru joined #salt
18:04 napperjabber joined #salt
18:05 zach folks, is there a way to get jinja to match a specific part of my text? I'm trying to find the <host> portion of this: {% if ( ( grains['host'] == '######-<name>.<domain>' )) %}
18:05 zach I suppose I could change the hostname of every machine to not use that format
18:05 zach But I would rather not
18:07 p3rror joined #salt
18:25 qba73 joined #salt
18:28 danielbachhuber joined #salt
18:29 doki_pen is there a decent way to have user specific private data included in salt? I'm using it for dev environments and I want to use the users id_rsa, but not share it with all other users of the salt repo.
18:45 krissaxton joined #salt
18:46 scalability-junk doki_pen: my approach is to have 3 repos
18:46 scalability-junk one for the states
18:46 scalability-junk one for public config data
18:46 scalability-junk and one for private data only available to a minimum of people and the master server
18:47 scalability-junk instead of doing /data/id_rsa I will therefore do /private/id_rsa
18:47 scalability-junk the concept can be done stricter with private repos per project for example
18:49 squelch joined #salt
18:49 felixhummel joined #salt
18:54 jMyles joined #salt
18:55 squelch hey, can i do a {{ pillar.get(args['value'], 'default') }} in a loop
18:57 UtahDave joined #salt
18:57 aat joined #salt
19:02 aleszoulek joined #salt
19:03 squelch can you do pillar.get in a loop
19:03 ggoZ joined #salt
19:05 robbyt joined #salt
19:06 eskp joined #salt
19:06 eskp joined #salt
19:08 dthom91 joined #salt
19:11 squelch anyoneee
19:21 scalability-junk squelch: what do you mean?
19:21 scalability-junk something like: {% for path in salt['pillar.get']('annex:paths', {}) %}
19:22 scalability-junk which will loop trough the list of paths and for each path will do something...
19:22 squelch {% for user, args in pillar['users'] %} {{ pillar.get(args['shell'], '/bin/bash') }}
19:22 squelch ^ that doesn't work
19:26 iquaba1 joined #salt
19:26 jesusaurus do you mean pillar['users'].get('shell', '/bin/bash') ?
19:26 jesusaurus or is args['shell'] actually used to dereference the shell?
19:30 krissaxton joined #salt
19:35 nmistry joined #salt
19:40 sgviking joined #salt
19:42 avienu joined #salt
19:47 krissaxton joined #salt
19:51 sgviking left #salt
19:55 Paolo joined #salt
19:55 Paolo how do you specify the version of node you want installed?
19:55 Paolo it always defaults to 0.6.12 for me
19:55 Paolo when i install it via salt
19:56 Paolo nodejs:   pkg.latest
20:06 Taranis_ joined #salt
20:12 dthom91 joined #salt
20:17 middleman_ joined #salt
20:21 mgw joined #salt
20:22 mgw joined #salt
20:25 akitada joined #salt
20:28 druonysus joined #salt
20:29 Newt[cz]1 joined #salt
20:30 berto- joined #salt
20:38 mgw joined #salt
20:45 KyleG joined #salt
20:45 KyleG joined #salt
20:57 jrgifford joined #salt
20:57 dvogt joined #salt
20:58 scalability-junk Paolo: latest is latest ;)
20:59 scalability-junk you should use pk.installed: -version: 0.6.11 for example
20:59 scalability-junk *pkg.installed
20:59 scalability-junk https://salt.readthedocs.org/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.installed @Paolo
21:02 dlindquist joined #salt
21:11 dthom91 joined #salt
21:13 mgw joined #salt
21:31 efixit joined #salt
21:35 Ryan_Lane joined #salt
21:44 pdayton joined #salt
22:03 doublerr joined #salt
22:03 mgw joined #salt
22:03 aat joined #salt
22:09 StDiluted joined #salt
22:19 andrewclegg joined #salt
22:19 whit joined #salt
22:22 arapaho joined #salt
22:24 arapaho joined #salt
22:25 spudbook joined #salt
22:29 iquaba1 joined #salt
22:32 KyleG joined #salt
22:33 mgw1 joined #salt
22:37 gamingrobot joined #salt
22:39 ada__ joined #salt
22:40 Newt[cz] joined #salt
22:44 rfgarcia joined #salt
22:54 aat joined #salt
23:02 mafrosis joined #salt
23:03 mgw joined #salt
23:20 dvogt_ joined #salt
23:20 cxz joined #salt
23:22 Newt[cz]1 joined #salt
23:38 Newt[cz] joined #salt
23:39 iquaba i'm trying to play with cp.push but i'm getting "[Debug] Failed to authenticate message" on the master and the file doesn't transfer (as far as I can tell).    file_recv: True is set on the master config and it's been restarted.  any thoughts?
23:40 aat joined #salt
23:49 Gifflen joined #salt
23:50 iquaba nevermind, looks like it isn't implemented on windows minions
23:51 Xeago joined #salt
23:58 mgw joined #salt

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