Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-08-28

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

All times shown according to UTC.

Time Nick Message
00:00 skullone does grain 'osmajorrelease' return multiple lines for people?
00:00 skullone im matching a pillar on it, but since osmajorrelease contains two lines, im getting some odd behavior
00:00 eliasp skullone: it shouldn't… which version are you on and could you nopaste your output?
00:01 skullone http://nopaste.info/bd88d738d9.html
00:02 skullone saltversion: 2014.1.10
00:04 eliasp skullone: you're on a RedHat(-based) distribution, right?
00:04 skullone yah, centos
00:04 eliasp ah, right… sorry, didn't look at the nopaste yet
00:05 skullone using 7, but im also seeing it on 6
00:05 skullone http://nopaste.info/38327eab48.html
00:05 skullone thats from a centos 6 minion
00:06 aparsons joined #salt
00:06 davedash joined #salt
00:06 eliasp skullone: k, give me a few minutes to test some things… might have a fix ready soon
00:08 aparsons_ joined #salt
00:09 aparsons joined #salt
00:10 skullone so, if i match osmajorrelease grain of '6', it actually matches for centos 6 and 7, since the osmajorrelease on centos 6 says '0.1406'
00:10 skullone it seems
00:10 skullone err, centos 7 says 0.1406'
00:10 eliasp yes, but that's now how it should be :)
00:10 skullone ideally :p
00:10 eliasp I spotted the problem and I'm working on a PR right now
00:11 skullone wonder if there should be an osmajor and osminor grain
00:11 to_json joined #salt
00:11 skullone does matching a grain with == merely mean 'contains', or a strict match?
00:12 skullone (this trips of puppet's facter also, hehe)
00:12 eliasp only if there's an actual need for it … features should be developed on actual needs instead of "whatever could be possible or needed in the future"
00:12 eliasp == should be a strict match
00:14 skullone hrm, strange
00:15 skullone wonder if something else might be going on releated to osmajor being two lines
00:16 eliasp skullone: https://github.com/saltstack/salt/pull/15337
00:16 TTimo joined #salt
00:19 skullone cool, thank you
00:20 ckao joined #salt
00:20 eliasp skullone: you might wanna use http://docs.saltstack.com/en/latest/ref/file_server/dynamic-modules.html to distribute the fixed module to your minions
00:21 aparsons joined #salt
00:21 eliasp (until the next release ships the fix)
00:27 aparsons joined #salt
00:29 aparsons_ joined #salt
00:30 elzilrac After upgrading salt to salt 2014.7.0rc1-313-g55422cc (Helium) with the bootstrapping tool, I'm having trouble getting salt to install on minions. I'm getting the error  Error: There was a profile error: Command 'ssh -t -t -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oKbdInteractiveAuthentication=no -i /etc/salt
00:31 elzilrac \'sudo test -e \\"/tmp/.saltcloud-be53a656-f980-411f-ad73-abe87282d398\\"\'' failed. Exit code: 1 Not really sure where to go from here so solve this. Ssh'ing to the instance with cert, IP, and user is fine, and I ca apt-get from the instance.
00:31 manfred elzilrac: known bug, they are working on the fix right now in the bug tracker
00:32 SheetiS joined #salt
00:32 elzilrac Hmm. Any suggestions for a workaround? Switch versions?
00:32 manfred not yet, it got broken in develop
00:33 manfred switch back to the release candidate, or 2014.1.10 until it gets fixed
00:34 elzilrac Will do, thank you for the help.
00:35 manfred np
00:38 patrek joined #salt
00:40 trevorj joined #salt
00:40 trevorj Hey all, I'm having some serious issues with connectivity on EC2 with a brand spanking new 2014.1 install on Ubuntu 14.04.1
00:41 n8n joined #salt
00:41 trevorj Basically, the clients are getting SaltReqTimeoutError: Waited 60 seconds
00:42 aparsons joined #salt
00:42 __number5__ trevorj: have you check the security groups is ok on both master and minions?
00:42 trevorj __number5__: Yes, 4505 and 4506 are open
00:42 trevorj __number5__: outgoing everythig is allowed from both
00:45 manfred trevorj: this one? https://github.com/saltstack/salt/issues/12248
00:45 trevorj manfred: Yeah, I've seen that
00:45 manfred that still isn't fixed
00:46 elfixit1 joined #salt
00:46 trevorj Yeah, I was hoping someone would know of a workaround
00:46 trevorj As this must be a very common deployment, lol
00:46 trevorj I've tried with latest git too, no love
00:46 manfred we have no idea what causes it
00:46 manfred and yeah still happens in that too
00:47 trevorj It really seems like packets are getting lost
00:49 trevorj Does it only affect 14.04?
00:49 trevorj It looked like that may be the case from me looking at the bug earlier
00:50 icebourg joined #salt
00:50 manfred i do not know, i haven't been really been paying attention to that bug cause it hasn't affecteed me yet
00:51 trevorj Do you use 14.04?
00:52 trevorj In fact does anyone use 14.04 reliably for both master and minion?
00:52 eliasp I do, but not on EC2
00:53 trevorj eliasp: Gotcha, thanks
00:54 manfred i i have been using some 14.04
00:54 manfred but not on ec2, working fine
00:56 trevorj When I set master to localhost on the salt master's minion, everything works to that minion
00:56 trevorj When I set it to go through EC2's public IP nat/firewall, it breaks
00:57 trevorj Actually.. nevermind, it just worked for one request.
00:57 Ryan_Lane joined #salt
01:08 bhosmer_ joined #salt
01:09 Ryan_Lane joined #salt
01:11 schimmy joined #salt
01:14 schimmy1 joined #salt
01:20 trevorj Actually I take that back, after a minion restart it's worked fine for a minute, numerous requests, no reauthentications at all
01:21 trevorj Yet from my minion that's going through the firewall (I have all traffic allowed atm)/ec2 nat, it's connection just dies
01:21 trevorj With the same SaltReqTimeoutError
01:22 trevorj That really points the finger at the natting or the firewall.. I'm gonna try it using internal IPs
01:23 trevorj Ha, it works great
01:23 trevorj manfred: At least for me, it's the EC2 nat/firewall at fault.
01:23 manfred cool
01:24 trevorj Even with all traffic allowed...
01:24 trevorj Rather scary
01:25 murrdoc joined #salt
01:30 pled76 joined #salt
01:30 aparsons joined #salt
01:37 brent1 is exertnal_auth: pam: the only auth options for halite?
01:38 Ryan_Lane brent1: I think any valid external_auth works
01:38 Ryan_Lane though maybe I'm thinking salt-api and not halite
01:39 ccwan joined #salt
01:40 whiteinge brent1: you can configure that by clicking on the logo in the upper-left. that'll take you to the settings tab where you can select eauth
01:40 whiteinge not the most intuitive place for that, i know.
01:42 brent1 Is it ok to run a salt-minion on the master server?
01:45 whiteinge definitely. quite common even
01:45 koyd brent1: it's actually quite common as far as I gather
01:45 Ryan_Lane yes, it's normal
01:45 koyd lol, bias confirmation all around
01:45 brent1 doh, ofcourse its the last entry in the FAQ, thanks guys :)
01:45 pled76 joined #salt
01:49 TTimo joined #salt
01:50 jslatts joined #salt
01:50 DaveQB joined #salt
01:51 n8n joined #salt
01:53 xcbt joined #salt
01:57 _ikke_ joined #salt
01:59 xcbt joined #salt
02:03 icebourg joined #salt
02:09 pled76 joined #salt
02:10 saurabhs left #salt
02:12 pled76_ joined #salt
02:13 AdamSewell joined #salt
02:13 AdamSewell joined #salt
02:14 TyrfingMjolnir joined #salt
02:14 skullone my name is brent too  =/
02:15 Cameron78 joined #salt
02:17 FeatherKing joined #salt
02:17 xcbt joined #salt
02:19 n8n joined #salt
02:21 Cameron78 Hey I am stuck trying to get Salt-master to run on OSX - I am in the documentation at 2.2.6.2 and don't have a /etc/salt directory to sudo add max_open_files: 8192 to, I have done the homebrew install of Salt
02:21 TTimo joined #salt
02:23 Cameron78 for that matter /usr/local/share/python/salt-master doesn't exist either so did I do something wrong?
02:25 skullone homebrew often installs under its own path
02:25 skullone like under /opt/local or something
02:26 ramishra joined #salt
02:31 mosen hi Cameron78
02:32 to_json joined #salt
02:32 mosen most stuff is prefixed by homebrew to /usr/local
02:34 malinoff joined #salt
02:37 pled76 joined #salt
02:39 Cameron78 interesting I find the install in homebrew /usr/local/Cellar/saltstack I will have to keep poking around
02:43 ipmb joined #salt
02:44 ramishra joined #salt
02:56 mosen Cameron78: yep that is correct
02:56 mosen Cameron78: but you can still create /srv/salt and /etc/salt
03:02 pled76_ joined #salt
03:06 ajolo_ joined #salt
03:15 otter768 joined #salt
03:19 bhosmer joined #salt
03:28 bezeee joined #salt
03:31 davet joined #salt
03:42 icebourg joined #salt
03:47 yomilk joined #salt
03:48 tk75 joined #salt
03:50 spookah joined #salt
03:53 tk75 joined #salt
03:57 jaw221 joined #salt
03:59 jaw221 Hi all, I'm using the salt provisioner for vagrant. Is there support for doing a "bundle install" to a particular gemset via salt? Seems like this would be 2 parts: first, selecting a gemset, second, bundle install. I don't see either documented... any advice?
04:02 manfred i am not aware of a bundle install in gem. rvm. or rbenv.
04:04 kermit joined #salt
04:07 yomilk_ joined #salt
04:08 mosen strange
04:09 pled76 joined #salt
04:14 pled76_ joined #salt
04:15 pled76 joined #salt
04:22 jaw221 ok, thanks
04:24 snuffeluffegus joined #salt
04:27 thayne joined #salt
04:30 CB_ joined #salt
04:34 ramishra joined #salt
04:35 hardwire joined #salt
04:36 felskrone joined #salt
04:44 ramteid joined #salt
04:45 ramishra joined #salt
04:47 Sauvin joined #salt
04:48 pled76 joined #salt
04:48 DrQuest I'm starting to hat ethe words "new in 2014.7.0
04:49 TTimo joined #salt
04:49 Sauvin joined #salt
05:00 pled76 joined #salt
05:05 n8n joined #salt
05:06 ramishra joined #salt
05:08 bhosmer joined #salt
05:14 tk75 joined #salt
05:21 thayne joined #salt
05:23 pled76 joined #salt
05:24 doriftoshoes_ joined #salt
05:24 doriftoshoes_ joined #salt
05:25 melinath joined #salt
05:25 murrdoc joined #salt
05:25 doriftoshoes joined #salt
05:26 calvinh joined #salt
05:29 pled76 joined #salt
05:30 murrdoc is the 'salt way' to use a lot of requires between states to define a server or is it better to make idempotent states
05:31 murrdoc or is there a salt best practices document i can reference
05:32 malinoff murrdoc, idempotent is always better; you're choosing a server when applying states (salt myserver state.sls mystate
05:32 malinoff )
05:33 murrdoc ok
05:33 murrdoc interesting
05:33 murrdoc so does one define different states for different events ?
05:33 murrdoc like highstate is for provisioning a server
05:33 murrdoc XXXstate is run when a server is rebooted (using reactor ?)
05:34 murrdoc XXXstate is run on another event ?
05:34 murrdoc and so on
05:34 Eugene highstate is for ensuring everything is in its proper place. You might want an individual substate for something like bringing down N/2 of your backend servers(apply to a loadbalancer), apply updates to that half of your backends, swap to the other half, repeat, and then back to normal.
05:35 murrdoc do you guys use salt to enforce 'states' on your servers
05:35 murrdoc for eg svn checkouts and/or package versions
05:35 murrdoc or package configs even
05:36 murrdoc (i mean guys as a generic term :)  )
05:39 DrQuest can I put comments around my jinjaness?
05:40 murrdoc {# is comment #}
05:40 murrdoc multiline works too
05:41 murrdoc {# ladidadida
05:41 murrdoc saweett
05:41 murrdoc #}
05:41 DrQuest {# is comment \n still a comment \n omg shawt up #}
05:41 DrQuest thx
05:43 thayne joined #salt
05:46 skullone anyone play around with salt managing firewalld in rhel7?
05:47 roolo joined #salt
05:47 skullone hrm actually looks like you can build XML files, and load them into firewalld
05:47 skullone might be easiest, have salt manage and watch the xml file, and restart firewalld as needed
05:48 skullone firewalld seems to be much improved over dealing with iptables policies direct
05:48 murrdoc i am reviewing this http://docs.saltstack.com/en/latest/ref/states/all/salt.states.iptables.html
05:49 murrdoc for my use case , though i am in ubuntu land
05:49 murrdoc works fine
05:50 murrdoc havent seen a formula for firewalld tho
05:50 skullone i might just make one, looks easy to manage via xml files
05:51 DrQuest mm, playing with iptables remotely, what could possibly go wrong during the learning process? ;)
05:51 dccc_ joined #salt
05:51 murrdoc only one way to find out
05:52 mosen skullone: seems like a better iudea
05:54 schimmy joined #salt
05:55 murrdoc thoughts on a yamllint command to use with vi ?
05:58 schimmy1 joined #salt
06:07 duncanmv joined #salt
06:13 pled76 joined #salt
06:15 xcbt joined #salt
06:15 kingel_ joined #salt
06:16 pled76 joined #salt
06:20 catpiggest joined #salt
06:21 rawzone joined #salt
06:22 toddnni joined #salt
06:26 slav0nic joined #salt
06:27 bnikol joined #salt
06:28 bnikol joined #salt
06:28 __number5__ `state_output: mixed` really save my life
06:30 bnikol joined #salt
06:30 murrdoc ?
06:33 bhosmer joined #salt
06:34 cym3try joined #salt
06:37 __number5__ murrdoc: http://docs.saltstack.com/en/latest/ref/output/all/salt.output.highstate.html
06:37 murrdoc sorry i meant more how did mixed save your life
06:39 __number5__ it reduced each success state run to one line and still show errors and traceback for failed ones
06:40 Ryan_Lane joined #salt
06:40 murrdoc nice, do u use the failhard flag ?
06:41 murrdoc till u know, we get exit codes (rc1!)
06:41 __number5__ no, if I want to test something really broken, I will use state.sls instead of state.highstate
06:45 malinoff murrdoc, do you mean that salt will return non-zero rc if something failed?
06:46 murrdoc yeah
06:46 malinoff wow
06:46 murrdoc some good stuff in rc1
06:46 murrdoc pkg.installed: -hold
06:46 murrdoc which u can use with version, to prevent package version going past what u picked
06:47 murrdoc so on
06:47 yomilk joined #salt
06:48 murrdoc Global onlyif and unless
06:48 malinoff it took more than a year to implement this, i'm surprised :)
06:48 Ryan_Lane well, about 7 months ;)
06:48 Ryan_Lane 2014.1 -> 2014.7 (really it's like .8 or .9 right now)
06:48 murrdoc etcd support
06:49 malinoff https://github.com/saltstack/salt/issues/7247 i'm sure i can find an earlier issue
06:49 MrTango joined #salt
06:49 murrdoc salt-call :|
06:50 murrdoc https://github.com/saltstack/salt/pull/11337
06:50 Ryan_Lane oh, you mean returning error codes?
06:50 TTimo joined #salt
06:50 Ryan_Lane when running salt-call I use --retcode-passthrough
06:50 agend joined #salt
06:50 murrdoc yeah
06:51 Ryan_Lane that's in 2014.1 too
06:51 malinoff It doesn't work for me
06:51 Ryan_Lane really? for state runs?
06:51 malinoff in 0.17.something
06:51 Ryan_Lane ah
06:51 Ryan_Lane 0.17 is really old
06:51 malinoff I dropped salt on 0.17, so i don't really follow right now :)
06:51 malinoff too buggy
06:52 Ryan_Lane I found the quality to increase dramatically in 2014.1
06:52 Ryan_Lane that's about the point they added all the unit/integration tests
06:52 malinoff That's cool, of course
06:52 murrdoc i wish they doc'ed their jenkins setup
06:52 murrdoc i d bring it in house too
06:53 Ryan_Lane it's in a github repo. I replicated it in house
06:53 murrdoc oh word ?
06:54 Ryan_Lane https://github.com/saltstack/salt-jenkins
06:54 Ryan_Lane their complete config is not, I think
06:54 Ryan_Lane but it's just using the github PR plugin
06:55 Ryan_Lane for launching the infrastructure they call salt-cloud, which runs salt states
06:55 n8n joined #salt
06:57 Ryan_Lane I think it's this too: https://github.com/saltstack/salt-testing
06:57 bhosmer joined #salt
06:57 Ryan_Lane there's also this: https://github.com/saltstack/docker-containers :D
07:00 malinoff Ryan_Lane, maybe you know, can i access context of a module/state as anything other than sys.modules[__salt__['test.ping'].__module__].__context__ ?
07:00 malinoff in 2014*, i mean
07:00 Ryan_Lane as far as I know __context__ is only accessible in execution modules
07:00 malinoff Ryan_Lane, yes, i'm talking about them
07:01 Ryan_Lane yep, and you're trying to access it via a state module?
07:01 Ryan_Lane or is that the way you're doing it in the execution module?
07:01 malinoff Ryan_Lane, in execution module
07:01 Ryan_Lane in execution modules you just need to use __context__['blah']
07:02 malinoff Ryan_Lane, it will be the context of 'its' module
07:02 Ryan_Lane it's global as far as I know
07:02 malinoff no, it's not :)
07:02 alanpearce joined #salt
07:02 pled76 joined #salt
07:02 malinoff let me check that
07:02 Ryan_Lane I think the only namespacing is what you use as the key
07:03 Ryan_Lane and you're expected to namespace by the function name as a convention
07:03 Ryan_Lane I've never used them cross module, though
07:03 jeffrey4l joined #salt
07:05 jeffrey4l joined #salt
07:05 CeBe joined #salt
07:05 malinoff right, it's global right now
07:06 jeffrey4l joined #salt
07:11 ml_1 joined #salt
07:12 N-Mi joined #salt
07:12 jeffrey4l left #salt
07:13 thayne joined #salt
07:16 pled76 joined #salt
07:17 jdmf joined #salt
07:18 ramishra joined #salt
07:19 n8n joined #salt
07:22 ramishra joined #salt
07:24 ramishra joined #salt
07:27 tmh1999 joined #salt
07:30 Singularo joined #salt
07:31 agend joined #salt
07:31 lcavassa joined #salt
07:31 agend joined #salt
07:32 Singularo joined #salt
07:33 thayne joined #salt
07:35 ramishra joined #salt
07:35 tmh1999 joined #salt
07:37 GianArb joined #salt
07:37 gambini joined #salt
07:38 gambini hi to everyone i have a problem when issuing salt 'prod-*' state.highstate  because i get the error: Failed to authenticate, is this user permitted to execute commands?
07:38 gambini anyone know how to better understand this problem?
07:39 gambini Salt: 2014.1.10
07:39 gambini Python: 2.7.6 (default, Mar 22 2014, 22:59:56)
07:39 gambini Jinja2: 2.7.2
07:39 gambini M2Crypto: 0.21.1
07:39 gambini msgpack-python: 0.3.0
07:39 gambini msgpack-pure: Not Installed
07:39 gambini pycrypto: 2.6.1
07:39 gambini PyYAML: 3.10
07:39 ndrei joined #salt
07:39 gambini PyZMQ: 14.0.1
07:39 gambini ZMQ: 4.0.4
07:39 gambini here is my report
07:39 tmh1999 joined #salt
07:39 msil_ joined #salt
07:42 gambini hi to everyone i have a problem when issuing salt 'prod-*' state.highstate  because i get the error: Failed to authenticate, is this user  permitted to execute commands?
07:42 eliasp gambini: look in the docs for "external auth" and "ACL"
07:43 eliasp gambini: sorry, having some network problems right now, can't provide the URL
07:44 gambini thanks
07:45 darkelda joined #salt
07:45 ianmcshane joined #salt
07:47 eliasp gambini: http://docs.saltstack.com/en/latest/topics/eauth/access_control.html
07:53 DaveQB_ joined #salt
07:55 pled76 joined #salt
07:58 ianmcsha_ joined #salt
08:02 chiui joined #salt
08:09 pled76 joined #salt
08:12 tmh1999 joined #salt
08:14 mortis_ back to looking at this problem .... anyone know if this should work? sending a fake auth-event and catching it? http://pastie.org/9507249
08:15 tmh1999 joined #salt
08:16 pled76 joined #salt
08:21 Outlander joined #salt
08:26 patrickcp joined #salt
08:26 patrickcp left #salt
08:26 patrickcp joined #salt
08:28 patrickcp hi guys, I'm having an issue running a highstate on my prob environment. I'm able to run all the states in the top file manually, but not through the highstate. I'm getting the following error: TypeError encountered executing state.highstate: 'bool' object is not iterable. See debug log for more info.  Possibly a missing arguments issue:  ArgSpec(args=['test', 'queue'], varargs=None, keywords='kwargs', defaults=(None, False))
08:28 patrickcp Anyone seen this before?
08:33 sectionme joined #salt
08:35 melinath joined #salt
08:37 TyrfingMjolnir joined #salt
08:46 bhosmer joined #salt
08:47 patrickcp Never mind, looks like it was caused by an older version in use in prod than in our testing env.
08:48 eliasp patrickcp: to stay informed about which version runs where in your environment: "salt-run manage.versions"
08:49 patrickcp eliasp: thanks mate, I wasn't aware of that :)
08:52 deepz88 joined #salt
08:52 TTimo joined #salt
08:54 ramishra joined #salt
08:59 linjan joined #salt
08:59 pled76 joined #salt
09:03 ianmcshane joined #salt
09:09 davet joined #salt
09:16 WarP|onwork joined #salt
09:17 calvinh joined #salt
09:18 intellix joined #salt
09:19 ggoZ joined #salt
09:20 workingcats joined #salt
09:23 AlecTaylor joined #salt
09:25 yomilk joined #salt
09:33 pled76 joined #salt
09:34 davet joined #salt
09:37 kingel joined #salt
09:46 pled76 joined #salt
09:51 lolgrend joined #salt
09:52 tmh1999 joined #salt
10:03 ianmcshane joined #salt
10:10 transmutated joined #salt
10:11 transmutated I'm on a ubuntu box, trying to figure out how to uninstall salt that was installed via bootstrap.
10:11 transmutated what's the trick?
10:14 DenkBrettl sudo apt-get remove salt-common ?
10:16 transmutated not installed.
10:16 transmutated there are no packages that begin with salt
10:16 transmutated but it is surely there and running.
10:16 transmutated phoning home to my salt server.
10:16 transmutated dpkg -l|grep salt returns nothing.
10:17 malinoff transmutated, what about pip freeze | grep salt ?
10:17 workingcats joined #salt
10:17 mosen joined #salt
10:18 transmutated malinoff, need to install pip. gimme a sec
10:18 Outlander joined #salt
10:18 malinoff transmutated, if bootstrap has installed salt via pip, it should be installed already
10:18 javsalt joined #salt
10:19 transmutated malinoff, not installed, and it was installed via the "unsecure one liner" method
10:19 transmutated by "it was installed", I mean salt
10:19 malinoff transmutated, i guess it is installed directly from git
10:19 malinoff https://github.com/saltstack/salt-bootstrap/blob/develop/bootstrap-salt.sh#L1114
10:20 javsalt Hi, i'm getting this error "Invalid requisite type 'service.dead' in state 'start_wsrep', in SLS 'galera'. Requisite types must not contain dots, did you mean 'service'?". This is the config involved: "start_wsrep:   cmd.run:     - name: "service mysql start --wsrep-new-cluster"     - require:        - pkg: mariadb-pkgs       - service.dead: mysql       - cmd: mysql_update_maint"
10:20 javsalt Any ideas?
10:20 javsalt thx
10:20 malinoff javsalt, http://pastie.org
10:21 transmutated malinoff, Warning: cannot find svn location for distribute==0.6.24dev-r0 salt==2014.7.0rc1-1373-g8c5b3c3
10:22 transmutated If it can't be removed via the package manager, that's fine.
10:22 transmutated I just won't use the package manager.
10:22 javsalt malinoff, thx, http://pastie.org/9509794
10:22 transmutated I've used the bootstrap method before and it installed with the package manager.
10:23 malinoff javsalt, in requirement you must specify an id of an other state, not state itself
10:23 transmutated maybe it's because I used the dev version?
10:23 malinoff javsalt, so pkg: mariadb-pkgs is fine, but other 2 lanes are malformed
10:23 malinoff transmutated, i guess so
10:24 javsalt malinoff, thx. I will try again
10:25 diegows joined #salt
10:29 mr_chris joined #salt
10:32 jalaziz joined #salt
10:35 bhosmer joined #salt
10:39 marnom I finally got salt-cloud to talk to our vSphere environment, though it now fails because it logs in with username 'None@<IP>'. Anyone knows whats going on?
10:46 dccc joined #salt
10:47 kingel joined #salt
10:51 ianmcshane joined #salt
10:53 martoss joined #salt
10:53 TTimo joined #salt
10:57 transmutated I've got a single sls file, how do I apply that to a single minion without running highstate?
10:59 yomilk joined #salt
11:01 malinoff transmutated, state.sls
11:01 transmutated i've created a webserver.sls file. I've done it before, but it's been a minute since I've provisioned anything with it
11:04 _mel_ joined #salt
11:06 kbyrne joined #salt
11:20 TheThing joined #salt
11:21 kingel joined #salt
11:21 Nazca__ joined #salt
11:23 floWenoL_ "State grains.setval found in sls" I cant call setval on an sls?
11:26 endragor joined #salt
11:27 endragor_ joined #salt
11:27 jalaziz joined #salt
11:28 pled76 joined #salt
11:29 bhosmer joined #salt
11:31 Cameron78 joined #salt
11:32 logix812 joined #salt
11:41 ifur joined #salt
11:44 jeffrey4l joined #salt
11:48 floWenoL_ "State grains.setval found in sls" I cant call setval on an sls?
11:51 packeteer guys, I'm trying to automate creation of multiple vm's on kvm, but i'm not sure of the best method... can I get some hints
11:51 martoss joined #salt
11:54 TTimo joined #salt
11:56 kerncore joined #salt
11:57 kerncore hi, someone use salt with GCE ( Google CE ) ?
11:59 ianmcshane joined #salt
11:59 LukinLW joined #salt
12:00 blarghmatey joined #salt
12:03 hobakill joined #salt
12:03 jeffrey4l left #salt
12:05 LukinLW Hello! I can not seem to get the docker states to work in salt. Just get the message 'State 'docker.running' found in SLS 'docker' is unavailable'. I am using version: 2014.7.0rc1-1196-gea2be8b (Helium)
12:05 LukinLW Do I have to add docker-py manually?
12:06 dvestal joined #salt
12:11 pled76 joined #salt
12:13 Skos joined #salt
12:13 Skos Hi
12:14 Skos doc:   http://salt.readthedocs.org/en/latest/topics/development/external_pillars.html
12:15 Skos describes that in /etc/salt/master  params can be named, like example_c presents (params: 'keyA', 'keyB')
12:15 TTimo joined #salt
12:15 Skos but it seems keys are not respected and params from /etc/salt/master are passed to ext_pillar function in the same order as they are listed
12:20 TTimo joined #salt
12:20 pled76 joined #salt
12:23 bhosmer_ joined #salt
12:25 rjc joined #salt
12:28 patrek joined #salt
12:32 TheThing joined #salt
12:32 ianmcshane joined #salt
12:33 alanpearce joined #salt
12:35 mechanicalduck joined #salt
12:39 TyrfingMjolnir joined #salt
12:40 bmcorser joined #salt
12:43 bhosmer joined #salt
12:48 elfixit joined #salt
12:48 pled76 joined #salt
12:50 calvinh joined #salt
12:52 jkaye joined #salt
12:53 jhauser joined #salt
12:54 cpowell joined #salt
12:54 mhubbard joined #salt
12:55 Cameron78 joined #salt
12:56 hobakill what does it take for karma people to karma up EPEL testing stuff to stable? aka - it's time to get 2014.1.10 out of testing yeah? GO! :)
12:56 calvinh joined #salt
12:56 bhosmer joined #salt
13:00 tkharju joined #salt
13:03 calvinh_ joined #salt
13:04 tmh1999 joined #salt
13:07 ale__ joined #salt
13:07 dvestal_ joined #salt
13:08 ianmcshane joined #salt
13:08 fredvd joined #salt
13:10 FeatherKing joined #salt
13:13 racooper joined #salt
13:13 mpanetta joined #salt
13:18 dude051 joined #salt
13:20 ekristen joined #salt
13:22 ramishra joined #salt
13:23 sastorsl left #salt
13:25 calvinh joined #salt
13:28 rypeck joined #salt
13:32 calvinh_ joined #salt
13:33 jaimed joined #salt
13:35 blarghmatey joined #salt
13:36 pled76 joined #salt
13:37 acabrera joined #salt
13:41 toastedpenguin joined #salt
13:44 TTimo joined #salt
13:46 mapu joined #salt
13:47 LukinLW left #salt
13:49 hobakill i'm pretty new to salt-cloud. trying to test it out but basics are escaping me. specifically the parameters i need such as id: key: keyname: etc... where do i find that on my aws console?
13:49 WarP|onwork joined #salt
13:49 ale joined #salt
13:53 TTimo joined #salt
13:59 kingel joined #salt
14:02 linjan joined #salt
14:04 quickdry21 joined #salt
14:04 diegows joined #salt
14:04 to_json joined #salt
14:05 toastedpenguin joined #salt
14:09 jkaye joined #salt
14:11 ramishra joined #salt
14:11 eagen joined #salt
14:12 brandon_ joined #salt
14:13 hobakill nvm. i'm RingTFingM :)
14:13 FeatherKing can i tell a salt minion to reread its config without restarting it?
14:15 tk75 joined #salt
14:15 vejdmn joined #salt
14:17 rojem joined #salt
14:18 aquinas_ joined #salt
14:18 kt76 joined #salt
14:20 pled76 joined #salt
14:20 sectionme joined #salt
14:21 jalbretsen joined #salt
14:22 peters-tx joined #salt
14:26 pled76 joined #salt
14:30 Ozack1 joined #salt
14:32 sectionme joined #salt
14:36 felskrone joined #salt
14:36 jkaye joined #salt
14:36 manfred FeatherKing: you cannoty
14:37 conan_the_destro joined #salt
14:37 manfred someone is working on being able to reinitialize the minion, without losing the current job
14:40 toastedpenguin joined #salt
14:41 perfectsine joined #salt
14:42 ericof joined #salt
14:42 FeatherKing manfred: ty, it didnt seem like i could but i thought i would ask
14:42 FeatherKing windows doesnt handle a service.restart at all
14:42 FeatherKing apparently
14:43 FeatherKing on the minion
14:43 nicksloan left #salt
14:43 jslatts joined #salt
14:46 vejdmn1 joined #salt
14:47 calvinh joined #salt
14:48 tmh1999 joined #salt
14:50 rallytime joined #salt
14:51 AdamSewell joined #salt
14:54 UtahDave joined #salt
14:55 jeremyBass1 joined #salt
14:55 calvinh_ joined #salt
14:57 vejdmn joined #salt
14:59 TheThing joined #salt
14:59 pled76 joined #salt
15:00 kingel joined #salt
15:01 pled76_ joined #salt
15:03 Gareth morning
15:04 pled76 joined #salt
15:05 UtahDave morning, Gareth!
15:05 Corey Ahoy.
15:05 UtahDave hey, Corey!
15:05 Gareth UtahDave: morning :) hows it going?
15:06 trevorj manfred: you around?
15:06 econnell joined #salt
15:06 metaphore joined #salt
15:06 Corey UtahDave: Matt is very, very, VERY tall.
15:06 trevorj manfred: you're not going to believe this, but it works again on the external IP
15:07 TaiSHi Hi all
15:07 trevorj manfred: It makes no sense as nothing's changed on my end. Something had to of been up with EC2
15:07 kaptk2 joined #salt
15:07 Corey "You know what's wrong with Saltstack?" *Matt stands up, and up, and up* "NOTHING! NOTHING IS WRONG WITH SALTSTACK! DON'T HIT ME!"
15:08 TaiSHi I'm receiving a weird traceback when doing cmd.run http://dpaste.com/04R594F
15:08 UtahDave ??  lol.   Corey, Matt Meservy?
15:08 UtahDave Gareth: going great, man.  You?
15:08 pled76 joined #salt
15:09 manfred TaiSHi: yo
15:09 TaiSHi yo manfred
15:09 manfred sorry wrong one
15:09 TaiSHi long time no bothering you :P
15:09 TaiSHi Oh
15:09 manfred trevorj: yo, interesting
15:09 TaiSHi *tear*
15:09 manfred heh
15:09 Gareth UtahDave: Doing well :)  Prepping a returner related pull request at the moment.
15:09 TaiSHi It's ok, I'm not cry*sob*ing
15:09 UtahDave nice
15:09 manfred TaiSHi: set 'LC_CTYPE=en_US.UTF-8'
15:10 manfred make sure your locale is set
15:10 Corey UtahDave: Quite. Ran into him at VMworld.
15:10 UtahDave Ah, cool. Nice guy. Big former football player.
15:10 TaiSHi Hmm, manfred just exported it and it aint working
15:11 TaiSHi locale is set to en_ES.UTF-8
15:11 manfred make sure it is exported on all your minions
15:11 TaiSHi Weird thing is that highstate is working fine
15:11 TaiSHi going to export it on all minions now
15:11 manfred ¯\(°_o)/¯
15:11 TaiSHi On production
15:11 TaiSHi peak hour
15:11 * TaiSHi locks and load
15:12 ramishra joined #salt
15:12 Gareth Corey: next time you should yell out football jargon...."red 42...red 42....hike hike!"  see if he has flashbacks :)
15:14 to_json joined #salt
15:15 UtahDave :)
15:18 pled76 joined #salt
15:18 TaiSHi This is weird, manfred
15:18 TaiSHi It ain't exploding when running apt-get update :P
15:19 TaiSHi Nor upgrade, just when I pass the -y
15:23 ajolo__ joined #salt
15:26 berserk joined #salt
15:27 TaiSHi Any common way to set LC_ALL ?
15:28 conan_the_destro joined #salt
15:30 hobakilllll joined #salt
15:31 schristensen joined #salt
15:33 pled76_ joined #salt
15:33 sectionme joined #salt
15:37 dccc joined #salt
15:40 logix812 joined #salt
15:41 ipmb joined #salt
15:46 berserk joined #salt
15:50 blarghmatey Does anyone know if it is possible to target pillar data that is stored in an ext_pillar? e.g. role:web:\n  - data\n  - moredata
15:50 UtahDave blarghmatey: yeah, that should work.
15:51 xcbt joined #salt
15:52 blarghmatey Ok, it's just a bit confusing since the ext_pillar doesn't have a top file. So, I'm guessing that the top file syntax just ends up merging with the actual data when you use an ext_pillar?
15:53 UtahDave blarghmatey: So first the file based pillars are evaluated.
15:53 UtahDave blarghmatey: then each external pillar is evaluated in order they are defined in your master config
15:53 smcquay joined #salt
15:54 to_json joined #salt
15:54 UtahDave when you create your external pillar you can use environment info to control what info is added to pillar.
15:55 blarghmatey I'm a little unclear how that environment info gets incorporated. Is that defined in the master config, or is it embedded into the pillar data?
15:55 blarghmatey In particular, I'm planning on using the Redis ext_pillar
15:57 smcquay_ joined #salt
15:59 ndrei joined #salt
16:00 kingel joined #salt
16:00 metaphore joined #salt
16:01 UtahDave blarghmatey: the top file determines the environment based on the matching it does
16:02 blarghmatey Would it be possible for you to put together a minimal example?
16:02 blarghmatey I appreciate you taking the time to answer my questions.
16:03 UtahDave blarghmatey: You're welcome.
16:03 UtahDave blarghmatey: the top file docs have a good example.  Look here: http://docs.saltstack.com/en/latest/ref/states/top.html
16:03 UtahDave look about a quarter the way down
16:04 UtahDave There's a top file example that has a base, dev, qa and prod environments
16:05 UtahDave a minion can pull files from multiple environments based on what the minion matches.
16:05 blarghmatey Ok. I understand how that gets targeted, what I am unclear on is how that then gets translated into the ext_pillar. Is it possible to, for example, specify a different ext_pillar per environment?
16:05 blarghmatey Or namespace the keys used in Redis to determine the environment?
16:06 ajolo__ joined #salt
16:06 KyleG joined #salt
16:06 KyleG joined #salt
16:07 icebourg joined #salt
16:08 icebourg joined #salt
16:09 troyready joined #salt
16:09 ipmb_ joined #salt
16:10 UtahDave blarghmatey: Ah, OK. sorry, misunderstood. didn't realize you were specifically asking about external pillars.
16:10 tligda joined #salt
16:11 blarghmatey Sorry, I didn't specify that clearly.
16:11 UtahDave blarghmatey: Let me double check something
16:11 rojem joined #salt
16:11 diegows joined #salt
16:11 blarghmatey Sure thing
16:12 aparsons joined #salt
16:16 CryptoMe1 joined #salt
16:20 aparsons joined #salt
16:21 pled76 joined #salt
16:21 kingel joined #salt
16:24 N-Mi joined #salt
16:24 N-Mi joined #salt
16:28 CryptoMe1 Hey Everyone, I've followed Salt for a while, but have finally taken the dive. I'm looking for the proper way to target my minions (about 500 in total). My setup has a central db that contains a 'role' key/value pair. I can query this data by executing a simply script from the minion:
16:28 CryptoMe1 grabrole.pl
16:28 CryptoMe1 Data is returned as:
16:28 CryptoMe1 Role => [web|db]
16:29 CryptoMe1 Ideally, I'd use a grain to target, but this information  can, and does, change. Pillars may be what I'm looking for, but those seem to be data that the master provides to the minion. My dream is to have salt apply states based upon this role value, and also use it for orchestration.
16:29 CryptoMe1 Has this been conquered before? It's possible my research just hasn't led me deep enough down the rabbit hole yet.
16:30 manfred CryptoMe1: i would use ext_pillar and target on those (if that is possible at this time) otherwise, write your own custom grain that queires your database and sets up the role as the grain on the server, and then target with grains
16:30 manfred CryptoMe1: http://docs.saltstack.com/en/latest/topics/targeting/grains.html#writing-grains
16:31 CryptoMe1 manfred: thanks for the answer. I've thought about the custom grain, but from what I understand grains are tidbits of information that are only loaded @ startup. Is that right?
16:32 manfred nah, they are continueally refereshed on different runs
16:32 CryptoMe1 Oh!
16:32 manfred the first time custom grains are run is on the first highstate
16:32 CryptoMe1 That changes my outlook then.
16:32 manfred if you check that writing grains article, it points you to useing the reactor to refresh the grains the first time it connects
16:32 manfred http://docs.saltstack.com/en/latest/topics/reactor/index.html#minion-start-reactor
16:32 17SAA1J7Y joined #salt
16:33 manfred and then you can just schedule a saltutil.sync_all every so often to make sure they update
16:33 ramishra joined #salt
16:33 manfred but yeah, the can be updated after startup
16:33 CryptoMe1 cool. I'll read up on that! Thanks a ton!
16:33 manfred np!
16:33 aparsons_ joined #salt
16:34 sectionme joined #salt
16:35 thayne joined #salt
16:38 UtahDave blarghmatey: So here's what I've got.
16:38 Corey Has there ever been a time when throwing a "#" in front of a line didn't comment it out within a state file?
16:38 manfred boogers
16:38 UtahDave blarghmatey: Salt's concept of an "environment" has more to do where a file (for a state) or a value (for a pillar) reside, than specifically where a certain server resides
16:39 UtahDave a server can pull sls files and pillar data from many environments, based on the top file.
16:39 UtahDave blarghmatey: Your external pillar has the grains and opts and basically lets you determine what environment a server resides in and give pillar data accordingly.
16:39 schimmy joined #salt
16:40 UtahDave Corey: I don't think so.  That's a yaml convention.
16:41 hobakilllll i keep getting an "Error: Profile 'blah' is not defined when trying to create an EC2 box. i'm setting this up fresh so i may have config issues but to me the documentation isn't super clear what names i should be using for cloud.providers cloud.profiles...etc... anyone have some experience and want to help out?
16:42 Corey UtahDave: Yes, but we're running YAML through a Jinja2 parser first, which is why I wondered.
16:42 UtahDave Corey: Yeah, but whatever the jinja does it still must output valid yaml
16:42 schimmy1 joined #salt
16:43 blarghmatey UtahDave: Thank you for that. Can you provide a brief example of what a set of pillar data would have to look like in an ext_pillar to convey the environment info?
16:43 UtahDave hobakilllll: first set up your cloud.provider, which is your cloud credentials.
16:44 hobakilllll UtahDave: yeah i think that's where i'm getting stuck. it doesn't seem to like my credentials but i'm not entirely sure i have the right info
16:44 UtahDave blarghmatey: well, you have grains, opts, the minion id and the pillar that has been created up to that point.  That's the same info used by your top.sls to determine environment.  So you would just do the same in your external pillar
16:44 aparsons joined #salt
16:44 UtahDave hobakilllll: which cloud?
16:44 hobakilllll aws
16:45 UtahDave hobakilllll: what's the output of    salt-cloud -Q
16:45 hobakilllll the key i put in there is a massive one for the salt-cloud user i created
16:45 hobakilllll 401 Unauthorized.
16:45 aparsons joined #salt
16:46 CeBe joined #salt
16:46 UtahDave hobakilllll: can you pastebin your sanitized provider file?
16:46 hobakilllll UtahDave: i'm not sure what to use for the "id:" in the EC2 credentials area. or where to get that id:
16:47 blarghmatey UtahDave: Thanks. I'll see what I can do with that info.
16:48 ianmcshane joined #salt
16:49 favadi joined #salt
16:50 thayne joined #salt
16:50 hobakilllll UtahDave: https://www.hobapolis.com/paste/?afcb89bdc3b90a30#HS0ZG/ghs20Ed5GkysadqbQSWFedd9XczvIgMewThmo=
16:52 UtahDave hobakilllll: "id" is your key id
16:53 UtahDave "Access Key ID"
16:53 skyler How do you deal with states that depend on a minion existing? For example, I want to change the DNS server for all of my minions, but only if the DNS server minion is up and running.
16:53 hobakilllll UtahDave: hmmm. yeah... ok i tried that too but still got unauthorized.
16:54 hobakilllll UtahDave: [ERROR   ] EC2 Response Status Code and Error: [403 Forbidden] {'Errors': {'Error': {'Message': 'You are not authorized to perform this operation.', 'Code': 'UnauthorizedOperation'}}, 'RequestID': '19dea9c3-50e1-4eea-bb39-bede1ede381b'}
16:54 UtahDave ok, so I just created an IAM user in the aws web gui.  That user has an "Access Key ID"  and a "SecretAccess Key"
16:54 hobakilllll yep got that same info
16:55 cron0 joined #salt
16:55 laxity joined #salt
16:55 KennethWilke joined #salt
16:55 chrisjones joined #salt
16:55 UtahDave does that user have rights to do what you're trying to do?
16:56 hobakilllll UtahDave: that was it.
16:57 hobakilllll i din't attach a user policy to the damn user.
16:57 hobakilllll (still learning AWS)
16:59 forrest joined #salt
17:00 hobakilllll Thanks UtahDave
17:00 UtahDave hobakilllll: :)  You're very welcome!  Glad we figured it out
17:01 hobakilllll now to figure out the other errors. :)
17:03 luminous hello! has anyone seen or considered how to improve documentation of salt formula/pillar through something like sphinx?
17:03 ramishra joined #salt
17:03 Ozack2 joined #salt
17:04 forrest luminous, for your personal states?
17:04 luminous I'm thinking along the lines of the autodoc extension in sphinx, and its support for .py
17:04 martoss joined #salt
17:04 luminous forrest: yes
17:04 forrest luminous, oh, hmm. I hadn't thought of that.
17:04 forrest usually the IDs are pretty clear because I name them in a sort of 'self' documenting way
17:04 forrest so it's not a big deal
17:05 luminous even with code as documentation, code is not documentation :)
17:05 forrest luminous, yeah I agree
17:05 saurabhs joined #salt
17:05 sectionme joined #salt
17:06 elm joined #salt
17:07 luminous forrest: I haven't yet conceived of how to do that
17:07 spookah joined #salt
17:11 melinath joined #salt
17:14 forrest luminous, I'm not sure either. I don't think I've ever seen comments that weren't marked via # in an sls file
17:14 wangofett UtahDave: have you ever seen the salt-minion fail to start? "The salt-minion service terminated with a service-specific error. The system cannot find the path specified"
17:14 forrest luminous, have you considered just using the standard format like we do for the saltstack-formula repos with the readme files?
17:14 wangofett (as a windows service)
17:15 forrest luminous, since those are RST you could probably compile them with sphinx.
17:15 linjan joined #salt
17:16 bezeee joined #salt
17:19 UtahDave wangofett: how did you install the salt minion?
17:20 Ryan_Lane joined #salt
17:21 wangofett UtahDave: looks like issue 10716 is the same one I'm having
17:21 ndrei joined #salt
17:21 wangofett https://github.com/saltstack/salt/issues/10716 - I used the 2014.1.10 installer (64-bit) from....
17:22 wangofett https://docs.saltstack.com/downloads/Salt-Minion-2014.1.10-AMD64-Setup.exe
17:22 wendall911 joined #salt
17:23 wangofett Issue is resolved/closed... but apparently I'm still having it :-P
17:23 TheThing joined #salt
17:24 diegows joined #salt
17:25 UtahDave does it work if you install this: http://download.microsoft.com/download/d/2/4/d242c3fb-da5a-4542-ad66-f9661d0a8d19/vcredist_x64.exe
17:27 pled76 joined #salt
17:27 oz_akan joined #salt
17:27 martoss joined #salt
17:28 DrQuest left #salt
17:29 yomilk joined #salt
17:30 wangofett UtahDave: sure does. I know the windows (winsxs, as referenced http://stackoverflow.com/a/734719 ) path existed before I installed
17:31 aparsons_ joined #salt
17:31 kermit joined #salt
17:32 rlarkin I noticed that in the .gz file salt-cloud contains a deploy directory with scripts, but installing via apt-get omits this folder.
17:32 cnf left #salt
17:32 rlarkin salt-cloud is version 2014.1.4 , but the gz is 8.11
17:33 rlarkin Should I be using the snapshot from git and not the debian package?
17:34 wangofett UtahDave: looks like the installer updated at least 1 directory and either created or updated 4 others besides
17:35 JPaul does salt parse and execute the sls files in order? for example, I need to make sure the sources.list file for apt is updated before packages are installed when initially setting up a server
17:35 forrest JPaul, it does
17:36 JPaul excellent
17:36 wangofett UtahDave: Interesting. Looks like it may have been a version mismatch? The SO question references 9.0.30729, but the ones that exist now are 9.0.21022
17:36 forrest JPaul, if you want to ensure that one portion of a state fails if another one doesn't finish however, you should still use 'require'
17:36 JPaul ok, cool
17:36 JPaul thanks!
17:36 forrest JPaul, np
17:37 forrest JPaul, http://docs.saltstack.com/en/latest/ref/states/ordering.html#state-auto-ordering
17:38 elm hello everyone....does anyone set registry keys on their windows minions?  Just getting into using salt and I'm able to use the salt command line to set/read keys on a minion, but once I put it into an sls file, I get an error that reg.set_key is unavailable, I am sure I am doing something boneheaded, but I'm not seeing it...
17:38 bnikolaus joined #salt
17:39 wangofett elm: haven't yet, but I'm just starting with salt ;)
17:39 forrest elm, so looks like reg.set_key is only a module (meaning command line, not available in a state) to get around that use u
17:39 forrest sigh
17:39 forrest copy pasta fail
17:39 forrest elm, http://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html
17:39 forrest use that
17:40 forrest you're basically using a state to call modules which don't have state support yet.
17:40 elm doh, I knew it would be something dumb I was doing...
17:41 forrest elm, nah it can be confusing trying to understand the difference between modules and states sometims
17:41 forrest *sometimes
17:41 wangofett forrest: very true. Pillars, states, grains, and modules.... I'm still trying to wrap my head around it
17:41 dusel joined #salt
17:41 forrest elm, if you want to read up on it, I wrote this little blurb about it: https://github.com/gravyboat/salt-book/blob/master/en/chapter02-masterlessminion/chapter02.rst#the-difference-between-salt-states-and-salt-modules
17:42 forrest wangofett, yeah it's a lot to take in
17:42 forrest elm, that's still sort of off though, I need to fix the end of that first paragraph, it should be 'because people have not added a state yet' :P
17:42 forrest everything should work in a state.
17:42 elm thank you forrest
17:42 wangofett for newbies it would be super helpful to have a guide... I'm not sure how you could do a nice graphical representation of it
17:43 forrest elm, np
17:43 forrest wangofett, yeah that would be cool
17:43 forrest UtahDave, is anyone there any good with photoshop?
17:43 wangofett or gimp ;)
17:43 forrest yeah
17:43 wangofett or inkscape for that matter. Mmmmmm, vector graphics
17:44 jaimed joined #salt
17:44 * wangofett is working at his standup desk from home. His almost 1 y/o son is standing up at the regular desk "typing" at that keyboard
17:45 hobakilllll Any insight on how to fix this?:                 VPC security groups may not be used for a non-VPC launch
17:45 KennethWilke yay! nerds in training
17:46 wedgie trying to use this to set my http_proxy and https_proxy environment variables http://docs.saltstack.com/en/latest/ref/states/all/salt.states.environ.html  This gist shows the relevant part of my sls and the results: https://gist.github.com/anonymous/6f16f0ae45d3884b41e2   How is this supposed to work?
17:46 wangofett best part is I convinced my wife to let us name him Optimus Prime (well, two of his middle names, anyways). She liked the nickname OP ;)
17:46 smcquay joined #salt
17:46 KennethWilke lol nice
17:47 TTimo joined #salt
17:47 forrest wedgie, environ is only a module, use http://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html
17:48 forrest oh wait here's some docs on the state..
17:48 forrest hmm
17:48 rlarkin ok.  I'm just going to guess that I should use apt-get to install the debian package of salt-cloud , and then manually create a ~deploy directory and put a script there.
17:48 forrest wedgie, ahh you're using the format for the module in a state, use this: http://salt.readthedocs.org/en/latest/ref/states/all/salt.states.environ.html
17:48 berserk joined #salt
17:49 forrest wedgie, it doesn't look like everything is supported maybe?
17:49 forrest wedgie, you might still need to use the module, I haven't used it before though, so might take a bit of play
17:49 wedgie master and minion are both at version 2014.7.0rc1
17:49 forrest wedgie, no no, I just mean that only environ.setenv is supported in the state
17:49 forrest if that makes sense
17:49 wedgie forrest: ok, i'll look at that
17:49 forrest wedgie, cool, worst case, call the module using the link I provided a few ago to just call the module from the state ;P
17:50 aparsons joined #salt
17:53 TyrfingMjolnir joined #salt
17:55 elm forrest:  was able to make that work perfectly, thanks again
17:55 hobakilllll Network interfaces and an instance-level security groups may not be specified on the same request
17:55 hobakilllll odd considering i was following the documentation
17:56 bhosmer_ joined #salt
17:56 forrest elm, yeah np.
17:57 forrest hobakilllll, could you please create an issue so we can update those docs? Providing your 'not working' and 'working' examples would also be a great help
17:59 aparsons_ joined #salt
18:01 hobakilllll forrest: if i could get it 'working' i'd be happy to! :)
18:01 aparsons_ joined #salt
18:01 forrest hobakilllll, haha
18:04 rojem joined #salt
18:04 shaggy_surfer joined #salt
18:05 bhosmer_ joined #salt
18:07 Ozack1 joined #salt
18:12 Nss joined #salt
18:14 nitti_ joined #salt
18:14 bhosmer joined #salt
18:15 Nss I guys I'm testing saltstack to see if I can substitute chef with it and I was wondering, is there something similar to the chef supermarket (https://supermarket.getchef.com/) in the salt world? Something like a repository of states?
18:15 Nss s/I guys/Hi guys/
18:15 Gareth https://github.com/saltstack-formulas
18:16 Nss Gareth, TA
18:16 Gareth no worries.
18:17 aparsons joined #salt
18:19 tkharju joined #salt
18:20 Gareth wm-bot4: !formular
18:20 Gareth wm-bot4: !formulas
18:20 elzilrac hobakilllll: I was getting the "VPC Security groups..." error, but it resolved itself when I fussed around with where I was declaring the subnet id http://pastebin.com/MwWCV6G6
18:20 forrest !help
18:20 wm-bot4 I'm a documentation bot. To control me, please use #salt-bot to avoid channel spam. See this URL for my commands: http://meta.wikimedia.org/wiki/WM-Bot
18:20 manfred !formulas
18:20 forrest !formulas
18:20 aparsons joined #salt
18:20 roolo joined #salt
18:20 manfred ¯\(°_o)/¯
18:20 forrest there's no ! command that will pull the formulas repo
18:20 tcotav maybe it can't hear you -- try it in all caps
18:20 manfred forrest: how am I still ahead of you?
18:21 forrest manfred, I wasn't on most of yesterday
18:21 manfred me either
18:21 forrest yeah you've been ahead for the last week or so
18:21 manfred :P
18:21 murrdoc joined #salt
18:21 forrest I didn't make much progress while you were gone
18:21 manfred s/gone/busy
18:22 forrest manfred, right
18:22 ndrei joined #salt
18:24 elzilrac Another question, now on version salt 2014.7.0rc1 (Helium), I'm getting an error of [ERROR   ] EC2 Response Status Code and Error: [403 403 Client Error: Forbidden] {'Errors': {'Error': {'Message': 'The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.', 'Code': 'SignatureDoesNotMatch'}}, 'RequestID': '83256eba-
18:24 jalaziz joined #salt
18:24 aparsons joined #salt
18:24 arpunk joined #salt
18:25 ianmcshane joined #salt
18:25 elzilrac Switching back to version 2014.1 makes this go away. Should I just fall back to that and give up on using a newer branch?
18:26 luminous forrest: RE autodoc with sphinx, I'm thinking more along the lines of having docs embedded in the .sls files, which sphinx trolls through and auto-compiles
18:26 forrest elzilrac, I'd see if there's an issue for that, I don't know what has or hasn't been fixed between rc1 and the next rc.
18:27 forrest luminous, So would you have each ID in the state file have a section of docs? What is the goal that is accomplished there, that wouldn't be accomplished in the readme?
18:27 forrest luminous, I'm not trying to shoot down the idea, I'm genuinely curious
18:27 UtahDave elzilrac: yeah, please open an issue on that if there isn't one already.
18:28 metaphore joined #salt
18:31 luminous forrest: either each ID, or each .sls would have some sort of docstring equivalent
18:31 aparsons joined #salt
18:32 elzilrac Hmm. It actually may be with me. https://github.com/saltstack/salt/issues/14231 because I have to drop a parameter to fall back to the 2014.1 version.
18:32 luminous forrest: I'm not sure how much sense it makes
18:33 forrest luminous, look at the readme for this: https://github.com/saltstack-formulas/graphite-formula
18:33 forrest luminous, does that not accomplish what you're looking for
18:33 forrest *?
18:33 forrest it covers each sls file
18:34 forrest luminous, nginx is another good example: https://github.com/saltstack-formulas/nginx-formula
18:34 luminous forrest: in my idea, the list of available states would be auto-generated based on their presence and the docs within
18:35 forrest luminous, oh I see.
18:35 forrest well, the section right under 'available states' is automatically generated, but the actual details are manually generated
18:35 Ryan_Lane basepi: heh. that PR is being a bitch, eh? :)
18:35 forrest luminous, maybe something similar could be done
18:35 luminous forrest: the best implementation I see right now would require using the py renderer
18:35 forrest luminous, yeah
18:36 basepi Ryan_Lane: jenkins is being a bitch
18:36 Ryan_Lane :D
18:36 Ryan_Lane when are you guys making the salt replacement to jenkins? ;)
18:37 forrest lol
18:37 TTimo oh god so much yes
18:37 Ryan_Lane you have all the necessary stuff I'd imagine. webhook api, reactors, schedulers, a means to talk to workers and such
18:37 forrest let me know when someone writes a python replacement for jenkins that isn't buildbot
18:37 forrest because buildbot sucks
18:37 mapu joined #salt
18:37 forrest Ryan_Lane, and if you used the lxc/docker module...
18:38 forrest Ryan_Lane, really you just need a front end for it to create jobs
18:38 TTimo although we're so deep with jenkins, than a transition is almost impossible for us now
18:38 forrest that would be the biggest task
18:38 forrest TTimo, that's why you write the jenkins converter!
18:38 TTimo given a choice I'd still pick buildbot over jenkins to start over though ;-)
18:38 forrest no way man
18:39 forrest you can't even create new jobs from the buildbot interface
18:39 forrest you have to manually drop them into the conf, then restart the service
18:39 forrest it's a total failure
18:39 TTimo what I hate most about jenkins, is the lack of manual config edit, which is what you hate about bbot :)
18:40 forrest TTimo, I looked at rewriting part of it a while back to handle inserting jobs, it would have required almost a full rewrite.
18:40 forrest TTimo, I'll trade that over being 'job creation build tool bitch' :P
18:40 TTimo I cannot stand having to use the awful web interface to setup jobs in jenkins
18:40 forrest TTimo, do you set up all the jobs?
18:40 forrest I refuse to, the devs can do that
18:40 TTimo I'm a dev :)
18:40 TTimo dev, ops, it .. eck I do everything .. small companies :)
18:40 forrest but you have box access?
18:41 TTimo oh sure
18:41 forrest ahh yeah that makes sense
18:41 TTimo the xml that jenkins uses is awful though
18:41 forrest it doesn't here since the devs don't have system access, so I'd have to update EVERYTHING every time
18:41 forrest which I don't have the time to do
18:41 forrest I agree
18:41 forrest plus jenkins just randomly crashing for no reason
18:41 TTimo that too .. permgen space ?
18:41 forrest *shrug*
18:41 TTimo grumpy builders just refusing to take jobs and stuff
18:42 forrest heh
18:45 logix812 joined #salt
18:46 cognition joined #salt
18:46 dvestal joined #salt
18:46 cognition hello
18:46 cognition has anyone had success getting windows8.1 respond to salt master
18:47 forrest cognition, I haven't heard of anyone trying it on windows 8, UtahDave did you play with it at all?
18:47 cognition it connects by sending to master its minion key , turned off firewall even,
18:48 UtahDave cognition: do you have other minions connecting succesfully to the master?
18:48 cognition but salt '*' test.ping and all other requests time out
18:48 cognition yes, all the linux systems respond
18:49 kt_ joined #salt
18:50 bhosmer joined #salt
18:51 pentabular joined #salt
18:51 UtahDave cognition: can you verify the salt-minion service is running?
18:51 aparsons joined #salt
18:51 scalability-junk joined #salt
18:52 cognition yes, I added all exe to the accepted applications on in the firewall
18:53 cognition I've restarted the service a few times
18:53 cognition and added debug to the log file
18:53 UtahDave cognition: ok, stop the salt-minion service
18:54 cognition I'm very new to salt, but is there a cmd on a minion that will ping the master, or event run cmd on it self
18:54 ndrei joined #salt
18:54 UtahDave then open up a terminal by right-clicking on cmd and clicking on run as administrator (or whatever the phrasing is)
18:54 UtahDave then run the following commands
18:54 UtahDave cd \
18:54 UtahDave cd c:\salt
18:54 murrdoc joined #salt
18:55 UtahDave salt-minion -l debug -c c:\salt\conf
18:55 UtahDave Then see if you get any errors and then try to run a command from the master
18:55 cognition ok
18:55 floWenoL_ any tips on a way to find why one of my orchestration steps says it runs successfuly but does nothing
18:56 cognition it resent the key, but again it's different from the first
18:58 econnell there's no built in grain to report the netmask information on interfaces?
18:59 cognition the windows log is throughing an error about pickel.py
19:00 cognition exception can't pickel   its not found in salt.loaded.int.module.grains.filter
19:01 aparsons joined #salt
19:01 nitti joined #salt
19:02 vejdmn joined #salt
19:02 martoss joined #salt
19:02 floWenoL_ why does one of my orchestration highstate calls does nothing, need help to troubleshoot it
19:02 jchen floWenoL_: debug log?
19:02 floWenoL_ how?
19:02 pled76 joined #salt
19:03 jchen how are you runing highstate?
19:03 jchen salt-call or salt or?
19:03 floWenoL_ salt-call im calling an orchestration
19:03 cognition https://gist.github.com/jhawk28/1292883  mentions it back in 2011 was there any solution found?
19:03 floWenoL_ oh wait
19:03 floWenoL_ salt-run
19:03 to_json joined #salt
19:03 vejdmn joined #salt
19:04 jchen salt-run -l debug
19:07 cognition should I install python on the system?
19:08 vejdmn1 joined #salt
19:09 skyler Anyone know how to make a salt state only run if a particular minion exists? For example, switch service provider to local server, only if that local service provider has been provisioned.
19:09 pled76 joined #salt
19:09 aparsons joined #salt
19:10 forrest skyler, I think you'd need to use the reactor for something like that.
19:10 occup4nt joined #salt
19:11 skyler forrest: good, I didn't know if such a thing existed. Time to start reading up on the reactor.
19:12 cognition which version should I be using  for windows 8.1 64     2014.1.10   or    0.17.5-2 ?
19:13 freelock Hi,
19:13 freelock I'm trying the state group.present:, with - addusers
19:13 freelock but nothing seems to happen, the users are not getting added to the group
19:14 freelock things look ok when I use state.show_sls -- does this functionality work?
19:14 floWenoL_ minions set(['wfly1']) did not return in time
19:15 floWenoL_ found the possible problem
19:15 freelock http://pastebin.com/wMgwTR6b
19:15 pled76 joined #salt
19:15 freelock shows the evaluation of state.show_sls, after the jinja has been expanded... anything look wrong/explain why the two users don't get added to the rvm group?
19:16 MTecknology This is interesting... If I start a batch job, once everything is done executing and returning, salt just hangs until I press ^C
19:16 freelock state runs successfully, group is added, but no members
19:18 forrest MTecknology, can you rerun with debug to see if it's waiting on something?
19:18 forrest MTecknology, or strace the process and see what happens
19:19 MTecknology I can shortly
19:20 MTecknology (kicked off another job)
19:21 gothix joined #salt
19:21 pass_by_value joined #salt
19:22 jkaye joined #salt
19:23 freelock Hmm, that's interesting -- salt-call group.adduser rvm john
19:23 freelock fails with Function group.adduser is not available
19:23 freelock has this been removed?
19:24 shaggy_surfer joined #salt
19:26 tcotav wouldn't that be salt-call state.sls group.adduser rvm john   ?
19:27 pled76_ joined #salt
19:28 Setsuna666 joined #salt
19:29 kballou joined #salt
19:29 pass_by_value left #salt
19:29 pass_by_value joined #salt
19:30 freelock tcotav: was trying the module instead of the state
19:30 freelock module fails, state reports success but fails to add the user to the group
19:30 Setsuna666 Hi everyone! I'm currently using salt minions behind load balancing firewall/router (active/passive) that use IPTables and Conntrackd to sync states. When the current master firewall/router is rebooted, the salt minion loses its connection with the master and doesn't seem to try to reconnect in a timely fashion. Anyone know a parameter in the configuration to force the minion to reconnect after a while ?
19:31 MTecknology forrest: http://p.lustfield.net/salt_debug   it's currently still running with nothing printing. It seems to have finished
19:31 Setsuna666 So far, I've tried to adjust the ping_interval in the minion configuration file, but it does not work
19:32 metaphore joined #salt
19:33 freelock hmm, user.chgroups does work
19:33 XenophonF joined #salt
19:34 ipmb joined #salt
19:34 XenophonF for the file.managed state, how might I go about switching between source file and the contents of a pillar?
19:34 MTecknology forrest: strace is printing this, and only this,    "select(0, NULL, NULL, NULL, {0, 20000}) = 0 (Timeout)"    A massive pile of them and nothing else
19:35 murrdoc how long before rc1 goes full prod
19:35 XenophonF like i see a lot of "source: {{ salt['pillar.get']('something:filename', 'salt://something/files/filename') }}
19:36 XenophonF but i want to replace the file with the contents of the pillar, not just point to a different file name
19:36 XenophonF if that makese sense
19:36 murrdoc make it a template
19:36 murrdoc and pass in the params
19:36 XenophonF no, i got that, and i do that all over the place
19:36 murrdoc ok
19:37 XenophonF i want to be able to override the contents of the file directly from pillar
19:37 XenophonF sort of how like file.blockquote can get its contents from pillar
19:37 freelock ok, it looks like user.present - optional_groups meets my needs... and works!
19:37 XenophonF only with a managed file
19:37 XenophonF maybe the solution is to write both a file.managed and a file.blockquote state, then toggle between them
19:37 murrdoc you want to have a managed file but also with a file.blockquote
19:37 XenophonF but that's ugly
19:38 XenophonF no, i don't want to use file.blockquote
19:38 jkaye joined #salt
19:38 Corey Well this is novel. Every time I call highstate in this environment, all 415 resources report as succeeded.
19:39 Corey Only the things that change should be reporting this way.
19:39 XenophonF oh
19:39 XenophonF contents_pillar
19:40 XenophonF duhh
19:40 XenophonF ok should  have RTFMed
19:40 XenophonF I thought contents_pillar was for file.blockquote
19:40 XenophonF that's embarrasing :)
19:40 chrisjones joined #salt
19:45 aparsons joined #salt
19:46 aparsons joined #salt
19:48 laubossl1nk joined #salt
19:48 aquinas_ joined #salt
19:51 elfixit1 joined #salt
19:52 aquinas_ left #salt
19:55 aparsons joined #salt
19:56 aparsons_ joined #salt
20:00 pled76 joined #salt
20:00 MatthewsFace joined #salt
20:00 ggoZ joined #salt
20:01 Ryan_Lane how do I get states to show their timing data?
20:02 ndrei joined #salt
20:04 Ryan_Lane I've seen this randomly show up in state runs at various points during the dev cycle, but now I don't see them anymore
20:04 rmnuvg joined #salt
20:06 rap424 joined #salt
20:07 floWenoL_ minions set(['wfly1']) did not return in time <- any clues what may cause this
20:07 pled76 joined #salt
20:13 UtahDave Ryan_Lane: I'll find out.
20:15 bt2004 joined #salt
20:15 pled76_ joined #salt
20:15 kermit joined #salt
20:16 forrest MTecknology, Sorry I was at lunch, that's very odd.
20:16 forrest MTecknology, did you ever figure it out?
20:16 schimmy joined #salt
20:16 MTecknology forrest: I did not
20:16 forrest :(
20:17 bt2004 joined #salt
20:18 schimmy1 joined #salt
20:18 MrTango joined #salt
20:21 bt2004 left #salt
20:25 oz_akan_ joined #salt
20:26 murrdoc can i use pillars between pillar code (in python)
20:26 nitti joined #salt
20:27 floWenoL_ is there any way to induce some sort of wait
20:27 floWenoL_ like a sleep()
20:27 rap424 joined #salt
20:28 TaiSHi Wow, salt-cloud died on me
20:28 forrest maybe it doesn't like you TaiSHi
20:28 floWenoL_ or even better how to change the mine interval without restarting the minion
20:29 TaiSHi forrest: my boss wont like me either
20:29 murrdoc bad touch
20:29 forrest heh
20:29 TaiSHi Can't deploy VMs because DO is really slow on deploys
20:29 TaiSHi and salt is failing on ssh
20:29 congpine joined #salt
20:29 forrest TaiSHi, Really? Last time I set up digital ocean via salt-cloud it was ok
20:29 forrest I mean machines still took like 2-3 minutes to be ready
20:29 TaiSHi http://dpaste.com/3R8SS9V
20:30 TaiSHi ~ 20 min on mines, it happens every once in a while
20:30 UtahDave yeah, I usually get a fully deployed minion DigitalOcean in less than two minutes
20:30 forrest TaiSHi, :\
20:30 forrest that sucks
20:30 TaiSHi Now it deploys but I'm getting an error when deploying
20:30 forrest TaiSHi, well, why'd you break it?? :D
20:30 TaiSHi It was working!
20:30 TaiSHi :P
20:31 forrest UNTIL YOU MADE CHANGES!
20:31 forrest DUN DUN DUNNNNNNNnn
20:31 forrest daytime sysadmin soap opera
20:32 TaiSHi hmm
20:32 TaiSHi c'mon DO! DO ME!
20:32 forrest lol
20:32 TaiSHi it seems to be deploying well now
20:32 TaiSHi Now I need to solve that traceback issue
20:33 chrisjones joined #salt
20:34 floWenoL_ is it possible to change the mine_interval without restart?
20:34 floWenoL_ because that is what is screwing me
20:34 UtahDave floWenoL_: any config file change will require a restart
20:35 floWenoL_ damn
20:35 floWenoL_ because the restart is making some states fail
20:35 floWenoL_ yes i am running more states after
20:36 pled76 joined #salt
20:36 rlarkin joined #salt
20:38 occup4nt joined #salt
20:39 TaiSHi test -e /tmp/.saltcloud-7590ece9-d39a-41b8-aafc-c5b3430bf79c
20:39 TaiSHi Salt-cloud is dying there, of course, the file doesn't exists!
20:41 mpanetta Is there any particular reason that the salt event bus returns data twice for every job?  Once with a tag that is the JID and once with a tag that is salt/job/<JID>/ret/<MINION> ?
20:41 mpanetta And will it always have that behavior?
20:42 mpanetta Basically I am trying to watch the event bus for success/failure of jobs, but I am not quite sure which of the 2 events I should use...
20:42 mpanetta forrest: UtahDave ^^ maybe one of you guys know?
20:43 jkaye joined #salt
20:45 UtahDave mpanetta: it's for backwards compatibility.
20:45 UtahDave mpanetta: use  salt/job/bla/bla/bla
20:45 mpanetta Ah cool, thanks UtahDave
20:45 UtahDave that's the way forward.  The old way will be removed eventually.
20:45 mpanetta Good to know :)
20:46 TaiSHi yay ! It was a known issue fixed today
20:47 pled76 joined #salt
20:49 murrdoc can the top.sls have variables ?
20:49 murrdoc for eg
20:49 murrdoc 'G@servertype:blah'
20:49 murrdoc - match:compound
20:50 murrdoc - include {{ grain[servertype] }}
20:50 murrdoc or some such thing
20:50 murrdoc thoughts ?
20:56 William joined #salt
21:00 nitti_ joined #salt
21:01 aparsons joined #salt
21:06 drowe in the dict that gets returned from __salt__['cmd.run'], result is True iff the return code is 0, yes?
21:07 pentabular left #salt
21:07 TaiSHi Oh god
21:11 kermit joined #salt
21:14 oz_akan joined #salt
21:14 wendall911 joined #salt
21:15 JPaul doesn't the onlyif work with cmd.run in a sls?
21:15 JPaul I tried using it and thanks to another issue I realized my command still ran even though the onlyif shouldn't have been satisfied
21:16 JPaul (had it running an "ls" on a file that didn't exist"
21:17 pled76 joined #salt
21:18 JPaul oh, nevermind, just noticed it's in 2014.7.0, I'm using 2014.1.10
21:19 oncallsucks joined #salt
21:20 aparsons joined #salt
21:23 patarr joined #salt
21:23 patarr joined #salt
21:25 debian112_ joined #salt
21:27 debian112_ anyone use: salt-ssh
21:28 debian112_ I think I found a bug: host: doesn't resolve hostnames
21:28 debian112_ works fine with IP addresses
21:31 flebel joined #salt
21:31 patarr joined #salt
21:31 patarr joined #salt
21:32 debian112_ nevermind typo on my part
21:33 TheThing joined #salt
21:33 aparsons joined #salt
21:34 aparsons_ joined #salt
21:36 patarr joined #salt
21:36 linjan joined #salt
21:39 duncanmv joined #salt
21:40 patarr joined #salt
21:40 patarr joined #salt
21:42 Outlander joined #salt
21:42 UtahDave Ryan_Lane: Hey, got some info on those timings you are seeing
21:44 TheThing joined #salt
21:45 pled76 joined #salt
21:46 kingel joined #salt
21:46 catpigger joined #salt
21:46 TaiSHi What's the difference between develop and 2014.7 branches ?
21:47 Ryan_Lane UtahDave: well the timings I'm not seeing ;)
21:47 UtahDave heh. yeah.
21:47 Ryan_Lane UtahDave: I actually want to see the profiling data
21:47 nitti joined #salt
21:47 UtahDave You should be able to see it if you run your highstate in debug mode.
21:47 Ryan_Lane only if it's in debug? :(
21:47 sectionme joined #salt
21:47 Ryan_Lane I'd like to get that data back all the time
21:48 UtahDave also cachedout thinks some of the info might be in the outputter
21:48 murrdoc you can set log levels by type it seems
21:48 murrdoc so u can pick the modues u want hte debug data for
21:48 Ryan_Lane it would be awesome to get profiling data for all parts of the system
21:48 UtahDave yeah, I can see that being really useful.  I'm doing some testing here to see when I can see it.
21:48 murrdoc TaiSHi:  https://github.com/saltstack/salt/compare/2014.7
21:48 Ryan_Lane and a summary in the run (with grain profiling data) would be awesome too
21:49 Ryan_Lane then I could send my highstate data into statsd
21:49 UtahDave Ryan_Lane: Yeah, it would.  I think that could be done in a custom outputter, or an option into the highstate outputter
21:50 murrdoc param in highstate would be nice
21:50 murrdoc then send it back as a pull request to the saltstack :D
21:52 TaiSHi murrdoc: I meant, the theory :P
21:52 murrdoc hah code is troof!
21:53 melinath joined #salt
21:53 TaiSHi What does it mean someone cherry picked a commit ?
21:54 UtahDave Ryan_Lane: so I'm on develop here.  when I run a highstate each state result has a "Started" field with a timestamp  and a "Duration" field in ms
21:54 Ryan_Lane UtahDave: when running without debug log level?
21:54 UtahDave yeah
21:54 Eugene TaiSHi - man git cherry-pick. It's a command which will take the diff+message of a commit(s), and then re-apply then against your current state.
21:54 murrdoc means instead of getting the whole thread of work, they only brought the one commit over
21:54 UtahDave Ryan_Lane: That's on the very latest develop
21:55 Ryan_Lane oh. it's not in 2014.7 branch?
21:55 TaiSHi Eugene: thanks
21:55 Eugene Also, totally thought this was #git, hahy
21:55 UtahDave Ryan_Lane: let me switch to that branch and check
21:56 TaiSHi Eugene: :P Now Im off, thanks again!
21:56 UtahDave Ryan_Lane: Here's my output without -l debug.    just    salt boucha state.sls nano
21:56 UtahDave http://pastebin.com/kRrUAu9z
21:56 UtahDave Ryan_Lane: is that what you're referring to?
21:57 Ryan_Lane UtahDave: that's on the 2014.7 branch?
21:57 Ryan_Lane yeah, that
21:57 UtahDave that's develop.  Let me check 2014.7
21:59 wangofett Does anyone know if it's possible to run a command to download a file - I was trying to do `salt '*' cp.get_file http://blahblah/file.txt /remote/file.txt` but that just... does nothing
21:59 wangofett minion is a Windows machine
22:01 elzilrac Sorry guys, still struggling with elasic IP's.
22:01 elzilrac I'm getting salt-cloud: error: There was a profile error: Could not associate elastic ip address <None> with network interface <eni-XXXXX>
22:02 elzilrac Which uses the allocate_new_eip argument, which should be generating an elastic IP, and not <None>
22:03 UtahDave Ryan_Lane: Yeah, on the latest from the 2014.7 branch I'm getting the same thing
22:03 Ryan_Lane awesome
22:04 Ryan_Lane I obviously just need to switch to the RC already ;)
22:05 wangofett oh look... cp.get_url
22:05 aparsons joined #salt
22:06 rojem joined #salt
22:06 UtahDave Ryan_Lane: Just tested 2014.1 branch and no timing data is in the highstate output
22:07 elzilrac Oh man. Wow. Nevermind on the Elastic IP question. I maxed out the number I can request.
22:07 Ryan_Lane UtahDave: well, I'm at a random hash in 2014.7
22:07 UtahDave elzilrac: Hm. Sounds like salt-cloud could notify you better about that condition.
22:07 Outlander joined #salt
22:07 UtahDave Ryan_Lane: Russian Salt Roulette?  :)
22:08 Ryan_Lane UtahDave: well, I ensure nothing is broken by building every single service from scratch in docker
22:08 bezeee joined #salt
22:09 aparsons joined #salt
22:10 UtahDave cool.
22:10 UtahDave Ryan_Lane: What are you doing for the pid 1 problem?
22:10 dstokes anybody else up against the unicode error described here? it's borking bootstrapping for me (highstate dies in the middle) https://github.com/saltstack/salt/issues/12399#issuecomment-52927250
22:11 nitti joined #salt
22:11 dstokes only happens on first run
22:12 aparsons joined #salt
22:12 Outlander joined #salt
22:12 elzilrac @UtahDave: is that something you'd appreciate a feature request about, or do small requests like that cause too much chatter?
22:13 carmony uh oh, you guys are getting kinda high on your PR count :P
22:13 UtahDave elzilrac: Actually it would be very helpful if you would open a feature request on that.
22:13 elzilrac Will do!
22:13 UtahDave carmony: Tom is moving today and tomorrow, so he's been pretty much off line.  :)
22:14 carmony ahhhh
22:14 carmony I do not envy that
22:14 UtahDave me neither. I HATE moving.
22:14 carmony I think it is one of the worst activities you have to do in life
22:14 oz_akan joined #salt
22:14 UtahDave He's pretty close to me, though, so I might be able to convince him to carpool with me.
22:14 carmony haha, nice
22:16 wangofett Huuuuhhh.... UtahDave - if `salt '*' file.access /temp f` (and w, and x) return True, should I be able to run `salt '*' cp.get_url http://path/to/file /temp`? Because on this windows machine, I can't
22:18 UtahDave wangofett: isn't    /temp  not a valid path on Windows?
22:18 wangofett it exists - it's not a typical path (anymore) but it does exist on this particular machine in question
22:19 UtahDave on a windows machine?
22:19 oz_akan joined #salt
22:20 UtahDave wangofett: that being said, the cp module was written very early on.  I'll have to look at the code, but I wouldn't be surprised it didn't take Windows into account
22:20 wangofett UtahDave: yeah. Here's the exception I get: https://gist.github.com/waynew/f14ca656957e4ca0381b
22:20 UtahDave wangofett: can you test with a more standard windows path like  c:\temp   or something like that?
22:22 viq joined #salt
22:22 wangofett with that I just get back an empty response
22:22 wangofett no file creation
22:24 wangofett herp
22:24 TheThing joined #salt
22:24 wangofett was doing cp.get_file
22:25 sctsang joined #salt
22:25 intellix joined #salt
22:26 shaggy_surfer joined #salt
22:28 wangofett hah. I see what was happening, UtahDave, I was passing the directory as the destination
22:29 wangofett UtahDave: rather than behaving as linux cp (dumping it in the dir if the dest is a dir, or as the filename if nothing exists) it was just trying to save the file as the directory... and Windows doesn't like that ;P
22:30 UtahDave ah, that makes sense.
22:30 floWenoL_ isnt the require supposed to wait for the required states to finish?
22:30 floWenoL_ because I am having states being logged before some that shouldnt
22:31 UtahDave floWenoL_: yep
22:31 wangofett UtahDave: I think the most confusing thing for me was that get_file appears to do nothing if the source file doesn't exist, rather than a file not found
22:32 floWenoL_ UtahDave: then why the hell do i see the output before :S
22:32 UtahDave hm. odd
22:32 UtahDave floWenoL_: maybe your requires are malformed?
22:34 floWenoL_ UtahDave: dont think so
22:34 floWenoL_ i can share my orchestration with you
22:34 UtahDave floWenoL_: that would be great
22:35 floWenoL_ http://pastebin.com/YXDSpaPk
22:36 floWenoL_ I see output from the master-setup before the miner-setup
22:37 floWenoL_ there may be a problem because I need to restart the minions on the miner-setup
22:37 UtahDave what's the command you're running at the cli?
22:38 floWenoL_ salt-run state.sls orchestration.orchestration_name
22:38 UtahDave what version of salt?
22:38 floWenoL_ latest
22:38 UtahDave can you give me a version number?
22:38 floWenoL_ if you tell me how to get it
22:39 UtahDave on your master:    salt-master --version
22:39 floWenoL_ salt-master 2014.1.10 (Hydrogen)
22:39 floWenoL_ installed today with bootstrap.sh
22:40 murrdoc left #salt
22:40 murrdoc joined #salt
22:41 aparsons joined #salt
22:41 UtahDave floWenoL_: Hm. I don't see any problems with your syntax
22:42 mechanicalduck joined #salt
22:42 floWenoL_ neither do i
22:42 floWenoL_ it may be a side effect now that i think about it
22:43 floWenoL_ i need to change the mine frequency
22:43 floWenoL_ to do that i need to restart the minions
22:44 floWenoL_ if I restart them via service.started when it reaches the wfly1 state doesnt run it because of another error
22:44 UtahDave floWenoL_: You might want to make the restart be a separate state that runs at the very end.
22:44 floWenoL_ i need it to run at start
22:44 floWenoL_ thats my problem
22:44 floWenoL_ the configurations depend on those mine functions
22:45 floWenoL_ unless I can replace it by something else
22:45 floWenoL_ i am using them to get some grains
22:45 manfred floWenoL_: are you using the mine functions in jinja?
22:45 floWenoL_ wait let me show you
22:46 floWenoL_ {% for server, grains in salt['mine.get']('wfly*', 'grains.items').items() %}
22:46 twiedenbein hi floWenoL_
22:46 UtahDave floWenoL_: you can call a mine update. So you don't have to wait for the 60 second poll
22:47 manfred even if you call a mine.update, the jinja has already been rendered before you get to that
22:47 kingel joined #salt
22:47 manfred you would have to call a mine.update, and then go into the highstate, so you wouldneed orchestrator or overstates
22:47 floWenoL_ i am using orchestrator
22:47 floWenoL_ so no problem
22:48 davet1 joined #salt
22:48 UtahDave floWenoL_: right, so have your very first state call a mine.update on all the servers that need it. Bam!
22:48 manfred yeah, so you need to have the state where you set the grain call a mine.update
22:49 floWenoL_ guess i will restart them on end
22:50 UtahDave floWenoL_: why do you need to change the polling interval?
22:50 sectionme joined #salt
22:50 floWenoL_ now i see that i dont need
22:51 dccc joined #salt
22:51 whytewolf joined #salt
22:52 melinath joined #salt
22:53 whytewolf joined #salt
23:04 bezeee joined #salt
23:04 nitti joined #salt
23:04 Ryan_Lane is there any way to ensure state runs are disabled?
23:05 Ryan_Lane in puppet you can do something like: puppet client disable
23:05 Ryan_Lane and if anyone runs puppet it'll say it's disabled
23:06 murrdoc good question
23:06 murrdoc u mean runs on the minion ?
23:06 murrdoc or on the master
23:06 manfred i don't think there is a way to do that, besides setting a grain, and running all your runs with compound 'and $grain: enabled'
23:07 forrest Ryan_Lane, just use ACLs and disable states for everyone, duh :P
23:07 manfred heh
23:08 Ryan_Lane forrest: I'm using masterless
23:08 murrdoc i figured http://docs.saltstack.com/en/latest/ref/configuration/minion.html#disable-modules might help
23:08 murrdoc but thats bad
23:08 Ryan_Lane does the acl system even exist there?
23:08 forrest Ryan_Lane, oh right I forgot that.
23:08 forrest Ryan_Lane, pretty sure it doesn't :(
23:08 Ryan_Lane also, that's a terribly complicated way to handle that
23:08 forrest there is a bunch of stuff that doesn't exist for masterless setups that I wish did
23:08 forrest Ryan_Lane, yes I was joking
23:08 Ryan_Lane :)
23:08 Ryan_Lane I'm thinking of writing a state that just fails when it sees a file in existence
23:08 forrest that could work
23:08 Ryan_Lane and adding another state that'll either add or remove it
23:08 Ryan_Lane I use failhard anyway
23:14 forrest Ryan_Lane, sounds like busy work, but if that's the only option
23:14 Ryan_Lane yeah
23:14 Ryan_Lane would be nice for this to be a one-liner in salt-call
23:15 murrdoc well if use a lock file
23:15 murrdoc you could have in your top.sls
23:15 nitti joined #salt
23:15 murrdoc 'G@locked:true'
23:15 murrdoc - run noop state
23:15 mosen joined #salt
23:15 Ryan_Lane anything that matches in the top file will be included
23:15 Ryan_Lane so that won't work
23:16 murrdoc oh word ?
23:16 murrdoc i thought it did either or
23:16 Ryan_Lane we use a 'base' include for every service, though, and it's always run first
23:16 murrdoc like match '*' or a more exact match
23:16 Ryan_Lane and we use failhard, so if the first state checks and fails, it'll exit
23:16 Ryan_Lane I'm pretty sure it includes everything that matches
23:16 Ryan_Lane pillars do for sure
23:17 murrdoc not unless u do a match:compound
23:17 Ryan_Lane but I'm nearly positive everything is included
23:17 Ryan_Lane no, for sure if you have '*' matching and a more specific match it'll include both (for sure for pillars)
23:17 murrdoc yes for pillars
23:17 murrdoc i meant more for top.sls
23:18 Ryan_Lane pillars use a top.sls
23:18 Ryan_Lane and as far as I know state and pillar top.sls files work the same way
23:18 Ryan_Lane if they don't salt should be ashamed of itself
23:18 murrdoc damn
23:18 murrdoc haha
23:18 rlarkin ah, I just realized that _grains has to be a directory?
23:19 manfred yes
23:19 rlarkin I could swear the other day I had a file /srv/salt/my_private_env/_grains and that file got synced
23:19 manfred /srv/salt/_grains
23:19 rlarkin now I can't make it work, and I see a comment from UtahDave about a _grains directory.
23:19 manfred if your environment directory is /srv/salt/my_private_env/_grains ... then maybe?
23:20 rlarkin it's a file at the moment , with a list of grains.
23:20 oz_akan joined #salt
23:20 shaggy_surfer1 joined #salt
23:21 UtahDave Ryan_Lane: yeah, anything that matches in the top file will be processed
23:21 * Ryan_Lane nods
23:21 murrdoc i was hoping for a match:compound
23:21 murrdoc match:exclusive thing
23:21 nitti joined #salt
23:21 UtahDave rlarkin: _grains is a directory
23:21 murrdoc maybe base:'*' is a bad idea
23:22 Ryan_Lane murrdoc: it is if you don't want it to always be included :)
23:22 murrdoc yeah
23:22 murrdoc node groups will be better
23:22 murrdoc anyhow
23:22 rlarkin I just made a _grains folder and moved my file to _grains/grains
23:22 Ryan_Lane I have a very explicit setup, so I always know 100% how things will match
23:23 manfred Ryan_Lane: yo, did you publish your blog?
23:23 Ryan_Lane I did
23:23 manfred cool
23:23 Ryan_Lane manfred: http://ryandlane.com/blog/2014/08/26/saltstack-masterless-bootstrapping/
23:23 manfred yar
23:23 manfred i need to finish mine
23:23 bhosmer joined #salt
23:24 dvestal joined #salt
23:25 manfred i have 4 in the works...
23:26 murrdoc this blog doesnt have a picture of u ryan
23:26 murrdoc doesnt look legit
23:26 Ryan_Lane heh
23:26 murrdoc u need more http://jonhendren.com/
23:26 Ryan_Lane hahaha
23:27 manfred murrdoc: http://vimeo.com/95066828
23:27 murrdoc hahaha i will watch this
23:27 murrdoc thanks manfred
23:27 murrdoc i just realised '*' should just have 'should salt run or not' state in
23:27 murrdoc for our setup
23:27 murrdoc oh well
23:27 murrdoc late
23:27 chitown i have some pillars with a bunch of if/elif using a grain
23:28 chitown i'd like to be able to set the grain (via the client api) and read what the result pillar dict would look like
23:28 chitown thoughts?
23:28 chitown resulting*
23:29 manfred salt \* grains.setval key value
23:29 manfred salt \* pillar.items
23:29 chitown no, not all of the grains are actually set on working minions
23:29 chitown ec2 env... some minions may be down at the time i run this command
23:30 chitown not ideal... its the env i inherited :/
23:31 chitown look like LocalClient i can specify the grain and then run pillar.items
23:32 chitown duh... that grain is for matching the minion... :/
23:33 nitti joined #salt
23:35 nitti_ joined #salt
23:36 rlarkin doh. manfred, that's what I was doing the other day, 'grains.setval ' a _grains file never did work.
23:40 bhosmer joined #salt
23:42 bnikolaus In looing at http://docs.saltstack.com/en/latest/topics/tutorials/states_pt4.html
23:43 bnikolaus if you ran salt --pillar 'webserver_role:dev' state.highstate what is the hostname that it would push state too?
23:44 rlarkin any instance that matches webserver_role: dev
23:44 rlarkin ?
23:51 bnikolaus I guess I don't understand the matching peice.
23:51 sectionme joined #salt
23:52 bnikolaus I want to match instance names to environments, but still be able to move my way from dev,qa,prod like in this
23:56 dvestal joined #salt
23:59 nitti joined #salt
23:59 TTimo joined #salt
23:59 Setsuna666 joined #salt
23:59 Setsuna666 Hi everyone. Is there a built-in function in salt that allow you to read the content of a file, beside doing a cmd.run cat /path/to/file ?

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