Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-08-21

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

All times shown according to UTC.

Time Nick Message
00:00 rustyrazorblade joined #salt
00:03 teebes joined #salt
00:07 kenbolton joined #salt
00:10 VertigoRay Hey guys, been working on a #!py init.sls and it seems to do the work, but doesn't report properly back to salt. Anyone have a sample data structure that I can copy?
00:19 kenbolton joined #salt
00:20 terminalmage VertigoRay: are you familiar with yaml and how pyyaml interprets it?
00:20 terminalmage because if you're writing SLS in pure python, all you need to do is replicate the same data structure
00:20 terminalmage though, writing your SLS in python seems unnecessarily difficult to me
00:22 baniir joined #salt
00:24 VertigoRay terminalmage: I am familiar with it, and I have replicated it. currently, it returns a dictionary back that's formatted fine, but then the minion complains about it not being formatted in a list.  I don't know what part is supposed to be a list.
00:25 VertigoRay terminalmage: I would prefer to not write my own app, but OS X support is currently limited so I'm writing a module for dsconfigad.
00:33 kenbolton joined #salt
00:35 cxz joined #salt
00:46 hazzadous left #salt
00:47 hazzadous joined #salt
00:49 terminalmage I'm away from my computer right now. if you could post your return data to the mailing list, I'd be happy to look at it after dinner.
00:52 kenbolton joined #salt
00:56 andredublin joined #salt
00:56 kenbolton joined #salt
01:00 syngin VertigoRay: you still need a hand?
01:10 kenbolton joined #salt
01:16 liuyq joined #salt
01:17 jacksontj joined #salt
01:17 andredublin if i have a instance on ec2 that is my minion and my laptop as my master, if im not receiving the keys its initially something with my ports at 4505 and 4506?
01:25 kleinishere joined #salt
01:26 jeddi andredublin: your master needs to be visible (network-wise) to your minion(s)
01:28 oz_akan_ joined #salt
01:29 oz_akan_ joined #salt
01:45 ponderability joined #salt
01:49 andredub_ joined #salt
01:52 andredublin joined #salt
01:54 andredublin joined #salt
01:55 andredublin jeddi: i keep getting WARNING: Unable to bind socket, error: [Errno 49] Can't assign requested address
01:55 andredublin even forwarded ports 4505/6 to my private ip
01:55 kenbolton joined #salt
01:57 andredub_ joined #salt
01:58 ponderability joined #salt
01:59 ponderability left #salt
02:01 Nexpro joined #salt
02:03 andredublin joined #salt
02:03 syngin andredublin: what end are you getting that error on? minion or master?
02:03 andredublin syngin: master
02:04 andredublin just set my router ip to wildcard ports 4505/6
02:04 andredublin and womp womp, no dice
02:05 ninkotech joined #salt
02:07 auser joined #salt
02:09 xl1 joined #salt
02:12 dave_den andredublin: in /etc/salt/master, are you setting the "interface:" options?
02:12 dave_den option
02:12 kermit joined #salt
02:12 andredublin joined #salt
02:13 dave_den andredublin: in /etc/salt/master, are you setting the "interface:" option?
02:13 andredublin yes
02:13 andredublin to my public ip address
02:13 dave_den your public IP address is not in your ec2 instance. you need to set it to the private IP
02:15 dave_den then on your minions (if they are outside of your EC2 zone), they need to have "master" in their /etc/salt/minion file to your master's public IP
02:15 dthom91 joined #salt
02:17 carmony joined #salt
02:19 gldnspud joined #salt
02:21 mannyt joined #salt
02:23 andredublin dave_den: so i set my minion file master: <my private ip>?
02:23 dave_den yes
02:23 andredublin then on master set my interface: <private ip also> ?
02:23 fridder joined #salt
02:28 andredublin ok, that worked, but not seeing any keys from my minion
02:30 geopet joined #salt
02:42 zian joined #salt
02:42 zian test
02:43 whiteinge It works!
02:44 andredublin ok i got it working now
02:44 andredublin sweet!
02:49 dave_den andredublin:  oops, just realized i gave the wrong advice - but you seem to have figured it out. Your master needs to have 'interface: <ec2 private ip>' (or 0.0.0.0 works, too), then your minions need 'master: <your_ec2_master_public_ip>'
02:49 dave_den have fun with salt! :)
02:49 andredublin dave_den: yeah thats what i just got
02:49 andredublin thanks!
02:49 dave_den np
02:59 lahwran joined #salt
03:08 malinoff joined #salt
03:12 cedwards terminalmage: ping re: #6542
03:14 terminalmage hey
03:14 terminalmage cedwards: sadly I just haven't had time to look at this
03:14 terminalmage I am in djangocon preparation mode right now
03:15 cedwards terminalmage: maybe i'll see what i can come up with in the pkgng module to start with
03:15 gldnspud joined #salt
03:15 gatoralli joined #salt
03:15 terminalmage ok. the pkgng stuff should be removed from freebsdpkg completely
03:15 terminalmage I don't have a pkgng repo available
03:16 gatoralli Can I accept a key in salt with the Python API?
03:16 cedwards terminalmage: i created one at freebsd.saltstack.com over the weekend
03:16 terminalmage though isn't PC-BSD's compatible?
03:16 terminalmage oh?
03:16 terminalmage nice
03:16 cedwards terminalmage: it has salt, salt-cloud, salt-api and a few other basics
03:20 auser joined #salt
03:20 liuyq joined #salt
03:21 jkleckner joined #salt
03:24 terminalmage cedwards: any that wouldn't be needed for salt?
03:24 terminalmage so I can test package installs and removes
03:25 cedwards terminalmage: sure. it should have vim-lite, bash, zsh--i can build whatever we want
03:25 terminalmage cool
03:25 terminalmage I have a 9.0 VM that I use for salt testing
03:26 avienu joined #salt
03:26 terminalmage what we need to do is A) get pkgng to support all the needed functions to exist on its own as a provider
03:26 terminalmage and B) remove all pkgng stuff from freebsdpkg.py
03:26 terminalmage then those that want to use pkgng can just override the provider
03:26 terminalmage either in the minion config or in the state
03:27 terminalmage s/state/SLS/
03:28 terminalmage and when pkgng becomes the default (10.0?) we can just make pkgng the default for that version
03:28 terminalmage cedwards: btw, I'm in Utah this week
03:28 auser hey all
03:28 cedwards terminalmage: i should see if i can swing by the office while you're here
03:29 cedwards it's been a while since i've stopped by the salt office
03:29 ggoZ joined #salt
03:29 terminalmage yeah, I'll be here through Friday, flying back Fri afternoon
03:31 terminalmage did some deep code diving yesterday, and today I worked on getting something together for my tutorial at djangocon
03:31 terminalmage whiteinge is putting together some sweet formulas
03:32 whiteinge since most of them have not be tested/used that is an optimistic claim!
03:32 cedwards :)
03:32 terminalmage :)
03:32 terminalmage they'll be awesome
03:33 terminalmage gonna knock some socks off
03:33 whiteinge :)
03:36 cedwards my only problem with visiting the salt office is i always end up wanting to stay and work there :)
03:37 cedwards more exciting around there than my office most of the time
03:37 terminalmage cedwards: does that stuff I mentioned about freebsdpkg/pkgng make sense?
03:38 cedwards terminalmage: i think so
03:38 terminalmage cool. I think I'll begin by getting freebsdpkg working, removing pkgng stuff in the process, and then I can look into beefing up pkgng.
03:39 terminalmage might get a chance to work on it on thursday
03:49 cedwards well i'm going to bed
03:54 whiteinge g'night!
03:59 avienu joined #salt
04:03 malinoff Hi all
04:05 aat joined #salt
04:05 auser hey malinoff
04:14 keith4 joined #salt
04:16 brianhicks joined #salt
04:28 berto- joined #salt
04:29 aat joined #salt
04:40 Katafalkas joined #salt
04:42 dthom91 joined #salt
04:45 brianhicks joined #salt
04:47 Katafalkas joined #salt
04:47 SEJeff_work joined #salt
04:49 agend joined #salt
04:53 chjohnst_work joined #salt
04:55 Katafalkas joined #salt
05:01 jacksontj joined #salt
05:02 auser joined #salt
05:04 bauser joined #salt
05:08 oz_akan_ joined #salt
05:13 bemehow joined #salt
05:14 knightsamar joined #salt
05:21 zian guys: have a quick question. i'm trying to do the following to run salt-bootstrap.sh on OSX. curl -L http://bootstrap.saltstack.org | sudo sh -s -- git develop    | however, I am receive this error. ERROR: Darwin not supported.  Do I need to install Darwin?
05:21 zian receiving*
05:24 druonysus joined #salt
05:24 malinoff joined #salt
05:27 syngin zian: OS X is Darwin.
05:27 syngin (not really, but for the purposes of this discussion, it'll do)
05:27 zian right that's what I thought
05:27 syngin lemme see that script; se
05:27 zian or darwin is the basis of osx
05:27 syngin erp, sec.
05:28 syngin Well, Darwin is the name of the BSD variant that runs underneath the prettiness of OS X.
05:28 syngin But, yeah, same same.
05:28 izquierdo joined #salt
05:29 syngin yep; that bootstrap only supports linux, sunos, *bsd.
05:29 SpX joined #salt
05:30 syngin zian: there must be some other mecahnism to get salt onto a Mac.
05:30 syngin s/mecah/mecha/
05:30 zian damn, i see the list now, didn't even check if osx was on there just assumed
05:31 zian gonna pip it
05:31 syngin i would've as well.
05:31 syngin yep.
05:32 zian thanks
05:32 syngin didn't really help with anything ;)
05:32 syngin but, np regardless
05:35 shineyear joined #salt
05:35 zian interesting to note:
05:37 zian if you run vagrant up with salt specified as the provisioning method in the vagrant file and you don't have salt installed, vagrant will automatically bootstrap it
05:37 syngin classy
05:39 Furao joined #salt
05:42 berto- joined #salt
05:47 UtahDave joined #salt
05:52 mephx joined #salt
05:57 joehh Evening UtahDave, hope you are well
05:58 jacksontj UtahDave: what are you still doing online :P
05:58 joehh do you know if user.present is likely to be fixed in the next release or will we have to wait for 0.17?
05:58 UtahDave :)  hey joehh and jacksontj!
05:58 UtahDave joehh: on windows?
05:58 joehh thats on windows (not linux)
05:58 joehh yes
05:58 UtahDave Yeah, I'm going to have it fixed before the next bugfix
05:59 UtahDave jacksontj: I work for a scrappy startup!
05:59 UtahDave :)
05:59 UtahDave joehh: There are actually several issues.
05:59 joehh good to hear - thanks for that
05:59 UtahDave I've already fixed the first one.  Fixing that issue reveal two more issues with the user state.
05:59 jacksontj UtahDave: guess thats true ;)
05:59 UtahDave I can't wait to get our jenkins server testing windows
06:00 joehh Yeah - I saw that, I was planning to just see if I could fix the first, but with the hint to more, I thought I'd wait
06:00 joehh us too!
06:00 UtahDave joehh: did user.present work in 0.15x?  I thought it did
06:01 jacksontj UtahDave: i'll have to bug you tomrrow about an issue we're seeing with salt in one of our datacenters (the one i believe i mentioned yesterday)
06:01 joehh I was pretty sure it did
06:01 joehh I might see if 0.15x does enough of what we need to cover the gap
06:01 UtahDave joehh: yeah, me, too.
06:01 joehh We're really enjoying the installer functionality.
06:01 joehh I think that was what won our IT dept over
06:01 joehh rather than just or deployment and support teams
06:02 UtahDave jacksontj: craig_ said he fixed a problem with the hard drives.  Did your pull req to not write the key to disk every time help?
06:02 jacksontj UtahDave: if the user module worked in 0.15 you could always install 0.16 and drop the user module into the states module directory and sync it out ;)
06:02 jacksontj UtahDave: yea-- helped with thrashing the disks for sure :)
06:02 jacksontj but didn't fix the slowness :/
06:02 UtahDave huh, weird.
06:02 jacksontj for some reason that master seems to croak after ~2-3k minions
06:02 jacksontj but the other ones we have hum along happily at ~7k
06:03 UtahDave Tom is in San fran and gets back tomorrow afternoon
06:03 jacksontj yea, he shot me an email about that ;)
06:03 jacksontj so he is up in SF then?
06:03 UtahDave Yeah, I think so. They had a bunch of meetings lined up
06:03 jacksontj yea, he has some interview tomorrow morning
06:04 jacksontj i was going to see if he had some time to drop by-- but we'll see if he does
06:04 UtahDave Yeah, he's going to be on Floss weekly again.  Should be cool!
06:04 jacksontj its always fun to debug your code when its HUGE
06:04 jacksontj sweet
06:04 UtahDave :)  Yes.
06:05 jacksontj i did have a couple questions that i have thought of while debugging
06:05 UtahDave so this new install has the same versions of Salt and everything as the others, huh?
06:05 jacksontj well, yes and no
06:05 jacksontj its the same version of salt
06:05 matanya joined #salt
06:05 jacksontj and dependancies
06:05 jacksontj but a newer version of RHEL
06:05 jacksontj which is… unfortunate
06:05 jacksontj i'm getting a new box in the new datacenter built with the OLD build
06:05 jacksontj in case something crazy in RHEL is breaking it
06:06 UtahDave Hm. interesting.
06:06 jacksontj when i have a minion run sync_modules it looks like its downloading each file (from the top file) from the master
06:06 jacksontj shouldn't it be doing some sort of hash compare?
06:06 jacksontj and-- it looks like it gets them serially
06:06 jacksontj i could just be reading the logs wrong though ;)
06:10 UtahDave There were a couple spots where the hash compare wasn't happening. Someone added it to file.recurse recently.
06:10 UtahDave It's definitely possible it's missing in sync_modules, too
06:11 UtahDave joehh: what do you mean by "installer functionality"?  The Salt windows installer or Salt being able to install software?
06:11 jacksontj ok- i'll dig into that later-- that isn't the issue (since we have the same code in the other datacenter) but if that isn't using hashes that will significantly speed up module sync
06:12 joehh UtahDave: windows packages
06:12 joehh the automatic download and silent install
06:12 UtahDave jacksontj: cool
06:13 UtahDave joehh: yeah, let me tell you.  When I first remotely installed Firefox using Salt I was jumping around the office like a maniac
06:13 UtahDave :)
06:13 UtahDave Marc and Tom were like, "What is going on??"
06:13 joehh we haven't got sql server or pg working yet, but most ofour soe goes in quickly and efficiently
06:13 joehh i can imagine
06:14 joehh Once our IT figured out what we were doing, they were shocked
06:14 joehh first time we showed them, they didn't really believe or get it
06:14 UtahDave There are quite a few improvements i want to make to the windows packages, too.
06:15 UtahDave I want to make it possible for the "install" to consist of a directory of files.  Then create shortcuts on the desktop and/or in the start menu for one or more of the files insdie
06:16 UtahDave There's a fair amount of custom software that's distributed like that.
06:16 druonysus joined #salt
06:16 druonysus joined #salt
06:16 UtahDave We have an enterprise customer that has an installer that requires 2gigs of files to exist next to it for the installer to work.
06:17 UtahDave I also just figured out how to install the Salt Minion from a Linux Salt master remotely
06:17 UtahDave So Salt Cloud should be able to remotely set up the Windows minion.
06:18 tuxIO joined #salt
06:18 joehh UtahDave: that would be great!
06:18 joehh we have some similarish needs, but get our data files there by rsync and file.recurse
06:19 joehh but they are not needed for install..
06:19 joehh biggest issue seems to be installers that don't do things silently or have no opbvious options
06:20 xmj are there any opensource/community modules that could integrate salt with django?
06:20 UtahDave yeah, those can be tough
06:21 UtahDave xmj: yeah, there's a django module already.  in fact, terminalmage is preparing a Salt talk for djangocon. He's putting together a really awesome Salt formula for a pretty intense django setup
06:21 xmj does it have a name?
06:24 druonysus joined #salt
06:26 UtahDave xmj: let me see if I can find his repo
06:26 xmj also ... what license was/is salt/that django module in?
06:28 UtahDave xmj: here's docs on the Salt django execution module: http://docs.saltstack.com/ref/modules/all/salt.modules.djangomod.html#module-salt.modules.djangomod
06:28 xmj ah, AL2 ... not optimal but will do
06:28 UtahDave I'm not sure how far along he is, but I think these are the 2 repos where he's putting things together
06:28 UtahDave https://github.com/terminalmage/django-tutorial
06:28 UtahDave https://github.com/terminalmage/djangocon2013-sls
06:28 xmj ahaaaa
06:28 zloidemon Good day.
06:28 UtahDave hey, zloidemon!
06:29 zloidemon UtahDave: How can I deploy virtualenv?
06:29 xmj UtahDave: that's totally not what i wanted, but very good for what (else) I'm looking for
06:29 zloidemon I saw in linkedin post, but it only with django
06:29 xmj (I was looking for a dashboard-y solution to satisfy enterprise)
06:29 zloidemon xmj: What's it?
06:30 Furao dashboard-y ?
06:31 zloidemon Yep
06:31 zloidemon Furao: I found it http://dashboardy.tumblr.com %)
06:31 Furao I wrote a salt-cloud web UI in django for a client, it's open-source (MIT license) but they didn't let me release the code so far.
06:31 xmj some django plugin from which to configure salt (mastermininos) from
06:32 xmj Furao: how so? I thought salt-cloud was AL2 ?
06:32 zloidemon Furao: Hmmm.. I'm writing web-ui too
06:32 xmj ah. for a client
06:33 xmj That's what you get for IRC'ing before first coffee has hit town.
06:33 Furao tastypie based REST API and I already have state and module to interact with inventory from the states (.sls)
06:33 xmj Furao: are you on twitter?
06:33 Furao xmj: no
06:34 xmj damn, will have to find a way to follow up on that :]
06:34 Furao I already started to build a dashboard on top of it with integration of monitoring and graphs
06:34 zloidemon Furao: I've complited it part
06:34 zloidemon Monitoring is works
06:35 xmj opensource? :]
06:35 zloidemon xmj: I'll release it after FreeBSD devsummit
06:35 xmj zloidemon: are you going to be in malta?
06:36 zloidemon xmj: No, I'll go to Cambridge
06:36 az87c joined #salt
06:36 xmj if so, let's have a beer together
06:36 xmj ah, damn
06:36 zloidemon xmj: I'm vg@freebsd.org
06:37 xmj cool, cambridge is this weekend?
06:37 cnelsonsic joined #salt
06:38 ml_1 joined #salt
06:38 mephx joined #salt
06:38 xmj awesomesauce. my plan of gluing together arbitrary libraries works better and better.
06:39 UtahDave xmj: ah, ok. There's early work going on a project called halite that's an angularjs web front end for Salt
06:40 carlos joined #salt
06:40 zloidemon xmj: Yes. I'll arrive tomorrow.
06:40 xmj UtahDave: ah, python is a bit of a condition sine qua non; should integrate well with a few other tools
06:41 UtahDave xmj: Salt has a pretty nice REST api that you can use with whatever tool you want as well
06:42 xmj UtahDave: well, if zloidemon is a freebsd developer and already has a web-ui, that should do very very well for my purposes
06:43 UtahDave cool
06:43 zloidemon xmj: Yep. 7 years work with FreeBSD ^^
06:44 xmj #salt, Connecting People.
06:54 berto- joined #salt
06:56 linjan_ joined #salt
06:56 Xeago joined #salt
06:58 bemehow_ joined #salt
07:03 balboah_ joined #salt
07:03 UtahDave :)
07:13 vaxholm_ joined #salt
07:16 Furao I hate when upstart (/sbin/init) ends consuming 400 mb of memory RSS with no reason
07:17 zloidemon WOW
07:17 zloidemon Furao: What's distro?
07:18 Furao ubuntu precise
07:18 Furao I never seen that elsewhere and googling for that return nothing revelant
07:18 Furao it happened like 5 times since january
07:20 Jarus Is there a documentation about the default context of jinja inside of a sls file or managed file source?
07:21 morganfainberg Furao: (talking complete out of the blue) could it be related to excessive buffering of data to stdout/stderr from upstart jobs?  I know i've seen that issue before, but I don't remember the source / root of it (yes on ubuntu precise as well)
07:21 Furao morganfainberg: yes when that happens there is also bunch of /var/log/upstart/$file
07:22 morganfainberg well, ou should have /var/log/upstart/$file (plural) depending on restarts et al, but… there are a lot of poorly designed upstart tasks that end up logging a ton there, if you have some service going nuts, it might be buffering or something.
07:22 morganfainberg are those file large?
07:23 morganfainberg or a bunch of 0byte'rs
07:23 Furao large file rotated
07:23 morganfainberg yeah
07:23 morganfainberg my guess is buffering and a bad upstart task then
07:23 morganfainberg or at least, partially related
07:23 morganfainberg it's annoying.
07:23 Furao make sense, thanks
07:24 Furao but is there any way to just let upstart don't log those things?
07:26 morganfainberg uhm, not that i am aware of
07:26 morganfainberg besides fixing the upstart task to properly handle things (and the application/script/etc not to spew to stdout)
07:33 zloidemon joined #salt
07:40 TheCodeAssassin joined #salt
07:40 TheCodeAssassin morning guys
07:40 TheCodeAssassin hey utahcon
07:40 TheCodeAssassin damn
07:40 TheCodeAssassin UtahDave
07:42 UtahDave hey, TheCodeAssassin
07:42 scott_w joined #salt
07:42 TheCodeAssassin btw about what i said yesterday, is there a cmd to connet a masterless minion to a master (other then editing the minion.conf) ?
07:43 UtahDave Jarus: if you're referring to the context that's available in the sls file that then gets passed into the jinja.   You don't really need to use it.  All variable set in the sls are available in the jinja
07:43 UtahDave no, you have to edit the minion's config
07:44 TheCodeAssassin damn :p manual stuff
07:46 Xeago joined #salt
07:59 Xeago_ joined #salt
08:01 Xeago__ joined #salt
08:04 auser joined #salt
08:04 dthom91 joined #salt
08:08 Katafalkas joined #salt
08:10 zooz joined #salt
08:10 giantlock joined #salt
08:14 _ilbot joined #salt
08:14 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.16.3 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers - Channel logs are available at http://irclog.perlgeek.de/salt/
08:14 mmarch joined #salt
08:14 bauser joined #salt
08:17 a1j joined #salt
08:17 axisys joined #salt
08:18 zach joined #salt
08:18 felixhummel joined #salt
08:29 Xeago joined #salt
08:29 suodla joined #salt
08:30 liuyq joined #salt
08:34 Xeago_ joined #salt
08:36 unicoletti_ joined #salt
08:39 davromaniak hello
08:40 davromaniak how can I require a file to not exist ?
08:40 davromaniak it's for performing a a2enmod
08:41 joshe file.absent
08:41 davromaniak ok, I'm trying
08:42 joshe of course for a2enmod, you'd probably want a cmd.wait with unless: test -L /etc/apache2/whatever
08:43 joshe or if debian has a command to indicate if a module is enabled, you'd probably want to use that instead of testing the symlink directly
08:43 davromaniak ok
08:44 davromaniak because with if the require is not valid, it returns False and I think it's even worse than having a warning saying "module is already enabled"
08:44 davromaniak s/with//
08:45 joshe don't use a require then
08:45 joshe use cmd.wait with unless
08:45 bejer Hi, how do I make files available only to specific minions? (I can do it for data with pillars, but I can't see how to do it for files - don't really want to place the content of the files within a pillar state)
08:47 davromaniak joshe: ok, I will work on this
08:47 Teknix joined #salt
08:47 davromaniak thanks
08:54 SpX joined #salt
08:57 p3rror joined #salt
08:58 ChoHag joined #salt
08:59 it_dude joined #salt
09:02 niki joined #salt
09:03 bejer Found that it's a feature request: https://github.com/saltstack/salt/issues/1543
09:05 dave_den joined #salt
09:06 yogi Do I  have to perform  some scripting magic (file list in an array)  to manage multiple files from one state file  ? e.g  apache vhosts I have muliple vhost entries  ..
09:07 bemehow joined #salt
09:07 intchanter joined #salt
09:09 bemehow_ joined #salt
09:09 Xeago joined #salt
09:11 mike25ro1 yogi: i think you can add the -names : to the file.manage
09:11 mike25ro1 which is an array of files to manage
09:12 s1acky joined #salt
09:13 bemehow joined #salt
09:14 s1acky hi all. I have a question about salt overstate and node groups. How can i match nodegroups in overstate sls file?
09:14 yogi mike25ro1: are your sure about -names: / Ithought it was -name:
09:14 middleman_ joined #salt
09:15 Xeago_ joined #salt
09:17 yogi the only reference I could find "https://github.com/saltstack/salt/issues/4508"
09:18 tuxIO joined #salt
09:19 TheCodeAssassin hmm
09:19 TheCodeAssassin first time im using pillar
09:19 TheCodeAssassin getting UndefinedError: 'dict object' has no attribute 'db'
09:20 TheCodeAssassin https://gist.github.com/thecodeassassin/8b2cef8b791ba536379e = /srv/salt/pillar/database.sls
09:20 TheCodeAssassin using it here: https://gist.github.com/thecodeassassin/9cfc99bbede74f313293
09:21 TheCodeAssassin pass is random so s/w
09:21 TheCodeAssassin d/w
09:22 rnts left #salt
09:23 TheCodeAssassin anybody got a clue?
09:27 xt your pillar doesn look like its loaded
09:27 xt it cant find the db dict
09:27 xt check with salt minion pillar.data
09:28 s1acky why extension of file is php?
09:29 TheCodeAssassin xt: not in there
09:30 TheCodeAssassin but pillar_roots is
09:30 TheCodeAssassin so that is loaded
09:30 xt TheCodeAssassin: and your top.sls pillar file is correct?
09:34 TheCodeAssassin dunno xt => https://gist.github.com/thecodeassassin/8887df39cd451a33481a
09:34 TheCodeAssassin that is my /srv/salt/pillar/top.sls
09:36 Furao unindent 2 spaces line 3:4
09:41 TheCodeAssassin doesnt seem to do it
09:43 lemao joined #salt
09:47 carlos joined #salt
10:01 suodla joined #salt
10:02 TheCodeAssassin this is my pillar structure: https://gist.github.com/thecodeassassin/e148170303af0cad210c
10:05 whiskybar joined #salt
10:13 TJ1980 joined #salt
10:14 mannyt joined #salt
10:18 TheCodeAssassin it doesn't load any pillar data in a when running salt-call --local pillar.data
10:18 TheCodeAssassin even the official examples don't seem to work
10:19 Katafalkas joined #salt
10:22 krissaxton joined #salt
10:26 mannyt joined #salt
10:27 s1acky can you help me to write sls with  ordering. I dont understand how it will be correct. now i have something like this. But it is not correct http://pastebin.com/bFZSd0Ys
10:27 Heartsbane joined #salt
10:28 s1acky i need to run bottom function before update files
10:30 Furao s1acky: use - require
10:31 MrTango joined #salt
10:31 Furao mtdcsrv: service -> service: mtdcsrv
10:31 s1acky Furao: yes, i'm using i
10:31 Furao same for line 8
10:31 s1acky ok
10:31 david_a joined #salt
10:32 Furao I'm pretty that the error of invalid requirement was in the logs
10:33 bemehow joined #salt
10:34 s1acky so the probles is. how can i use taskkill and update file even if task already killed?
10:34 s1acky stderr: ERROR: The process "mtdcsetup.exe" not found.
10:34 s1acky Comment:   One or more requisite failed
10:34 s1acky I need to do very simple thing: stop service and process, update files, start service
10:35 s1acky because on windows I cannot touch files if they are running
10:35 s1acky I think I'm going wrong way
10:36 Furao yes you're using windows :P
10:37 Furao line 20 indentation is wrong
10:37 Furao 1 space is missing
10:37 s1acky heh!)) very funny, but this programm running only on windows undortunately
10:37 Furao same line 23
10:37 Furao (that don't help)
10:37 s1acky no it is work fine. mb problem with copy paste
10:38 Furao and there is line 8:9 that the module name need to be before the state id
10:38 s1acky now if process running - salt kills him and start update files
10:38 s1acky yes already fixed it
10:38 Furao and maybe you should have the same requisite for state in line 1
10:39 s1acky it just testing. i dont underestand how I can start service after all?
10:39 Furao and maybe line 11, as if the file is open for read by MTDC that will fail
10:39 s1acky Furao: it's just testing
10:39 Furao you can have an other state definition that start the service after everything
10:40 Furao just use a different state id
10:41 bemehow joined #salt
10:42 s1acky Furao: can you check this http://pastebin.com/DXXCu4MR ?
10:43 s1acky My english is not so good to explain what I mean
10:44 Furao go ahead say it in greek :P
10:44 Furao no! I can barely read it :P
10:45 s1acky i'm russian)
10:45 s1acky i don't know greek )))
10:45 Furao ah your IP is in .cy
10:45 Furao but I can read bit of russian too :P
10:45 s1acky yea! because i live here, on cyprus
10:45 Furao I know what your problem is
10:46 s1acky how many languages do you know?_))
10:46 giantlock joined #salt
10:47 Furao I spent few months in bulgaria in a place filled with ukrainians and russian
10:47 Furao to survive I had to learn cyrillics and I ends learning tons of words in those languages
10:47 s1acky wow! awesome!
10:47 s1acky where are you from?
10:48 Furao Canada (french part of it)
10:48 Furao but I'm in Malaysia right now
10:48 Furao why you want to kill mtdcsetup.exe ?
10:49 s1acky I will be in Kuala_Lumpur in two next month
10:49 Furao oh yes, I'm going to Singapore in 2 weeks (visa run)
10:49 Furao I'm in Penang, north part of .my
10:49 Furao for 3 more months
10:49 s1acky program, that i want to update contains 3 files. Config. GUI and service
10:50 s1acky GUI often running, but not always
10:50 s1acky mtdcsetup - is a gui. Don't look and name of files, developers are crazy)
10:51 s1acky I hate them, but there is not analogs
10:51 Furao you have to use unless/onlyif with cmd.run
10:51 Furao to check if the process is running in first place
10:52 Furao but I don't know how to that in windows :)
10:52 s1acky this is works fine with overstate
10:52 s1acky i will show you
10:53 Furao line 37 is clear about this
10:53 Furao in your 2nd paste
10:53 s1acky http://pastebin.com/yHkqq1qw
10:53 Furao taskkill fail because process don't exists
10:53 Furao but if you use only: $command-that-look-if-process-run
10:54 Furao only -> onlyif
10:54 Furao cmd.run won't fail is the process isn't running
10:54 s1acky Yea! You are genius! )) seems to be i found right answer
10:55 yota joined #salt
10:56 s1acky so! now i have only one question
10:57 s1acky how can i use require and different id of mtdcsrv service to start it after all?
11:02 techdragon joined #salt
11:02 pdayton joined #salt
11:04 s1acky thanks and have a good time. I'm going to eat something
11:06 bhosmer joined #salt
11:07 logix812 joined #salt
11:08 Furao s1acky: just put anything as the id and specify -name: mtdcsrv
11:08 TheCodeAssassin hey all
11:08 TheCodeAssassin can anyone help me with salt pillar data ?
11:10 Furao s1acky: and why you go to KL?
11:27 toastedpenguin joined #salt
11:29 ml_1 joined #salt
11:31 bogdanbu joined #salt
11:47 m_george|away joined #salt
11:52 liuyq joined #salt
11:57 zwevans joined #salt
12:01 Xeago joined #salt
12:05 Xeago_ joined #salt
12:05 oz_akan_ joined #salt
12:05 bemehow joined #salt
12:06 oz_akan_ joined #salt
12:10 pdayton joined #salt
12:14 blee joined #salt
12:15 Xeago joined #salt
12:19 bemehow_ joined #salt
12:24 Xeago_ joined #salt
12:27 s1acky Furao: business trip.
12:27 s1acky we have partners there
12:28 s1acky Furao: can you make some example? I can't understand how to do it
12:29 Furao s1acky: got to github.com/bclermont/states for tons of example
12:29 Furao s1acky: I was contacted for a contract in a trading firm in KL
12:30 Furao from your state I assume you work in the same industry :)
12:31 s1acky May be I know what company you speak about. )
12:31 kenbolton joined #salt
12:31 Furao they wanted some that do python
12:32 s1acky is it forex company?
12:33 Furao I don't remember
12:33 Furao I got an email somewhere :)
12:43 juicer2 joined #salt
12:54 Furao_ joined #salt
12:57 mgw joined #salt
13:10 waverider joined #salt
13:15 kenbolton joined #salt
13:18 bemehow joined #salt
13:18 Kholloway joined #salt
13:19 bhosmer joined #salt
13:20 aat joined #salt
13:21 cron0 joined #salt
13:22 ricicle joined #salt
13:23 Nexpro1 joined #salt
13:23 racooper joined #salt
13:26 anteaya joined #salt
13:35 jefferai joined #salt
13:37 ipmb joined #salt
13:38 napperjabber joined #salt
13:39 iPaulo joined #salt
13:39 ricicle joined #salt
13:45 m_george left #salt
13:45 brianhicks joined #salt
13:52 axisys joined #salt
13:55 whit joined #salt
13:59 bemehow joined #salt
13:59 krissaxton left #salt
14:01 aat joined #salt
14:04 KennethWilke joined #salt
14:04 KennethWilke tack-trove
14:04 KennethWilke whoops
14:04 jkleckner joined #salt
14:10 lemao_ joined #salt
14:13 mgw joined #salt
14:13 DanGarthwaite joined #salt
14:15 teebes joined #salt
14:16 teebes joined #salt
14:16 jalbretsen joined #salt
14:18 jacksontj joined #salt
14:19 mannyt joined #salt
14:23 micah_chatt joined #salt
14:27 andredublin joined #salt
14:28 bogdanbu hi ! how can i exclude a list of files from file.recurse ?
14:28 sebastian joined #salt
14:28 bogdanbu i know how to exclude only one file
14:29 TJ1980 joined #salt
14:29 sebastian left #salt
14:29 bogdanbu i'm trying something like this http://pastebin.com/Xx80s8GD
14:30 gldnspud joined #salt
14:30 bogdanbu but...TypeError: expected string or buffer
14:33 kermit joined #salt
14:36 carlos joined #salt
14:36 Gifflen_ joined #salt
14:36 DanGarthwaite I figured out #5338 - How to configure mine_functiosn via pillar
14:37 DanGarthwaite Part answer of #6655
14:45 cedwards s0undt3ch: are we close to merging the new FreeBSD changes into the bootstrap?
14:46 s0undt3ch cedwards: they are merged or are you meaning merging the develop branch into stable?
14:47 cedwards s0undt3ch: i tried to spin up a new FreeBSD jail using bootstrap and it failed, so I assumed the new changes weren't in there yet.
14:47 s0undt3ch cedwards: http://boostrap.saltstack.com?
14:47 titubear joined #salt
14:48 s0undt3ch cedwards: that's the stable branch. for the develop -> https://raw.github.com/saltstack/salt-bootstrap/develop/bootstrap-salt.sh
14:48 titubear hi all.  is there a definitive syntax for .sls files online somewhere.  require: seems very capricious in my testing
14:48 cedwards s0undt3ch: yeah, I pulled from bootstrap.saltstack.com
14:49 s0undt3ch cedwards: that's the stable branch
14:49 ckao joined #salt
14:49 s0undt3ch cedwards: I'm waiting a bit longer to merge develop into stable. Ideally, untill we can have the salt* freebsd pacakges as repo and all other packages from another repo ;)
14:50 cedwards s0undt3ch: i was going to try and work on that today
14:50 s0undt3ch cedwards: there's no urgency
14:50 s0undt3ch cedwards: we'll get there when possible ;)
14:50 whit joined #salt
14:51 Xeago joined #salt
14:51 cedwards well considering it's BSD, if I don't do it nobody will :)
14:51 s0undt3ch cedwards: :) most likely
14:51 Jahkeup_ cedwards: I was considering it! :) FreeBSD <3
14:52 Jahkeup How come I can't manage fstab with mount.set_fstab in sls?
14:52 kula one of these weekends i'm going to get enough free time and gumpt ions to make salt work with NetBSD
14:54 cedwards s0undt3ch: I just spun up a new jail using the develop URL and it worked great. I'll stick to that for now and hopefully it doesn't break.
14:54 Xeago joined #salt
14:54 s0undt3ch cedwards: it should not. The only issue is that that VM can only pull packages from saltstacks repo now
14:54 s0undt3ch cedwards: unless anyone changes PACKAGESITE
14:54 RandalSchwartz joined #salt
14:54 cedwards right
14:54 * RandalSchwartz waves at the gathering crowds
14:55 conan_the_destro joined #salt
14:55 conan_the_destro joined #salt
14:57 Xeago_ joined #salt
14:57 dthom91 joined #salt
14:58 RandalSchwartz we'll have Thomas on FLOSS Weekly in about 30 minutes... watch/chat at http://live.twit.tv/
14:58 chrisgilmerproj joined #salt
14:59 cedwards awesome. thanks for the heads up
15:00 brianhicks joined #salt
15:01 s1acky joined #salt
15:01 teskew joined #salt
15:02 jacksontj joined #salt
15:03 kaptk2 joined #salt
15:06 william joined #salt
15:07 abe_music joined #salt
15:07 alekibango joined #salt
15:07 UtahDave joined #salt
15:13 brianhicks joined #salt
15:13 tuxIO_ joined #salt
15:14 luminous whiteinge: around?
15:15 whiteinge yo
15:15 luminous I'm about to hit the ml with a post in reply to your call for input RE salt-formula and would be interested in your thoughts / am available if anything could use more clarification
15:16 whiteinge ok
15:19 luminous whiteinge: you've likely thought of most of these things, but just trying to cover what I can see as super useful and important functionality
15:19 devinus joined #salt
15:20 * whiteinge nods
15:20 UtahDave that's awesome, luminous.  Thanks for taking the time to do that!
15:22 luminous :)
15:22 RandalSchwartz so the salt-cloud stuff is also open source?
15:23 luminous I read that about SPM and it was like wow. yea, that is the piece I have not been able to verbalize, but which sits at the core of all this other stuff this project needs
15:23 luminous RandalSchwartz: yes, and it's AWESOME
15:23 RandalSchwartz cool - we're gonna focus on that today
15:23 RandalSchwartz since we already covered the basics in episode 191
15:23 luminous it's a bit of a game changer
15:23 luminous when combined with the other bits in salt
15:23 RandalSchwartz still probably review the basics though
15:24 StDiluted joined #salt
15:25 whiteinge all of salt is oss
15:25 whiteinge no open core!
15:26 luminous hah, each time I hear/see that, I see a big middle finger to puppet/etc
15:26 luminous :P
15:26 luminous sorry, I'm still bitter from all the time I wasted with puppet
15:27 whiteinge :-)
15:28 UtahDave RandalSchwartz: Salt, Salt Cloud, Salt API, all our formulas and repos are all Apache 2.0
15:28 RandalSchwartz cool
15:28 eightyeight so, i have a 'parallels server bare metal' operating system, which is based on centos. however, 'salt foo.example.com pkg.list_repos' says it's not available
15:29 eightyeight amone other pkg.* stuffs
15:29 * EugeneKay yawns
15:29 _vimalloc joined #salt
15:29 eightyeight is this because PSBM is not supported, even though it uses yum(8)? is there something i can do to take advantage of yum(8) on PSBM?
15:29 UtahDave eightyeight: do other commands like    test.ping work?
15:29 Gareth joined #salt
15:29 eightyeight yeah
15:30 eightyeight grains.items, etc. just pkg.*
15:30 whiteinge luminous: good write-up. I'll reply in a bit
15:30 eightyeight is what i'm struggling with currently
15:30 UtahDave eightyeight: yeah, you need to set the pkg provider manually to use yum
15:30 eightyeight can you point me to some docs?
15:30 UtahDave eightyeight: let me find the docs for the exact syntax
15:30 eightyeight word
15:30 Gareth is Thomas around?  We're waiting for him for FLOSS weekly
15:30 * eightyeight listens to imelda may in the meantime
15:30 luminous whiteinge: ok
15:31 UtahDave eightyeight: here you go: http://docs.saltstack.com/ref/configuration/minion.html?highlight=provider#std:conf_minion-providers
15:32 Gareth joined #salt
15:32 whiteinge Gareth: just text'ed him for you
15:33 UtahDave eightyeight: does that doc make sense?
15:34 Kzim joined #salt
15:34 eightyeight UtahDave: yes. thx
15:34 Kzim hi, is there a diagram that represente the communication and queuing of Salt somewhere ? thx
15:34 Kzim UtahDave, Hey mister, how are you ?
15:34 UtahDave Kzim: Great!  you?
15:36 UtahDave Kzim: I'm not sure if we have diagram in the docs describing all that.  That would be very useful
15:37 Kzim UtahDave, yep i would have avoid me to create one myself :) i' m lazy
15:37 Kzim UtahDave, well i' m good still trying to find a good orchestration/deployment solution slowly. i still want to use salt but it still not fit our needs :(
15:37 armonge joined #salt
15:39 UtahDave Kzim: Was it the overstate that didn't quite do what you needed?
15:39 Kzim UtahDave, but perhaps it can be a component. Tell me is there a know issue with salt 0.15 on the communication ? because some collegue who use Salt stop using it because all the machine do not answer each time :(
15:39 eightyeight UtahDave: why 'yumpkg5'? is this centos-5 based? is there a 'yumpkg6'? or just 'yumpkg'?
15:39 eightyeight or what am i missing?
15:39 it_dude joined #salt
15:40 Kzim UtahDave, nop i had a dev modify it to replace values by arguments so we can do as i asked you on the issue i open but it's a sort of ugly it needs improvment
15:41 s0undt3ch And Tom's Live!
15:41 Kzim UtahDave, to be honest i think my general problem is that i want to use Salt for its Execution framework without the configuration managment. and i feel that more and more those two part can't be independant from each other
15:42 UtahDave Kzim: they need to make sure they have zmq 3.2+ installed
15:42 whiteinge Watch Thomas on FLOSS Weekly live: http://twit.tv/
15:42 UtahDave eightyeight: use yumpkg
15:42 StDiluted does state.show_highstate have output options?
15:42 eightyeight UtahDave: wyh?
15:42 Kzim UtahDave, the lower version of zmq have problems ?
15:42 eightyeight s/yh/hy/
15:43 UtahDave Kzim: you can totally just use Salt's execution framework.  We have lots of users that do that
15:44 Kzim UtahDave, yes but the state think is ... wierd with just the execution part
15:44 UtahDave eightyeight: I can't remember all the details, but one of the yum pkgs shells out and the other uses the python interface to yum
15:45 UtahDave StDiluted: --out json    or   --out raw
15:45 Kzim UtahDave, i find overstate very heavy and not that clear. it feel like the orchestration is far from being the focus compared to the configuration managment.
15:45 UtahDave Kzim: yeah, the overstate needs some work and polishing
15:45 unicoletti left #salt
15:46 Kzim UtahDave, well i continue follow salt closely :)
15:46 Kzim thx
15:46 UtahDave cool!  thank you, Kzim
15:47 craig_ UtahDave: no, we are still kind screwed atm :(
15:47 jimallman joined #salt
15:47 UtahDave craig_: OK, I'll see if I can get Tom to look at what's going on.  He's being interviewed on Floss weekly right this very minute, so it will be a little bit
15:48 craig_ np. i just pinged our systems guys about getting the older RHEL installed in the new data center
15:50 UtahDave cool. Yeah, thomas jackson mentioned that last night
15:50 lazyguru joined #salt
15:51 cedwards s0undt3ch: I think I've got the multi-repo figured out.
15:51 cedwards s0undt3ch: I'll start work on a PR
15:52 s0undt3ch cedwards: Awesome!
15:52 craig_ ya, i was going back thru the logs and just wanted to mention that the request is out there
15:52 craig_ no idea how long it will take :(
15:53 bhosmer joined #salt
15:53 UtahDave ok.  Sorry about that.
15:54 Jahkeup joined #salt
15:55 wralex joined #salt
15:55 gatoralli joined #salt
15:56 craig_ ya... big company :(
15:56 wralex can salt-cloud boot from a volume on openstack?
15:58 eightyeight ok. i put the provider in my /etc/salt/minion config, and here is the error i'm getting from the salt master after running 'salt foo.example.com pkg.list_pkgs':
15:58 eightyeight "pkg.list_pkgs" is not available.
15:59 eightyeight thoughts?
15:59 eightyeight (yes, the salt-minion was restarted)
16:00 UtahDave eightyeight: can you run the salt-minion in the cli on your server?     salt-minion -l debug
16:00 eightyeight sure
16:01 UtahDave Often errors will appear there
16:01 eightyeight ok. here we go
16:01 pjs joined #salt
16:01 KyleG joined #salt
16:01 KyleG joined #salt
16:02 eightyeight no error. just info that i'm executing the command 'pkg.list_pkgs', with a dictionary returned
16:02 UtahDave eightyeight: Let me ask about this. I've never had to set up the package provider.  Just a sec
16:02 eightyeight np
16:03 UtahDave wralex: yeah, salt-cloud can use a custom AMI. is that what you mean?
16:03 blee joined #salt
16:04 terminalmage eightyeight: that function should always be there. on which platform are you trying to do this?
16:05 wralex UtahDave: that's a similar idea, i suppose.. in speaking to openstack's cinder api, one can instantiate a cinder volume, and apply a glance image.. after that volume is created, via api, nova api is contacted to boot a new instance using that new volume.  this differs from the typical workflow of getting a ~10GB glance-based boot volume
16:05 eightyeight terminalmage: "Parallels Server Bare Metal" which is a CentOS fork
16:05 terminalmage the most frequent cause of functions that you expect to be there which arent' available is a traceback when they are loaded
16:05 terminalmage ahh
16:06 eightyeight terminalmage: it uses yum(8) for package management
16:06 terminalmage might be an issue of OS detection then
16:06 eightyeight grains.os comes back fine
16:06 eightyeight and, i've added the provider in the minion config
16:06 UtahDave wralex: Ah, I'm sorry. I totally misread your first question
16:06 terminalmage so, right now, to get you going, you can manually specify the provider in the minion config
16:06 terminalmage eightyeight: ^^^
16:07 eightyeight yup. which i did. ;)
16:07 eightyeight provider:
16:07 eightyeight pkg: yumpkg5
16:07 terminalmage eightyeight: there are two yum providers, one (yumpkg5) which wraps the yum CLI, and the other which uses the yum interface for python
16:07 terminalmage ahh, ok, and you're still getting that error?
16:07 eightyeight i've tried both
16:07 eightyeight yes
16:07 chrisgilmerproj left #salt
16:08 terminalmage eightyeight: ok, in that case, can you see if there's a traceback in the minion log>?
16:08 DanGarthwaite left #salt
16:08 terminalmage errors when loading an execution module will make the functions in it unavailable because the loader wasn't able to finish its job
16:08 eightyeight nothing in the log
16:08 eightyeight of interest
16:08 whit joined #salt
16:09 forrest joined #salt
16:10 terminalmage eightyeight: can you run salt <minion-id> sys.list_modules | grep pkg
16:10 terminalmage see if pkg shows up on the list of modules that were loaded
16:10 benno joined #salt
16:10 eightyeight - pkg_resource
16:10 eightyeight ^ that's it
16:11 terminalmage eightyeight: ok, so the pkg module is not being loaded. this could only be caused by a traceback if you've manually set the provider in the minion config
16:12 terminalmage obviously a minion config change would require salt-minion to be restarted, you've done that I assum
16:12 terminalmage *assume
16:12 eightyeight yes. many times
16:12 terminalmage yeah
16:12 ml_1 joined #salt
16:13 loungin_light joined #salt
16:13 Kholloway joined #salt
16:13 eightyeight so, because i'm not getting a traceback...
16:14 terminalmage eightyeight: when I want to troubleshoot something like this, I stop the salt-minion service, then start it in the foreground with debug logging via: salt-minion -l debug
16:14 eightyeight yup. done that too
16:14 eightyeight no errors. only INFO and DEBUG
16:14 terminalmage ok. it's possible then that the providers bit in the minion config isn't configured properly, and so salt isn't even trying to load that provider
16:15 terminalmage can you pastebin the relevant part of the minion config?
16:15 carinder12 joined #salt
16:15 brianhicks joined #salt
16:16 eightyeight http://ae7.st/p/6b2
16:16 terminalmage eightyeight: also, one other thing to check is to run: salt <minion-id> config.get providers and make sure that you see yumpkg5 there
16:17 eightyeight "config.get_providers" is not available.
16:17 eightyeight does that mean the /etc/salt/minion config is not getting read then?
16:18 EugeneKay Run your minion in the foreground / look at /var/log/salt/minion
16:19 eightyeight just DEBUG and INFO. no errors or tracebacks
16:19 eightyeight same stuffs as before
16:21 eightyeight we are going submit a pull request.
16:23 bhosmer joined #salt
16:24 eightyeight # salt staff.cloud.xmission.com sys.list_modules | grep pkg
16:24 UtahDave joehh: I think I've fixed the Windows users issues. I've got a pull request in ]
16:24 eightyeight - pkg
16:24 eightyeight - pkg_resource
16:24 eightyeight is now the return
16:24 devinus joined #salt
16:24 UtahDave that's better eightyeight.   does pkg.list_pkgs work now?
16:25 eightyeight yes. but pkg.list_repos does not
16:25 eightyeight but, this is after adding a feature to the core python for salt
16:26 eightyeight https://github.com/saltstack/salt/blob/develop/salt/modules/yumpkg5.py in __virtual__()
16:27 eightyeight now we're running into a traceback error. :)
16:30 basepi Alonso: you're my hero.  =P
16:30 basepi that's awesome
16:30 Alonso Who me?
16:30 Guest32580 ;)
16:31 terminalmage s0undt3ch: lol
16:31 basepi whiteinge cringed when he said "Pedro Alonso".  =P
16:31 s0undt3ch UtahDave: that nick is taken!
16:31 terminalmage so did I
16:31 basepi dangit!
16:31 eightyeight pull request submitted
16:32 basepi yay pull req!
16:32 terminalmage eightyeight: sorry, stepped away for a moment. looks like you ran config.get_providers instead of config.get providers before
16:32 basepi (i haven't been paying attention, but regardless, we love pull reqs.  =P)
16:32 terminalmage but it looks like it's working now? what happened?
16:32 _vimalloc You would love pull requests :P
16:32 eightyeight terminalmage: added a pull req to the core yum module to support PSBM
16:33 eightyeight we're not out of the woods yet though
16:33 _vimalloc Couldn't get it working with the config override setuff.
16:33 terminalmage eightyeight: yeah... but it should still work with providers
16:33 terminalmage that overrides virtual
16:33 eightyeight but, it didn't
16:33 Jahkeup joined #salt
16:33 eightyeight tbh, i don't think the daemon is reading teh config
16:33 terminalmage eightyeight: can you run: salt <minion-id> config.get providers
16:33 terminalmage not config.get_providers
16:33 eightyeight sure
16:34 eightyeight terminalmage: empty
16:34 SunSparc joined #salt
16:35 terminalmage do you by chance have two "providers" bits uncommented in the minion config?
16:35 eightyeight no. the pastebin i gave you is everything uncommented in teh configc
16:35 Linz joined #salt
16:35 eightyeight http://ae7.st/p/6b2
16:36 eightyeight should we file a bug?
16:36 basepi _vimalloc: you know it!  =P
16:36 Gifflen joined #salt
16:36 cnelsonsic joined #salt
16:36 basepi _vimalloc: do you not own vimalloc?  or are you just away?
16:37 _vimalloc On my laptop, my desktop has proper vimalloc. I need to get it into znc but I have been lazy
16:37 terminalmage eightyeight: no. it's not a bug, just a misspelling
16:37 terminalmage it's "providers"
16:37 terminalmage not "provider'
16:38 eightyeight ok. so, it's a config bug
16:38 eightyeight i just oncommented it. :)
16:38 eightyeight s/on/un/
16:38 terminalmage I'll check the minion config file template that we distribute with salt to see if it's misspelled there
16:39 eightyeight also, should it be '- pkg: yumpkg5' rather than 'pkg: yumpkg5'?
16:39 mr_chris Is it possible to use compound matchers in an sls file?
16:39 eightyeight in other words, is this yaml? should it be a list?
16:39 eightyeight nope
16:39 terminalmage eightyeight: no it's a dict
16:40 eightyeight yeah. tested both ways
16:40 terminalmage eightyeight: the minion config template, at least the one in git, shows "providers"
16:40 eightyeight yeah. ours showed 'provider'
16:40 terminalmage weird
16:40 eightyeight shrug
16:40 terminalmage what version
16:40 eightyeight it's working now
16:40 eightyeight 0.16.2
16:40 terminalmage ok I'll check it @0.16.2
16:40 terminalmage might have been fixed since then
16:41 StDiluted so I'm managing a file from a website download and it doesn't have an MD5 hash published but it does have a .sig file along with it. What is the best way to handle that?
16:41 UtahDave mr_chris: can you pastebin what you're trying to do?
16:41 terminalmage eightyeight: https://github.com/saltstack/salt/blob/v0.16.2/conf/minion#L235
16:41 mr_chris UtahDave,  Not really. I haven't tried it yet. Here's what I mean, though.
16:41 terminalmage how did you get the config template, was it in a package?
16:41 mr_chris http://docs.saltstack.com/topics/targeting/compound.html
16:42 terminalmage because if it's a packaging bug I want to make sure we fix it
16:42 mr_chris One shown being used in the top file or in salt commands.
16:42 UtahDave StDiluted: manualy download it and get it's md5 hash before hand
16:42 mr_chris Is it possible to utilize those matchers in a SLS file using Jinja?
16:42 mr_chris Or in some other way?
16:42 bhosmer joined #salt
16:42 danielbachhuber joined #salt
16:42 StDiluted UtahDave: blech. there should be  way to check a .sig file in the file.managed function
16:42 eightyeight how can i find a list of supported services with 'providers'?
16:43 UtahDave mr_chris: yeah, pretty much anywhere you match things you can use the compound matchers
16:43 Psi-Jack UtahDave: How, in an if statement in a salt.sls file? ;)
16:43 UtahDave StDiluted: that's a great idea.  Mind opening an issue requesting that feature?
16:44 mr_chris UtahDave, OK. So in an SLS would that be done with Jinja?
16:44 UtahDave mr_chris: Yeah, if you're using jinja to be able to use salt to make other calls, you can use the compound matcher for those salt calls
16:44 UtahDave mr_chris: yes
16:44 mr_chris UtahDave, OK. Thanks!
16:45 terminalmage eightyeight: there is no sort of reverse mapping where you can see which providers are valid for X
16:46 eightyeight ok. i put 'service: sysv'. assuming that's correct
16:47 terminalmage eightyeight: is it RHEL-based, with a chkconfig and /sbin/service?
16:47 eightyeight it's centos based
16:47 terminalmage or does it just use sysvinit
16:47 terminalmage ok
16:48 eightyeight it's actually using upstart
16:48 terminalmage so, rh_service is what you want
16:48 forrest Has anyone used satellite/spacewalk, and explained the pros of config management (not just salt) over those systems? A white paper or anything?
16:48 terminalmage yeah, rh_service support centos6 with a mix of upstart and sysv
16:48 eightyeight terminalmage: are these documented somewhere?
16:48 terminalmage eightyeight: probably only in the individual module docstrings
16:49 Psi-Jack UtahDave: {% if grains['os'] == 'FreeBSD' %}    how would this be done with G@os:FreeBSD instead of grains['os']?
16:49 Psi-Jack That's what I'm trying to clarify. :)
16:49 terminalmage I can definitely add some stuff to the "providers" docs that provides a more thorough mapping
16:50 terminalmage eightyeight: what about if I add something like that here: http://docs.saltstack.com/ref/states/providers.html
16:51 eightyeight yeah. that works
16:51 terminalmage eightyeight: cool, I'll get that done, and ping you if you're still around
16:51 eightyeight ok. thx
16:51 eightyeight thx for your help
16:52 terminalmage no prob. salt is being used in a lot of different spins now where we don't have proper OS detection built into salt, so I should probably already add a blurb to the walkthrough about this as well
16:53 terminalmage Linaro (Ubuntu spin for ARM) is another
16:53 UtahDave Psi-Jack: It's if you're doing something like this: {{ salt['publish.publish']('role:webserver', 'network.ip_addrs', 'eth1', expr_form='compound').values() }}
16:53 StDiluted Does anyone have an example of a state that downloads a tar.gz, and compiles from scratch, with a make and make install?
16:53 * Psi-Jack blinks.
16:54 UtahDave Psi-Jack: sorry more like this:  {{ salt['publish.publish']('G@role:webserver', 'network.ip_addrs', 'eth1', expr_form='compound').values() }}
16:54 terminalmage StDiluted: there is a configure/make/make install example in a cmd state
16:54 Psi-Jack Wow. heh
16:54 forrest Does anyone have an example of partitioning disks with saltstack?
16:55 terminalmage StDiluted: you could put that in a cmd.wait maybe, and make it depend on a file.managed that retrieves the tarball
16:55 StDiluted terminalimage: yeah, that's my plan
16:55 StDiluted just wanted to see if anyone had an example I could look at
16:55 terminalmage yeah, I've seen it but I can't see it on the cmd state docs page
16:55 StDiluted brb, need to restart my irc client, it's really slow and f'ed up
16:56 StDiluted joined #salt
16:56 StDiluted there, maybe that will be better
16:57 mr_chris UtahDave, Here's a more specific question.
16:57 UtahDave k
16:57 jams_ joined #salt
16:58 TJ1980 joined #salt
16:58 mr_chris Say you have "{% if 'dbslave' in grains['localhost'] or 'dbmaster' in grains['localhost'] %}"
16:58 stanchan joined #salt
16:58 mr_chris I would prefer to say, if anything that begins with db
16:58 mr_chris so ^db
16:59 mr_chris In the context of an sls file is that also possible with compound matchers. I'm just having a difficult time imagining what that would look like.
16:59 kleinish_ joined #salt
17:00 UtahDave mr_chris: in that particular case i would use  {% if grains['localhost'].startswith('db')
17:00 mr_chris Holy crap...
17:00 mr_chris There's a startswith function?!
17:00 mr_chris Right, Jinja. Python.
17:00 Psi-Jack heh, python <3
17:00 mr_chris Thanks, UtahDave.
17:01 terminalmage mr_chris: yeah, some but not all of the str methods are available
17:01 RandalSchwartz that was a fun show
17:01 RandalSchwartz salt has clearly come a long ways in 18 months
17:01 terminalmage RandalSchwartz: yeah, I got into salt because of the last interview. Now I work for SaltStack
17:02 terminalmage so, thanks
17:02 UtahDave RandalSchwartz: Yep!
17:02 UtahDave Thanks for putting on such a great interview!
17:02 RandalSchwartz "it's what I do." :)
17:02 UtahDave :)
17:04 jams_ Is it possible to get the ip address of a salt configured machine to another salt configured machine over a salt-cloud configured system? I'd use grains.get('ip_interfaces:eth0'), but thats scope is only to that one machine?
17:05 teepark joined #salt
17:05 UtahDave jams_: you want the peer system or the Salt mine
17:06 UtahDave jams_: those will work as long as they're connected to the same salt master
17:07 jams_ UtahDave: Awesome, looking at that now. Thanks
17:07 UtahDave {{ salt['publish.publish']('role:webserver', 'network.ip_addrs', 'eth1', expr_form='compound').values() }}
17:08 UtahDave gah, sorry: more like this: {{ salt['publish.publish']('G@role:webserver', 'network.ip_addrs', 'eth1', expr_form='compound').values() }}
17:08 jams_ oh sweet. will test that out. don't I need to enable in master config too?
17:09 UtahDave jams_: yes, you do
17:09 UtahDave I'll be back in a little while if you have any more questions.
17:09 matanya joined #salt
17:11 Gifflen joined #salt
17:13 terminalmage eightyeight: I've been looking at ways of improving detection for spins of other distros, can you pastebin the values for all of the grains that start with "os" (os, os_family, etc.), so I can use that information to improve detection?
17:13 troyready joined #salt
17:15 auser joined #salt
17:17 wralex has anyone tightly integrated salt with cobbler?  i see salt-genesis, but it seems leaps and bounds behind cobbler... i'm looking at this paypal slide where they show cobbler + isc dhcp and salt.. surely there's tight integration there
17:18 akoumjian joined #salt
17:19 JesseCW joined #salt
17:21 bhosmer joined #salt
17:23 JesseC joined #salt
17:25 druonysus joined #salt
17:25 druonysus joined #salt
17:27 ninkotech joined #salt
17:30 issackelly joined #salt
17:30 mordred joined #salt
17:33 isomorphic joined #salt
17:34 devinus joined #salt
17:34 dthom91 joined #salt
17:38 backjlack_ joined #salt
17:38 sixninetynine joined #salt
17:39 DanGarthwaite joined #salt
17:41 KennethWilke can i declare my top file in a gitfs_remote
17:42 KennethWilke likewise, a pillar top file in git ext_pillar
17:42 issackelly I'm trying to run salt-minion on a mac laptop, loaded via launchd. When the network changes or disconnects/reconnects, the minion doesn't reconnect to the master. Can somebody help me find a way around that?
17:43 berto- joined #salt
17:43 whit joined #salt
17:44 mike25ro1 issackelly: are you connecting with dhcp?
17:44 issackelly mike25ro1 the master is at a dedicated address/domain
17:44 issackelly salt.example.com
17:44 Kholloway joined #salt
17:45 mike25ro1 yeah but the minion ... doesn't keep its ip
17:45 mike25ro1 is not static i suppose
17:46 issackelly correct
17:46 mike25ro1 i am not sure it will work... i was testing the same.. with 3-4 vms.. and when the ips changed... no more connection to the master
17:46 mike25ro1 setting up static ip per minion solved MY issue
17:47 issackelly that's certainly one thing to try.  I'm trying to manage desktop systems though
17:47 issackelly so, IPs will change a lot
17:48 mike25ro1 issackelly:  not necessarely .. if you add from your dhcp server a static release based on the MAC
17:48 mike25ro1 this is how i do it ...
17:48 issackelly Sure, except when, say employees are WFH, though they'd have to be VPN'd to get onto the network anyway
17:49 mike25ro1 also the VPN ip address can be static
17:49 issackelly yea
17:51 ricicle joined #salt
17:51 titubear in a requisite, is there a diff between pkg: and pkg.installed: ?
17:51 EugeneKay I want to say no, but I don't know enough to be certain
17:52 mike25ro1 me neither :)))
17:52 mike25ro1 i think both can work... or one of them is a legacy ... the same as file.managed
17:53 titubear I would pay $1.99 for a good syntax list for basic sls files
17:55 mike25ro1 titubear: don't pay - look at the examples
17:55 mortis_ what is salts pepper?
17:55 mwillhite joined #salt
17:58 mortis_ but seriously, is there any way to use salt-call to run commands and have the output of the command returned to the minion calling it?
17:59 Gifflen joined #salt
18:02 andredublin joined #salt
18:03 dthom911 joined #salt
18:05 andredublin joined #salt
18:06 mattbarto joined #salt
18:06 eightyeight terminalmage: ok. one sec
18:07 RandalSchwartz left #salt
18:08 eightyeight terminalmage: http://ae7.st/p/5mg
18:08 titubear mike25ro1: need to concatenate all of the examples into one doc that looks more like one of those SQL statement examples
18:09 mike25ro1 titubear: ..and?
18:09 mike25ro1 titubear: need help?
18:10 titubear No I get it eventually.  I'm just more of a fan of syntax references over examples
18:10 mike25ro1 i like both :)
18:10 titubear "this: that [optionalthing: optionalvalue]", etc etc
18:10 titubear sure
18:11 Gifflen joined #salt
18:11 titubear I think I did find a very very skeletal doc tho
18:11 mike25ro1 i agree that the docs could be a bit better...
18:12 mike25ro1 but maybe we can contribute to that as we learn - this is my plany anyhow :)
18:12 titubear the very tail end of this: http://docs.saltstack.com/ref/states/highstate.html?highlight=syntax
18:13 titubear My dream would then to have <Requisite Declaration> to be better specified, not just examples.  Just a newb here tho.
18:14 juanlittledevil joined #salt
18:14 teebes joined #salt
18:14 mike25ro1 titubear: me 2 a noob
18:16 teepark left #salt
18:16 ninkotech joined #salt
18:17 backjlack joined #salt
18:21 ckao I'm trying to use the salt bootstrap script with oracle linux and noticed that it's not suppored as shown here:  https://github.com/saltstack/salt-bootstrap.   How do I go about modifying the script to make it work in OEL5 and 6?
18:23 kleinishere joined #salt
18:25 jdenning joined #salt
18:32 qba73 joined #salt
18:39 mwillhite I'm running into permissions issues…I'm installing rvm…but when I try to install bundler it fails. I then rvm into the box and navigate to the directory with the .rvmrc file I get this error:
18:39 mwillhite mkdir: cannot create directory `/usr/local/rvm/gems/ruby-1.9.2-p290@user_central': Permission denied
18:40 axisys left #salt
18:40 mwillhite so I'm thinking …maybe I'm wrong…that rvm is being installed as root?
18:40 wralex anyone used salt with cobbler?
18:40 mwillhite I'm just not sure how to manage the permissions/users
18:42 issackelly How does a minion exit if the connection to the master is lost?
18:42 ckao i get the message "ERROR: No dependencies installation function found. Exiting..."
18:46 ricicle joined #salt
18:46 SEJeff_work whiteinge, is samuel on irc?
18:46 SEJeff_work I was thinking this widget might be super nifty in halite: http://victorbjelkholm.github.io/ngProgress
18:46 whiteinge SEJeff_work: sometimes. he goes by samsalt
18:47 SEJeff_work whiteinge, Was just thinking that little widget might be super nice when executing commands via halite. Just for the purty
18:49 whiteinge that's a good visual effect
18:49 whiteinge coincidentally, i was just looking at http://ricostacruz.com/nprogress/ a couple minutes ago
18:49 SEJeff_work Yeah it was on news.ycombinator.com yesterday
18:50 SEJeff_work Set it to the default timeout, and return instantly once all minions have responded or something. It would be pretty slick /me thinks. Just an idea, take it as you will
18:57 kleinishere joined #salt
18:59 forrest_ joined #salt
18:59 ninkotech joined #salt
19:02 auser joined #salt
19:02 auser hey all
19:02 whit joined #salt
19:04 felixhummel joined #salt
19:04 giantlock joined #salt
19:10 micah_chatt joined #salt
19:15 ninkotech joined #salt
19:17 devinus joined #salt
19:19 xerxas joined #salt
19:21 it_dude joined #salt
19:22 opapo joined #salt
19:23 Katafalkas joined #salt
19:24 mwillhite if I don't specify 'runas' what user will it use?
19:24 KennethWilke i believe the user the minion runs as
19:24 KennethWilke which would be root by default
19:25 jkleckner joined #salt
19:29 mwillhite ok thx
19:29 Jahkeup joined #salt
19:29 KennethWilke np
19:30 ada__ joined #salt
19:30 tseNkiN joined #salt
19:31 juanlittledevil joined #salt
19:33 andrewclegg joined #salt
19:34 jacksontj joined #salt
19:35 terminalmage eightyeight: thanks
19:35 eightyeight np
19:37 dthom91 joined #salt
19:39 isomorphic joined #salt
19:44 zooz joined #salt
19:45 jslusher joined #salt
19:45 jslusher has anyone had any success passing pillar values as environment variables to a cmd.run?
19:47 teskew with masterless salt, how do you specify other environments for the state-tree ?
19:48 jslusher cmd.run:
19:48 jslusher - name: echo $ENV_VARIABLE
19:48 jslusher - env:
19:48 jslusher - ENV_VARIABLE: {{ pillar['the_var'] }}
19:48 jbraeg left #salt
19:48 micah_chatt ok kinda simple question, but how do I reference grains in my state files if I'm using the py renderer
19:48 jslusher I get a subprocess error when I run that
19:48 jslusher TypeError: execve() arg 3 contains a non-string value
19:49 micah_chatt import salt.modules.grains isn't working for me
19:49 micah_chatt I get a python error, AttributeError: 'dict' object has no attribute 'modules'
19:50 micah_chatt so I'm guessing salt is already in the envirionment as a dict? there?
19:50 armonge_ joined #salt
19:52 jslusher ok. it's not an error with the pillar
19:53 jslusher it has something to do with the way I'm trying to set the environment variables
19:53 mike25ro1 jslusher: the pillar should be fine
19:53 jslusher mike25ro1: yeah,. it seems to be
19:53 mike25ro1 can you try and add the env variable BEFORE running the echo?
19:54 jslusher mike25ro1: I'm not sure if I'm passing the environment variables properly
19:54 mike25ro1 in a different state definition... and the echo should depend on that
19:54 jslusher I'll try that.
19:54 mike25ro1 pf... not worked with that... env var with salt :)
19:55 jslusher haven't had much luck separating cmd calls and trying to pass variables
19:55 jslusher that's why I was trying the env argument
19:55 mike25ro1 i can't really help ... never used that
19:57 jslusher anyone know the proper form for the env argument in cmd.run?
19:58 bhosmer joined #salt
19:59 whiteinge jslusher: have you tried with the "pillar" kwarg?
20:00 KennethWilke joined #salt
20:00 whiteinge e.g., salt-call state.sls somesls pillar='{the_var: the_val}'
20:00 jslusher whiteinge: it doesn't seem to be the pillar that's generating the error. I get the same thing when I pass the value itself to the env arg in cmd.run
20:00 stanchan joined #salt
20:00 isomorphic joined #salt
20:02 mwillhite how can I debug a failed gem install? all I get is: Could not install gem.
20:02 mwillhite using the gem state…
20:02 jslusher I would think it should look like this:
20:02 jslusher env:
20:02 jslusher - env: value
20:03 jslusher I also tried:
20:03 jslusher env:
20:03 jslusher - env:
20:03 forrest_ joined #salt
20:03 jslusher - value
20:03 jslusher and:
20:03 jslusher env:
20:03 jslusher - env=value
20:03 jslusher all generate the same error
20:05 whiteinge ah. sorry, i glossed over the traceback
20:06 ninkotech joined #salt
20:06 jeddi joined #salt
20:08 kleinishere joined #salt
20:08 jacksontj question about the gitfs fileserver-- it caches the hashes of files in "file_hash" function-- who cleans those up? or does anyone?
20:08 teebes joined #salt
20:08 whiteinge jslusher: is that your whole sls above? it's missing the ID declaration at the top
20:09 KennethWilke jacksontj: talking slightly out of my rear end here, but i think those are the raw git objects, and you usually shouldn't need to clean them up
20:10 KennethWilke warning: may be more than slightly
20:10 jacksontj ah, i'm talking about the hashes of the files-- not the gitfs file system, )inside the function file_hash in gitfs.py)
20:10 KennethWilke ah okay then yes! full out the wrong end :) sorry!
20:10 whiteinge jslusher: somehting like this? http://paste.fedoraproject.org/33877/37711583
20:11 mwillhite how can I require an rvm gemset?
20:11 druonysus joined #salt
20:12 mwillhite I using states.gem and I want to make sure the gemset exists before I install my gem
20:14 stanchan joined #salt
20:14 dthom91 joined #salt
20:15 jacksontj i cant find anything that cleans is up..
20:15 jacksontj so i guess we dont
20:15 jacksontj the only real problem we can run into is that the cache dir will grow unbounded
20:15 jacksontj if you add/remove lots of files
20:15 tuxIO joined #salt
20:16 jmpf joined #salt
20:18 gldnspud joined #salt
20:19 abe_music in a SLS, can i check to see if a service is available and if it is, make sure it's not running? this is my attempt, but having troubles: https://gist.github.com/abemusic/6299682
20:21 jslusher whiteinge: I was just listing the env argument
20:21 jslusher whiteinge: one thing that's different in mine is that I have cmd.run instead of listing run on a separate line
20:21 jmpf had a quick question that I didn't see immediately - what's the ramifications of a minion checking into a master then dropping off the face of the planet?
20:22 jslusher whiteinge: let me check to see if that makes a difference
20:22 stanchan joined #salt
20:23 david_a joined #salt
20:25 cedwards jmpf: if your minion dropped off the planet never to be seen again, the master would have an (un)accepted key for it..
20:25 jeddi jmpf: implications for the master, or the minion?
20:26 devinus joined #salt
20:26 jmpf jeddi: mainly for the master; I personally don't care what happens to the minions - just don't want them to sit screw over the master
20:27 jmpf cedwards: so does the minion just drop from the list then? after a certain period of time or ?
20:27 teebes joined #salt
20:28 devinus joined #salt
20:29 cedwards jmpf: the master will retain the (un)accepted key until you do something with it.
20:29 jslusher whiteinge: I got it. apparently you can't pass a int as an env variable?
20:31 jmpf cedwards: so if an instance blows up - what's the convention to deal w/that?
20:32 jmpf ping each one on a cron or something?
20:32 cedwards jmpf: if you're dealing with cloud instances you might look into salt-cloud. it handles adding/removing keys automagically.
20:32 bhosmer joined #salt
20:32 jmpf orly? ok cool, thnx!
20:32 zwevans left #salt
20:33 cedwards s0undt3ch: i have good news and bad news with the salt repo config patch
20:35 toastedpenguin joined #salt
20:38 UtahDave joined #salt
20:41 s0undt3ch cedwards: oh?
20:41 s0undt3ch cedwards: bad first
20:42 Jahkeup joined #salt
20:43 qba73 joined #salt
20:44 jacob_ joined #salt
20:44 cedwards s0undt3ch: pkgbeta.freebsd.org supplies an outdated version of the pkg binary that doesn't support multiple repos
20:45 s0undt3ch cedwards: and the other public repo?
20:45 StDiluted LOL, whoops.. I used almost a terabyte of bandwidth on my comcast modem for the past few months
20:45 Jahkeup joined #salt
20:45 StDiluted or rather, on my comcast account
20:45 cedwards s0undt3ch: I haven't tried the pcbsd yet.
20:46 jacob_s joined #salt
20:46 s0undt3ch cedwards: I'd assume pkgbeta to be cryppled
20:46 s0undt3ch *crippled
20:47 cedwards other than that, I can get bootstrap to work everytime with a configured [salt] repo
20:48 cedwards I'll see if I can get it to work with pcbsd repo and let you know
20:49 s0undt3ch cedwards: Thanks!
20:50 backjlack joined #salt
20:51 gildegoma joined #salt
20:54 p3rror joined #salt
20:57 craig_ i am using the client api and i need to set the log level to, say, warn
20:57 craig_ but, just for the call i make
20:57 craig_ salt_caller = salt.client.Caller()
20:57 craig_ salt_caller.function(sync_name)
20:58 craig_ i just want that one call to have a differnet log level
20:59 cedwards s0undt3ch: PCBSD repo works
20:59 s0undt3ch cedwards: Awesome!
21:00 cedwards s0undt3ch: I'll put together a patch after my meeting
21:00 s0undt3ch cedwards: k, Thanks for your trouble
21:04 forrest_ thanks for clearing up issue 6812 basepi.
21:11 eshagh joined #salt
21:11 george_torwell joined #salt
21:14 cedwards s0undt3ch: PR submitted
21:14 whiteinge jslusher: glad you got it. that makes sense
21:15 s0undt3ch cedwards: pcd is only available for amd right? should that be a problem?
21:16 cedwards s0undt3ch: bootstrap may not work on i386, but those are fewer and fewer
21:16 s0undt3ch cedwards: I'm find with that for now ;)
21:18 cedwards me too
21:19 rberger joined #salt
21:19 juanlittledevil joined #salt
21:20 dthom91 joined #salt
21:21 jacksontj joined #salt
21:22 s0undt3ch cedwards: again, Thanks!
21:23 cedwards no problem
21:23 cedwards scratches an itch of mine anyway
21:23 mattbarto joined #salt
21:29 teebes joined #salt
21:29 Linz joined #salt
21:32 jtrucks joined #salt
21:32 mike25ro1 left #salt
21:34 jtrucks joined #salt
21:44 HaxCore joined #salt
21:46 jacksontj joined #salt
21:53 gildegoma joined #salt
21:53 jacksontj joined #salt
21:56 dthom91 joined #salt
21:58 Jahkeup joined #salt
22:01 Jahkeup_ joined #salt
22:01 jacksontj joined #salt
22:04 nmistry joined #salt
22:04 ninkotech joined #salt
22:04 devinus joined #salt
22:09 flurick joined #salt
22:09 kchr joined #salt
22:12 vmdsch joined #salt
22:19 aat joined #salt
22:24 VertigoRay joined #salt
22:25 aat joined #salt
22:25 VertigoRay when writing a python file to work w salt, I've imported salt.utils, but am wondering how to make grains accessible.
22:25 StDiluted __grains__['whatever']
22:27 VertigoRay StDiluted: NameError: name '__grains__' is not defined
22:27 oz_akan_ joined #salt
22:27 StDiluted hrm
22:27 StDiluted mine works ok
22:28 StDiluted import salt.utils at the top
22:28 VertigoRay the file is literally two lines:  import salt.utils;  print 'grains: ', __grains__
22:28 StDiluted try hostname = __grains__['nodename'] print hostname
22:29 berto- joined #salt
22:30 VertigoRay Same NameError
22:30 VertigoRay note, this is on OSX, but expect it to work since salt works otherwise and I'm not getting an import error
22:30 kstaken joined #salt
22:30 StDiluted weird
22:30 StDiluted mine works just fine
22:31 StDiluted but I'm on linux
22:32 VertigoRay on my debian master, it  doesn't work either.  Same NameError.  Odd
22:33 VertigoRay for kicks, I did:  salt.utils.__grains__['os'] ... got AttributeError: 'module' object has no attribute '__grains__'
22:36 StDiluted very strangew
22:36 StDiluted strange*
22:36 StDiluted literally the only import I have in my external pillar is salt.utils
22:36 StDiluted it's possible it's because salt is calling it?
22:36 VertigoRay yeah ... running that as admin on apple.  tried sudo bash, then running python shell and import salt.utils and printing __grains__ ... same error.  very odd.
22:37 VertigoRay umm ... salt is calling what?  you think cause salt-minion is running it's not working in the shell?
22:38 VertigoRay or if you're asking if salt can call it ... it can.  From master, all nodes work with this:  salt '*' grains.items
22:38 StDiluted no, I mean, my external pillar
22:38 StDiluted it's getting called from within salt
22:39 StDiluted so perhaps the variables are getting passed through in a different way
22:39 kula __grains__ and stuff like that shows up through the magic of the salt loader. simply importing salt.utils won't get it.
22:39 StDiluted yeah
22:40 VertigoRay then how do I tell the salt loader to get to work?
22:40 kula i had to figure this all out when i was trying to figure out ext_pillars and wondering 'where the hell does all this stuff come from?'
22:41 kula i honestly don't know how you'd get access to __grains__ and whatnot if you aren't writing an ext_pillar or custom grain or module or state.
22:41 VertigoRay I'm writing a custom grain
22:42 kula i'm not actually sure custom grains get passed __grains__
22:42 VertigoRay right now, I just want to confirm that the computer is an OSX box before telling it to get the model and store it.
22:43 kula ah, salt/loader.py, my old friend....
22:44 vmdsch joined #salt
22:44 TheCodeAssassin joined #salt
22:44 TheCodeAssassin hi alll
22:45 TheCodeAssassin UtahDave: can't you run salt-call --local state-highstate on a master?
22:46 UtahDave TheCodeAssassin: Only if you have the salt-minion installed
22:46 TheCodeAssassin UtahDave: yes it's installed
22:46 kula VertigoRay: are you actually dropping your custom grain where the minion looks for grains, or are you just trying to call it like a python script?
22:46 TheCodeAssassin but i get these weird errors when i run the scripts
22:46 UtahDave yeah, that will work.   state.highstate
22:46 TheCodeAssassin https://gist.github.com/thecodeassassin/85947ee2e69174c20adf
22:46 TheCodeAssassin It works fine when i run it on a minion
22:46 TheCodeAssassin exactly the same script
22:47 TheCodeAssassin but if i run it on the master to get it in the proper state, it fails
22:47 TheCodeAssassin with those errors
22:48 UtahDave TheCodeAssassin: can you pastebin your sls?
22:49 UtahDave TheCodeAssassin: I think it's malformed.  what does the - name option look like?
22:49 VertigoRay kula: dropping it in _grains folder.  I'll have a public function there that just checks for it.
22:49 TheCodeAssassin mom
22:50 TheCodeAssassin i can but the sls files are exactly the same as on the minion
22:50 TheCodeAssassin and they work there
22:50 VertigoRay kula: public function that checks the __grains__['kernel'] == 'Darwin' before it runs 'sysctl hw.model'
22:50 TheCodeAssassin it gives that for all the sls's that are run from tops
22:51 mattbarto joined #salt
22:52 fredvd joined #salt
22:53 kula VertigoRay: look at https://github.com/saltstack/salt/blob/develop/salt/grains/core.py#L890
22:54 kula oh, wait, maybe not.
22:55 kula but i bet if you untangle how that grain does it you'll be on your way.
22:57 TheCodeAssassin UtahDave: can you put the master in a state?
22:57 UtahDave TheCodeAssassin: you have to have a minion running on the master server, then yes you can do that.  I do that all the time
22:58 TheCodeAssassin :(
22:58 VertigoRay kula: I've already got that pulled up.  I've been comparing to that.  The issue is that grains isn't defined yet.
23:00 VertigoRay kula: https://github.com/saltstack/salt/blob/develop/salt/grains/core.py#L278 I think I'll just rebuild that kernels check from scratch
23:00 aat joined #salt
23:00 kula yeah, although i can't figure out where osdata comes from....
23:01 VertigoRay kula: osdata is passed in
23:01 VertigoRay https://github.com/saltstack/salt/blob/develop/salt/grains/core.py#L894
23:02 VertigoRay kula: now I really don't know where it's being set!  :)
23:02 kula yeah, exactly.
23:02 cewood joined #salt
23:02 VertigoRay kula: oh!  https://github.com/saltstack/salt/blob/develop/salt/grains/core.py#L749
23:03 VertigoRay kula: platform.uname() is doing it...
23:04 TheCodeAssassin reinstalling the server UtahDave, starting fresh...
23:04 kula ah. i still have no idea where exactly osdata gets created, though, but that can be a mystery for another time.
23:04 VertigoRay import platform; platform.uname()[0] = 'Darwin'
23:04 VertigoRay kula: osdata is a function parameter
23:05 VertigoRay gets passed in on L894 from grains
23:05 kula ah, i just found that line.
23:06 VertigoRay kula: cool deal ... think I have my process figured out!  Thanks so much for helping me hash this out
23:06 kula no problem. sometime i should write an external grains document to match my external pillar one.
23:07 alunduil joined #salt
23:08 rberger joined #salt
23:13 juanlittledevil joined #salt
23:17 VertigoRay kula: where's your external pillar one?  I'd like to take a look at it.
23:23 cxz joined #salt
23:26 krissaxton joined #salt
23:27 TheCodeAssassin UtahDave: my guess that it was a bug
23:28 TheCodeAssassin because it runs now if i check out from master
23:28 iPaulo joined #salt
23:28 TheCodeAssassin instead of develop
23:34 kula VertigoRay: http://docs.saltstack.com/topics/development/external_pillars.html
23:35 andredublin joined #salt
23:40 dthom91 joined #salt
23:40 UtahDave TheCodeAssassin: master is probably really really old.
23:40 TheCodeAssassin 0.16.3 ?
23:40 TheCodeAssassin all i know is if i checkout from develop, it doesn't run
23:40 TheCodeAssassin gives those errors
23:41 UtahDave I'm not sure if our guys have been merging to master
23:41 UtahDave TheCodeAssassin: I'm sorry. My brain has been all over the place today.  What errors are you seeing again?
23:42 TheCodeAssassin UtahDave:  https://gist.github.com/thecodeassassin/85947ee2e69174c20adf
23:42 TheCodeAssassin brb
23:43 juanlittledevil joined #salt
23:44 UtahDave TheCodeAssassin: can you pastebin your sls?
23:50 TheCodeAssassin top.sls?
23:50 TheCodeAssassin because it runs many sls files
23:50 TheCodeAssassin but all won't work
23:50 TheCodeAssassin https://gist.github.com/thecodeassassin/2087f3372455db92df57
23:51 TheCodeAssassin https://gist.github.com/thecodeassassin/e1e8c463df596cdbb6f0
23:51 TheCodeAssassin https://gist.github.com/thecodeassassin/0fc24f415fd204034b22
23:51 TheCodeAssassin from top to bottom in order of execution
23:52 TheCodeAssassin runs fine when i run it from the latest stable wget -O - http://bootstrap.saltstack.org | sudo sh
23:52 TheCodeAssassin curl -L http://bootstrap.saltstack.org | sudo sh -s -- -M -N git develop <-- breaks it
23:56 UtahDave TheCodeAssassin: I wonder if  - pkgs MUST have more than one package.
23:56 TheCodeAssassin dunno, but it works on stable
23:56 TheCodeAssassin that breaks all of the sls's ?
23:58 UtahDave I don't know for sure.  I'll have to test it later tonight.
23:58 UtahDave I'll keep your gists open and test later.  I have to head home now

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