Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-12-06

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

All times shown according to UTC.

Time Nick Message
00:02 Gifflen joined #salt
00:10 mwmnj joined #salt
00:14 mwmnj_ joined #salt
00:16 zandy joined #salt
00:19 matanya joined #salt
00:24 seanz joined #salt
00:31 pipps_ joined #salt
00:31 davet joined #salt
00:32 dpippenger joined #salt
00:40 druonysus joined #salt
00:40 druonysus joined #salt
00:43 druonysus joined #salt
00:46 nicker joined #salt
00:49 renoirb Hey guys, what is the command to un register minions that do not answer?
00:49 EugeneKay Salt-key -d
00:50 renoirb EugeneKay: this is when you want to remove one.
00:50 EugeneKay Is that not what you mean?
00:50 renoirb but there is a salt module where you can ask 'hey, are you alive' and if not, it gets removed from the keys to the master
00:50 renoirb i know salt-key :)
00:51 EugeneKay Ah you mean automatically. No clue
00:51 renoirb I can do a salt '*' test.ping the ones that doesn't answer are to be removed. but I heard that there was such thing
00:52 vipul joined #salt
00:54 KyleG joined #salt
00:54 KyleG joined #salt
00:55 anitak joined #salt
00:56 mgw joined #salt
00:56 pdayton joined #salt
00:59 njs126 joined #salt
01:00 Nazca__ joined #salt
01:02 njs126 joined #salt
01:08 quanta_ joined #salt
01:09 cachedout joined #salt
01:18 cewood joined #salt
01:19 Gifflen joined #salt
01:19 zandy joined #salt
01:23 sroegner joined #salt
01:27 MZAWeb joined #salt
01:33 quickdry21 joined #salt
01:34 baijum joined #salt
01:36 pipps_ joined #salt
01:36 brianhicks joined #salt
01:40 cewood joined #salt
01:41 jfzhu_us joined #salt
01:49 quanta_ joined #salt
01:49 smccarthy joined #salt
01:51 m4yfield joined #salt
01:55 Furao joined #salt
01:55 anitak joined #salt
01:57 bhosmer joined #salt
01:58 bkparso Is there a way to create encrypted pillars that you can commit to a repository? Like chef encrypted databags?
01:58 fllr joined #salt
02:03 favadi joined #salt
02:09 xinkeT joined #salt
02:17 patrek joined #salt
02:20 MZAWeb joined #salt
02:28 xl1 joined #salt
02:30 forresta joined #salt
02:33 wramthun joined #salt
02:35 mgw joined #salt
02:36 rojem joined #salt
02:37 nmistry joined #salt
02:38 torrancew bkparso: you could use hiera as a pillar, and pull in hiera-gpg
02:38 torrancew But if there's a more native way, I'd love to know about it
02:38 bkparso ah that's a puppet thing?
02:38 torrancew it was built for puppet, but it's fairly generic
02:39 torrancew it's a hierarchical datastore
02:39 bkparso i will have a read-through
02:39 bkparso thanks for the tip!
02:39 torrancew ie you define multiple "backends" (yaml, json, mysql, gpg, whatever), and then a "hierarchy" (usually based on node info like grains or puppet's facts)
02:40 torrancew Something calls hiera with a scope (basically a hash of properties), and it searches the backends and hierarchy until it finds a match
02:40 torrancew there are some merge capabilities, too
02:44 LinX joined #salt
02:44 LinX Hi there.
02:46 LinX I'd like to ask a question about setting up a windows software repository using salt.
02:46 jimallman joined #salt
02:47 LinX So far I get up to a point however the minion doesn't seem to update the repo file correctly.. (it's just blank on the minion
02:47 LinX )
02:47 forresta LinX, are you going through the instructions here? http://docs.saltstack.com/ref/windows-package-manager.html
02:47 LinX Yes I certainly am..
02:47 forresta ok
02:47 forresta I don't know if any of the windows users are around this evening
02:47 LinX Setting up repository on a server (my linux desktop as I'm just testing)
02:47 forresta gotcha
02:49 LinX I'll just get some clearer details on where it might be going wrong .. BRB.. thank you
02:49 forresta ok let us know, we'll do what we can
02:51 LinX OK...
02:51 LinX If set up a init.sls for firefox with the following details
02:51 LinX firefox:     25.0.1:         installer: 'salt://win/repo/firefox/Firefox Setup 25.0.1.exe'         full_name: Mozilla Firefox 25.0.1 (x86 en-GB)         locale: en_GB         reboot: False         install_flags: ' -ms'         uninstaller: '%ProgramFiles(x86)%/Mozilla Firefox/uninstall/helper.exe'         uninstall_flags: ' /S'
02:52 LinX tab = cr
02:52 LinX the installer: directive.
02:53 LinX does the salt:// point to the root of the salt dir on the linux machine.
02:53 LinX eg.
02:53 LinX /var/salt
02:55 cewood joined #salt
02:56 forresta the docs are saying by dfeault it's /srv/salt/win/repo
02:56 forresta *default
02:56 forresta unless you changed the win_repo variable in the master conf
02:56 LinX I've changed that in the salt master's conf
02:56 forresta ok, did you restart the master?
02:57 LinX so I have that in /var/salt/win/repo
02:57 LinX yes
02:57 nicker joined #salt
02:57 anitak joined #salt
02:57 LinX It builds the repo fine on the server...
02:57 LinX so the command gen.repo comes up with the info
02:58 LinX salt-run winrepo.genrepo {'name_map': {'Mozilla Firefox 25.0.1 (x86 en-GB)': 'firefox'},  'repo': {'firefox': {'25.0.1': {'full_name': 'Mozilla Firefox 25.0.1 (x86 en-GB)',                                  'install_flags': ' -ms',                                  'installer': 'salt://win/repo/firefox/Firefox Setup 25.0.1.exe',                                  'locale': 'en_GB',                                  'reboot': False,
02:58 forresta yea, for the installer I'm not sure, because https://github.com/saltstack/salt-winrepo all of those use another location
02:59 LinX https://github.com/saltstack/salt-winrepo/blob/master/msysgit.sls
02:59 LinX example of one with salt://
02:59 forresta ahh yea
02:59 forresta but that doesn't work for you?
03:02 LinX seems to fall over over when.. i do the salt '*' pkg.refresh_db
03:02 LinX I get
03:02 LinX OIN:     True
03:03 LinX that from my lone victom... test subject... minion
03:03 LinX but when I do
03:03 LinX salt 'OIN' pkg.available_version firefox
03:03 LinX I just get OIN:
03:03 LinX computer equiv of blank what the hell face ?
03:05 forresta uhh you need to use the win_pkg module I thought?
03:05 forresta oh that does, cool
03:05 LinX docs have just pkg.
03:06 forresta yea, it must auto detect it's windows
03:06 forresta can you try to add -l debug on the end to see if you can pass that on a windows system.
03:06 LinX I'll give a try.. brb
03:06 LinX salt error no such option.. hmm
03:07 forresta ok that might just be a module thing
03:07 LinX is it salt -l 'OIN' pkg.available_version firefox
03:07 forresta I don't think so
03:07 AdamSewell joined #salt
03:08 forresta can you change the logging on the minion to debug?
03:08 forresta you're running these commands off the minion right?
03:08 forresta or the master since you're using salt probably..
03:08 LinX umm on the server.
03:08 LinX master.
03:09 forresta ok, can you go onto the minion, and try salt-call pkg.refresh_db to see what happens there?
03:12 LinX [ERROR   ] Unable to cache file "salt://win/repo/winrepo.p" from env "base". ←[0;36mlocal←[0m:     ←[1;33mTrue←[0m
03:12 LinX bit more informative..
03:12 LinX sort of
03:13 forresta what is winrepo.p?
03:14 LinX thats the repo file that is generated with winrepo.genrepo on the server
03:14 forresta ahh ok
03:15 forresta LinX, check this out: https://groups.google.com/forum/#!msg/salt-users/_O2iexdeWWg/tq55ehknJ7YJ
03:16 LinX looking now thank you
03:16 jean-philippe joined #salt
03:24 LinX I think I've found the issue.. I'll do some testing and let you know.
03:24 sroegner joined #salt
03:24 forresta awesome, I've gotta go to the gym in a few, but just ping me if you get it figured out so I can put in a pull request to update the docs if there is some clarification required.
03:25 Gifflen joined #salt
03:27 LinX Thank you ..the file_root: directive needed to be changed in the master configuration.. Thank you very much for your help..
03:27 LinX I
03:27 forresta what did you change it to?
03:27 forresta /srv/salt/win/repo?
03:27 LinX file_roots:   base:     - /var/salt
03:27 forresta was it something else before?
03:27 LinX it defaults to /srv/salt
03:28 forresta ahh right right.
03:28 LinX Thank you again.. something simple .. so easy to look over..
03:28 forresta yea, so your repo is actually at /var/salt/win/repo?
03:29 forresta I didn't even notice early that you had it in /var/salt/win/repo :P glad you got it working!
03:29 ipmb joined #salt
03:29 LinX that it is..
03:30 LinX just convention due to dev's here putting the  web apps in odd places.
03:30 forresta Yea totally understandable
03:30 Nexpro1 joined #salt
03:30 forresta you'll just have to put your regular states in there too, no big deal
03:32 LinX all good
03:32 LinX Have fun at the Gym..
03:32 forresta thanks, enjoy the rest of your day as well
03:33 LinX will do .. thank you again.
03:42 JordanRinke ls -a
03:44 JordanRinke lol
03:46 Gifflen joined #salt
03:57 anitak joined #salt
03:59 mannyt joined #salt
03:59 nicker joined #salt
04:04 mannyt_ joined #salt
04:04 dvogt joined #salt
04:09 mannyt joined #salt
04:14 jcsp joined #salt
04:19 fandikurnia01 joined #salt
04:19 MZAWeb joined #salt
04:34 pipps_ joined #salt
04:34 amahon joined #salt
04:48 cachedout joined #salt
04:53 forresta cachedout, what are you doing here?
04:54 forresta this is a place of serious business! :P
04:54 cachedout Heh. Just bug huntin'. :]
04:54 forresta ahh nice
04:54 forresta well don't work too much
04:54 cachedout Hah, I'll try. You too, buddy. :]
04:55 forresta I won't, you don't see me logged into work at this hour!
04:58 anitak joined #salt
05:01 forresta cachedout, hey is UtahDave in the office this week? I wanted to talk to him about some expanded windows docs
05:01 cachedout He's in town this week but he's leaving soon for a training and has been very busy with some customers. It might take him a bit to get back to you.
05:02 forresta ok cool, it can wait, was just curious since I hadn't seen him in the IRC.
05:02 jalbretsen joined #salt
05:02 cachedout I don't know his exact schedule but it might be a few days before he surfaces. Email is probably best.
05:03 forresta cachedout, ehh I don't like to email you guys, I assume you get spammed already, maybe I'll just make an issue and tag him in it.
05:03 cachedout That'll work
05:06 mannyt joined #salt
05:07 Gifflen joined #salt
05:09 rojem joined #salt
05:12 thelorax123 joined #salt
05:12 joelwhitehouse How do you automate deployment with salt?
05:13 forresta joelwhitehouse, update the associated files, run salt on the servers/environments destined for updates usually
05:13 joelwhitehouse What if deployment involves several step/state-trees?
05:14 joelwhitehouse Like, remove worker from LB, wait for its load to diminish, apply updated packages, rejoin LB?
05:15 joelwhitehouse I could write states for each one of those steps, so deployment looks like an evolving state-tree... but I don't know how to automate it.
05:16 malinoff joelwhitehouse, scheduling, cron, git hooks, other external tools, etc
05:16 malinoff It depends on what do you want to achieve
05:18 joelwhitehouse Well, automation, repeatability is important.
05:19 jcockhren joelwhitehouse: yeah. I'm trying to do the same over here
05:19 malinoff joelwhitehouse, you can write something like `stop lb; sleep(100); salt \* state.highstate; start lb` in cron, or git hook, or anywhere else
05:20 malinoff We use Jenkins for this
05:20 malinoff Build package -> backup existent code -> deploy new code -> rollback if an error occurs
05:22 malinoff But if you have just a single project, Jenkins would be an overhead
05:23 joelwhitehouse I appreciate the pointer, I hadn't read up on Jenkins before.
05:23 malinoff joelwhitehouse, If you have just a single project, it would be an overhead
05:23 joelwhitehouse If one app is too little, then what's the tipping point for needing Jenkins?
05:24 malinoff When you have many projects written in many languages that should work on many platforms
05:24 malinoff Do you use git?
05:24 qx joined #salt
05:25 sroegner joined #salt
05:25 joelwhitehouse malinoff,  Absolutely.
05:26 malinoff So you can say, master branch is stable branch. When I push new commits to it (or merge with another branch), salt should deploy my code.
05:26 malinoff Hooks can do that: http://git-scm.com/book/en/Customizing-Git-Git-Hooks
05:27 mannyt joined #salt
05:27 malinoff I think, this is the simplest way
05:29 joelwhitehouse That's solid for simple setups.
05:30 malinoff joelwhitehouse, your example above is quite simple, isn't it?
05:33 joelwhitehouse Yes, it is.  I've been enjoying salt, but it's always good to look over the shoulders of someone who is going farther with it.
05:33 malinoff Totally :)
05:34 joelwhitehouse Can I ask how you organize your sls repo/s?
05:34 malinoff Of course
05:34 joelwhitehouse In chef, you want a repo for every cookbook...
05:34 joelwhitehouse In salt, do you repo your formulas individually?
05:34 joelwhitehouse Or just version the entire tree?
05:35 joelwhitehouse Or both?
05:35 malinoff Well, I love simple things :) I have all my states in a single repo
05:37 forresta joelwhitehouse, take a look at https://github.com/terminalmage/djangocon2013-sls as an example
05:37 __number5__ you can import external salt-formulas as sub modules
05:37 forresta states are in unique directories, but nothing is keeping you from keeping them in the same repo, granted I'm a fan of multiple repos/branches depending on environment.
05:41 joelwhitehouse Are any reasonable people using git submodules to manage their state trees in production?
05:42 higgs001 joined #salt
05:45 joelwhitehouse I remember hearing Jamie Winsor talk about how difficulties with submodules were part of the impetus for writing berkshelf.
05:46 forresta I don't use them for my git stuff joelwhitehouse
05:46 forresta I've never used a git submodule the whole time I've been using git
05:47 jcockhren git subtree > git submodule
05:48 * jcockhren starts flame war and walks away
05:48 forresta *shrug* to each his own, they all kinda suck.
05:48 jcockhren pro-tip: ^
05:49 forresta every time I have to use SVN at work though I'm happy to come home and work with git again
05:49 forresta even if it takes 45 friggin minutes to solve some minor issue you created.
05:50 joelwhitehouse One thing that stood out to me about salt is it's simplicity.  It doesn't require a large ecosystem of tools.
05:51 forresta yes, this is one of the things I love about salt coming from using puppet
05:51 forresta and having to set up puppet now
05:51 forresta I almost threw my laptop across the office after struggling with gem BS for an hour, where the issue ended up being that I was using too new a revision of a gem for the foreman-proxy integration, but the error wasn't related to that at all.
05:51 higgs001 joined #salt
05:52 sandGorgon joined #salt
05:52 forresta granted that was after a very stressful day, usually an hour is nothing, but still. Come on...
05:52 higgs001 joined #salt
05:53 vipul joined #salt
05:54 joelwhitehouse Yuck!  It's stuff like that that mikes you wish you weren't "full stack."
05:54 forresta It happens, it's part of the redhat satellite 6 beta
05:54 forresta which is gonna be hot garbage for anyone not using their exact stack as a note.
05:55 forresta 'sure you can plug in config management, if that config management is puppet.'
05:55 forresta I need to ask what they were thinking on the next call
05:56 quanta_ joined #salt
05:58 anitak joined #salt
05:59 joelwhitehouse Do you think saltstack can convince a distro to go exclusive?
05:59 forresta I would hope not, there is no reason to be 'exclusive'
05:59 joelwhitehouse Perhaps a new distro, then...
05:59 forresta You should create as plugable a system as possible so it can hook into as many existing systems as possible.
06:00 joelwhitehouse It would be fascinating to completely strip down Mint or something, and build it back up with CM.
06:00 forresta Just design the best product possible, with easy implementation, great docs, and a good community, then ensure it can hook into as much as you can.
06:01 joelwhitehouse Sure.
06:01 malinoff Can't say salt has easy implementation :)
06:01 forresta compared to puppet or chef, it's a walk in the park
06:02 joelwhitehouse malinoff, out of curiosity, what's not easy about salt?
06:02 malinoff joelwhitehouse, the core source code
06:03 forresta also there are issues between versions with backwards compatibility, or sometimes old working features break.
06:03 malinoff Right now I'm trying to write some code to properly return retcode from a command
06:04 malinoff Spent a lot of time in minion.py, master.py, cli/__init__.py and client/__init__.py
06:04 forresta I've been thinking about that malinoff, some docs explaining the salt core for idiots like myself would be good
06:04 malinoff And I can say, salt is a complex tool
06:04 joelwhitehouse I understand now.  My first thought was, "why would anyone but Tom Hatch need to get into the source?"
06:05 forresta yea when you need to add/modify something like that, it can be a pain, it's hard to follow how things goe.
06:05 forresta *go
06:05 malinoff yeah
06:05 malinoff But
06:05 favadi joined #salt
06:05 malinoff Probably
06:05 joelwhitehouse I've been thinking about filling out some of the salt-formulas myself.
06:05 malinoff I'll make a pull request explaining how salt actually works
06:05 forresta yep I've been working on that slowly as well joelwhitehouse
06:05 forresta malinoff, you should write a doc page, that would be cool
06:06 malinoff forresta, yep, thinking about that
06:06 joelwhitehouse I would need someone to test my work on Redhat, but I could do some tests on Cent, Ubuntu, Debian.
06:06 joelwhitehouse The gitlab one looks tempting.
06:07 forresta joelwhitehouse, if you test on cent, you've pretty much tested on redhat, I usually just spin up a debian and a centos droplet on digitalocean
06:07 joelwhitehouse No vagrant?
06:08 forresta nope, it's faster and cheaper to spin instances up there than thrash my hard drive.
06:08 forresta it's less than a penny an hour for the cheapest instance.
06:09 joelwhitehouse Good point.
06:10 joelwhitehouse Hey, what's Tom Hatch's sn?
06:10 forresta he doesn't come in the IRC
06:10 forresta they banned him because he was spending too much time in here answering questions :P
06:10 malinoff :D
06:11 joelwhitehouse He hasn't blogged since 0.12.0 either... he must be a busy guy.
06:11 forresta joelwhitehouse, they've been doing the salt air ones
06:11 forresta but yea, all the salt guys are pretty swamped
06:12 forresta Alright I've gotta go guys, have a good evening/day depending on where you're at.
06:13 joelwhitehouse Well, forresta, thanks for your help.
06:13 joelwhitehouse Same to you malinoff!
06:13 malinoff No problem :)
06:20 Gifflen joined #salt
06:20 quanta_ joined #salt
06:35 ipmb joined #salt
06:49 xl1 left #salt
06:49 matanya joined #salt
06:49 Destro joined #salt
06:51 xl1 joined #salt
06:55 pipps joined #salt
06:58 gammalget joined #salt
06:59 anitak joined #salt
07:21 bhosmer joined #salt
07:25 sroegner joined #salt
07:27 fllr joined #salt
07:29 fllr joined #salt
07:34 thelorax123 joined #salt
07:38 anitak joined #salt
07:43 anitak1 joined #salt
07:51 anitak joined #salt
07:51 junedm joined #salt
07:52 junedm left #salt
08:03 balboah joined #salt
08:05 anitak1 joined #salt
08:06 slav0nic joined #salt
08:12 harobed joined #salt
08:13 Iwirada joined #salt
08:21 giantlock_ joined #salt
08:26 fivethre1o joined #salt
08:27 jpcw_ joined #salt
08:27 jcsp1 joined #salt
08:27 msil_ joined #salt
08:27 bitz joined #salt
08:28 eliasp_ joined #salt
08:28 copelco_ joined #salt
08:28 pmcg_ joined #salt
08:29 balboah joined #salt
08:30 xerxas_ joined #salt
08:30 whaterverman joined #salt
08:30 EntropyWorks_ joined #salt
08:30 futurisk_ joined #salt
08:30 fllr joined #salt
08:30 altj_ joined #salt
08:30 scassidy_ joined #salt
08:30 abele joined #salt
08:30 shadowsu1 joined #salt
08:31 Rojematic joined #salt
08:31 crashmag_ joined #salt
08:32 AlcariTheMad joined #salt
08:35 fatbox joined #salt
08:35 whyzgeek joined #salt
08:36 wramthun joined #salt
08:38 Striki joined #salt
08:55 kyusan joined #salt
08:57 mnemonikk joined #salt
09:02 higgs001 joined #salt
09:03 anitak joined #salt
09:03 anitak1 joined #salt
09:11 matanya joined #salt
09:18 netzmonster joined #salt
09:21 ckao joined #salt
09:22 higgs001 joined #salt
09:23 MrTango joined #salt
09:25 juso joined #salt
09:26 portland same question guys, yesterday i didnt get answer ;-)
09:26 portland any way to use pkg.mod_repo from sls?
09:26 sroegner joined #salt
09:26 portland i need to enable installed from rpm repository
09:26 portland on centos
09:27 higgs001 joined #salt
09:29 jesusaurus i dont understand your question
09:29 portland ok im installing two new repos via sls
09:29 portland sources: and rpms
09:30 portland and after that i need to enable those repositories
09:30 zooz joined #salt
09:30 fllr joined #salt
09:31 higgs001 joined #salt
09:31 portland i can do it from command line salt '*' pkg.mod_repo remi enabled=1
09:32 portland but i dont want to do this via command line but in sls
09:32 tinuva joined #salt
09:34 jesusaurus are you using pkgrepo.managed in your sls formula?
09:34 fandikurnia01 joined #salt
09:36 portland im doing this v
09:36 portland http://pastebin.com/YccEprak
09:39 jesusaurus you dont have a require statement defining the relationship between the two
09:39 higgs001 joined #salt
09:39 macduke joined #salt
09:40 JasonG_TA joined #salt
09:41 jesusaurus im not familiar with managing packages with salt on rhel based systems, but i would try using pkgrepo to add the epel and then require the pkgrepo in the pkg id
09:43 portland hmm
09:44 portland ok so maybe you know how to put this command " salt '*' pkg.mod_repo remi enabled=1" in sls ?;-)
09:44 portland is this proper way of doing things?
09:44 higgs001 joined #salt
09:44 portland because this command is working and doing what i need :)
09:45 portland so i just need to put it in sls and I'm done
09:45 jesusaurus dont try to put commands in the sls file
09:45 malinoff portland, you should pkgrepo.managed
09:46 jesusaurus the execution modules and the state modules are pretty different
09:46 portland malinoff: but how? im done with adding repos (it's done by rpm), now i need only to enable them
09:47 qx_ joined #salt
09:47 jesusaurus try to stop thinking of the formula as a list of commands
09:47 jesusaurus its not a list of commands
09:47 Doormatt joined #salt
09:47 jesusaurus its the desired state of the system
09:48 ticosax joined #salt
09:48 jesusaurus and part of that desired state is a pkgrepo
09:49 macduke Hi, I'm trying to run salt-ssh on an OSX master, but it can't find sshpass. Does anyone know how to install this?
09:50 malinoff portland, alright, got it. You can use `module` state: http://docs.saltstack.com/ref/states/all/salt.states.module.html?highlight=states.module#salt.states.module.run
09:51 sandGorgon joined #salt
09:51 throwanexception joined #salt
09:51 eculver_ joined #salt
09:51 opapo joined #salt
09:51 tru_tru joined #salt
09:51 cce joined #salt
09:51 Kizano joined #salt
09:51 cce joined #salt
09:51 whitepaws joined #salt
09:51 Sypher joined #salt
09:52 benno joined #salt
09:52 benno left #salt
09:53 kiorky ticosax: hi
09:53 ticosax Hi
09:54 portland malinoff: - func: pkg.mod_repo remi enabled=1
09:54 portland it should be something like this?
09:54 kiorky ticosax: for the naming,we can have a compromise, but
09:54 kiorky ticosax: for the bind, you need to kill/create
09:54 kiorky ticosax: and not set the binds at create, only the volumes
09:54 ticosax THis is what I'm doing
09:55 kiorky ticosax: cool !
09:55 ticosax kiorky: volumes is a list at creation time
09:55 malinoff portland, I think, something like that: http://pastebin.com/uwmH18fQ
09:55 ticosax kiorky: binds is a mapping at start time
09:56 kiorky ticosax: if you define binds at create time, they are not redefinable
09:56 kiorky ticosax: read the code before the changeset
09:57 ticosax kiorky: https://github.com/dotcloud/docker-py/blob/master/docker/client.py#L321
09:58 ticosax there is no binds argument
09:58 ticosax kiorky: it is for start.
09:58 kiorky ticosax: they are mangled from volumes
09:58 kiorky ticosax: you have to read docker.go code
09:58 kiorky ticosax: this is also exposed in docker.py doc
09:59 kiorky (i have wroten those bits ;))
09:59 Ryan_Lane joined #salt
09:59 portland malinoff: http://pastebin.com/yLUKkGyp this is what im getting
10:00 kiorky ticosax: https://github.com/dotcloud/docker-py/blob/master/README.md
10:01 kiorky ticosax: https://github.com/ticosax/salt/blob/e25c5f59e1c22fd0406610c734c9f7269fd7f52f/salt/modules/dockerio.py#L615
10:01 ticosax kiorky: Can you test my branch ? you will see it works.
10:01 kiorky ticosax: uhm another removed feature
10:02 ticosax kiorky: no. It is still there
10:02 portland malinoff: ok got it ;-)
10:02 kiorky ticosax: ha, i may have not finished it, so that s why you didnt see it
10:02 * kiorky verify
10:02 portland malinoff: http://pastebin.com/ua93b7hG it should be like this ;-)
10:03 kiorky ticosax: no, for the other things its ok
10:03 kiorky ticosax: so the thing we have left is the broken volume efinition
10:03 kiorky confirmed as borken
10:03 ticosax kiorky: in modules/dockerio.py you give volumes={'/path': {}}
10:04 ticosax then you start with bind = {'/path': '/path'}
10:04 ticosax I'm still doing this
10:05 portland malinoff: its working, but not setting value ;-)
10:05 ticosax But you need to give new binds directive in the state docker.running
10:05 portland malinoff: so still in the same point :)
10:06 kiorky ticosax: had a bad night, sorry, i myay rehave a look ....
10:08 kiorky ticosax: answered on github
10:08 kiorky ticosax: be very picky with the volumes defintion
10:08 pengunix joined #salt
10:08 bhosmer joined #salt
10:08 kiorky ticosax: via docker-py bindinds,
10:08 kiorky ticosax: it have bitten me :)
10:08 kiorky ticosax: *has
10:09 ticosax kiorky: Thx
10:12 kiorky ticosax: did you noticed the query ?
10:12 ticosax no
10:12 ticosax which query ?
10:13 malinoff portland, Ah. You need to specify 'name' argument. http://pastebin.com/udaMeq7s
10:13 kiorky ticosax: you have an irc query ^
10:13 kiorky ^^ ^
10:13 ticosax Sorry I'm a newby on IRC
10:13 ticosax don't really know  how it works
10:14 malinoff ticosax, install xchat :)
10:15 portland malinoff: nope, it should be pkg.mod_repo remi enabled=1
10:15 junedm joined #salt
10:16 portland malinoff: now is only getting setting of this repo and not passing kwargs enabled=1
10:16 portland repo: remi is ok, but enabled: 1 not
10:16 malinoff Try `True`
10:16 backjlack joined #salt
10:17 portland malinoff: i dont think so, because there is no paramater enabled in this function
10:17 malinoff portland, It will be handled in kwargs
10:18 malinoff Or you got some error?
10:18 portland malinoff: http://pastebin.com/8LGjCP7P
10:19 jusoo joined #salt
10:19 portland enable: False or 0
10:19 portland but it is still enabled
10:19 portland i think this mod in only printing settings
10:19 portland but not setting this
10:19 malinoff portland, it should not
10:20 portland malinoff: as you can see its still enabled :/
10:20 malinoff portland, try to use `enabled` argument instead of `enable`
10:22 portland malinoff: - enabled: 0, its not working ;/
10:22 malinoff Still the same?
10:22 portland yeah
10:24 portland malinoff: http://pastebin.com/8LGjCP7P thats the effect only repo output but enabled is not changing :/
10:24 malinoff 'remi': {'gpgcheck': '1', 'gpgkey': 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi', 'enabled': '1', 'name': 'Les RPM de remi pour Enterprise Linux 6 - $basearch', 'mirrorlist': 'http://rpms.famillecollet.com/enterprise/6/remi/mirror'},
10:24 malinoff Looks like it enabled
10:25 portland i enabled this by hand now i want to disable byt enable=0
10:25 portland so thats im using enabled: 0
10:27 portland malinoff: even when im setting salt '*' pkg.mod_repo remi enabled=0 and after that trying to change in sls its not working
10:27 anitak joined #salt
10:27 portland strange that is working from hand and not from sls
10:28 malinoff Strange thing. Could you open an issue on github?
10:30 fllr joined #salt
10:32 portland malinoff: sure
10:38 matanya joined #salt
10:43 bwghughes joined #salt
10:43 portland malinoff: ok done maybe someone will find solution for this :-)
10:43 portland malinoff: BTW thanks!
10:44 malinoff portland, that's why I'm here :)
10:44 che-arne joined #salt
10:47 Nexpro joined #salt
10:49 jcsp joined #salt
11:07 whiskybar joined #salt
11:15 igreg Hi guys, I'm trying to understand how/if salt-stack can help me orchestrating certain tasks that involve multiple minions. Trying to find a way to orchestrate putting our website in maintenance and back.
11:16 igreg Is that what overstates are for?
11:17 malinoff igreg, Overstate is just sequence of states that should be applied one-by-one - and with check that previous step was OK
11:24 zz_cro joined #salt
11:25 junedm left #salt
11:27 sroegner joined #salt
11:30 fllr joined #salt
11:36 echos joined #salt
11:41 bhosmer joined #salt
11:46 igreg malinoff, is it possible to do orchestration with salt-stack? (typically done with capistrano, func, fabric, rundeck)
11:48 malinoff igreg, yes, of course. What exactly you want?
11:59 lemao joined #salt
11:59 xl1 left #salt
12:01 isomorphic joined #salt
12:03 logix812 joined #salt
12:05 igreg malinoff, I have to execute three commands remotely to multiple minions. All minions have to execute a task before the next one is broadcasted.
12:05 malinoff igreg, yes, salt can do that :)
12:07 igreg malinoff, nice. what would be the best way to implement this? I have a module with all commands but haven't found a way to make salt-stack run them in order
12:07 malinoff Can you pastebin this module?
12:11 igreg malinoff, yes here is the link: http://pastebin.com/fL85DT4w
12:11 igreg malinoff, it's my first attempt in python/saltstask so you might find unnecessary complexity in there :)
12:12 malinoff igreg, you should not write any python code :)
12:12 malinoff I'd commend to read the walkthrough: http://docs.saltstack.com/topics/tutorials/walkthrough.html
12:13 malinoff And states tutorial: http://docs.saltstack.com/topics/tutorials/states_pt1.html
12:17 jrdx joined #salt
12:17 igreg malinoff, say I have to disable a minion and have to run a bunch of commands. Would you then write a sls file to this?
12:18 igreg malinoff, my point being, would you write a SLS file per task?
12:18 malinoff igreg, what do mean by saying 'disable a minion'?
12:18 malinoff Do you want to stop salt-minion daemon?
12:19 igreg igreg, no I meant take a server out of production (touch a file & wait until server stops receiving requests)
12:20 Sheco joined #salt
12:20 igreg Which I can do by running a few shell commands
12:22 malinoff igreg, Well, if you stop a running server, minion will not return a response. I think, salt-ssh is what you want: http://docs.saltstack.com/topics/ssh/index.html
12:23 igreg malinoff, sorry I misexplained myself - not trying to shutdown the minion daemon
12:25 igreg malinoff, shutting down apache
12:25 malinoff igreg, You probably want to edit apache config files and restart apache service, am I right?
12:25 malinoff restart after that*
12:30 fllr joined #salt
12:31 Psi-Jack So, I have an issue. Salt 0.17.2, I have a package state defined to install a very specific custom packaged rpm. I provide the state, pkg.installed, sources include the salt://url to the rpm. Problem: It does not install the package if it's already installed (but older). It /will/ install it if it is new, but not upgrade it if it's not new.
12:32 brianhicks joined #salt
12:32 malinoff Psi-Jack, use pkg.latest
12:32 Psi-Jack pkg.latest does not appear to have the sources parameter.
12:33 malinoff Just try it :)
12:33 Psi-Jack I have.
12:33 quanta_ joined #salt
12:33 Psi-Jack It failed.
12:33 malinoff Cool. Github's issue is waiting for you :)
12:33 Psi-Jack Comment:   The "sources" parameter is not supported.
12:34 quanta_ joined #salt
12:34 malinoff Wait
12:34 malinoff In the source code, there is a check for sources argument
12:34 malinoff Can you pastebin your state?
12:34 Psi-Jack Sure.
12:35 malinoff Ah
12:35 malinoff Right
12:35 malinoff 'The source argument is not supported'
12:35 Psi-Jack Heh
12:35 malinoff parameter*
12:35 quanta_ joined #salt
12:35 Psi-Jack http://paste.linux-help.org/view/8d950a97
12:36 quanta_ joined #salt
12:36 Psi-Jack I've done that as pkg.installed, and pkg.latest, latest fails with the comment line provided from salt calls.
12:36 quanta_ joined #salt
12:36 Psi-Jack I can only figure to do what I wanted to avoid.. Make a local in-house repo.
12:37 malinoff Psi-Jack, you can uninstall this package before installing a new one
12:37 malinoff Btw, your templating is bad
12:37 Psi-Jack I.. Could.
12:37 portland is this good idea to use yum update -y in sls file?
12:38 portland when i want to prepare system
12:38 portland to do some things?
12:38 portland what is best practice?
12:38 portland should I create prepare.sls file
12:38 portland and put all command there for preparing server?
12:38 portland or there is other way to do it better?
12:39 Psi-Jack Best practice is to not hit enter after every few words, to form complete and thorough thoughts before actually hitting the enter key.
12:39 portland Psi-Jack: ok, i'll remember that ;-)
12:39 Psi-Jack Please do.
12:40 malinoff Psi-Jack, if a minion will run not on CentOSx64, there will be syntax error because of colon after pkg.installed
12:41 Psi-Jack Ahh yeah.
12:41 Psi-Jack I had it originally as pkg: -installed
12:41 Psi-Jack pkg:\n  -installed that is. ;)
12:41 malinoff portland, prepare.sls is fine :)
12:44 Iwirada are sls files rendered on the master or the minions?
12:45 malinoff Iwirada, on minions
12:45 Iwirada malinoff: thx :)
12:45 malinoff Iwirada, that's why salt is fast as hell :)
12:46 Iwirada i see. i just have to give out ip addresses based on the hostnames. i was just wondering how i would do that
12:46 Iwirada i guess the minion knows his hostname ^^
12:47 malinoff Iwirada, I have no idea why do you think about minions ip adresses :) What's the problem do you have?
12:48 rjc joined #salt
12:48 Iwirada malinoff: i have to create a template configuration for a openfoam cluster. every cluster might have a different number of nodes
12:49 Iwirada the plan is to have the sls files in a git repository and check it out on every master which also then will be the salt-master and the nodes are the salt-minions
12:50 Iwirada we don't even know whether we will use ec2, or another provider so it has to be as general as possible
12:50 Iwirada i then also have to configure passwordless ssh and a hostfile for the master so he can reach all the nodes...
12:50 Iwirada s/hostfile/hosts-file/
12:51 malinoff Iwirada, So you stuck with salt-ssh ?
12:52 Iwirada hm, i thought of it, but somehow threw idea away - no idea why
12:52 Iwirada maybe i could automatically create a rosters file.
12:52 Iwirada now i know again
12:52 malinoff Iwirada, well, without salt-ssh you don't have to think about ssh to communicate with minions
12:53 malinoff The only thing master must know is minion's id
12:53 Iwirada the problem was ubuntu server
12:53 malinoff That's all
12:54 Iwirada and the sudo setup i would have to perform to make it work without password - since i would have to touch /etc/sudoers it is as easy as to install salt-minion ;)
12:54 Iwirada something in that direction
12:55 Iwirada somehow it didnt use the passwd value of the rosters file for sudo so i got the exception that i have to setup sudo to use NOPASSWD
12:55 Iwirada afaik
12:56 malinoff Iwirada, salt-minion is running as root by default
12:56 Iwirada not if i use salt-ssh
12:56 Iwirada it then uses sudo (ubuntu works that way)
12:57 malinoff You blow my mind :)
12:57 Iwirada i was just revisiting the arguments i had against salt-ssh
12:57 Iwirada malinoff: sry :/
12:57 Iwirada malinoff: i am pretty new to salt and not a native english speaker
12:58 portland any idea why require pkg doesn't work? http://pastebin.com/XWQfGG9R
13:00 Iwirada i guess vim-enhanced:\n  -pkg.installed (something like taht is missing)
13:00 harobed_ joined #salt
13:00 Iwirada ?
13:02 Iwirada http://pastebin.com/skqUrydq
13:03 Iwirada portland: line 3-5. (but take it with caution, i am new and i havent tested it, yet)
13:04 portland Iwirada: it looks very strange ;-)
13:05 higgs001 joined #salt
13:05 portland Iwirada: ah sorry my bad
13:05 Iwirada http://docs.saltstack.com/topics/tutorials/starting_states.html - first example
13:05 Iwirada i just took it from there :/
13:07 portland yeah but check http://pastebin.com/KL1bsh0m
13:08 portland is this good way? because now its checking that vim-enhanced is installed in two places
13:08 Iwirada portland: how i understand it: the require thingy searches for such a state-thingy (the stuff with no intentions)
13:09 Iwirada portland: so it searches for a unintended vim-enhanced and in there for a 'pkg' definition
13:10 Iwirada maybe you leave out line50-52 and put in a require '-pkg: commonpkgs' ?
13:10 portland Iwirada: I thought that it's checking all installed packages on server and searching for this package
13:11 Iwirada portland: to be honest: i was searching for the docs for this require thing, today and havent found it, yet
13:12 Psi-Jack Hmmm
13:12 portland Iwirada: it's working, but for my point of view it's strange ;-)
13:12 blee joined #salt
13:12 Psi-Jack I wonder if that was the cause. My version build number went from 1-el6 to 1.2-el6, and pkg.latest didn't upgrade that either.. I wonder if that's the reason pkg.installed wasn't either.
13:12 Iwirada portland: hehe, so i learned something about the require thing today, too ;)
13:13 Psi-Jack pkg.latest worked when I set the build version to 2-el6 to upgrade it properly. heh
13:16 bhosmer joined #salt
13:25 jpcw joined #salt
13:26 vejdmn joined #salt
13:28 sroegner joined #salt
13:30 fllr joined #salt
13:31 [diecast] joined #salt
13:35 sgviking joined #salt
13:37 bhosmer joined #salt
13:40 ipmb joined #salt
13:48 jslatts joined #salt
13:50 portland question about installing something from sources on minion, is this correct way? probably i need to watch something, because now everytime I execute sls it's installing this program http://pastebin.com/7QSVLacJ
13:51 Destro joined #salt
13:55 jasg75 joined #salt
13:55 mpanetta joined #salt
13:57 Katafalk_ joined #salt
14:00 Gifflen joined #salt
14:01 jcsp joined #salt
14:01 quanta_ joined #salt
14:02 JasonSwindle joined #salt
14:07 juicer2 joined #salt
14:07 th3reverend joined #salt
14:08 th3reverend left #salt
14:13 zandy joined #salt
14:20 racooper joined #salt
14:26 pengunix_ joined #salt
14:27 quanta_ joined #salt
14:30 fllr joined #salt
14:31 brianhicks joined #salt
14:32 donatello joined #salt
14:33 vejdmn joined #salt
14:37 donatello is it possible to run publish.runner in a state file?
14:37 donatello i want to use its return string to conditionally execute a state with jinja
14:41 fridder joined #salt
14:42 nebuchadnezzar joined #salt
14:42 nebuchadnezzar hello
14:46 ckao joined #salt
14:49 toastedpenguin joined #salt
14:49 pdayton joined #salt
14:51 pdayton joined #salt
14:52 jergerber joined #salt
14:58 TheRealBill_ joined #salt
15:00 sroegner joined #salt
15:01 fllr joined #salt
15:03 mgw joined #salt
15:04 quanta_ joined #salt
15:07 isomorphic joined #salt
15:08 tyler-baker joined #salt
15:14 MZAWeb joined #salt
15:15 MrTango joined #salt
15:17 bhosmer joined #salt
15:19 quanta_ joined #salt
15:20 jimallman joined #salt
15:20 nmistry joined #salt
15:20 quickdry21 joined #salt
15:22 kaptk2 joined #salt
15:26 thelorax123 joined #salt
15:33 Brew joined #salt
15:33 alunduil joined #salt
15:33 AdamSewell joined #salt
15:36 tomspur joined #salt
15:38 m4yfield joined #salt
15:39 amahon joined #salt
15:41 portland any ideas for optimizing this user/ssh_auth sls http://pastebin.com/V6rLf03t
15:42 bhosmer joined #salt
15:42 JasonG_TA joined #salt
15:44 sandGorgon joined #salt
15:47 fllr joined #salt
15:50 kermit joined #salt
15:54 Iwirada left #salt
15:57 vkurup joined #salt
16:00 rojem joined #salt
16:00 fridder joined #salt
16:03 cachedout joined #salt
16:04 nocturn joined #salt
16:05 bt joined #salt
16:14 terminalmage joined #salt
16:15 forresta joined #salt
16:16 davidfischer joined #salt
16:18 GradysGhost joined #salt
16:19 seanz joined #salt
16:22 vejdmn joined #salt
16:23 gmoro joined #salt
16:24 jalbretsen joined #salt
16:24 GradysGhost Hey everyone, I'm seeing a weird issue with pillars, and I was hoping I could find some help debugging.
16:25 GradysGhost Basically, I deliver some info about IPs, etc via a pillar to every system I'm working with.
16:25 GradysGhost This is in /srv/salt/pillar/nodes.sls
16:25 GradysGhost In that pillar's top file, this, along with a couple others, is delivered to target '*'
16:25 GradysGhost However, running
16:25 GradysGhost salt 'salt*' pillar.items
16:25 GradysGhost (to target the minion on my salt master)
16:26 GradysGhost Doesn't show any of the nodes variables.
16:26 bt joined #salt
16:26 GradysGhost But it does show users (another .sls in the same pillar stanza)
16:26 GradysGhost So some of the data is being delivered, but not all?
16:26 GradysGhost Ultimately, this results in jinja failures.
16:26 GradysGhost With debug logging on, there are no errors at all.
16:26 GradysGhost Perfectly standard stuff.
16:28 GradysGhost Any ideas?
16:28 sroegner vssh
16:28 sroegner sry
16:36 bhosmer_ joined #salt
16:37 erchn joined #salt
16:37 forresta GradysGhost, can we take a look at your pillar?
16:38 GradysGhost Sure. Lemme hastebin it real quick.
16:38 forresta or at least, the directory structure with the working pillar and such
16:38 bhosmer__ joined #salt
16:39 GradysGhost Gimme some time here. I'll try to compile everything relevant, but it's going to take some censorship of sensitive data.
16:41 roddergreg joined #salt
16:41 forresta GradysGhost, sounds good, let's hope it is something simple :P
16:43 roddergreg Hello everyone. I'm using salt 0.17.2 master and syndic. When I try to display grains.items on host on the syndic master i just get an empty return. Is anyone else experiencing the same issues? I can run test.ping on the minions on the syndic master but nothing else works, The logs on the syndic master show the command being ran but the masterofmaster shows nothing.
16:43 bemehow joined #salt
16:44 bt joined #salt
16:45 jdenning joined #salt
16:46 Psi-Jack Hmmm
16:47 Psi-Jack For CentOS 5.x systems that don't have zeromq 3, could salt-ssh be used instead of salt-minion to handle salt states without the zeromq2 issues?
16:48 erchn good day all, does anyone know if multi-master actually works in salt, for 16.0 it was considered experimental, anyone have it in production?
16:48 erchn psi-jack: possibly, but it's not terribly difficult to build zeromq3 packages for centos 5
16:49 forresta roddergreg, sounds like this issue: https://github.com/saltstack/salt/issues/8701
16:49 forresta roddergreg, or at least related.
16:51 forresta here we go roddergreg, https://github.com/saltstack/salt/issues/6207
16:51 forresta I'm pretty sure all of those issues are related to the same 'problem'
16:51 forresta where the communication tree isn't reporting up/down properly
16:52 forresta UtahDave's issue is on the most recent release however, while that second issue is on the old release.
16:52 forresta so it might be worth adding a note.
16:52 lemao joined #salt
16:53 forresta Psi-Jack, a few people have been packaging zeromq3 for centos 5, so it might be worth seeing if one of those is available, but you could at least try using salt-ssh, just keep in mind the limitations: http://docs.saltstack.com/topics/ssh/
16:53 forresta especially regarding targeting.
16:53 Psi-Jack errr: Eh? I've actually tried.
16:54 Psi-Jack erchn... Blah. Wow, already left.
16:54 crazysim joined #salt
16:54 forresta yea that's why I didn't start researching the question he was asking about
16:54 roddergreg @forresta Yes thanks! I'll read up on this a maybe try the development branch
16:54 Psi-Jack I tried using the official zeromq stuff from zeromq's site, but theirs conflicts.
16:54 forresta left #salt
16:55 Linuturk joined #salt
16:55 austin987 joined #salt
16:55 pipps_ joined #salt
16:55 dnsn joined #salt
16:55 forresta joined #salt
16:55 forresta Friggin control W, could you please repaste what you just said?
16:55 druonysus joined #salt
16:55 MZAWeb joined #salt
16:55 Psi-Jack I tried using the official zeromq stuff from zeromq's site, but theirs conflicts.
16:56 forresta not you Psi-Jack, the syndic stuff
16:56 forresta I don'
16:56 Psi-Jack Oh heh
16:56 forresta *t have logging turned on at work
16:56 forresta so there's no scrollback
16:57 robinsmidsrod joined #salt
16:57 roddergreg @forresta Yes thanks! I'll read up on this a maybe try the development branch
16:57 forresta roddergreg, ok cool.
16:58 forresta I asked UtahDave about that issue earlier this week, and he hasn't had a chance to do that further testing, so if you have good results, could you comment in that issue?
16:58 roddergreg sure will np
16:58 forresta thanks
16:58 portland its a bug or a feature? im adding new user with only digits fullname and it doesnt work http://pastebin.com/q7hNeB4n
16:59 forresta can you paste your state portland?
16:59 Psi-Jack Yeah, so far, there's no zeromq3 stuff for CentOS 5.x that actually works reliably that I can see. And yes, searched..
16:59 forresta pastebin it that is.
16:59 forresta Psi-Jack, someone in the IRC had a working version
16:59 forresta but I think they built it themselves, had to do some weird linking I believe to get it working and not conflicting with a ton of stuff
16:59 portland forresta: it's in pastebin
16:59 portland :-)
17:00 forresta oh duh, the joys of trying to multitask
17:00 foxx joined #salt
17:01 forresta portland, were these different tests? Or are all of those in a single state?
17:01 mohae joined #salt
17:01 portland forresta: i can create new user with number in full name but after second run i get error
17:02 portland forresta: every change in sls im doing test, so those are in different runs
17:02 forresta so when it works on the first run, does that only happen when you wrap the fullname digit value in " "
17:05 portland forresta: recheck paste pin i have pasted output after first run
17:06 forresta portland, hmm, ok have you double checked that on the second run it doesn't fail when you have a 'legit' fullnam value?
17:06 forresta *fullname
17:07 portland summary, creating user with digit working fine, but changing it to digit from legit username is not working, and even when username is not changed from 31337 digit sls is trying to change it (without touching sls)
17:08 portland s/username/fullname
17:09 portland forresta: http://pastebin.com/ihXP1yQ5
17:10 portland forresta: in this test i didn't touch sls
17:10 Doormatt portland: try putting the number in quotes?
17:10 forresta can you try single quotes portland
17:10 portland Doormatt: it will work :-)
17:10 portland i know it
17:11 Doormatt So then the problem is...
17:12 portland that if you use int instead string it will not work ;-)
17:12 portland is this bug?
17:12 robinsmidsrod joined #salt
17:12 forresta portland, I haven't tried it, but I would imagine no, since it's expecting a string for that value, however to be sure I'd suggest making a post on the mailing list. Someone might have more details
17:13 portland ok cool :)
17:13 forresta I don't have time right now to dive into that code to see if it does a str(value) or not :|
17:18 bhosmer joined #salt
17:18 Doormatt portland: forgive me if I'm being dense, but why would you want a number and not a string?
17:18 GradysGhost ok, I found my problem!
17:18 GradysGhost I accidentally misnamed a hostname, which resulted in the minion generating a bad nodename
17:19 GradysGhost My pillar was built to conditionally deliver data based on hostname
17:19 forresta GradysGhost, awesome
17:19 GradysGhost Typo'd hostname, ergo data doesn't get there.
17:19 GradysGhost *however*
17:19 GradysGhost What's the best way to fix this?
17:19 jcockhren forresta doesn't sleep ya'll
17:19 forresta jcockhren ?
17:20 forresta I got a solid 7.5 hours last night
17:20 jcockhren You're always actively helping
17:20 forresta GradysGhost, so you're basing information in the pillar off hostname?
17:21 KyleG joined #salt
17:21 KyleG joined #salt
17:21 forresta jcockhren, I try to when I'm not too busy at work, it's quiet this morning, and I'm putting off smashing my head against foreman-proxy again :P
17:21 GradysGhost forresta: Yes, should I hide my head in shame?
17:21 jdenning joined #salt
17:21 GradysGhost Basically, I look for a portion of the hostname that indicated environment (staging vs. prod)
17:22 forresta GradysGhost, I don't think you have to, I just haven't seen many people doing that.
17:22 GradysGhost And delivers IP and hostname info for the machines in that env.
17:22 forresta ahh I see.
17:22 GradysGhost The idea is to maintain one salt configuration that I can apply to multiple environments hosting the same services.
17:22 forresta so you don't have that data being determined in your states based on grains?
17:22 Doormatt Grady: wouldn't that be easier done with hostname matching in your top file?
17:23 forresta Doormatt, yea I was gonna bring that up as well
17:24 GradysGhost What would grains provide me with? Grains don't expose (to my knowledge) information about systems other than the one with the state being applied to it.
17:24 GradysGhost I can get a nodename out of grains, but even then, I'd be running a conditional.
17:24 forresta so in your pillar, do you perform a lookup?
17:24 GradysGhost And I can apply custom grains, but only if I stick them in a config file that I'd need to manage.
17:24 forresta or how is that working
17:24 GradysGhost Yeah, lemme grab the relevant snippet.
17:25 forresta ok
17:25 GradysGhost if grains['nodename'].split('.')[1] == 'staging'
17:26 GradysGhost in a hostname like
17:26 portland Doormatt: IMO, we know that it is fullname (so it should be a string) and it doesn't matter if i put here string int or whatever :-)
17:26 GradysGhost servertype.env.dc.tld
17:26 GradysGhost if that makes any sense
17:26 nicker joined #salt
17:27 Doormatt portland: Well, it does matter if salt expects a string, and you give it an int.
17:27 forresta Doormatt, in reality though the code should be converting the value to a string
17:27 Doormatt Grady: Yeah, this still seems like it's a job for a top file with hostname matching.
17:27 Doormatt forresta: Really?  Fair enough then!
17:27 forresta I believe the operating system requires it to be a string regardless doesn't it Doormatt?
17:28 forresta My knowledge of the internal workings of users and the full name stuff isn't awesome
17:28 Doormatt forresta: That's what I thought.  I'm the same as you - I don't know as much as I should.
17:28 GradysGhost You think I should have separate pillars like nodes.staging.sls and nodes.prod.sls and then target in top with something like '*.staging.*' and '*.prod.*'?
17:28 forresta it's not really an every day issue 'oh is full name a string in some instances, or should it support ints as well!'
17:28 GradysGhost just making sure I understand what you're saying
17:28 forresta I just figure that salt will probably say 'yea ok full name should be a string'
17:28 Doormatt Not seperate pillars, just use hostname targeting for your sls files.
17:29 Doormatt '*.staging.*.*' -> staging sls etc.
17:29 forresta yea I agree, if you can targeting via the top would help reduce complexity and the chance of errors within your pillar
17:29 forresta you could use multiple pillars if you wanted to in addition to that I guess.
17:31 portland Doormatt: i found it in source of user.py "The below values should be specified as strings to avoid ambiguities.."
17:31 GradysGhost As they say on nearly every episode on Battlestart Galactica, "I'll take that under advisement."
17:32 forresta GradysGhost, yea you can do it whatever way you want
17:32 GradysGhost Meaning I'll run it by the others on my team and see if your opinion holds weight with them.
17:32 GradysGhost I mean, you guys are the experts, so I take your advice pretty seriously.
17:32 forresta GradysGhost, I'd try to pitch it from keeping pillar as simple as possible
17:32 Doormatt Expert?  HA!
17:32 forresta lol yea, not an expert
17:32 Doormatt I started using Salt about 2 weeks ago.
17:32 GradysGhost hah
17:32 Doormatt Take everything I say with a grain of...wait for it...salt.
17:33 forresta when UtahDave or one of the other Salt guys weigh in, then we can have an 'expert'
17:33 forresta and by that I mean, master of the saltiness
17:33 Doormatt Wouldn't that be the portertech?  ;)
17:33 forresta hah
17:33 Doormatt Oops - wrong product.
17:33 forresta I was gonna say :P
17:33 Doormatt I'm mixing up projects and people now.  Is too bloody early.
17:34 forresta Australia Doormatt?
17:35 forresta portland, nice find. Maybe it's an intended result so people properly use quotes for values, and it was easier to do it that way?
17:35 noob21 joined #salt
17:35 forresta so my statement of 'the code should check it' is utterly wrong then :P
17:35 noob21 can i do a hg over ssh pull/clone with salt?
17:35 Doormatt Nope - Vancouver Canada
17:36 Doormatt Was just up till 2am babysitting issues with our AWS instances.
17:36 portland forresta: probably it is working in that way :) but imo code should check it ;-)
17:37 portland forresta: because fullname can be any any anything ;-)
17:37 portland even int :)
17:37 portland ok guys im off cheers :)
17:37 portland thanks for helping
17:38 forresta portland, yep have a good one, I'll watch the mailing list
17:38 forresta portland, or are you not going to create a thread
17:39 bemehow_ joined #salt
17:39 dvogt joined #salt
17:39 robinsmidsrod joined #salt
17:40 portland you wanna watch flamewar? ;-) not this time! :)
17:40 forresta lol ok
17:40 rojem joined #salt
17:40 forresta terminalmage, are you around this morning?
17:44 robinsmidsrod joined #salt
17:44 fllr joined #salt
17:45 seanz left #salt
17:47 hotbox joined #salt
17:47 JordanRinke joined #salt
17:52 xmltok joined #salt
17:53 hotbox joined #salt
17:55 bitz joined #salt
17:55 ticosax Hi, I'm looking for information regarding startup_states
17:55 ticosax I'm unable to make it work.
17:56 ticosax So I made some assumptions
17:56 mesmer joined #salt
17:56 ticosax I'm using `startup_states: sls`
17:56 ticosax with `sls_list:\n  -python-module`
17:57 ticosax Where is supposed to be the `python-module.sls` file ?
17:57 ticosax I tried in /srv/salt, in /etc/salt, ...
17:58 troyready joined #salt
17:58 ticosax So does someone has any hint to give me :)
17:58 GradysGhost ticosax: If you haven't changed any defaults, /srv/salt is where the salt master will look for a top file. You can verify this in /etc/salt/master
17:58 GradysGhost Also, please have a bit of patience with us. We all have jobs to do.
17:58 ticosax ok first, I shoul dput this on minion side or master side ?
17:58 robinsmidsrod joined #salt
17:58 GradysGhost So the answer to your question is that we need more info.
17:58 GradysGhost Have you read the intro docs?
17:59 GradysGhost Specifically, http://docs.saltstack.com/topics/tutorials/walkthrough.html
17:59 ticosax Yes, several times
17:59 GradysGhost ok
17:59 GradysGhost So the states will get stored with the master
17:59 hotbox joined #salt
17:59 ticosax ok. thx. I'll focus on master
18:00 ticosax come later if needed
18:00 GradysGhost The master's config will tell you more about where your states will be held.
18:00 noob21 left #salt
18:00 GradysGhost And module names in states are based on directory hierarchy.
18:00 GradysGhost So start there. If you hit a specific snag, we can try to help.
18:02 viq Huh, is docs.saltstack.com down?
18:03 GradysGhost nope
18:03 viq hm
18:04 hotbox joined #salt
18:04 robins joined #salt
18:06 ticosax left #salt
18:12 bhosmer_ joined #salt
18:13 cortrigl joined #salt
18:14 aleszoulek joined #salt
18:15 zandy joined #salt
18:15 akitada_ joined #salt
18:17 xerxas_ joined #salt
18:18 robinsmidsrod joined #salt
18:21 _ikke_ http://isup.me
18:23 smccarthy joined #salt
18:25 tallpaul joined #salt
18:25 akoumjian Does salt-cloud support spinning up reserved ec2 instances? If so, is there anything special required?
18:33 ajw0100 joined #salt
18:34 Damoun joined #salt
18:36 sgviking joined #salt
18:37 terminalmage forresta: I was out, but am back now
18:38 forresta it's all good now, I created an issue instead
18:39 terminalmage forresta: link?
18:39 forresta https://github.com/saltstack/salt/issues/9085
18:40 bhosmer joined #salt
18:42 pentabular joined #salt
18:42 pentabular left #salt
18:43 mgw joined #salt
18:43 akoumjian I'm guessing it just uses the reserved instance pricing automatically?
18:44 pipps_ joined #salt
18:45 amckinley joined #salt
18:47 bhosmer joined #salt
18:50 bhosmer joined #salt
19:00 KyleG joined #salt
19:00 KyleG joined #salt
19:04 bemehow joined #salt
19:07 snave joined #salt
19:07 logix812 joined #salt
19:15 fllr joined #salt
19:15 terminalmage forresta: I'll take a look, I originally wrote the GECOS field support
19:15 thelorax123 joined #salt
19:15 terminalmage so I'm familiar with the code
19:16 forresta terminalmage, ok sounds good. I can't think of a reason why it wouldn't convert to a string, but if there is let me know
19:16 zandy joined #salt
19:19 terminalmage yeah should be an easy fix
19:19 terminalmage did that bite you?
19:24 smccarthy joined #salt
19:28 Gifflen joined #salt
19:32 kermit joined #salt
19:35 roddergreg @forresta i upgraded the master and the syndic master to the development version and now the minions on the syndic master return grain information on the masterofmasters.
19:36 roddergreg one issue though. The results are slow to return which almost renders the halite interface useless.
19:38 nkuttler joined #salt
19:39 JulianGindi joined #salt
19:41 Brew joined #salt
19:48 jrdx joined #salt
19:50 jcsp left #salt
19:51 pipps joined #salt
19:57 bemehow joined #salt
20:00 fllr joined #salt
20:04 Dinde joined #salt
20:06 lemoi joined #salt
20:06 lemoi http://dpaste.com/1491895/ <= has anyone seen this before?
20:09 _ikke_ lemoi: I've seen someone report that before once here
20:10 _ikke_ at least, the pop from empty list message
20:10 lemoi yes yes
20:10 lemoi https://groups.google.com/forum/#!topic/salt-users/CatT51MYwZ8
20:12 JasonSwindle joined #salt
20:13 bhosmer joined #salt
20:14 eculver joined #salt
20:14 prooty joined #salt
20:16 prooty hello. whenever i try to start the salt minion it errors out with "TypeError: can't serialize <salt.loaded.ext.grain.roles.ServerApp instance at 0x2d683f8>"
20:16 austin987 joined #salt
20:17 prooty i was testing writing custom grains. i figured there was an error in the one i was writing so i removed it from the _grains directory.
20:17 lemoi _ikke_btw, 0.16.4 works fine
20:17 lemoi 0.17.2 doesn't
20:17 lemoi latest git doesn't either
20:17 prooty but even if i removed it the salt minion is still not running.
20:18 lemoi this is gentoo-stable, everything is up to date, no weirdness
20:20 bemehow joined #salt
20:20 pengunix joined #salt
20:25 dvogt joined #salt
20:25 JasonSwindle1 joined #salt
20:30 pengunix joined #salt
20:33 lemoi _ikke_found the issue; upon invocation, salt chews /etc/hosts - it chokes whenever it finds comments starting with #
20:33 lemoi this is such a joke that I feel like ditching salt altogether
20:33 robertkeizer joined #salt
20:33 robertkeizer1 joined #salt
20:34 robertkeizer joined #salt
20:34 robertkeizer joined #salt
20:37 erchn joined #salt
20:39 forresta terminalmage, sorry I was at lunch, no it bit some other guy who was in here earlier.
20:39 terminalmage ah
20:39 forresta roddergreg, I haven't messed with syndic enough to know what sort of timeframe is expected for return results.
20:39 terminalmage so what, the fullname was 12345?
20:40 terminalmage weird name, parents must have been hippies :)
20:40 forresta what he had was a full name of terminal mage, and then he'd change it on the second run to be 12345
20:40 forresta and it would bomb and fail on him
20:40 forresta but worked fine if he passed it as a string
20:40 terminalmage ah
20:41 forresta yu
20:41 forresta *p
20:41 forresta terminalmage, were there any additional checks that needed to be added there, or things that would break? Or is it really as simple as adding that line
20:42 terminalmage forresta: at first glance, yes
20:42 forresta gotcha
20:43 terminalmage if you'd like to submit that as a pull req, go for it
20:43 prooty solved my problem by deleting the files in the minion cachedir.
20:43 forresta terminalmage, It doesn't really matter to me, I won't be able to get to it till I get home.
20:44 forresta there aren't any unit tests for that state it looks like
20:44 forresta but there are some integration tests
20:44 terminalmage there are tests for users
20:44 terminalmage but we should add one for edge cases like this
20:45 forresta terminalmage, yea I don't know if I'll have time to get to that this weekend.
20:46 terminalmage ok
20:48 rgbkrk joined #salt
20:48 roddergreg left #salt
20:49 rgbkrk Anybody know of a way to add fetch to git.latest
20:49 rgbkrk Hoping to add fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
20:49 rgbkrk So I can have it kick pull requests from GitHub
20:49 rgbkrk https://help.github.com/articles/checking-out-pull-requests-locally
20:49 rgbkrk Technically I could have it pull from the originating repo
20:49 rgbkrk But I'm curious about shorthand
20:51 forresta rgbkrk, I don't think I've ever seen anyone do that
20:51 forresta if you get it working can you let me know how? It would be cool to add an example like that to the docs.
20:52 rgbkrk I can do it with direct substitution of course, but that's hacky
20:52 forresta yea
20:52 forresta I wanna see it done in a state :P
20:52 rgbkrk Seems like something I'd want to kick upstream to the git module
20:52 rgbkrk cmd.run "tomfoolery here"
20:52 forresta yea that could work
20:54 forresta rgbkrk, I wonder if there's a way to pass those details straight onto the command line, as if you were doing a git fetch
20:54 forresta so you could incorporate it into your git URL
20:56 pipps_ joined #salt
20:57 qconner joined #salt
21:01 rgbkrk oh hrrmmm
21:03 Nazzy joined #salt
21:09 qconner left #salt
21:11 darrend joined #salt
21:12 qconner joined #salt
21:15 bemehow joined #salt
21:17 mgw anybody using couchbase? thoughts on a couchbase admin module?
21:18 zandy joined #salt
21:18 forresta never heard of it mgw
21:19 rgbkrk Is there a decent way to interact with pillar from python, directly?
21:19 mgw rgbkrk: in what sense?
21:20 mgw rgbkrk: you can import salt.pillar
21:20 mgw and then use get_pillar etc
21:20 forresta rgbkrk, you could look at using the pydsl, it has __pillar__
21:20 forresta http://docs.saltstack.com/ref/renderers/all/salt.renderers.pydsl.html
21:20 mgw it depends on what you want to do
21:20 rgbkrk I'm trying to figure out what I'm doing poorly with pillar
21:20 rgbkrk I've clearly defined a list when I meant a dict I guess
21:21 mgw maybe an issue with your yaml?
21:21 mgw If you're using yaml
21:21 mgw you can import individual yaml .sls files into python and parse with the yaml module
21:22 mgw (import is probably a bad choice of word… import the yaml module and load the .sls file)
21:22 rgbkrk ok, I'll try that out
21:24 mgw rgbkrk: what does your yaml look like? maybe we can spot it
21:24 JasonSwindle joined #salt
21:25 rgbkrk Oh heh, it barfs on my jinja of course
21:25 rgbkrk I'll have to delete that
21:25 rgbkrk As in pyyaml does
21:25 quickdry21 joined #salt
21:26 JasonSwindle joined #salt
21:27 prooty is there a way to get the result of the templated sls file?
21:35 mesmer joined #salt
21:35 indymike joined #salt
21:36 nicker joined #salt
21:36 snave joined #salt
21:40 bhosmer joined #salt
21:41 kaoticfx joined #salt
21:44 kaoticfx good afternoon everyone
21:45 jkyle joined #salt
21:45 terminalmage forresta: So that issue you reported earlier, it makes the change to the user, but the comparison that is made after (to ensure the state was properly enforced) fails because '12345' != 12345
21:46 terminalmage so coercing the value into a string should work
21:46 terminalmage forresta: I'm making the change and writing a test case now
21:48 thelorax123 joined #salt
21:49 forresta terminalmage, that makes sense as to why it would fail then, cool
21:50 forresta terminalmage, can you let me know when you finish I'd like to look at what the test case looks like.
21:50 terminalmage yeah, thanks for reporting
21:50 forresta sure, I like seeing issues go away
21:50 terminalmage sure no prob, should be done soon
21:51 forresta ok
21:51 JordanRinke joined #salt
21:51 kiorky B 3
21:51 forresta kiorky, are you playing battleship>
21:52 pengunix joined #salt
21:52 JordanRinke whoa, one of my machines just caught fire.
21:52 forresta JordanRinke, did you try turning it off and back on?
21:52 JasonSwindle JordanRinke:  Whoa
21:52 terminalmage JordanRinke: whoa... salt making it run too fast?
21:52 terminalmage ;)
21:52 forresta lol
21:53 JasonSwindle BitCoin mining? lol
21:53 terminalmage lol
21:53 JordanRinke Hah, I actually am mining with that machine
21:53 terminalmage we need a bitcoin mining state
21:53 terminalmage JordanRinke: how are things in BC?
21:53 forresta straight money
21:53 JordanRinke and interestingly the surge protector never popped as it went up in flames, had to rip the cables out of the wall socket
21:53 forresta JordanRinke is gonna buy us all dinner at a 5 star restaurant
21:54 rgbkrk I'll get ready.
21:54 JordanRinke BC is good, cold but good, playing with a ton of interesting tech right now
21:54 rgbkrk Pick us up at 7?
21:54 JordanRinke trying to get our internal DNS servers up so I can start moving all of our systems to salt right now actually
21:54 terminalmage JordanRinke: nice. always wanted to visit there, I've heard it's beautiful... despite all the Canucks fans hehehehehe
21:55 kiorky forresta: coulé
21:56 kiorky haha http://osrc.dfm.io/kiorky#schedule
21:56 JordanRinke my biggest fear as that machine caught fire was that it would short my asic miner out hah
21:56 kaoticfx joined #salt
21:56 JordanRinke well that and the whole, open flame bit.
21:59 JasonSwindle JordanRinke:  Let me know next time you are in SATX. :)
22:00 JordanRinke Will do, it will be a while though, I doubt I will travel back to the states much in the next year
22:01 JordanRinke except probably DEFCON and Burning Man
22:02 kaoticfx Good afternoon everyone.  I am hoping to get some insight from the community.  I've been tasked to do configuration managemnet in a mixed environment.   Everyone keeps throwing Chef and Puppet around but wanted to see what SaltStack is really about
22:03 kaoticfx any advise would be appreciatred
22:03 bhosmer joined #salt
22:03 forresta kaoticfx, what sort of mixed environment?
22:03 kaoticfx linux centOS 6.4, Windows 2008/2012
22:04 frosty996 kaoticfx: of course you're likely to find that those of us in this channel think saltstack is awesome. ;-P
22:04 JordanRinke cd /var/log
22:04 kaoticfx mysql, mssql, postgres and mongo
22:04 JordanRinke bah
22:04 forresta yea we can try to be fair
22:04 JasonSwindle kaoticfx:  All sounds do-able
22:04 forresta kaoticfx, as far as I'm aware the windows installer hasn't been tested on 2012
22:04 amckinley joined #salt
22:04 forresta or at least it's not documented if so: http://docs.saltstack.com/topics/installation/windows.html
22:05 forresta so let's talk about the pros of salt versus other config management, and the negatives
22:05 jcockhren kaoticfx: heterogenious environments are what I'm all about
22:05 kaoticfx meh.  every channel thinks their stuff is the greatest.  I have a crew of guys that dont do much dev and i have to find something they will be able to assimilate as quickly as possible
22:05 forresta sure
22:05 JasonSwindle kaoticfx:  I did my deploy without any Python skill at all.
22:05 jcockhren I got salt going in production in an hour
22:05 forresta so the pros, yaml is pretty easy to write, salt is quick to setup, it's written in python which is always nice, and it's very fast, with less stress on your master server.
22:05 jcockhren most of that was reading docs
22:05 JordanRinke kaoticfx: I think you will like the way salt works on windows specifically ( as a hardcore windows guy ) - all python/wmi and it has chocolatey as well
22:06 JasonSwindle YAML / JINA2 is what you will pick up learning Salt
22:06 jcockhren "learn" yaml
22:07 kaoticfx how does it work with SVN/GIT?
22:07 jcockhren I have my states and pillar backed by git repos
22:07 forresta it has full git support built in, no svn support.
22:08 altj joined #salt
22:08 forresta SVN support is something I put an issue in a while back, and it was acknowledged, but no timeframe
22:08 forresta the git support is badass though, I've got virtualenv environments that it builds out then just pulls stuff in from my github
22:10 kaoticfx salt cloud would be used to deploy to EC2?
22:10 forresta or a variety of other providers yep
22:11 kaoticfx so in regards to overcoming objections.  Why should i choose chef over salt?
22:12 forresta well, what are your reasons for choosing chef?
22:12 forresta I'm not a ruby dev, so clearly I'm biased against chef to begin with
22:13 forresta the biggest issues you're going to run into with salt is the fact it's still young, so sometimes there are issues on upgrades and such (something the devs are working to resolve), as well as a lack of integration with some tools that other config management systems have had their hands in for a while
22:13 forresta but even with those issues, I'll take salt over chef/puppet any day of the week.
22:14 frosty996 kaoticfx: I use salt on most new deploys, but I do have a hybrid salt/puppet setup at a few places
22:14 JasonSwindle kaoticfx:  Salt-Cloud can deploy to OpenStack / AWS / Google Compute / Digital Ocean
22:15 kaoticfx What about deploying to VMware?
22:15 JasonSwindle but I think it can only do the compute layer
22:15 JasonSwindle I am not sure...
22:15 JasonSwindle I know they are working on Private CLoud stuff
22:15 frosty996 JasonSwindle: don't forget Rackspace
22:16 JasonSwindle OpenStack = Rackspace :)
22:16 kaoticfx rackspace is a WHOLE other topic
22:16 frosty996 I know, but that might not be obvious to everyone. :-)
22:16 JasonSwindle True true, good point. :)
22:16 kaoticfx our dev's drank the AWS koolaid and even with failing ELB"s they want to stay there
22:16 forresta kaoticfx, I spoke with UtahDave about this at one point, and there is vmware support, but apparently it's only part of the enterprise edition due to stability or something.
22:17 JasonSwindle https://github.com/saltstack/salt/blob/develop/salt/modules/virt.py <— esxi support in it
22:17 JasonSwindle Not sure if that helps or not...
22:18 kaoticfx excellent
22:18 kaoticfx ty!
22:18 JasonSwindle Any time.   Salt is pretty amazing what it can all do.  And the next release looks to be great, too.
22:19 zandy joined #salt
22:19 forresta Kaoticfx, just ask your team to set up a chef server, then set up a salt server :P
22:19 kaoticfx I appreciate everyones time.  I've decided to do a P.O.C with the guys and see how quickly they can create an environment.  Thank you all!
22:19 jcockhren forresta++
22:19 jcockhren lol
22:20 nocturn joined #salt
22:20 forresta :P
22:20 zandy joined #salt
22:21 forresta jcockhren, really though, that will sell about 90% of people
22:21 JasonSwindle Who is all going to SaltConf?
22:21 pipps_ joined #salt
22:21 JordanRinke Wish I was, but I just can't make it
22:21 JordanRinke we are rolling product all Jan :/
22:22 JasonSwindle I "may" be there.
22:29 forresta JasonSwindle, I will be there.
22:29 JasonSwindle Awesome!  If I am there, I will try to find you.
22:29 joelwhitehouse I wish is wasn't in Utah.
22:30 forresta I'm doing a talk so you'll see me wandering around I'm sure, haven't decidd if I'm gonna stay to go snowboarding yet
22:30 joelwhitehouse *it
22:30 bemehow_ joined #salt
22:30 forresta joelwhitehouse, why?
22:31 joelwhitehouse Because the Twin Cities would be closer for me.
22:31 forresta lol
22:31 joelwhitehouse It's purely selfish.
22:31 JasonSwindle I am hoping the next one is in San Fran or Austin. <— Being Selfish
22:32 forresta lol
22:32 forresta my 'favorite' one this coming year is pycon in Toronto
22:33 forresta pisses me off they decided on that
22:33 joelwhitehouse Wait, wasn't pycon in Montreal this year?
22:33 forresta oh yea montreal
22:33 joelwhitehouse Or rather, won't it be?
22:33 forresta sorry
22:34 forresta still sucks
22:34 forresta gonna cost way too much to get up there
22:34 forresta and it will be cold as shit, the average HIGH there in april is 52
22:34 joelwhitehouse That's the other thing with SaltConf... I *would* go but it's probably not in the budget.
22:34 joelwhitehouse Same with PyCon.
22:34 forresta joelwhitehouse, yea we don't use salt at all where I work
22:36 eclectic joined #salt
22:37 forresta I like how you can tell how busy basepi is based on his response to an issue. Not super busy, comment and discussion, busy, just a comment, SUPER BUSY, a thumbs up icon :P
22:37 frosty996 I'm probably going to PyCon, but not SaltConf
22:37 frosty996 forresta: :-)
22:37 forresta frosty996, I plan on hitting up both, getting to Utah is pretty cheap from where I'm at thankfully
22:37 JasonSwindle I need to get my Python up to be able to go to PyCon…..
22:37 forresta JasonSwindle, no you don't
22:38 forresta my python is only ok
22:38 forresta and I had an awesome time this year
22:38 JasonSwindle True true
22:38 frosty996 JasonSwindle: naw, I was just staritng to learn python when I went to my first PyCon. Totally worth it
22:38 forresta lots of good talks, you get to meet all sorts of awesome people, it's great
22:38 JasonSwindle Good to know, I will try to go then.
22:38 basepi forresta: hehe, I also try to carry on more discussion with non-regular contributors.  Now I see a forresta issue and I don't feel the need to leave a long comment, especially if I agree.  =)
22:38 forresta probably wouldn't be at all interested in Salt if I hadn't gone since that's where I met the Salt team
22:38 frosty996 forresta: did you go to the salt BoF this year?
22:38 rgbkrk What's the right way to test to see if a pillar item exists in the jinja syntax?
22:38 JasonSwindle And never been to CA.
22:38 forresta basepi, yea I gotcha, just poking fun!
22:39 forresta frosty996, BoF?
22:39 basepi forresta: =D  though the way today is going, I want to do all my triage with just the thumbs up icon
22:39 frosty996 forresta: birds of a feather
22:39 basepi so ready for the weekend
22:39 forresta frosty996, uhh was that the evening meeting where they got in trouble for the pizza?
22:39 forresta basepi, I know man, I've been working with puppet the last few days, having a 'great' time
22:39 frosty996 forresta: maybe so! I had to leave early because we had a company dinner :-)
22:40 forresta if it was in that small second floor room at PyCon, then yes
22:40 forresta in the evening
22:41 ncjohnsto joined #salt
22:42 forresta terminalmage, nice fix there, I really need to dig into the salt testing stuff to get a better grip on how the assertSaltTrueReturn works and such.
22:43 forresta basepi, do you guys know if there was any discussion with the 'the foreman' team regarding salt integration past their roadmap meeting in May?
22:43 frosty996 forresta: yep, that's the one
22:43 forresta nice
22:44 forresta I looked at the pycon prices, and between that and the hotel and airfare to saltconf, it will come in just under the yearly allownace I allocate myself for conferences, I need to remember to register tonight...
22:44 terminalmage forresta: sorry I didn't mention it, when I got that fixed I needed to track down some Travis failures
22:44 basepi forresta: eh?  "the foreman"?  roadmap meeting?  either I'm just extra slow today (probable) or I have no idea what you're talking about.
22:44 forresta terminalmage, no worries, I was watching it.
22:45 forresta basepi, http://theforeman.org/
22:45 terminalmage forresta: assertSaltTrueReturn will check the state's return data
22:45 forresta terminalmage, but what are you comparing it against?
22:45 forresta just that the state runs with that data?
22:45 forresta and that returns a legit value and you're good to go?
22:45 terminalmage forresta: assertSaltTrueReturn checks the "result" field
22:46 terminalmage if that != True, the assertion fails
22:46 forresta terminalmage, gotcha
22:46 basepi forresta: I haven't heard anything about that, sorry.  I'll ask around.
22:46 dvogt joined #salt
22:46 forresta basepi, it's not a big deal, I was just curious, it's becoming part of the RHEL satellite 6 beta, and right now it only supports puppet, which is what redhat seems to be aiming to integrate.
22:49 bemehow joined #salt
22:49 JasonSwindle basepi:  I would also love SaltStack to do Docker.
22:50 che-arne joined #salt
22:50 basepi JasonSwindle: pretty sure there's already a docker module in `develop`
22:50 basepi i have no idea what its capabilities are
22:50 JordanRinke joined #salt
22:50 basepi just saw it go by in the pull reqs
22:50 forresta JasonSwindle, here's the associated issue: v
22:50 forresta https://github.com/saltstack/salt/issues/7519
22:50 basepi forresta: talked to dave, apparently they approached us awhile ago and wanted us to integrate with them, but we just don't have the demand or bandwidth to do it
22:50 basepi (they wanted us to do all the work)
22:50 forresta basepi, ahh gotcha, that's lame
22:51 basepi by no means are we saying we'll never support them -- we just don't have time to do it now
22:51 kermit joined #salt
22:51 Sheco joined #salt
22:51 forresta basepi, yea I'm not looking at it from a "I want to use this" stance, since I had never used foreman till 3 days ago, I'm just curious to try and see what my stance needs to be when I complain to RedHat that they are locking us into puppet
22:51 forresta which I find unacceptable
22:52 JasonSwindle forresta:  Neat!
22:52 forresta JasonSwindle, yea very cool
22:52 JasonSwindle You put this issue in?
22:52 forresta no
22:52 forresta I just found it
22:53 JasonSwindle Awesome
22:53 forresta looks like techhat has some stuff in develop from 4 days ago like basepi was saying
22:53 JasonSwindle I think Salt-Cloud should power the docker
22:53 JasonSwindle But I need to think on that more
22:53 JasonSwindle and I have 5pm brain at the moment
22:53 forresta JasonSwindle, that was already discussed a ton
22:53 forresta in one of the linked issues
22:53 JasonSwindle I can bet. :)
22:53 basepi JasonSwindle: I have 5pm Friday brain.  It's even worse!
22:54 forresta You've got big plans this weekend basepi?
22:54 quickdry21 joined #salt
22:54 JasonSwindle It is like a waste-land here in San Antonio.  30F, and Friday.   No one drove today.
22:54 basepi forresta: nah.  i'll play video games, watch the MLS cup (Real Salt Lake is my team!) and mostly relax.
22:55 basepi It was 12F here this morning.  22F now.
22:55 basepi but that's normalish winter weather, so everyone is still here.  =P
22:56 Gareth *cough* its cold here too....was 50 when I left the house this morning :)
22:56 basepi haha
22:56 bemehow_ joined #salt
22:57 JasonSwindle Anywho, I am heading out.  Have a great day / night #salt
22:57 basepi Night.
22:57 bemehow joined #salt
22:58 forresta basepi, that sounds like a pretty good weekend!
22:58 basepi forresta: indeed.  =)
23:01 terminalmage basepi: that's horrible, you're getting it an hour early
23:01 terminalmage :P
23:02 frosty996 is there an easy way for me to set custom grains on a minion from a state file?
23:02 terminalmage frosty996: you can manage /etc/salt/grains
23:02 terminalmage using a file.managed
23:03 basepi terminalmage: pretty sure I got it about Wednesday.
23:03 frosty996 terminalmage: that's what I was thinking.  Will they be seen during the same highstate run?
23:03 th3reverend1 joined #salt
23:03 frosty996 or would it need to be called twice?
23:03 terminalmage frosty996: not until the minion is restarted
23:03 terminalmage grains are static
23:03 frosty996 that's what I thought
23:03 terminalmage they aren't reloaded
23:03 terminalmage this might be a good use case for pillar
23:04 frosty996 terminalmage: can I use saltmine to get at pillar data on other minions?
23:04 terminalmage how so
23:04 terminalmage you mean with mine.get?
23:04 frosty996 basically, I was looking to use a 'roles' grain where one of the roles was postgresql-server
23:05 frosty996 so that on my pgbouncer nodes, I can mine the IP info for the nodes with postgresql-server set as a role and then put that into pgbouncer.ini
23:06 Gifflen_ joined #salt
23:06 forresta terminalmage, man I completely forgot it was only 5 in Chicago, was about to give you a tough time saying you should get out of here and take your wife to dinner or something :P
23:06 frosty996 so,while I know I can mine the ipv4 info from the grains, I still need to mine the role somehow to determine if I want the ipv4 info from that minion
23:07 terminalmage haha
23:07 terminalmage forresta: we're going out to dinner as a matter of fact
23:07 terminalmage but we're doing it so I can watch both the Hawks and the NIU/Bowling Green game
23:08 frosty996 terminalmage: nice
23:08 terminalmage So I'm still a jerk of a husband
23:08 terminalmage :P
23:08 terminalmage er, that should have been :)
23:08 terminalmage but yeah, I'll be watching two screens and trying not to completely ignore my wife
23:08 forresta terminalmage, lol
23:08 rojem joined #salt
23:08 forresta at least I hope it's somewhere that has good food
23:09 terminalmage yeah, haven't decided where yet
23:09 terminalmage there's a nice pizza place that has like 4 giant projectors and several other TVs
23:09 terminalmage that might be the one
23:09 jedwards92 joined #salt
23:10 terminalmage also, we know the owners there so we can bug them into putting on the games I want to see :D
23:11 forresta heh
23:11 forresta deep dish, or thin crust
23:12 quanta_ joined #salt
23:12 frosty996 terminalmage: so any idea how to do that without a grain?
23:13 terminalmage forresta: I like both... but lately it's mostly thin crust. easier to keep the weight off that way :D
23:13 terminalmage frosty996: hmmm
23:13 forresta terminalmage, I hear ya
23:13 elfixit joined #salt
23:13 frosty996 I agree that pillar sounds like the way to go, but I didn't think I could mine that info
23:13 forresta lots of simple carbs in pizza, makes it a hard meal to justify
23:13 terminalmage frosty996: might be something you should consider posting to the mailing list. I can't think of a good way to do it off the top of my head
23:14 frosty996 terminalmage: sounds like a good idea
23:14 terminalmage forresta: yeah and once you get into your 30s, the carbs like to settle down and start a family, they don't move on easily
23:14 rojem joined #salt
23:14 harobed joined #salt
23:14 forresta lol
23:14 terminalmage frosty996: I'm sure there is a way though
23:14 frosty996 terminalmage: wait till you get into your 40s!
23:14 pipps_ joined #salt
23:14 basepi I was going to insert a comment here about how we always stay on topic in this channel, but I'm just too tired.............
23:14 terminalmage frosty996: I'm hoping to put that off as long as possible :D
23:15 terminalmage basepi: haha
23:15 forresta basepi, jeez, the IRC police :P
23:15 basepi Also, pizza rocks.  Probably why I'm fat.
23:15 * frosty996 does love pizza
23:15 forresta oh yea pizza is delicous
23:15 forresta *delicious
23:15 basepi Also, I made the mistake of having my new graphics card shipped to the office, and it still hasn't arrived.  Silly late delivery, it's going to make it so I can't go home on time!
23:15 forresta what did you get?
23:15 basepi GTX 770.  =D
23:16 forresta the one that was on sale?
23:16 basepi Erm, not sure.  It was $20 off on Amazon......
23:16 forresta yea that's the one
23:16 terminalmage basepi: I thought you said it arrived
23:16 terminalmage false alarm?
23:16 basepi terminalmage: nah, it's still out for delivery
23:16 terminalmage ah
23:16 basepi i probably said out for delivery, or misspoke
23:16 terminalmage oh
23:16 * terminalmage checks other channel
23:17 terminalmage yeah you said out for delivery
23:17 forresta what are you gonna throw at it as a test basepi?
23:17 basepi But ya, my CPU will probably bottleneck it a little (it's a Phenom II X4 from a few years back) but it will still be a big improvement, and I'll upgrade my CPU/mobo in a few months
23:17 terminalmage he's going to mine bitcoins for fun and profit
23:17 basepi forresta: haven't decided.  Probably some BF4.  Plus my current addition, Guild Wars 2.
23:17 forresta hmm, I thought even the 770 wasn't enough for real bitcoin mining at this point for the cost of electricity last time I checked...
23:17 basepi (but the latter is not a very good "test")
23:17 terminalmage basepi: good thing Windows installations are so easy to move to a new CPU/mobo combo
23:17 basepi forresta: it's not.  cost of electricity is way too high
23:17 forresta basepi, you like guild wars 2 a lot? I could never get into it, even though I bought in at beta and such
23:17 terminalmage (that was a joke)
23:18 forresta s/terminal/troll/ ?
23:18 terminalmage THE COST OF ELECTRICITY IS TOO DAMN HIGH!
23:18 basepi forresta: i played about 500 hours of GW1.  Was so looking forward to the sequel, got it, played to level 30, and then just kidn of stopped playing.  i couldn't get into it either.  but a friend convinced me to try again a couple months ago and something clicked this time
23:18 basepi so i'm enjoying it.  =)
23:19 forresta nice
23:20 terminalmage basepi: http://livememe.com/
23:20 forresta I didn't realize I knew so little about MLS, I thought when you said real salt lake you were just making a play on real madrid.
23:20 terminalmage oh man wtf
23:20 basepi forresta: hehe, nope.  real team.  =)
23:20 terminalmage I need to learn how to internet
23:20 basepi DOGE
23:21 jesusaurus so doge. very internet.
23:21 forresta I wish I had saved the image where someone took their dodge car, and put a picture of doge over the middle D
23:21 basepi doge is easily my favorite meme right now.
23:21 forresta I miss awww yea guy :(
23:22 terminalmage basepi: http://www.livememe.com/g3ehdkx
23:22 terminalmage there
23:22 * terminalmage also has 5pm friday brain
23:22 basepi forresta: http://en.wikipedia.org/wiki/Real_Salt_Lake#Name
23:22 Katafalkas joined #salt
23:22 terminalmage but it is actually after 5pm here
23:22 frosty996 terminalmage: okie, posted
23:23 rbstewart joined #salt
23:23 forresta basepi, yea I googled them
23:24 forresta Leo the Lion?
23:24 zandy joined #salt
23:24 forresta You should come to saltconf as Leo the Lion basepi
23:27 forresta actually I think it's time to go, later guys, have a good weekend
23:28 quanta_ brew module doesn't work: without overwrite providers, "pkg.install" is not available.
23:29 quanta_ after overwrite providers, - /bin/sh: brew: command not found
23:29 quanta_ $ s grains.item os
23:29 quanta_ MacBook-Pro.local:
23:29 quanta_ os: MacOS
23:30 quanta_ >>> import salt.utils
23:30 quanta_ >>> print salt.utils.which('brew')
23:30 quanta_ /usr/local/bin/brew
23:31 terminalmage what do you mean by "overwrite providers"?
23:31 quanta_ providers:
23:31 quanta_ pkg: brew
23:31 quanta_ service: launchctl
23:31 quanta_ in minion
23:31 quanta_ http://docs.saltstack.com/ref/states/providers.html
23:31 terminalmage yeah I know how to do that, but that's not what we usually call it
23:31 terminalmage I've written a line or two of salt code in the past
23:32 quanta_ I meant override
23:33 quanta_ terminalmage: looks like I am getting this problem: http://docs.saltstack.com/faq.html#i-m-trying-to-manage-packages-services-but-i-get-an-error-saying-that-the-state-is-not-available-why
23:33 terminalmage which version of macos, and which version of salt
23:35 terminalmage actually, what is the value of grains['os']
23:36 terminalmage and also, I wonder if salt.utils.which() isn't finding brew because maybe /usr/local/bin isn't in PATH when salt runs
23:36 terminalmage how are you running the minion?
23:37 terminalmage we've seen, at least in Linux, that sometimes the initscripts set the PATH environment variable and /usr/local/bin isn't in it
23:37 terminalmage which we've mitigated with changes to the initscripts
23:37 terminalmage but I'm not sure how this would work in MacOS land
23:38 N-Mi joined #salt
23:38 quanta_ salt 0.17.2
23:38 quanta_ Name: Jinja2
23:38 quanta_ Version: 2.7.1
23:38 quanta_ Location: /usr/local/lib/python2.7/site-packages
23:38 quanta_ Requires: markupsafe
23:38 quanta_ $ echo $PATH
23:38 quanta_ /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
23:39 quanta_ s grains.item os
23:39 quanta_ MacBook-Pro.local:
23:39 quanta_ os: MacOS
23:39 terminalmage where die the stuff up to and including "requires" come from
23:40 terminalmage s/die/did
23:40 terminalmage also, if you're pasting in several lines, please use a pastebin service
23:40 alunduil joined #salt
23:40 terminalmage it helps keep the channel cleaner
23:40 cachedout joined #salt
23:41 terminalmage also, you haven't quite answered my question about how you're running salt
23:41 terminalmage the PATH of your local user isn't necessarily the path under which salt is running
23:41 quanta_ terminalmage: what do you mean by "how"?
23:41 terminalmage are you running it as a service? starting the minion via the CLI?
23:42 terminalmage if you're starting it via the CLI, are you using sudo?
23:42 quanta_ yes, by calling via launchctl
23:42 bemehow_ joined #salt
23:43 bemehow joined #salt
23:43 terminalmage quanta_: what is the value of grains.item path
23:44 terminalmage that will tell you the PATH value for the salt-minion process
23:44 quanta_ terminalmage: yes, I'm using `sudo` when starting
23:45 quanta_ terminalmage: oh, no "/usr/local/bin"
23:45 quanta_ path: /usr/bin:/bin:/usr/sbin:/sbin
23:45 terminalmage quanta_: yeah that would be the problem.... can you try first su'ing to root, and then launching?
23:45 terminalmage sudo su -
23:45 terminalmage then launch the salt-minion service
23:45 terminalmage see if that makes a difference
23:45 terminalmage I'm not super familiar with launchctl so I don't know what affects its path
23:48 terminalmage if you can't figure out a way around it, you can always use a file.symlink state to symlink /usr/local/bin/brew to /usr/bin/brew
23:52 terminalmage quanta_: also, if you add the symlink and find that brew still doesn't work, use saltutil.refresh_modules and that will force Salt to re-check everything that it normally does to decide what modules are available
23:53 terminalmage you'll also want to comment out that provider override for pkg too, of course
23:57 bemehow_ joined #salt
23:58 bemehow joined #salt

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