Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-06-28

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

All times shown according to UTC.

Time Nick Message
00:00 UtahDave Ryan_Lane: I've never tried that before. Let me test here real quick
00:00 mianos oh, two '::' never tried that one
00:03 mianos is there a way to only show the errors with salt?
00:04 jacksontj UtahDave: hmm, dont seem to be able to get that working
00:04 UtahDave jacksontj: did you restart the master after changing the config?  (sorry for asking the obvious...)
00:05 UtahDave Ryan_Lane: Hm. I'm seeing the same behavior as you. Can't seem to escape that either
00:05 jacksontj Oh, got it-- not quite that easy but close
00:05 jacksontj its "pillar" not "pillars"
00:05 jacksontj ;)
00:05 jacksontj awesome
00:06 Ryan_Lane UtahDave: yeah :(
00:06 UtahDave jacksontj: Ah, good.  So that's working now?
00:06 jacksontj yup-- perfect ;)
00:06 Ryan_Lane we have "system roles" defined in out puppet repo, and I was going to reuse those as salt grains
00:06 UtahDave Ryan_Lane: would you mind opening a bug on that?  I'm guessing it won't be too hard of a fix. I'm betting the code is splitting on the :
00:06 Ryan_Lane but the roles are based on the puppet classes, which include :: :)
00:06 jacksontj going to be overhauling the filesystem layout for our salt install-- so i'm trying to come up with all things that i should take into account
00:06 UtahDave and we just need to only let the split happen once
00:06 Ryan_Lane cool. thanks
00:07 UtahDave jacksontj: awesome.
00:07 jacksontj thanks again!
00:07 jacksontj i'm headed home-- moving this weekend ;)
00:07 UtahDave you're welcome as always, jacksontj!
00:07 UtahDave Ah, nice!  Did you buy a new house?
00:07 jacksontj yup :D
00:07 jacksontj well, new to me at least
00:08 UtahDave sweet!  Congratulations
00:08 Ryan_Lane https://github.com/saltstack/salt/issues/5799
00:09 UtahDave Thanks, Ryan_Lane!  I appreciate it.
00:09 Ryan_Lane yw
00:09 bluemoon joined #salt
00:10 rberger joined #salt
00:12 bemehow joined #salt
00:13 bemehow joined #salt
00:14 mianos I need int() in jinja, has anyone tried to use native ninja stuff?
00:15 bemehow joined #salt
00:16 bemehow blast_hardcheese: thx will try that
00:17 mianos or just any expressions
00:17 mianos should work
00:19 mianos hmm, actually, builtin filters don't seem to work
00:19 jamescarr joined #salt
00:19 mgw joined #salt
00:20 cxz joined #salt
00:21 mikedawson joined #salt
00:23 steveoliver joined #salt
00:24 Gwayne joined #salt
00:24 Gwayne joined #salt
00:25 baniir joined #salt
00:25 sciyoshi1 mianos: the default filters should just work
00:25 mianos yes I thought so
00:26 mianos port = {{ 5432 + int(shard, 0) }}
00:26 mianos from this:
00:26 mianos - context:
00:26 mianos shard: "{{shard}}"
00:27 sciyoshi1 filters are like this: {{ 5432 + shard|int(0) }}
00:27 sciyoshi1 and from your sls you shouldn't need the quotes either
00:27 sciyoshi1 and then i don't think you'd need the filter in the template
00:27 mianos I need the quotes because the shard is 00X
00:28 sciyoshi1 ah ok
00:28 mianos and if it gets passed to the template without that it ended up removing the leading zeros
00:28 mianos there are some places I need to use it as "001"
00:28 mianos and others, like the port number I want to convert it to an int
00:28 mianos output = jinja_env.from_string(tmplstr).render(**context)
00:28 mianos File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render
00:28 mianos return self.environment.handle_exception(exc_info, True)
00:28 mianos File "<template>", line 39, in top-level template code
00:29 mianos UndefinedError: 'int' is undefined
00:29 mianos oops sorry a bit long pasty
00:29 mianos from port = {{ 5432 + int(shard, 0) }}
00:29 sciyoshi1 yea you need {{ 5432 + shard|int(0) }}
00:29 mianos aha, silly me
00:30 UtahDave mianos: try this: {% 5432 + int(shard, 0) %}
00:30 mianos I tried it as python
00:34 nrub joined #salt
00:35 UtahDave Ryan_Lane: Hm. It's not going to be as easy as I thought.
00:36 UtahDave 1.  according to http://docs.saltstack.com/topics/targeting/grains.html?highlight=grains  you can have grains of arbitrary depth and use the ":" to descend into dictionaries
00:37 UtahDave and 2. python's  split() and rsplit()  will take two instances of a delimiter and return an empty string.
00:37 oz_akan_ joined #salt
00:37 UtahDave for example, '1,,2'.split(',') returns ['1', '', '2'])
00:38 UtahDave OK, time to head home.  See you all tomorrow!
00:38 bhosmer joined #salt
00:39 Ryan_Lane :(
00:39 mianos sciyoshi1: thanks, I should have known better
00:39 kermit joined #salt
00:39 mianos I'm using filters galore in our app
00:39 jacksontj joined #salt
00:40 mianos just thoughts expressions just worked but forgot
00:45 UtahDave Ryan_Lane: I'm sure we can figure something out
00:45 Ryan_Lane well, at least some escaping :)
00:47 Gifflen joined #salt
00:51 Gifflen joined #salt
01:00 Outlander joined #salt
01:00 whit joined #salt
01:00 Nexpro1 joined #salt
01:03 kleinishere joined #salt
01:04 scooby2 hrm. cmd.run doesnt have a require
01:07 oz_akan_ joined #salt
01:11 nrub joined #salt
01:11 coolj joined #salt
01:11 luminous scooby2: all do, it is implicit
01:12 luminous require is a 'requisite' along with watch, and maybe anohter I forget - these are all available on all states
01:17 scooby2 oh excellent
01:18 scooby2 let me try it
01:21 santagada_ joined #salt
01:25 Outlander hi team
01:25 rberger joined #salt
01:25 Outlander how does saltstack perform when managing directories recursively compared to puppet? (in puppet in a file resource, it's recurse => true)
01:28 cxz the same?
01:28 cxz file.recurse:
01:35 jayd3e joined #salt
01:36 jayd3e Just attempted to run the following script and got the following error, any ideas? https://gist.github.com/jayd3e/5881809
01:37 Furao joined #salt
01:38 jayd3e errr wait, I think I might know, so states don't necessarily get run in exactly the order that they are specified right?  'require' sections are used to build the order
01:40 mianos not unless you have requires
01:40 mianos like I have:
01:40 mianos virtualenv.managed:
01:40 mianos oops
01:40 mianos no /
01:40 mianos haha, I;m in irc
01:40 mianos .. /home/caboodl/virtualenv:
01:40 mianos virtualenv.managed:
01:41 mianos - require:
01:41 mianos - pkg: python-virtualenv
01:41 mianos - pkg.installed: libraries
01:44 mgw joined #salt
01:45 jayd3e mianos: where libraries is a state id, of a set of packages?
01:46 mianos yep, actually for me it's the system libraries
01:46 mianos libraries:
01:46 mianos pkg.installed:
01:46 mianos - names:
01:46 mianos - libjpeg-dev
01:46 mianos - zlib1g-dev
01:46 mianos - python-dev
01:46 mianos - python-virtualenv
01:47 jayd3e mianos: ok so I do that as well, but it is a requirement of my python installation
01:47 oz_akan_ mianos: you can use a paste web site and paste here the url
01:47 mianos I think I probably have way too many 'require:' stanzas
01:47 oz_akan_ like paste.openstack.org
01:47 mianos yes yes
01:47 mianos oz_akan_: I know but I culled that by 20 lines just ti paste
01:47 jayd3e mianos: but basically all of those packages are getting installed before virtualenv gets run, but yet it's still erroring out
01:49 jayd3e this is how I setup python https://gist.github.com/jayd3e/5881879
01:53 Outlander cxz: I mean is saltstack any better (performance wise) than puppet for recursively managing dirs. Doing this in puppet is a performance killer, but wondering if that's from puppet design, ruby inefficiencies or if it's the same problem for everyone.
01:53 jayd3e it has to do with the ordering definitely I think
01:53 aranhoide joined #salt
01:55 raydeo joined #salt
02:00 milind_ joined #salt
02:01 mianos good hashing / sensible code / zeroMQ?
02:04 jhujhiti i'm having some trouble getting salt-master to start on freebsd: http://pastie.org/private/e79ulbt4lvdyfoanplyoq -- the module is there, but it's there as a .egg file rather than directory. i'm playing around in the python shell and that seems to be the issue
02:04 jhujhiti not sure what i've done wrong
02:04 jayd3e so you have to use require if you want things to order correctly right?
02:05 Gifflen_ joined #salt
02:05 jayd3e otherwise it's completely unknown
02:05 mianos I have a lot of require: , I think I may have too many
02:06 mgw1 joined #salt
02:09 jayd3e mianos: just found a place in the docs that says that ordering is pretty much exclusively determined by these mechanisms http://docs.saltstack.com/ref/states/ordering.html
02:09 jayd3e and isn't based on the order you define it
02:10 mianos ok then, maybe I don't have too too many :)
02:34 scooby2 can a require another state to have happened first with require?
02:37 racooper joined #salt
02:39 kleinishere joined #salt
02:49 LarsN wow I seem to be full of dumb questions
02:49 kleinish_ joined #salt
02:50 milind_ joined #salt
02:56 kmwhite joined #salt
02:58 liuyq joined #salt
02:59 Corey LarsN: The best kind!
03:00 Piyush joined #salt
03:00 cxz Outlander: hmmm, not sure if im qualified to answer in that case
03:01 Gwayne joined #salt
03:01 Gwayne joined #salt
03:04 druonysus joined #salt
03:04 druonysus joined #salt
03:06 luminous scooby2: yea, there is the overstate system for that sort of orchestration
03:06 luminous or maybe I don't understand the question?
03:07 kleinishere joined #salt
03:08 chadhs joined #salt
03:08 chadhs anyone in here using saltstack with FreeBSD deployments?
03:10 luminous cedwards does
03:10 luminous I believe he maintainms the package
03:10 Ryan_Lane1 joined #salt
03:11 pygmael left #salt
03:11 Ryan_Lane joined #salt
03:11 chadhs interesting
03:12 chadhs seems like out of puppet, chef, fabric, and saltstack that it's the one that actually mentions FreeBSD support
03:12 oz_akan_ joined #salt
03:13 LarsN chadhs: I have salt-minion installed on a freeBSD server.
03:13 LarsN I have exactly zero state files.
03:13 mortini .wubdiw ckise'
03:13 mortini derp
03:13 luminous chadhs: what do you want to do?
03:13 mortini left #salt
03:13 chadhs LarsN, how well does it work for you
03:14 luminous chadhs: openbsd is also supported to some degree
03:14 bluemoon joined #salt
03:14 chadhs luminous, i'd like to be able to run commands on multiple virtual FreeBSD machines AS WELL as use it for deploying new builds
03:14 chadhs aka installing packages, pushing out configs
03:15 aleszoulek joined #salt
03:16 LarsN chadhs: I'm not doing anything useful with it yet, so I couldn't tell you
03:16 LarsN I'm still VERY early into my "getting salt to do things for me" stage
03:16 adrianrego joined #salt
03:16 chadhs LarsN, 10-4 but thnx for mentioning it.
03:16 LarsN specifically today I've been cursing at rsyslog and a test.conf that appears to want me to go into a nerd rage here at the office.
03:16 bruce-one joined #salt
03:16 LarsN chadhs: there's a pile of ZFS tools build into salt that are VERY swanky.
03:17 LarsN I've used them interactively with great success.
03:17 LarsN zpool management bits etc.
03:17 chadhs luminous, LarsN, I think it would be potentially more powerful than just having a big Makefile
03:17 LarsN chadhs: yeah.
03:17 chadhs LarsN, now that is cool; we love our ZFS
03:17 LarsN chadhs: that's one of the reasons I'm using it.  In this case we're building "pingdom" check scripts.
03:18 chadhs eventually may move from VMWare to SmartOS and run FreeBSD in KVM zones and maybe a few SmartOS (illumos/solaris) native zones for simple stuff.  All ZFS storage
03:18 chadhs LarsN, ah gotcha
03:18 LarsN chadhs: I should say "building pingdom check instances & deploying/configuring all the scripts" including but not limited to touching the pingdom API to make it aware of the new checks.
03:19 LarsN using salt-cloud + salt-master
03:19 LarsN because manually configuring systems where there are 100 or more points of contact is stupid. :)
03:20 luminous chadhs: out of the options you listed, I would only recommend salt
03:20 luminous try it for some time and you will see why
03:20 luminous there are some gotchas and you will run into some headaches (as with anything), it is not like salt is free from such things, but saltstack is a literal game changer for the work we do and what you have desribed
03:21 chadhs LarsN, luminous, im going to try it now on my Mac.  installing a quick FreeBSD 9.1 vm in VMWare Fusion and reading here: http://docs.saltstack.com/topics/installation/freebsd.html
03:21 luminous chadhs: check out salty vagrant and salt-bootstrap
03:21 raydeo joined #salt
03:22 chadhs is that better installing the port.  or is the bootstrap idea to run one simple wget + sh with sudo to get enough to install the full blown py-salt port etc?
03:22 luminous with salt-bootstrap you can install salt on a master/set of minions in minutes, do an ``echo 'i.p.of.master' >> /etc/hosts``, restart the minions and run salt-key -A on the master, and within that timeframe, start to communicate with your minions
03:23 luminous salt-bootstrap generally does what is best for the os you are one
03:23 luminous *on
03:23 chadhs i love "skunkworks" projects =)
03:23 LarsN we're boot straping via salt-cloud
03:23 LarsN same song, slightly different dance.
03:24 LarsN one of those side effects of working for a large public IaaS cloud, is you have access to instances
03:24 LarsN lots and lots of instances.
03:25 jessep joined #salt
03:25 chadhs luminous, so salt-vargrant would be something to look into for provisioning our web dev team's dev vms for use on their macs
03:26 chadhs salt-bootstrap to get my "real" vms up and flying?
03:26 luminous salty-vagrant for use with vagrant/dev, yep
03:26 chadhs LarsN, im digging the salt-cloud thing; we do use a little bit at rackspace in addition to our own datacenter and server room hosting
03:26 luminous salt-bootstrap for installing else where, and that is what salt-cloud uses
03:26 LarsN chadhs: if you're willing to share, where do you work that you get to play with FreeBSD on a regular basis.
03:27 luminous chadhs: I highly recommend taking salt for a spinm with salt-cloud on openstack/rackspace you will be VERY impressed, I assure you
03:27 luminous there's a big middle finger to puppet/chef/etc in there
03:28 bruce-one joined #salt
03:28 LarsN luminous: my co-worker Amos has a patch that fixed up public/private IP detection in the HP Cloud.
03:28 LarsN provided it all passes muster, 0.8.9 is likely to include it.
03:28 LarsN his patch was merged into the dev branch last weekend.
03:29 chadhs cool thanks for the info on that luminous; and i will try it on rackspace too
03:29 chadhs lol at the finger comment
03:30 luminous it's so true
03:30 luminous folks don't seem to realize how much of a game changer this stuff is.. but it's really true
03:30 luminous puppet is really stinky poo in comparisom
03:30 chadhs LarsN, I work for a publishing / media company based in the midwest that does ad supported printing and provides online tools to a lot of non profits; most of the customers are churches actually
03:31 LarsN I used to work for Six Feet Up, which is a Web Hosting & Development firm, specializing in Plone (CMS) on primarily FreeBSD servers.
03:31 luminous actually, that's a bit of an insult to poo. poo has quite a lot of value if composted and used. you can't do much of anything useful with puppet, when put up against salt
03:31 LarsN SFUP is also in the midwest (Fortville, IN)
03:31 chadhs since my username is my twitter name its easy to google, ill share the co name lol.  Liturgical Publications, Inc
03:31 chadhs ah very cool
03:32 chadhs haha luminous
03:32 luminous <3 BSD
03:32 LarsN I got to give a presentation at BSDCan 2011 as a result of some of the work I did at SFUP.
03:32 LarsN now I'm at HP Cloud Services.
03:32 * luminous is bitter, having wasted too much time with puppet
03:32 luminous it took me ~ two weeks to recreate my whole puppet setup, cleaner/simpler/etc in salt
03:32 chadhs BSD is great.  Probably going to start a blog series called Why UNIX that will focus on FreeBSD a lot
03:33 chadhs luminous, at least you're helping folks like me to try it out before diving into other stuff
03:33 luminous I spent a year and a half getting that crap in puppet
03:33 chadhs wow!
03:33 luminous :)
03:33 luminous yea, seriously
03:33 luminous and here's another detail..
03:33 kleinishere joined #salt
03:33 chadhs LarsN, what did you present on?
03:34 Corey Sitting in a Puppet class, wee.
03:34 LarsN chadhs: talk was titled "Speed Daemons - High performance web clusters for fortune 500s and their admirers"
03:34 LarsN it also turned into a BSD Magazine article in Nov. 2011
03:34 luminous before finding salt, about two - three months prior (just last fall), I was in #puppet and described how I wanted to work with puppet, how I wanted modules and my code to flow with hiera/etc..
03:34 chadhs LarsN, wow that is pretty cool.
03:34 LarsN My boss asked me today "When can we expect a first training on using salt"
03:34 luminous what I described was IDENTICAL to the primary flow with salt + pillar
03:35 chadhs luminous that is pretty cool
03:35 luminous all the puppet folks told me I was nuts and that it didn't make any sense
03:35 luminous >.<
03:35 LarsN I told him, maybe 2 weeks.  And that yesterday I built a dev cluster with 1 salt server and three minions.  connected them to one another, and pushed keys around....
03:35 LarsN in 12 minutes.
03:35 LarsN he was speachless at ^
03:35 LarsN speech
03:36 chadhs luminous, LarsN, i think you guys more than sold me on giving this a go
03:36 luminous yea, this stuff is fast and awesome to work with
03:36 luminous chadhs: again, ignore us.. just go play
03:36 LarsN chadhs: http://www.bsdcan.org/2011/schedule/events/216.en.html
03:36 luminous do something meaningful, solve some problems you are facing
03:36 LarsN slides and audio for the talk are there if you're mobid and/or curious
03:36 luminous recreate something you have done manually
03:36 luminous go find a file you lost on one of your 29 hosts..
03:37 chadhs thanks for the link LarsN
03:37 chadhs luminous, im going to go do exactly that
03:37 luminous that sold me real quick early on :P
03:37 luminous ;)
03:37 chadhs im sure ill be back at some point
03:37 chadhs 10-4
03:37 chadhs peace out; thanks guys
03:43 zonk1024 joined #salt
03:47 koolhead17 joined #salt
03:47 koolhead17 joined #salt
03:49 bruce-one joined #salt
03:49 Furao https://github.com/saltstack/salt/compare/7e05ad95c7bb...3f84c973c6b8
03:49 Furao git pillar!
03:50 Corey Huh.
03:51 Furao now, can I get a jinja SaltLoader?
03:54 bruce-one joined #salt
03:55 StDiluted joined #salt
03:55 mianos joined #salt
04:03 rberger joined #salt
04:03 bruce-one joined #salt
04:04 Ryan_Lane joined #salt
04:08 jamescarr joined #salt
04:12 baniir joined #salt
04:13 a1j joined #salt
04:14 Katafalkas joined #salt
04:15 jaequery joined #salt
04:17 jamescarr joined #salt
04:24 erasmas joined #salt
04:25 mianos joined #salt
04:33 pyeek_ joined #salt
04:34 rglauser joined #salt
04:49 bruce-one joined #salt
04:50 bluemoon joined #salt
04:54 alekibango joined #salt
04:56 bruce-one joined #salt
05:03 bruce-on1 joined #salt
05:09 bruce-one joined #salt
05:17 foobar_ joined #salt
05:18 LyndsySimon joined #salt
05:22 bemehow joined #salt
05:23 indymike joined #salt
05:24 luminous Furao: SWEET!
05:27 aranhoide joined #salt
05:33 robawt is there an installation page for salt-cloud?
05:33 robawt installing from pypi is turning into a mess
05:34 bruce-one joined #salt
05:38 mianos for salt?
05:38 LyndsySimon joined #salt
05:40 auser joined #salt
05:44 jayd3e joined #salt
05:45 jayd3e so I'm having some issues with properly ordering all of my states, maybe someone can provide me with some insight?  For example, when I define 4 states in a .sls file, are they guaranteed to execute in the order they appear in the file?
05:46 knightsamar joined #salt
05:46 Furao jayd3e: no. use - require and - watch
05:47 jaequery joined #salt
05:48 jayd3e Furao: can I use require with state ids?
05:48 jayd3e b/c I've only see -require pkg:
05:48 jayd3e seen*
05:49 jayd3e and not all of my dependencies come in the form of packages
05:49 Furao check github.com/bclermont/states for a lot of examples
05:51 auser hey all
05:52 auser jayd3e: no, you have to set up the dependency graph yourself
05:52 auser jayd3e: you can set require and watch on all states
05:56 jayd3e auser: kk.  Sounds good
05:57 jayd3e auser: states like gem, git, virtualenv all check for their respective packages to be installed right?
05:57 auser what do you mean?
05:57 jayd3e so like git automatically have -require: pkg: git included?
05:57 auser oh no
05:58 auser you need to specify that
05:58 jayd3e kk good to know
05:58 auser I think that's a feature request that needs to be implemented
05:58 auser yeah
05:59 mianos almost all of my stanzas have require
05:59 auser mine too
05:59 afx_hero joined #salt
05:59 afx_hero joined #salt
06:00 auser I dig the ones that don't though, 'cause they are unique
06:00 mianos grep require: * | wc
06:00 mianos 23
06:07 jayd3e auser: o so a package can be a state id?  so I can do like -require: pkg: state-id
06:07 auser yep
06:08 jayd3e kk cool
06:08 linjan joined #salt
06:09 Ryan_Lane joined #salt
06:23 jayd3e a pkg can't be a state id auser
06:23 jayd3e just found
06:24 auser apache:
06:24 afx_hero joined #salt
06:24 afx_hero joined #salt
06:24 auser pkg.installed:
06:24 auser perhaps I misunderstood your question?
06:26 jayd3e auser: I was asking if a state id could be used as in a require.  So I have a state named step1, and in another state called step2, I have - require: -pkg: step1
06:26 jayd3e that won't work correct?  Is there any way of doing that?
06:26 auser depends what's in your step1 state
06:27 jayd3e right but I mean, I can't just say, step2 needs to happen after step1 explicitly
06:27 jayd3e like lets say step1 untars a tarball
06:27 auser no, you'd say step1 has to happen before step2
06:27 auser sure
06:27 auser lemme find an example
06:28 auser https://github.com/saltstack-formulas/redis/blob/master/redis/common.sls#L14
06:28 jayd3e errr yah that's what I meant
06:28 auser that's my redis state
06:28 jayd3e step1 before step2
06:28 auser line 20 requires the redis-dependencies
06:28 jayd3e auser: ok yah that's what I was wondering
06:28 auser that works because `pkg` is defined in redis-dependencies
06:28 jayd3e interesting, that doesn't seem to be working for me.  Let me mess with it
06:29 auser can you gist 'em to me?
06:29 jayd3e oooooo
06:29 jayd3e you just answered it
06:29 jayd3e it has to be a pkg state
06:29 auser yeah, you could have a file in there
06:29 auser and you would have to say - file: redis-dependencies
06:34 afx_hero joined #salt
06:34 afx_hero joined #salt
06:38 jayd3e auser: are all states supported?
06:38 jayd3e like can I do -require: - cmd: run_command
06:38 auser ywp
06:38 auser yep
06:39 jayd3e noice
06:39 jayd3e didn't know that
06:39 scooby2 joined #salt
06:40 auser now ya do :)
06:45 afx_hero joined #salt
06:45 afx_hero joined #salt
06:48 elbaschid joined #salt
06:50 elbaschid joined #salt
06:50 elbaschid hi guys, I am a bit stuck here and hope that someone can help me out
06:51 elbaschid Can I specify a list of sources in file.managed and use the ?env=web to reference a specific file in an environment?
06:51 elbaschid I am working and I can't find the proper spot in the docs to look for this
06:52 carmony joined #salt
06:53 jessep joined #salt
06:53 Mouzz joined #salt
06:59 auser elbaschid: so you have different files per environment?
07:00 elbaschid well, what I am looking for is having a default file in 'base' and a environment specific one in 'web'
07:01 elbaschid the latter should be used if available, otherwise the first one is the one to be used
07:03 elbaschid I actually found the documentation for it under 'state.file' in the docs
07:03 elbaschid unfortunately it still doesn't work
07:03 elbaschid is there an easy way to get a list of states/files that are available for an environment?
07:03 craig are there release notes for 0.15.3?
07:03 craig http://docs.saltstack.com/topics/releases/
07:09 vaxholm joined #salt
07:09 drdran joined #salt
07:10 auser elbaschid: yeah, salt-call state.show_highstate
07:10 auser and the way I handle that is in the pillars
07:12 middleman_ joined #salt
07:15 elbaschid auser: how do you decide which file to use? can you check if a file exists?
07:15 p3rror joined #salt
07:19 bemehow joined #salt
07:22 aranhoide joined #salt
07:26 balboah joined #salt
07:26 __gotcha joined #salt
07:26 __gotcha joined #salt
07:27 kleinishere joined #salt
07:28 carlos joined #salt
07:32 scott_w joined #salt
07:37 wahahajun joined #salt
07:38 wahahajun hello,any body can help me
07:39 liuyq joined #salt
07:44 wahahajun now i m try to install a software in a minion which is in window OS. I do it according to the salt  guide about how to install software firefox in windows. 1 write the sls file 2 run the comand to generate the winrepo 3 when i try to get the available version i cannot get it
07:46 wahahajun when i run the salt '*' pkg.refresh_db i get result "minion-exmple1  True"
07:46 basti joined #salt
07:46 wahahajun can anyone hear me? please give me a favor.thanks very much
07:47 basti yes
07:47 henk Yeah, I can hear you too, but you shouldn’t ask such a question, because if everyone answers it your more important question will be scrolled out of view :-/
07:47 henk oh, that was meant to be :-p
07:48 basti I recently set the vagrant  install-type to git in order to get the fix for a pkg install error.
07:49 wahahajun sorry. I'm a new starter to use salt. so I can just ask help from here
07:50 basti But now the postgre create DB script gives an error. This makes thinks really difficult in salt. Here is a pastebin:http://pastebin.com/MUQ6JDdw
07:50 drdran joined #salt
07:52 wahahajun i can not open the link here sorry
07:52 basti http://pastebin.com/MUQ6JDdw
07:52 backjlack joined #salt
07:53 wahahajun cannot open..
07:53 henk pastebin.com regularly sucks AFAIK, I’d recommend using pastie.org
07:54 wahahajun @henk what do you mean " -p"
07:54 basti http://pastie.org/8090487
07:55 henk wahahajun: oh god … never mind, it is just a smiley …
07:56 wahahajun the new link still can not be opened...
07:57 henk WFM
07:58 wahahajun now i think maybe this is the cause of the problem      "pkg.refresh_db" may get error.
07:58 gusi joined #salt
07:59 wahahajun because when i run "salt '*' pkg.get_repo_data"   I get nothing
08:00 wahahajun that mean the minion can not refrech the winrepo
08:02 wahahajun does anyone meet the same problem with me?
08:02 wahahajun please help a new starter like me
08:10 felixhummel joined #salt
08:10 basti I am also quiete new to salt and did not event get the masterless version working.. sorry..
08:12 wahahajun understand. BTW. i use master in a ubuntu os and minion in windows
08:12 mianos left #salt
08:13 foobar_ joined #salt
08:13 wahahajun expect some experter can be here and give some hint
08:14 wahahajun this is the guide http://docs.saltstack.com/ref/windows-package-manager.html#generate-repo-cache-file
08:15 Xeago joined #salt
08:15 wahahajun this is the official doc but always get error..
08:21 ronc joined #salt
08:22 basti what kind of error?
08:28 azbarcea joined #salt
08:28 az87c joined #salt
08:31 krak3n` joined #salt
08:41 swa joined #salt
08:41 Jason-AVST joined #salt
08:50 timbobsteve joined #salt
08:50 timbobsteve Hi all
08:50 lempa joined #salt
08:51 bluemoon joined #salt
08:51 timbobsteve I'm struggling with an issue... is it possible to match a minion in pillar/top.sls to 'base', but then, when the time comes to pull files match the same minion under 'specific-minion-env' in file_roots: ?
08:56 jeddi joined #salt
09:00 agend joined #salt
09:02 mordred joined #salt
09:02 faust joined #salt
09:10 Katafalkas anyone can advise me on EBS block devices on Salt-Cloud ? Do i have to create them before attaching on profile ?
09:28 p3rror joined #salt
09:31 kleinishere joined #salt
09:34 whiskybar joined #salt
09:43 vaxholm joined #salt
09:47 fredvd joined #salt
09:49 Ivo joined #salt
09:53 waverider joined #salt
10:04 bluemoon joined #salt
10:13 oz_akan_ joined #salt
10:30 timbobsteve left #salt
10:35 Ivo joined #salt
10:48 jamescarr joined #salt
10:48 carmony joined #salt
10:51 jpadilla joined #salt
10:56 lemao joined #salt
11:04 Xeago joined #salt
11:12 diegows joined #salt
11:12 jeddi Katafalkas: AFAICT there is no support for block storage with salt-cloud yet.  i went thru a similar exploration a while ago using the rackspace provider.
11:13 Katafalkas hmz hmz hmz ..... ok
11:13 Katafalkas cheers jeddi
11:13 jeddi i haven't yet, but intend to 'one day', wrap it up into some bash scripts along with some supernova (the rackspace / openstack cli tool) to provision a box in one go.
11:14 jeddi oh, hang on .. there is a volume creation thing with salt-cloud.
11:14 jeddi as i say, i've only used the rackspace side of things, and not much of that yet.
11:14 jeddi Katafalkas:  way down the bottom of https://salt-cloud.readthedocs.org/en/latest/topics/aws.html
11:15 Katafalkas yup. saw that
11:15 Katafalkas gonna give it a shot
11:15 jeddi sadly the parallel for this for rackspace block storage isn't there yet.
11:16 Katafalkas i think this is only with experimental driver
11:22 krak3n` joined #salt
11:23 giantlock joined #salt
11:27 jeddi i'm wary of the e-word when dealing with billable services and readily-destroyable vps's.
11:28 oz_akan_ joined #salt
11:29 dthom91 joined #salt
11:29 efixit joined #salt
11:42 emocakes joined #salt
11:47 linjan_ joined #salt
11:52 liuyq joined #salt
11:56 linjan joined #salt
11:58 krak3n` joined #salt
12:05 baniir joined #salt
12:14 aleszoulek joined #salt
12:17 djn joined #salt
12:21 Bit_Boy joined #salt
12:21 Bit_Boy joined #salt
12:26 sashka joined #salt
12:27 Nexpro joined #salt
12:29 juicer2 joined #salt
12:35 f4cl3y joined #salt
12:35 f4cl3y joined #salt
12:35 jamescarr joined #salt
12:36 elbaschid joined #salt
12:39 whit joined #salt
12:39 EugeneKay enchilada?
12:47 blee joined #salt
12:49 dbcooper joined #salt
12:52 Newt[cz]1 joined #salt
12:53 emocakes joined #salt
12:59 oz_akan_ joined #salt
13:06 shiznit joined #salt
13:06 Jason-AVST joined #salt
13:09 jamescarr joined #salt
13:09 Gifflen joined #salt
13:10 ange joined #salt
13:16 quantumsummers|c joined #salt
13:16 quantumsummers|c joined #salt
13:16 fredvd joined #salt
13:17 emocakes joined #salt
13:19 swa {% for domain in 'test1','test2' %}
13:19 swa test:
13:19 swa file:
13:19 swa - managed
13:19 swa - name: /tmp/{{ domain }}
13:19 swa - mode: 0664
13:19 swa {% endfor %}
13:19 swa this should create two files /tmp/test1 and /tmp/test2 right ?
13:24 swa nevermind error on line2
13:39 Katafalkas joined #salt
13:41 oz_akan_ joined #salt
13:46 dthom91 joined #salt
13:48 ollins joined #salt
13:48 Politoed joined #salt
13:48 jdenning joined #salt
13:49 chrism joined #salt
13:50 ange joined #salt
13:51 cnelsonsic joined #salt
13:57 kaptk2 joined #salt
14:00 jaequery joined #salt
14:03 abe_music joined #salt
14:03 opapo joined #salt
14:07 brianhicks joined #salt
14:10 terminalmage joined #salt
14:11 zooz joined #salt
14:11 zooz is the apt key linked at http://docs.saltstack.com/topics/installation/ubuntu.html still valid?
14:12 zooz seems that packages are signed with different gpg key
14:16 cron0 joined #salt
14:18 adrianrego joined #salt
14:26 jamescarr joined #salt
14:34 chadhs joined #salt
14:37 whit joined #salt
14:43 teskew joined #salt
14:45 cnelsonsic joined #salt
14:46 axisys joined #salt
14:46 dthom91 joined #salt
14:50 rglauser joined #salt
14:51 UtahDave joined #salt
14:53 LyndsySimon joined #salt
14:56 chadhs joined #salt
14:56 EugeneKay jeddi - https://gist.github.com/EugeneKay/5885291
14:57 kho joined #salt
14:58 vaxholm joined #salt
14:58 EugeneKay Sorry it took me two days to slap this up on github
14:59 jaequery joined #salt
15:03 chadhs any FreeBSD users here get the salt-bootstrap to work on FreeBSD 9.1?  the pkg repo reports as empty as it wants to default the system to pkgng
15:06 cedwards chadhs: morning. salt-bootstrap can be made to work on FreeBSD 9.1, but you'll need a populated repo
15:06 cnelsonsic left #salt
15:07 UtahDave redbeard2 is cooking bacon in the toaster oven 2 feet from my desk. I can't concentrate...
15:08 cedwards why am i not surprised
15:08 EugeneKay Poke him about the VMware question I had? :-p
15:09 oz_akan_ UtahDave: quick question, are we able to use grain matching with mine?
15:09 UtahDave EugeneKay: OK, will do.
15:09 EugeneKay <3
15:09 UtahDave oz_akan_: I read your email last night about that. I'll find out for you this morning.
15:10 UtahDave It seems like that should be an option, but I'm not sure.
15:10 quantumsummers|c hi there, I have a salt+gentoo-related question: I notice that anytime I use highstate and salt finds a new pkg to install, it does an eix-sync. Is there some way to turn that off for all os:Gentoo matches?
15:11 quantumsummers|c I see that salt.modules.ebuild.install has an option refresh that appears to control whether things are sync'd but that seems like a per-package basis
15:12 oz_akan_ UtahDave: thanks
15:12 oz_akan_ I am trying to read grain values of other minions from the mine
15:13 UtahDave gotcha
15:13 quantumsummers|c also, it would be nice to have some way of trivially extending what os:grains are available, i.e. I tried "hardened gentoo" in /etc/os-release and the grain mactching failed since it is not in the os dict
15:13 quantumsummers|c or list
15:13 tonthon Hi, I accidentally deleted a key use for salt-syndic and I want to re-accept the key
15:14 tonthon use|used
15:14 tonthon I tried removing the master_syndic.pub key and restart salt-syndic
15:14 UtahDave quantumsummers|c: If you want to add another OS grain, I would recommend opening an issue on the github repo asking for that.  It's not really hard to add, but we need to make sure it's done correctly
15:15 tonthon but the syndic_master.pub key is restored and no key is available on the top master server
15:15 tonthon any idea ?
15:15 chrisgilmerproj joined #salt
15:15 quantumsummers|c UtahDave: cool, I gotcha. This is more of a user thing, since the official gentoo os-release doesn't differentiate between hardened or otherwise
15:15 quantumsummers|c however, I am thinking of getting that changed for this reason
15:16 quantumsummers|c mainly I have a bunch of gentoo boxes and not all are hardened, but for the hardened hosts, I have special requirements, the others not so much
15:17 quantumsummers|c one easy way would be to just match on a hostname pattern, but that is not guaranteed
15:17 carmony joined #salt
15:17 jeddi EugeneKay: my eyes .. my poor eyes .. all those burning centosisms!
15:18 EugeneKay Yup.
15:18 EugeneKay <3 SL
15:18 pentabular joined #salt
15:18 jeddi {sigh}  /etc *is* where the system is configured.  you don't need a flipping 'this is *really* where we configure the system, here, in this sysconfig subdirectory'.   I'm remembering why I dislike rhel.
15:18 drdran joined #salt
15:18 bemehow joined #salt
15:18 jeddi well, it's where we configure *some* of the sysetm.  other stuff may be found variously lying around under /usr and /var -- good luck finding it.
15:19 EugeneKay I grew up with Red Hat, so I'm used to it
15:19 quantumsummers|c don't forget about /proc and /sys!
15:19 jeddi EugeneKay: but thanks - i'll make a note, though i think i've worked around this one now.
15:20 EugeneKay It's a pretty basic script
15:20 jeddi ack.
15:22 conan_the_destro joined #salt
15:24 racooper joined #salt
15:25 carmony joined #salt
15:31 jschadlick joined #salt
15:31 nrub joined #salt
15:33 AviMarcus joined #salt
15:36 whit joined #salt
15:37 pentabular1 joined #salt
15:38 kleinishere joined #salt
15:39 koolhead17 joined #salt
15:39 koolhead17 joined #salt
15:42 UtahDave oz_akan_: OK, got your answer.  Yes you should be able to use the grain matching with mine.  Let me do some testing to get the correct syntax
15:42 pentabular joined #salt
15:43 oz_akan_ UtahDave: it doesn't seem to be working
15:43 jamescarr joined #salt
15:43 jayd3e joined #salt
15:43 oz_akan_ salt-call mine.get -G 'project:marconi' test.ping, fails
15:45 UtahDave right, it's a different syntax using expr_form.  Just a minute
15:46 conan_the_destro joined #salt
15:46 UtahDave oz_akan_: try   salt 'project:marconi' test.ping expr_form='grain'
15:47 UtahDave er salt-call
15:47 UtahDave salt-call 'project:marconi' test.ping expr_form='grain'
15:47 oz_akan_ is this documented anywhere?
15:47 UtahDave http://docs.saltstack.com/ref/modules/all/salt.modules.mine.html#salt.modules.mine.get
15:48 oz_akan_ as it works perfectly :)
15:48 UtahDave Tom's adding some more examples right this second to make that clearer
15:48 oz_akan_ awesome, thanks 1
15:48 oz_akan_ 1=!
15:49 UtahDave You're welcome!  We'll get that doc updated to be a bit clearer.
15:49 nrub joined #salt
15:49 UtahDave The Salt Mine is still a pretty new feature.
15:49 oz_akan_ I guess one of the most important features to automate several things
15:52 upsidedwn joined #salt
15:59 milind_ joined #salt
15:59 timoguin joined #salt
15:59 pyeek_ joined #salt
16:00 timoguin http://docs.saltstack.com/topics/releases/0.16.0.html#multi-master
16:00 timoguin ^^ Looks like the link to the multi-master tutorial is broken.
16:01 UtahDave ah, good catch.  I'll get that fixed.
16:01 timoguin nice job with this release, guys. :)
16:01 mattl joined #salt
16:01 UtahDave timoguin: have you been using .90?
16:02 timoguin nope, 0.15.3
16:02 UtahDave ah, cool
16:02 mattl hey, wondering if someone can help me out... i'm using set_auth_key_from_file -- if i run it from the command line, works.. if i run it in my own sls file, it says "State ssh.set_auth_key_from_file found in sls users is unavailable"
16:02 desmondmorris joined #salt
16:03 UtahDave mattl: can you pastebin what you have so far?  Also the cli command and the errors you're getting?
16:03 mattl http://paste.debian.net/plain/13164 is my sls
16:03 desmondmorris Is this the right place to ask salty vagrant related questions?
16:03 sashka_ua gents, probably someone knows
16:03 UtahDave desmondmorris: yep!  Let me summon the salty vagrant god for you.
16:04 sashka_ua how would I set a few IP's per interface using salt.states.network
16:04 kermit joined #salt
16:04 UtahDave akoumjian: Hey, man. Good morning!
16:04 Corey What a week.
16:04 UtahDave mattl: ok, just a minute.
16:04 desmondmorris UtahDave: hah thanks!
16:04 mattl UtahDave: also, http://paste.debian.net/plain/13165
16:04 UtahDave Corey: Hey, are you going to be in the Bay area or LA during the Salt Sprint?
16:05 pentabular joined #salt
16:06 blee_ joined #salt
16:07 UtahDave timoguin: fixed: https://github.com/saltstack/salt/pull/5807      Just need to republish the docs
16:07 timoguin :)
16:08 UtahDave mattl: Ah, I think you're trying to use the ssh execution module directly in the state.  You need to use the ssh state module
16:08 Corey UtahDave: Well, I'm in San Jose right now.
16:08 UtahDave mattl: You probably need this function: http://docs.saltstack.com/ref/states/all/salt.states.ssh_auth.html#salt.states.ssh_auth.present
16:08 mattl UtahDave: can you point me to an example? thank you
16:08 UtahDave Corey: July 27th.
16:10 desmondmorris UtahDave: I want to clone a private git repo from a salt state.  I do not think ssh agent forwarding works during provision, so I am getting the good old "public key denied" error.  Is this something that I have to handle post provision?  I am sure others have had this problem
16:10 desmondmorris also - I don't know what I am doing
16:10 chadhs joined #salt
16:11 Corey UtahDave: That's a Saturday.
16:11 Corey UtahDave: I will be spending it sobbing into a pillow, as I turn 31 on Sunday.
16:11 bemehow joined #salt
16:11 UtahDave desmondmorris: :)  Hm. I'm pretty sure that if the user in you are running Salt as can clone the repo, then Salt should be able to as well.
16:11 Corey desmondmorris: I have a similar use case.
16:12 Corey UtahDave: Not necessarily. It's instantiating a new environment and will break agent forwarding.
16:12 mattl UtahDave: fantastic!
16:12 desmondmorris UtahDave:  Yeah, the user does as the public key is local on the machine.
16:12 Corey UtahDave: So you'd have to have Salt hook the running agent process, which by default it does not.
16:12 Corey desmondmorris: Is the private key local?
16:12 desmondmorris Corey: yup
16:13 Corey Okay, then my use case is different.
16:13 desmondmorris Corey:  And it works locally.  It also works when I ssh into the vm.  Just not during the provisioning
16:13 Corey Are perms correct on the private key?
16:13 UtahDave desmondmorris, Corey,  Can you create a special user?  Then create a state that first pushes down the necessary keys to access the repo
16:13 Corey desmondmorris: Are you very sure that it's the private key that works, and not your agent when you test it?
16:14 Corey desmondmorris: s that user, sudo bash; su - thatuser, then try the cone, does it break?
16:14 Corey clone*
16:15 Corey Sorry, horrific airport wifi in SJC.
16:15 jacksontj joined #salt
16:15 Corey jacksontj: And that's how you get away with it!
16:15 desmondmorris Corey:  yeah I am pretty sure.  It works locally.  And it works through the agent when ssh'd into the vm
16:15 Corey Sorry, mistab. :-p (too good an opportunity not to retry that from yesterday)
16:16 Corey desmondmorris: Yeah, kill the agent and make ferdamnsure it's working from that private key. It *sounds* like that's what your issue is.
16:16 Corey (ownership of the key is right, permissions are 600 or less, etc)
16:16 KyleG joined #salt
16:16 desmondmorris Corey:  cool.  will try.  thanks
16:16 jpadilla joined #salt
16:17 dthom91 joined #salt
16:18 slick_shoes joined #salt
16:19 bluemoon joined #salt
16:19 slick_shoes hi!  the bit here about only supporting redhat style network interfaces.. does that actually mean that debian/ubuntu interfaces aren't manageable with the 'network' state?  http://docs.saltstack.com/ref/states/all/salt.states.network.html#module-salt.states.network
16:19 sashka_ua slick_shoes: nop
16:19 slick_shoes thx
16:20 sashka_ua slick_shoes: but you may help and add debian support :)
16:20 slick_shoes i've been managing /etc/network/interfaces with 'file', but that would be really helpful.  yeah, i need to learn python.. mainly a sysadmin type
16:21 sashka_ua slick_shoes: https://github.com/saltstack/salt/blob/3f88512c25037bcd1c113f61044a93cb743560e6/salt/modules/rh_ip/rh6_eth.jinja
16:21 slick_shoes ha!  that is sexy
16:21 slick_shoes thank you :)
16:21 KyleG jeebus
16:22 sashka_ua Does anyone know if I need to add alias to centos. it uses "eth0:0, eth0:1" syntax
16:22 sashka_ua aha. Im an idiot
16:24 StDiluted joined #salt
16:25 desmondmorris Corey:  Killed agent forwarding.  Ran the above ^^^.  Then ran "ssh -T git@github.com" - now I get "Permission denied (publickey)." as I would expect.  It seems like I am missing something
16:27 N-Mi joined #salt
16:27 N-Mi joined #salt
16:28 jacksontj joined #salt
16:31 xet7 joined #salt
16:32 bluemoon joined #salt
16:34 chadhs any FreeBSD users in the chat?  Where are you storing your top.sls and other sls files
16:34 dthom91 joined #salt
16:34 lempa joined #salt
16:37 joshe why does it matter where you store them?
16:42 hazzadous joined #salt
16:42 zonk1024 joined #salt
16:44 jacksontj joined #salt
16:46 conan_the_destro joined #salt
16:47 chadhs Figured out my problem.  Apparently using tabs in .sls files makes python angry
16:47 mbstacy joined #salt
16:47 UtahDave chadhs: oops. Yeah, 2 spaces.  :)
16:47 chadhs just learned that the hard way
16:49 carmony joined #salt
16:50 chadhs UtahDave, i've only seen the tip of the iceberg i think… but this system is looking super cool
16:51 chadhs Now I just need a way to get alt to handle installing ports with custom make / compile options
16:52 UtahDave chadhs: nice!
16:53 alazylearner joined #salt
16:53 nineteen joined #salt
16:54 nineteen So I just started using salt and I'm having problems with the mysql_grants state
16:55 nineteen it seems it works when 'grant: all privileges'
16:56 nineteen but failes when i try to do something like grant: select,insert,update,delete,create,drop
16:56 nineteen here's the output from salt '*' state.highstate
16:56 nineteen ----------
16:56 nineteen State: - mysql_grants
16:56 nineteen Name:      dev_grant
16:56 nineteen Function:  present
16:56 nineteen Result:    False
16:57 nineteen Comment:   Failed to execute: "GRANT select,insert,update,delete,create,drop ON gitlabhq_dev.* TO gitlab@%"
16:57 nineteen Changes:
16:58 cedwards chadhs: the default on FreeBSD should be /usr/local/etc/salt/states/
16:58 chadhs cedwards, thnx i did figure that out.  and im up and flying.  now i just need to figure out how to install something via the ports tree vs a package
16:59 dave_den joined #salt
17:00 cedwards chadhs: I don't think there are any compiler modules (make, portmaster, etc). I've thought about it, but with pkgng and poudriere it's so easy to create your own repo I haven't bothered.
17:00 mbstacy left #salt
17:01 chadhs cedwards, we use portmaster quite heavily.  i'll have to investigate pkgng and poudriere
17:02 cedwards chadhs: I used to use strictly use portmaster, but migrated to pkgng and an internal repo with poudriere. Makes salt a lot easier.
17:03 StDiluted joined #salt
17:05 chadhs cedwards, so poudriere lets you build your own repo of pkgng packages?  interesting…
17:05 bluemoon joined #salt
17:06 cedwards chadhs: not strictly pkgng packages, but yeah. even allows you to customize build options.
17:06 cedwards chadhs: it does require a recent release and ZFS
17:07 chadhs cedwards, we're running 9.1 everywhere we can and use / love ZFS
17:07 cedwards perfect. I'd highly recommend checking it out and build your own internal repo using it.
17:07 chadhs cedwards, still would be cool to have portmaster support in salt; but i'm going to investigate have a poudriere build server
17:08 chadhs rock on i will
17:08 bluemoon joined #salt
17:10 chadhs cedwards, neat, so i can go and alter the make config options and then define the packages i want built
17:11 cedwards chadhs: yes
17:11 xet7 joined #salt
17:12 timoguin you guys seen mitchellh's new project? http://mitchellh.com/packer
17:12 timoguin looks interesting
17:21 racooper can salt handle nested state trees, i.e. /srv/salt/common/stunnel/init.sls ?
17:21 jlund joined #salt
17:24 mgw joined #salt
17:26 nineteen so although it says that the mysql_grants state failed the privileges show up in mysql,  i can supply the query log if that helps?
17:26 Katafalkas joined #salt
17:27 UtahDave nineteen: Can you run the minion in debug mode to see if there are any errors?
17:28 nineteen sure here's what the log shows now, but i'll run it in debug mode now
17:28 nineteen 013-06-28 17:21:19,063 [salt.state       ][ERROR   ] No changes made for dev_grant
17:28 nineteen 2013-06-28 17:21:19,068 [salt.state       ][ERROR   ] No changes made for prod_grant
17:29 nrub joined #salt
17:30 mgw1 joined #salt
17:31 nineteen UtahDave: [DEBUG   ] Doing query: SHOW GRANTS FOR 'gitlab'@'%'
17:31 nineteen [DEBUG   ] ["GRANT USAGE ON *.* TO 'gitlab'@'%'", "GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES ON `gitlabhq_dev`.* TO 'gitlab'@'%'", "GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES ON `gitlabhq_production`.* TO 'gitlab'@'%'"]
17:31 nineteen [DEBUG   ] Grant does not exist, or is perhaps not ordered properly?
17:31 nineteen mysql> SHOW GRANTS FOR 'gitlab'@'%';
17:31 nineteen +--------------------------------------------------------------------------------------------------------------------------+
17:31 nineteen | Grants for gitlab@%                                                                                                      |
17:31 nineteen +--------------------------------------------------------------------------------------------------------------------------+
17:31 nineteen | GRANT USAGE ON *.* TO 'gitlab'@'%' IDENTIFIED BY PASSWORD '*34904B5AFC6D1BA607E8AEF87808EACC4730EB0F'                    |
17:31 nineteen | GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES ON `gitlabhq_dev`.* TO 'gitlab'@'%'        |
17:31 nineteen | GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES ON `gitlabhq_production`.* TO 'gitlab'@'%' |
17:31 nineteen +--------------------------------------------------------------------------------------------------------------------------+
17:31 nineteen 3 rows in set (0.00 sec)
17:34 UtahDave nineteen: Thanks!   Hey, next time could you use a pastebin?
17:34 nineteen https://github.com/saltstack/salt/blob/develop/salt/modules/mysql.py   line 729 seems to be where it's failing?
17:35 nineteen UtahDave: sure, didn't think about that
17:35 UtahDave nineteen: Can you pastebin your sls?
17:37 nineteen http://pastebin.com/pJFm5MXS
17:39 bensix2 joined #salt
17:40 UtahDave nineteen: OK, I'm not exactly sure what's going on here, but let's try 2 things.
17:40 UtahDave 1. in your - grant:  statement, remove the spaces between the grants.
17:41 UtahDave 2. have your mysql_grants also require that the database exist as well.
17:41 UtahDave nineteen: let me know how that goes. I'm heading to a lunch meeting. Probably back in an hour or so.
17:42 nineteen UtahDave: 1. I've tried before, but i'll do it again 2. no problem, one sec
17:42 UtahDave cool
17:46 Nazzy joined #salt
17:46 Nazzy joined #salt
17:47 bluemoon joined #salt
17:49 nineteen UtahDave: No luck,  here's a paste bin with the minion debug output, sls, and mysql query log: http://pastebin.com/52Lhngub  (obviously don't care about the passwords doing this on a test VM)
17:51 oz_akan_ UtahDave: just to be sure, if I run salt 'my-server' state.sls my.formula my-env I am still able to read pillar data in base environment, right?
17:52 oz_akan_ I mean even I call my.formula in a different environment, assuming that base has '*' as matcher, my formula can read pillar data in base enviornemnt
17:53 oz_akan_ but that is not correct for sls
17:55 LyndsySimon_ joined #salt
17:56 xerxas joined #salt
17:57 JasonSwindle joined #salt
17:57 JasonSwindle Howdy, all.  I have most like a durrr question.  I cannot seem to get my matching on pillar to work. Again, most likely me.
17:58 JasonSwindle https://dpaste.de/pSInI/ in my top.sls in pillar....
17:58 JasonSwindle it does not match.
17:58 jessep_ joined #salt
17:59 mgw1 UtahDave: I have some more thoughts on building / chaining pillars when you get back
18:01 brianhicks joined #salt
18:02 zonk1024 joined #salt
18:03 mackstick joined #salt
18:06 ronc joined #salt
18:06 dthom91 joined #salt
18:08 chadhs when defining an sls i know you can use jinja for logic but can you also use it to pop in values?
18:09 chadhs example:
18:09 chadhs file.append:
18:09 chadhs - text:
18:09 chadhs - 127.0.0.1 {% grains['host'] %}
18:09 dthom91 joined #salt
18:11 nineteen UtahDave: I found the problem in the source code https://github.com/saltstack/salt/blob/develop/salt/modules/mysql.py line 655,  Basicly the grant: argument must be in the same order as the mysql show grants command displays it
18:11 kenbolton joined #salt
18:11 nineteen it would be nice if that was documented somewhere at least until it's fixed
18:19 chadhs got it.  i was being a bonehead.  {{ grains[host] }}
18:19 chadhs jinja ftw
18:20 jalbretsen joined #salt
18:21 kenbolton joined #salt
18:27 p3rror joined #salt
18:34 hazzadous joined #salt
18:34 madduck jinja ftw my ass ;)
18:34 madduck grains.host is the right way to call it.
18:34 madduck jinja is pretty good for web development and rather suboptimal for system administration (where whitespace can make a difference)
18:38 LyndsySimon joined #salt
18:42 felixhummel joined #salt
18:44 madduck terminalmage: 3b8b6de351e8c2839d101afe162881484b4998c4 broke salt-master when yum is not installed. The import fails, and then class _YumLogger(yum.rpmtrans.RPMBaseCallback) causes tracebacks.
18:45 f4cl3y joined #salt
18:47 TheRealBill I have a custom init script I am building in my state, it builds correctly and I have it marked as 'running' in my state, but when run, salt complains the service doesn't exist. this is against an RHEL5 node. what am I missing? Do I need to add a chkconfig command?
18:49 JasonSwindle BILL!!
18:51 djn joined #salt
18:51 TheRealBill JASON!
18:51 JasonSwindle UtahDave: ping
18:52 Corey desmondmorris: Just landed, did you get it sorted?
18:52 Corey desmondmorris: (Troubleshooting between various airports is... interesting.)
18:53 TheRealBill Corey: that's one way to put it
18:53 Corey TheRealBill: Yay for always-online IRC clients. :-p
18:53 steveoliver desmondmorris: Drupal desmond?
18:54 Corey steveoliver: No, I think it's Assassin's Creed Desmond.
18:54 KyleG lol
18:55 steveoliver ha
18:55 JasonSwindle TheRealBill: What does the minion log say, if anything?
18:55 thaddeusmt joined #salt
18:55 mgw1 Would anybody else find it useful if pillar data were available to pillar sls's as it is accumulated?
18:56 mgw1 E.g., if top.sls includes foo.sls (which defines foo). and foo.sls includes bar.sls, then pillar['foo'] would be available in bar.sls
18:57 JasonSwindle left #salt
18:57 JasonSwindle joined #salt
18:58 TheRealBill JasonSwindle: it says the service doesn't exist.
18:58 madduck mgw1: sure, but that would require deep changes, because AFAIUI, the includes are recursed and then the data structure parsed.
18:58 madduck mgw1: patches welcome!
18:58 madduck ;)
18:58 mgw1 madduck: I *think* I have it working with minimal changes
18:59 JasonSwindle TheRealBill: Odd.  and I see UtahDave is AFK
18:59 TheRealBill JasonSwindle: If I run chkconfig manually, it works, just not when salt deploys it.
18:59 mgw1 madduck: brb. would be interested in testing a patch?
19:00 mgw1 *would you
19:01 JasonSwindle I am not sure, my deploy is deb / ubu
19:01 pentabular1 joined #salt
19:02 TheRealBill mine will be soon too, but alas for now I need to deploy to RHEL5. This is why I'd rather not hack in a 'manual
19:02 TheRealBill chkconfig command to the state
19:04 dthom91 joined #salt
19:06 madduck mgw1: difficult, since I don't use top.sls at all, but master_tops and reclass…
19:06 mgw1 madduck: the only problem I've run into is that an empty 'pillar' is already being passed to the templating engine. So I had to define a new _pillar param, which is obviously not good.
19:06 madduck mgw1: but if you open a pull requests, others will find it, and comment…
19:06 auser joined #salt
19:07 auser hey all
19:07 mgw1 madduck: forgot you didn't use tops. It's not ready for a pull req, due to the _pillar issue.
19:07 madduck mgw1: it's great that you exercise care for patches and want them tested, but don't feel obligated to submit only perfect stuff to github
19:08 madduck mgw1: okay, you could file an issue just to have a record somewhere. And maybe gather input.
19:08 mgw1 Only a mad duck would say something like that. Everything should be tested. ;-)
19:08 auser UtahDave: is it possible to generate and pre-seed salt keys for the minion and store them on the master?
19:08 madduck mgw1: Yes and no. github *is* a cooperative development platform. But of course that doesn't mean that you should just push. But it does mean that you can seek help and input.
19:09 madduck auser: yes, I think I saw that in the docs or on the web somewhere.
19:09 mgw1 madduck: definitely agree… I was just making a bad joke
19:09 auser I was looking madduck… using salt.crypt, and storing them on the minion and master, but I always get an error on the minion when trying to run salt
19:10 auser of salt master has rejected this key, etc.
19:10 UtahDave I'm back!
19:10 bemehow joined #salt
19:10 Corey UtahDave: Yay.
19:11 UtahDave auser: yes, you can preseed the keys.  Use   salt-key --gen-keys=<minionID>
19:11 auser hurray! WB UtahDave
19:11 * UtahDave feels so loved!
19:11 Corey UtahDave: What the...
19:11 auser need to do it in code… to the githubs!
19:11 Corey I go to San Jose for a day and I come back to you having solved the preseed problem?!
19:11 * auser cues batman theme song
19:11 abe_music auser: isn't that what salt cloud does? generates keys, starts minions, copies keys, etc?
19:12 JasonSwindle UtahDave: TheRealBill, Dave is back….. ask again. :)
19:12 UtahDave ?  Corey: maybe we're talking about different things.  Precreating the keys has been possible for a LONG time.
19:12 Corey Yes, precreating...
19:12 Corey Oh my.
19:12 Corey Just had an idea, tell me why it's stupid please.
19:12 kenbolton_ joined #salt
19:12 auser I guess I'm not entirely certain how to accept those keys on the master
19:12 Corey "Hey, salt-master. Sometime in the next X minutes, a minion with the ID of X, or an IP of Y is going to connect to you. Accept it."
19:12 APLU joined #salt
19:12 auser naively guessing
19:13 HaxCore joined #salt
19:13 Corey UtahDave: That solves the "Accept all keys" versus "confirm every key" dichotomy we're currently living in.
19:13 Corey (I spent last night deep in a Puppet class, it got me thinking about odd Salt things)
19:13 auser whoa
19:13 djn joined #salt
19:14 auser why
19:14 mgw1 UtahDave: ping
19:15 auser I guess I am just wondering what causes this error (https://github.com/saltstack/salt/blob/develop/salt/crypt.py#L297).
19:15 UtahDave Ok, let me start with Corey first and I'll move on down the questions
19:15 Corey Oh good.
19:15 Corey School is in session.
19:15 UtahDave Corey: I think that's a great idea. We already have that partially
19:15 auser ah
19:15 Corey UtahDave: Take it, it's yours. :-p
19:16 Corey UtahDave: And while Salt doesn't currently care about IP origination of minions, it might be a nice option. "Accept IPs from rfc1918 ranges and the following /27 of public space. If something shows up from Romania, screw that."
19:16 UtahDave So right now you can create an auto accept file that allows you to specify globs or pcre of minion IDs that should be auto accepted
19:16 JasonSwindle Does pillar has the same matching options as highstate top?
19:16 UtahDave JasonSwindle: yes
19:16 Corey JasonSwindle: It should, isn't it working
19:16 Corey ?
19:17 UtahDave Corey: that's a great idea. Could you open an issue on that?
19:17 auser yeah, that's a great idea Corey +1
19:17 ClausA joined #salt
19:17 Corey Sure!
19:17 UtahDave So going back to the autoaccept, I think it shouldn't be too hard to allow for something like that.  Maybe to check in a pillar variable or something like that.
19:17 thaddeusmt What is the best way to execute a bundle of commands with salt? Like, say, commands to dump a database and zip it up?
19:17 JasonSwindle Well, I am confused then.  My REGEX matches but not in pillar….
19:18 UtahDave In fact, I wonder if you could just append the minion's id to that auto_accept file and call it good
19:18 thaddeusmt Roll the commands in to a state sls and execute that single sls file? Or write a Fabric script to execute?
19:18 UtahDave auser: To accept the keys, just drop the minion's public key in the minions directory in the pki directory on the master. I think you have to rename the pub key file to be the minion's id without any extension
19:19 JasonSwindle Testing tool: http://www.regextester.com/index2.html || what I am using, ^dev-(web|mysql-master|redis)- || trying to match dev-mysql-master-n001
19:19 auser UtahDave: looks like the minion needs a minion.pem too (https://github.com/saltstack/salt/blob/develop/salt/crypt.py#L156)
19:20 mgw1 UtahDave: Do you know why the templating engine has an (empty) pillar var in its context when templating pillar sls files?
19:20 UtahDave thaddeusmt: you can run a cmd.script() and run a command.  You can also pass all the commands on one line
19:20 kcb joined #salt
19:20 auser I thought I was doing that
19:20 ronc joined #salt
19:20 auser yeah
19:20 UtahDave auser: yes, when you generate the keys it will create a .pub and a .pem
19:20 auser I am, odd
19:21 mgw1 I have a patch that populates pillar as it goes… but that's getting in the way
19:21 auser https://github.com/auser/saltcli/blob/master/saltcli/providers/__init__.py#L101
19:21 UtahDave mgw1: I'm thinking the empty pillar dict is there just to not stacktrace if someone tries to access it.
19:22 auser idea taken from salt-cloud-esq
19:22 mgw1 UtahDave: hmm, I can replace it with a real pillar, but I can't figure out where it's getting past in
19:22 mgw1 Not sure if you saw my previous messages earlier
19:22 mgw1 s/past/passed
19:22 UtahDave no, I think I missed it.
19:23 auser mgw1: the pillar data is passed in through the salt run
19:23 auser does your pillar/top.sls target the minion correctly?
19:23 UtahDave auser: I see you're using fabric in three.  Tom's almost done with a Salt ssh transport. So you can use salt to ssh into whatever boxes you want and do... stuff
19:24 mgw1 auser, UtahDave: the patch I have "builds up" the pillar and _pillar (named so due to conflict with pillar) is available to subsequent or inccluded sls files
19:24 auser UtahDave: it's not about ssh'ing in (although that's definitely a plus)
19:24 oz_akan_ UtahDave:  when you have a moment, could you please check this http://paste.openstack.org/show/39363/
19:25 auser I'll remove fabric when it's ready, I think
19:25 oz_akan_ UtahDave: i can't seem to call mine.get in a jinja template
19:25 auser 'cause I'd rather use salt
19:25 quantumsummers|c have a bit of an issue with salt pkg.installed
19:26 thaddeusmt UtahDave: So you recommend grouping the commands together as a shell script, and then executing that. Makes sense, just didn't know if batch commands were a little more baked in. Thanks.
19:26 auser yes quantumsummers|c?
19:26 quantumsummers|c Data failed to compile:  Name guest_base_pkgs in sls base-system-guest is not a dictionary
19:26 quantumsummers|c for the following:
19:26 auser wait
19:26 auser pastie it
19:26 quantumsummers|c http://dpaste.com/1274353/
19:26 auser :)
19:26 auser line 2
19:26 auser remove the -
19:26 quantumsummers|c ah, great
19:27 auser and line 3 should be names:
19:27 auser I *think*
19:27 RickW joined #salt
19:27 auser I use names at least
19:27 quantumsummers|c works with pkgs
19:27 auser cool
19:27 auser g2k
19:28 quantumsummers|c auser: what is g2k?
19:28 auser good to knoe
19:28 UtahDave oz_akan_: Can you try this? http://paste.openstack.org/show/39365/
19:28 auser know*
19:28 quantumsummers|c auser: ah, right on, thanks!
19:29 tomeff joined #salt
19:31 oz_akan_ UtahDave: trying
19:31 JasonSwindle oz_akan_: oh hai
19:35 hotbox joined #salt
19:36 vikky999 joined #salt
19:38 thaddeusmt UtahDave: These command batches are something I would be running frequently - would you still recommend shell command files over, say, custom salt modules? I found this on SO: http://stackoverflow.com/questions/15040725/saltstack-grouping-commands
19:39 UtahDave thaddeusmt: yeah, that was my comment.  :)   You might look at my sub comment on there
19:40 hotbox joined #salt
19:40 UtahDave thaddeusmt: cmd.script() might be easier
19:40 thaddeusmt UtahDave: 6 in one, 1/2 dozen in the other I guess. Thanks again
19:40 madduck Unfortunately, if you write a new module, thaddeusmt, you cannot just directly reuse the other states.
19:40 madduck You have to actually call them via __salt__…
19:41 UtahDave nineteen: can you open an issue on that mysql grant ordering issue
19:42 madduck thaddeusmt: https://github.com/saltstack/salt/issues/3513
19:44 UtahDave madduck: it's fine and expected to use  the  __salt__ commands
19:45 hotbox joined #salt
19:45 UtahDave also, it's possible to import the functions into the current namespace. if you look in salt/modules/win_file.py  you can see an example of it.
19:47 gordonm joined #salt
19:48 akoumjian desmondmorris UtahDave : Hey sorry, was afk. Everything get resolved?
19:48 madduck UtahDave: well, it /feels/ wrong to do this, but I understand about the nature of the Salt loader… you cannot import all those functions into the current namespace, because they might not have access to the stuff the loader gives them onto the way. file.managed is not available, for instance. You have to go via the loader.
19:49 oz_akan_ UtahDave: no chance.. it runs but with no data, it just prints: {}
19:50 hotbox joined #salt
19:51 TheRealBill I have a custom init script I am building in my state, it builds correctly and I have it marked as 'running' in my state, but when run, salt complains the service doesn't exist. this is against an RHEL5 node. what am I missing? Do I need to add a chkconfig command?
19:51 oz_akan_ it works fine, if I just don't use grains
19:52 UtahDave TheRealBill: do you have  - enable: True in there?
19:53 fragamus joined #salt
19:54 UtahDave oz_akan_: I'm sure it's something close to that.
19:55 hotbox joined #salt
19:55 oz_akan_ UtahDave: on it, i will let you know
19:55 UtahDave oz_akan_: also, remove the space between salt ['min.get'}
19:55 UtahDave ]
19:55 oz_akan_ UtahDave: sure, I removed that
19:56 JasonSwindle I can not get my pillar matching to….match.  What I am using to match, https://dpaste.de/IB2B6/ .  The node's name "dev-database-master-n001"
19:56 nineteen UtahDave: No problem, I can probably even knock out a pull request for it.
19:57 UtahDave nineteen: that would be awesome!
19:59 oz_akan_ UtahDave: it worked,  .... 'test.ping', expr_form='compound') %}
19:59 auser oh man UtahDave, I'm super excited for the ssh transport
19:59 oz_akan_ UtahDave: thanks !!!
19:59 oz_akan_ a few hours on formulas, kills enough brain cells
19:59 oz_akan_ :)
20:00 hotbox joined #salt
20:00 UtahDave oz_akan_: Ah, great!
20:00 UtahDave you're welcome
20:01 TheRealBill UtahDave: I had that but it told me I da too mamny functions
20:01 UtahDave ok.
20:02 kenbolton joined #salt
20:02 JasonSwindle Do you have the SLS to share?
20:02 UtahDave TheRealBill: I'd probably go with cmd.script() thne
20:02 UtahDave then
20:03 jessep_ joined #salt
20:04 UtahDave JasonSwindle: I got a perl master looking at your matching problem.
20:05 hotbox joined #salt
20:05 UtahDave JasonSwindle: So that example minion name doesn't look like it would match
20:06 JasonSwindle What would be better?
20:06 UtahDave OK, we made 2 changes: https://dpaste.de/A7OFg/
20:07 UtahDave first - database-master instead of mysql-master
20:07 UtahDave then you need the  '.' (period) before the *
20:07 jacksontj joined #salt
20:08 JasonSwindle let me test, most of this is most likely me being silly
20:08 JasonSwindle It is a Friday and my brain is not here
20:09 Jared_ joined #salt
20:10 hotbox joined #salt
20:10 Guest60426 Hello All.
20:10 auser hey Guest60426
20:10 JasonSwindle Yo, Guest60426
20:12 jschadlick joined #salt
20:13 indymike joined #salt
20:14 bemehow joined #salt
20:15 hotbox joined #salt
20:15 giantlock joined #salt
20:17 Guest60426 So I'm having an issues with with Master->Syndic->Minions.  The issue: #1807 looks like it fixes it.  The problem I have is the yum package on CentOS is 0.5.3 and the fix is in 0.5.90.  Can some one suggest an easy way to update my installs? (I think I'm to close to the problem to see the "simple" solutions")
20:18 JasonSwindle UtahDave:   ^dev-(web|database-master|redis)-.* did not match dev-database-master-n001because the highstate errored
20:18 jlund Guest60426: Install a more recent version of Salt -- http://docs.saltstack.com/topics/installation/rhel.html
20:20 fragamus joined #salt
20:21 hotbox joined #salt
20:26 whit joined #salt
20:26 JasonSwindle UtahDave: I am using 0.15.90 , my error ( https://dpaste.de/zoWoP/ ) and the SLS for pillar ( https://dpaste.de/6CiuF/ )
20:26 hotbox joined #salt
20:26 JasonSwindle what I am using to match, https://dpaste.de/A7OFg/#L1 and the node name, dev-database-master-n001
20:27 UtahDave JasonSwindle: are you assigning a value to dbuser?
20:28 JasonSwindle yes, I removed the when I pasted the into the Inter-webs
20:28 JasonSwindle but yes, everything has a value.
20:28 dthom91 joined #salt
20:31 UtahDave JasonSwindle: so does it seem that it's matching and  and attempting to compile the template?
20:31 JasonSwindle UtahDave:  It worked with 'dev.*' when the node name was dev.database-master.n001
20:32 hotbox joined #salt
20:33 pentabular1 left #salt
20:33 JasonSwindle Let me keep playing, and I will get back to you.
20:33 JasonSwindle Most likely Friday brain going on
20:33 UtahDave OK. I'll think about it, too
20:34 koolhead17 joined #salt
20:34 koolhead17 joined #salt
20:34 Guest60426 jlund:  Checking the pkg list on a mirror,  I don't see anything on testing except for salt-api
20:36 JasonSwindle UtahDave: I maybe the fact that I use sub-modules and maybe touching the wrong thing.  Testing now.....
20:37 hotbox joined #salt
20:38 Xeago joined #salt
20:41 dthom91 joined #salt
20:42 hotbox joined #salt
20:43 twiedenbein where can i find exactly what a virtual module provides?
20:45 UtahDave twiedenbein: What do you mean?  like the pkg virtual module
20:47 twiedenbein yeah
20:47 hotbox joined #salt
20:47 Psi-Jack joined #salt
20:47 Psi-Jack What port does salt use to communicate? :)
20:48 Psi-Jack 4505/4506?
20:49 JasonSwindle Psi-Jack: http://docs.saltstack.com/topics/troubleshooting/index.html
20:49 UtahDave Psi-Jack: yes. those 2 ports
20:49 racooper any idea why the salt selinux module wouldn't show as available on a CentOS 6.4 server with selinux enabled?
20:49 Psi-Jack Builting a VM for my Salt Master, and I tend to number my VMID's for my VMs according to their basic ports. ;)
20:50 SDr uh, how safe are salt clients? that is, if I accept a minion, but do not issue any command to it, what is the maximum damage it can cause?
20:50 UtahDave racooper: If you look in the module, check the __virtual__ function to see what it's checking for
20:51 UtahDave SDr: All the minion can do by default is see the contents of the file_roots on your master
20:51 indymike joined #salt
20:52 hotbox joined #salt
20:53 UtahDave SDr: the minion has no other rights unless you specifically allow it.
20:53 SDr (doing test minion deployments using http://instantserver.io/  but the master server resides on my main server; and I don't pay them, so can't trust them)
20:53 racooper UtahDave,  apparently it needs another python package, policycoreutils? it's looking for semanage which seems to come there. does that sound right? (not really a python person yet...)
20:53 racooper required_cmds = ('semanage', 'setsebool')
20:54 UtahDave SDr: I think you're fine. Just don't put anything sensitive in your file_roots   (which by default is  /srv/salt/)
20:55 bauser joined #salt
20:55 UtahDave racooper: You have to make sure all deps are installed first
20:55 SDr oh, yay, my first minion is reporting for duty ^^
20:56 bluemoon joined #salt
20:56 Psi-Jack SDr: Now, send it to the deep depths!
20:56 Psi-Jack :)
20:57 LyndsySimon joined #salt
20:57 SDr okay, I'd like it to do a custom-compile of PHP, and grab mysql 5.5
20:57 hotbox joined #salt
20:57 Psi-Jack My first setup for salt's going to be to distribute nss-ldapd settings to my new cluster of CentOS 6.4 servers, and build off that, see how it goes, transitioning from puppet, this time.
20:58 Psi-Jack SDr: Huh? You want salt to build a custom-compile of PHP?
20:58 SDr well, that is my deployment configuration. and salt is supposedly a configuration management tool
20:59 Psi-Jack yeah, configuration management. Compiling != configuration. You should build the PHP as you want per RPM.spec, and provide it to the file_server to use for installing packages for minion hosts.
20:59 racooper did I miss the documentation about which dependencies are required for selinux? I can't seem to find that.
21:00 JasonSwindle racooper: http://docs.saltstack.com/topics/troubleshooting/index.html ?
21:01 racooper JasonSwindle,  I meant about the modules/states for selinux, not running the server. thanks tho
21:02 UtahDave Psi-Jack and SDr It's fine to have Salt compile software for you if that's what you need to have done.  Building your own rpms and debs is often a better idea though
21:02 bluemoon joined #salt
21:02 JasonSwindle Oh, no idea on that.  Sorry.
21:02 Psi-Jack Yeah.
21:02 Psi-Jack Often better === very true
21:02 hotbox joined #salt
21:07 hotbox joined #salt
21:08 fxhp https://github.com/saltstack/salt/blob/develop/salt/states/ssh_known_hosts.py#L40
21:08 fxhp should that say "the user who owns the ssh known_hosts file to modify"
21:09 UtahDave fxhp: I think you may be correct.  Care to fix it in a pull req?   ;)
21:10 fxhp yes
21:10 fxhp will do
21:10 * chutzpah looks confused at the existence of a 0.16.0 release announcement but no actual release. I am getting bump requests in Gentoo for a release that doesn't exist
21:11 fxhp UtahDave: also there seems to be a bug with that state-module/salt-module
21:12 fxhp ssh-rs        Comment:   Remote host public key found but its fingerprint does not match one you have provided
21:12 Psi-Jack chutzpah: Well, well /topic shows 0.15.3. :)
21:12 hotbox joined #salt
21:12 fxhp getting that error even though the fingerprint does _not_ exists
21:12 UtahDave chutzpah: 0.15.90 is the "RC" for 0.16.0.    We know. Weird. And next time it will be   0.17.0-RC1.    :)
21:13 UtahDave fxhp: can you pastebin what you have?
21:13 fxhp pastebin the state formula?
21:14 Psi-Jack So, I do have one question regarding Salt. I'm migrating from Puppet to Salt, and I know Salt has Pillars, but how does pillars relate to hiera from puppet with cascading/stacking of various components of configuration segmentation. Is a pillar all-or-nothing, or can one pillar cascade with another in a hierarchy?
21:16 fxhp http://pad.yohdah.com/139/asdf-fdsa-asdf-reqwer-cvnb-cvnb
21:17 hotbox joined #salt
21:21 UtahDave fxhp: Hm.  Can you manually verify both public key fingerprints?
21:22 fxhp https://github.com/saltstack/salt/blob/develop/salt/modules/ssh.py#L602
21:22 fxhp How do you mean both?
21:22 UtahDave er. I guess verify that the remote fingerprint matches what you're putting in your sls file.
21:22 hotbox joined #salt
21:23 fxhp yes
21:23 fxhp it doesn't get set on minion
21:24 fxhp and the file doesn't exist
21:24 fxhp sudo ls /root/.ssh
21:24 fxhp configserver_spore
21:24 fxhp config server_spore
21:24 fxhp no know_hosts file exists
21:24 fxhp so the fingerprint _cannot_ exist, and isn't a mismatch
21:25 fxhp let me touch the file and rerun highstate
21:25 link0 joined #salt
21:26 fxhp same error
21:27 hotbox joined #salt
21:29 UtahDave fxhp: Hm. So are you thinking this is a bug?
21:31 fxhp is it attempting to do sanity checks before placing the fingerprint into the known_hosts file?
21:32 Guest60426 My impression is that a salt-syndic is treated by the masterofmasters as another (special) minion.  Should I be able to from my master salt -G 'host:syndic' test.ping and get a response?
21:32 hotbox joined #salt
21:34 mgw1 madduck: ping
21:35 steamraven joined #salt
21:36 racooper is anyone following https://bugzilla.redhat.com/show_bug.cgi?id=958028 ? I don't know enough about selinux or salt yet to test it
21:36 steamraven Just pulled develop from git.  Getting a lot of errors related to salt/modules/yumpkg.py
21:36 fxhp @UtahDave: NM this is my own fault
21:37 fxhp public key != fingerprint
21:37 * fxhp cries
21:41 * UtahDave pats fxhp on the back
21:41 UtahDave Guest60426: no, you have to install a regular minion on the syndic server as well;
21:44 UtahDave steamraven: I think I saw an issue opened on that just today.
21:46 steamraven I think I figured the culpret. Should I search for the issue and update it?
21:47 UtahDave steamraven: Yeah, that would be very helpful!  Thanks
21:47 gwar9999 joined #salt
21:49 steamraven Thanks.
21:49 steamraven By the way, how do I get bootstrap to pull from a different branch, like 0.16
21:53 UtahDave steamraven: have you tried this: curl -L http://bootstrap.saltstack.org | sudo sh -s -- git v0.15.3
21:54 jeffrubic left #salt
21:56 kcb joined #salt
21:56 bhosmer joined #salt
21:59 steamraven UtahDave: I am using something like curl -L http://bootstrap.saltstack.org | sudo sh -s -- git origin/0.16, but the modules are not updating. (ie still getting above error)
22:00 StDiluted joined #salt
22:01 UtahDave steamraven: what I do is clone the salt repo.  Then I checkout the branch or tag I want.  Then I cd into the salt repo directory and run:   sudo python setup.py install --force
22:04 steamraven UtahDave: thanks, that worked better
22:04 UtahDave cool.
22:05 erasmas joined #salt
22:05 UtahDave steamraven: Are you just getting into using Salt?
22:05 oz_akan_ UtahDave: mine doesn't support compound matcher
22:05 steamraven Yes.  I am really interested in Multi-Master
22:07 Xeago joined #salt
22:07 oz_akan_ salt 'web-04' mine.get 'G@project:mytest' test.ping compound -- returns all servers, even non-matching ones
22:07 UtahDave steamraven: cool.  Multi master is new in this release.  Let us know if you have any questions or run into any issues
22:07 bluemoon joined #salt
22:08 steamraven UtahDave: I sure will. I know multi-master is new. Maybe I can find ways to break it (and fix it....)
22:08 UtahDave :)  of course!
22:09 UtahDave oz_akan_: hmm
22:10 oz_akan_ in the source also compound is not listed
22:10 oz_akan_ psre, grain, grain_pcre, pillar are supporte
22:10 oz_akan_ pcre
22:10 oz_akan_ and of course glob
22:11 UtahDave Hm.  Ok, could you open a bug on that? We'll track that down.  So I'm guessing that means nodegroups won't work either.
22:13 oz_akan_ ok, I will later on. I fought enough with inconsistencies today
22:13 oz_akan_ or lack of knowledge
22:13 oz_akan_ thanks, UtahDave have a great weekend
22:20 bemehow joined #salt
22:22 bhosmer joined #salt
22:24 berto- joined #salt
22:25 berto- hi all.  i found release notes for 0.16.0, but don't see a tag in the repo: http://docs.saltstack.com/topics/releases/0.16.0.html
22:25 lightsey joined #salt
22:28 jaequery joined #salt
22:34 UtahDave berto-: 0.15.90 is kind of a RC for 0.16.0    0.16.0 hasn't been released yet
22:35 Psi-Jack Wow, salt is blazing fast. :)
22:36 berto- UtahDave: awesome, thanks.  btw, do you recall my problem with salt mines and if I was using it wrong or if there was a bug in salt?  https://gist.github.com/rca/5646896
22:38 jschadlick Hiya. I am having an issue with getting my returner to work from the master. I set up a carbon returner a lot like http://hveem.no/salt-returner-for-carbon, and it works great if I call commands using salt-call on the minion. However, the data isn't being pushed when I call the commands from the master (from command line or through a runner) Any ideas?
22:41 dthom91 joined #salt
22:44 Psi-Jack How do you make a service restart when files change related to the service?
22:44 jpadilla joined #salt
22:45 UtahDave berto-: what was the issue there?
22:45 racooper so...why won't my selinux booleans set? http://pastebin.com/mP3cFGAk
22:45 UtahDave Psi-Jack:  use a  - watch
22:45 Psi-Jack Ahhh, yes, I see now. :)
22:45 UtahDave jschadlick: returners only work from a minion
22:45 berto- UtahDave: when mining data on minions i would always get the data corresponding to the master.  e.g. asking for IP or MAC addresses would simply return the master's IP for all minions.
22:46 Psi-Jack A - watch within the service tree.. Will try it. :)
22:46 LyndsySimon joined #salt
22:46 UtahDave berto-: Oh, yes. That has been fixed.
22:46 UtahDave time to head home.
22:47 jschadlick UtahDave: shouldn't it work if I use client.cmd in my runner?
22:48 jimallman joined #salt
22:49 jschadlick something like: https://gist.github.com/anonymous/5888752
22:49 UtahDave I'm not sure, jschadlick.
22:50 Psi-Jack Hmm, now I need to figure out how better to target specific OSs, and nodes, like nodes X and Y need one thing, and node Z needs something else. I'm presuming that's somehow done with pillars.
22:52 berto- UtahDave: great, thank you!
22:54 d0ugal left #salt
22:54 Psi-Jack nice.. Well, at least my entire cluster of CentOS servers are now fully and properly configured for LDAP user/group and authentication. :D
22:54 rberger joined #salt
22:55 UtahDave Psi-Jack: you can also target on grains    salt -G 'os:CentOS' test.ping
22:56 * Psi-Jack nods.
22:56 kho joined #salt
22:56 Psi-Jack I'm getting the basics, so far. Unfortunately the tutorials aren't nearly as in-depth as that that puppet has, but it gets the basics at the least.
22:56 kho joined #salt
22:57 UtahDave jschadlick: That does look correct.  If that's not working, I'd ask on the mailing list or open a bug report.
22:57 Psi-Jack The concept is definitely cool though. Though, in my salt states (or pillars), I need to specifically target specific nodes, like nas1 and nas2 need two completely different settings for ntp.conf, while everything else needs to have their ntp.conf pointing to nas1 and nas2.
22:57 UtahDave Psi-Jack: As you go through and figure things out, feel free to update the docs with anything you think would help make it clearer
22:58 jschadlick UtahDave:  Hmm. Thanks for looking, I'll keep troubleshooting and do so if its still not working
22:59 UtahDave cool.  Thanks!
22:59 Psi-Jack UtahDave: It looks like salt's come a long way since I last evaluated it, so far, though. :)
22:59 oz_akan_ joined #salt
23:00 UtahDave :)  we do our best!
23:00 UtahDave later everyone.  gotta go home now
23:01 terminalmage Sorry for causing those yum tracebacks guys
23:01 terminalmage it's fixed now
23:02 terminalmage would have gotten to it sooner but I was somewhere near the center of this picture today: https://twitter.com/NinaFalcone/status/350654288927784960/photo/1
23:02 xt where's waldo..
23:02 terminalmage :)
23:03 terminalmage I was near those loudspeakers close to the center
23:06 akio joined #salt
23:08 kermit joined #salt
23:08 ioni joined #salt
23:08 Xeago joined #salt
23:12 teepark joined #salt
23:13 chrisgilmerproj left #salt
23:23 kleinishere joined #salt
23:26 teepark left #salt
23:29 KyleG1 joined #salt
23:32 Xeago joined #salt
23:33 oz_akan_ joined #salt
23:42 chjohnst_work joined #salt
23:44 SEJeff_work joined #salt
23:45 whiteinge joined #salt
23:50 steamraven Quick question: I want to use multimaster, can I use the daily builds in launchpad? They say they are 5. something.
23:52 terminalmage I'm not familiar with the daily builds, but it they are true nightlies, the feature should be there
23:52 terminalmage also the feature should be in the new release candidate
23:52 jschadlick left #salt

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