Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-07-21

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

All times shown according to UTC.

Time Nick Message
00:10 otter768 joined #salt
00:12 steveoliver found it — #sryfornoise https://github.com/saltstack-formulas/mysql-formula/issues/25
00:17 MK_FG joined #salt
00:20 allanparsons joined #salt
00:24 napper joined #salt
00:37 elfixit joined #salt
00:52 oz_akan joined #salt
01:11 ajolo joined #salt
01:31 gzcwnk joined #salt
01:34 arthabaska joined #salt
01:47 TheThing joined #salt
01:52 aquinas joined #salt
01:57 vbabiy joined #salt
01:57 n8n joined #salt
02:07 Eugene joined #salt
02:07 TyrfingMjolnir joined #salt
02:07 oz_akan joined #salt
02:09 yetAnotherZero joined #salt
02:13 dave_den joined #salt
02:13 ekristen joined #salt
02:13 dave_den left #salt
02:13 lionel joined #salt
02:20 dave_den1 joined #salt
02:21 higgs001 joined #salt
02:24 Eugene joined #salt
02:27 zain_ joined #salt
02:31 dave_den1 left #salt
02:38 jalaziz joined #salt
02:44 ckao joined #salt
02:53 dimeshake joined #salt
03:12 Nexpro1 joined #salt
03:24 kermit joined #salt
03:28 holys joined #salt
03:28 krow joined #salt
03:28 holys joined #salt
03:31 jamesbdev joined #salt
03:37 yomilk joined #salt
03:41 krow1 joined #salt
03:47 TyrfingMjolnir joined #salt
03:50 lionel joined #salt
03:52 TyrfingMjolnir joined #salt
04:02 [HACKING-TWITTER joined #salt
04:06 TheThing joined #salt
04:16 chamunks joined #salt
04:16 ramishra joined #salt
04:17 Sauvin joined #salt
04:18 allanparsons joined #salt
04:42 ramishra joined #salt
04:48 jghazally joined #salt
04:56 manytrees joined #salt
04:59 krow joined #salt
05:13 badon_ joined #salt
05:14 tyson_ joined #salt
05:15 ramteid joined #salt
05:17 jamesbdev joined #salt
05:18 [HACKING-TWITTER joined #salt
05:25 tyson__ joined #salt
05:27 scarcry joined #salt
05:29 krow joined #salt
05:35 [HACKING-TWITTER joined #salt
05:38 [HACKING-TWITTER joined #salt
05:38 tyson_ joined #salt
05:42 [HACKING-TWITTER joined #salt
05:45 [HACKING-TWITTER joined #salt
05:45 tyson_ joined #salt
05:47 [HACKING-TWITTER joined #salt
05:48 yomilk joined #salt
05:51 krow joined #salt
05:54 krow joined #salt
06:09 sieve joined #salt
06:13 zlh joined #salt
06:16 tyson_ joined #salt
06:17 tyson__ joined #salt
06:17 roolo joined #salt
06:20 krow joined #salt
06:22 ajolo joined #salt
06:22 Ryan_Lane joined #salt
06:24 saravanans joined #salt
06:37 picker joined #salt
06:42 krow1 joined #salt
06:53 sword-_ joined #salt
06:56 yomilk joined #salt
06:56 jghazally joined #salt
06:59 krow joined #salt
07:00 vu joined #salt
07:01 ndrei joined #salt
07:01 sword-_ left #salt
07:03 q1x joined #salt
07:03 sectionme joined #salt
07:07 krow1 joined #salt
07:08 ml_1 joined #salt
07:17 picker joined #salt
07:18 krow joined #salt
07:22 Ryan_Lane joined #salt
07:26 chiui joined #salt
07:27 krow1 joined #salt
07:37 krow joined #salt
07:39 beando joined #salt
07:39 anuvrat joined #salt
07:39 jhauser joined #salt
07:41 slav0nic joined #salt
07:48 kiorky_ joined #salt
07:49 kiorky joined #salt
07:51 intellix joined #salt
07:53 linjan joined #salt
07:54 sieve joined #salt
07:55 ghartz joined #salt
07:58 saravanans joined #salt
07:59 topochan joined #salt
08:02 matthiaswahl joined #salt
08:06 sieve joined #salt
08:15 Lomithrani joined #salt
08:18 N-Mi joined #salt
08:24 kiorky joined #salt
08:26 kiorky joined #salt
08:27 kiorky joined #salt
08:27 darkelda joined #salt
08:27 darkelda joined #salt
08:28 sectionme It seems the cp.url_get method doesn't keep its HTTP Auth headers when given a redirect to follow. Anyone know if this is a urllib issue or Salt?
08:28 kiorky joined #salt
08:32 babilen joined #salt
08:34 sectionme s/cp\.url_get/cp\.get_url/g
08:43 robinsmidsrod joined #salt
08:45 tyson_ joined #salt
08:49 stephanbuys joined #salt
08:52 intellix joined #salt
08:53 ramishra joined #salt
08:57 saravana_ joined #salt
08:58 nliadm joined #salt
09:00 xzarth joined #salt
09:02 saravanans joined #salt
09:03 giantlock joined #salt
09:16 babilen Are reactor files simply parsed into Python dictionaries? Or rather are the two things equivalent: https://www.refheap.com/88412
09:17 TheThing joined #salt
09:29 babilen It is indeed. I hate YAML, but luckily one can use Python :)
09:40 sieve joined #salt
09:40 TheThing joined #salt
09:43 beando joined #salt
09:47 babilen Ah, no that doesn't work. And there I had hoped that I could use all renderers for reactors too. If anyone managed that I'd be happy to hear how. Right now I run into: https://www.refheap.com/88414
09:51 babilen I guess that I have to return highstate data from there
09:52 krow joined #salt
09:52 majoh joined #salt
09:59 ggoZ joined #salt
10:03 babilen Where can I find a specification of the highstate datastructure in Python?
10:08 saravanans joined #salt
10:09 saravana_ joined #salt
10:18 sectionme joined #salt
10:19 vu joined #salt
10:21 che-arne joined #salt
10:30 greyhatpython joined #salt
10:30 greyhatpython joined #salt
10:32 cDR_ joined #salt
10:32 beando joined #salt
10:36 CeBe joined #salt
10:48 krow joined #salt
10:51 vu joined #salt
10:52 TyrfingMjolnir joined #salt
11:01 n8n joined #salt
11:08 ramishra joined #salt
11:14 ml_1 joined #salt
11:21 masterkorp Guys any documentation on doing custom states ?
11:22 ggoZ joined #salt
11:24 jeddi joined #salt
11:26 cDR_ Guys, perhaps a strange question; The top.sls file on the master applies multiple state files to a minion in my case, how can I prevent running the next state file if the current state file fails? (sort of break function, return minion)
11:27 cDR_ AFAIK all state files will be applied regardless of errors right?
11:28 Lomithrani joined #salt
11:29 viq cDR_: proper require settings in the states themselves
11:31 jeddi joined #salt
11:32 derelm joined #salt
11:34 cDR_ Thanks Viq, overread that
11:35 viq masterkorp: http://docs.saltstack.com/en/latest/ref/states/writing.html ?
11:39 diegows joined #salt
11:47 babilen masterkorp: What are custom states?
11:48 che-arne joined #salt
11:49 masterkorp babilen: i want to write a state for checks
11:49 babilen masterkorp: If you want to write your own states then I would take a look at the way other states are implemented and simply copy that style. If you have specific questions then ask. There is also http://docs.saltstack.com/en/latest/ref/states/writing.html and http://docs.saltstack.com/en/latest/ref/modules/
11:49 baumgf joined #salt
11:51 baumgf Hey. Does anyone know how to manage a file only if it already exists? If tried both specifying the filename as a requires as well as requires/file-exists but salt still tries to create the file if its not there
11:53 viq baumgf: one state with file.exists and then require that in file.managed
11:53 intellix joined #salt
11:53 viq baumgf: and requires only references existing states, so requiring a file name is meaningless unless you define a state with that name
11:55 baumgf viq: oh, that makes a lot of sense. Thanks a lot, I'll try that immediatly.
11:57 vu joined #salt
12:01 logix812 joined #salt
12:03 yomilk joined #salt
12:04 hobakill joined #salt
12:04 sverrest joined #salt
12:05 TheThing joined #salt
12:07 hobakill morning all. riddle me this: can pkg.installed inside an init.sls for windows packages be treated the same as linux ones?
12:08 tinuva joined #salt
12:16 pclermont joined #salt
12:23 ramishra joined #salt
12:27 zemm joined #salt
12:30 vu joined #salt
12:37 ndrei joined #salt
12:41 patrek joined #salt
12:44 giannello joined #salt
12:45 giannello root@salt:/var/log# salt 'G@applications:app and G@application_environment:staging and (G@roles:couchbase)' -C test.ping
12:45 giannello No minions matched the target. No command was sent, no jid was assigned.
12:45 giannello works properly after removing the brackets
12:46 giannello the problem is that I need the brackets - (G@roles:couchbase or G@roles:mysql or G@roles:rabbitmq)
12:49 vu joined #salt
12:49 giannello oh, nevermind
12:49 giannello "Be certain to note that spaces are required between the parentheses and targets. Failing to obey this rule may result in incorrect targeting!"
12:51 tkharju joined #salt
12:52 dzen :win 1
12:54 ccase joined #salt
12:55 krow joined #salt
12:57 jalbretsen joined #salt
12:59 krow joined #salt
13:00 mpanetta joined #salt
13:05 saravanans joined #salt
13:06 bhosmer joined #salt
13:09 racooper joined #salt
13:10 mpanetta_ joined #salt
13:11 mpanetta joined #salt
13:13 mpanetta_ joined #salt
13:19 higgs001 joined #salt
13:20 saravanans joined #salt
13:21 UtahDave joined #salt
13:25 kryptt joined #salt
13:25 kryptt working on a nagios-formula : https://github.com/kindleit/nagios-formula
13:25 mpanetta joined #salt
13:27 mpanetta joined #salt
13:28 oz_akan joined #salt
13:29 UtahDave1 joined #salt
13:31 mpanetta_ joined #salt
13:31 m1crofarmer joined #salt
13:32 TyrfingMjolnir joined #salt
13:33 sieve1 joined #salt
13:35 sieve2 joined #salt
13:39 pressureman joined #salt
13:39 pressureman hi, i'm getting a "Failed to connect to the Master, is the Salt Master running?" error message when trying to run salt commands on the master as non-root, presumably due to /var/run/salt being only root-readable
13:40 pressureman this seems to have changed at some point in the last month or two, as this used to work
13:41 pressureman is there some config option that specifies the perms / ownership for /var/run/salt?
13:41 diegows joined #salt
13:41 bhosmer joined #salt
13:42 UtahDave left #salt
13:48 aquinas joined #salt
13:50 ghaering joined #salt
13:51 smcquay joined #salt
13:53 jh0486 joined #salt
13:56 quickdry21 joined #salt
13:56 hobakill more windows install annoyances. getting this "Minion function caused an exception" error: http://paste.debian.net/110790/
13:57 laubosslink joined #salt
13:57 hobakill trying to test a basic install of firefox using a local windows software repo and the debug on the minion isn't being super helpful
13:59 jghazally joined #salt
14:00 baumgf Hey guys, I want to manage configuration files for Windows software but unlike for the Windows Software Repository I can't find a magic variable %PROGRAMFILES%, so my state has all kind of if and else conditions for possible program files locations which is not very pretty. Is there a way around that?
14:01 ajprog_laptop1 joined #salt
14:04 matthew-parlette joined #salt
14:05 kavakava joined #salt
14:06 seanz joined #salt
14:08 dude051 joined #salt
14:11 derelm_ joined #salt
14:11 vejdmn joined #salt
14:11 brandon_ joined #salt
14:13 sieve1 joined #salt
14:13 housl joined #salt
14:14 XenophonF joined #salt
14:14 mechanicalduck_ joined #salt
14:16 dude051 joined #salt
14:16 vejdmn joined #salt
14:17 higgs001 joined #salt
14:18 dimeshake joined #salt
14:19 sieve1 joined #salt
14:20 mechanicalduck joined #salt
14:21 jh0486 Hey Guys - I am working on automated node deployment and I need to externally register minions with the salt-master at provision time. Is the best way to accomplish this through the netapi?
14:21 jh0486 I am reading through the documentation to see if all the functionality exists there, I was just wondering how other people have approached this.
14:22 taterbase joined #salt
14:23 saravanans joined #salt
14:24 ghartz joined #salt
14:26 mechanicalduck joined #salt
14:29 poogles joined #salt
14:30 hobakill jh0486: are you using vSphere ?
14:31 kivihtin joined #salt
14:31 che-arne joined #salt
14:32 wendall911 joined #salt
14:33 jh0486 Bare-Metal and vsphere
14:34 elfixit joined #salt
14:34 cnelsonsic joined #salt
14:34 rallytime joined #salt
14:34 nicksloan left #salt
14:35 pclermont luminous: btw, thanks for the reclass suggestion, the tool does exactly what I need.
14:37 kivihtin joined #salt
14:40 hobakill jh0486: if your minions are linux i wrote a dirty but effective script to put in your rc.local file if you're interested. if your minions are windows then i'm just about the last person you should talk to...
14:42 TyrfingMjolnir joined #salt
14:46 btorch is there a way to set grains' subkeys individually without loosing the previous subkeys ?
14:46 sieve1 joined #salt
14:46 XenophonF joined #salt
14:47 XenophonF i really, really wish file.accumulated and file.blockreplace supported source/sources arguments
14:49 thedodd joined #salt
14:52 doddstack joined #salt
14:52 saravanans joined #salt
14:53 jeremyBass1 joined #salt
15:02 dave_den joined #salt
15:04 stephanbuys joined #salt
15:04 hobakill has anyone had any success using salt to install windows packages via an init.sls ?
15:04 DaveQB joined #salt
15:05 dude^2 joined #salt
15:06 dude^2 joined #salt
15:06 hobakill every time i try to run a highstate on my windows test box i get an AttributeError... http://paste.debian.net/110790/
15:14 TyrfingMjolnir joined #salt
15:14 XenophonF hobakill: what does the state look like?
15:15 hobakill XenophonF: one sec. i'm going to try something out and see if i'm just not being a huge derp again
15:16 jaimed joined #salt
15:18 hobakill XenophonF: http://paste.debian.net/110805/  <------------- this is getting me past those py errors but i'm not sure exactly how to format/structure a windows package install sls
15:20 XenophonF hobakill: I think the state is misdefined
15:21 XenophonF syntax error
15:23 XenophonF hobakill: here's an example - https://github.com/saltstack/salt-winrepo/blob/master/nsclient.sls
15:24 hobakill XenophonF: yep. but if i take out the pkg.instaleld i get the py AttributeError
15:24 derito joined #salt
15:25 pclermont anyone managed to get the top.sls replaced by reclass ?
15:26 XenophonF hobakill: maybe you're mixing the package repo syntax with the state file syntax
15:26 XenophonF http://docs.saltstack.com/en/latest/topics/windows/windows-package-manager.html
15:26 ramishra joined #salt
15:26 schristensen joined #salt
15:26 XenophonF you have to set up the repo and then separately configure a pkg.installed state
15:26 hobakill XenophonF: yep i've created the repo. so....
15:27 hobakill XenophonF: that's what i was wondering about.....................
15:27 ShibMcNe joined #salt
15:27 XenophonF the repo is separate from your state tree, right?
15:27 hobakill XenophonF: i have /srv/salt/win/repo which has the repo junk.
15:27 XenophonF OK
15:28 hobakill so in /srv/salt/win/ i'd need to create init.sls's for my specific packages?
15:29 Sp00n joined #salt
15:30 XenophonF then you have something in /srv/salt/states that has WebDeploy: pkg.installed, right?
15:31 danielbachhuber joined #salt
15:32 XenophonF the windows package repository and the pkg.installed states are separate
15:33 higgs001 joined #salt
15:33 bigmstone joined #salt
15:33 hobakill XenophonF: yeah - i have /srv/salt/win/WebDeploy/ which holds the init.sls that is WebDeploy: pkg.installed
15:34 TheRealBill joined #salt
15:34 teskew joined #salt
15:35 bigmstone Trying to figure out the best way to get the serial number off a windows box since it's not in grains.items. I wrote a small addition to win_system.py for my own use, but I'd like to contribute back to get this a mainline feature. Wanted to make sure there's not overlapping set of code already that I missed.
15:35 hobakill XenophonF: and still no luck sadly
15:38 XenophonF hobakill, did you run salt-run winrepo.genrepo?
15:38 hobakill i have yes XenophonF ... the minion can see the package fine.
15:38 XenophonF well this is frustrating
15:39 hobakill SALTWINTEST2.NA1.ad.group:
15:39 hobakill 3.5
15:39 TyrfingMjolnir joined #salt
15:39 hobakill XenophonF: tell me about it
15:42 hobakill XenophonF: and as i had mentioned i can install is using pkg.install from the command line but just can't get into a state! :(
15:42 stickystyle joined #salt
15:42 conan_the_destro joined #salt
15:42 XenophonF wow that makes no sense
15:46 XenophonF hobakill, can you run "salt-call state.highstate" on the windows minion and paste the output into paste.debian.net?
15:46 ramishra joined #salt
15:46 XenophonF i mean
15:46 XenophonF salt-call --log-level debug state.highstate
15:47 stickystyle I've been teaching myself salt for the last week now, mostly just to do states on minions. one thing I have not been able to figure out though is what triggers the minion to check in for a new state? What I've been doing is manually calling salt-call state.highstate from the minon, but that's obviously not the correct way to manage hundreds of machines…so I know I'm doing it wrong.
15:47 Sp00n cron job
15:47 Sp00n :)
15:47 XenophonF stickystyle: there's an example in the docs of scheduling a highstate on your minions
15:48 XenophonF http://docs.saltstack.com/en/latest/topics/jobs/index.html#highstates
15:48 napper joined #salt
15:49 dude051 joined #salt
15:49 hobakill XenophonF: standby
15:49 saravanans joined #salt
15:49 stickystyle XenophonF: Ah, perfect.  Thank you.
15:50 XenophonF i'd do it in pillar
15:50 hobakill XenophonF: http://paste.debian.net/110812/
15:51 XenophonF stickystyle: I haven't gotten around to it yet.
15:52 vejdmn joined #salt
15:52 XenophonF stickystyle: but when I do, I plan to use jinja to randomize the highstate schedule for each minion
15:52 XenophonF stickystyle: I want to do it windows-style - state enforcement every 30 to 90 minutes
15:53 tligda joined #salt
15:56 XenophonF hobakill, I'm looking
15:56 hobakill XenophonF: thanks.
15:58 XenophonF hobakill: you're applying the windows repo file as a salt state
15:58 XenophonF hobakill: even though they're both in SLS files, they are two different things
15:59 jalbretsen joined #salt
16:00 hobakill XenophonF: clearly i'm not understanding what the structure is supposed to be.... clearly /srv/salt/repos/ has to exist with all the software i want, correct?
16:00 XenophonF yes
16:01 XenophonF in your log i'm looking at lines 226 et seq
16:01 Theo-SLC joined #salt
16:01 bhosmer joined #salt
16:02 ajolo joined #salt
16:02 XenophonF so if I understand correctly, you have multiple environments setup, with different state trees, in each
16:02 XenophonF is that right?
16:02 hobakill XenophonF: yes
16:02 sarkis joined #salt
16:03 XenophonF so your master config file has something like file_roots: base... win...
16:03 hobakill XenophonF: more or less
16:03 XenophonF right
16:03 XenophonF and you also have win_repo set in the master config, right?
16:03 hobakill correct
16:04 beando joined #salt
16:04 hobakill win_repo: '/srv/salt/win/repo'
16:04 XenophonF and the win_repo folder is different from the file_roots:win folder, right?
16:05 matthiaswahl joined #salt
16:05 zed_ joined #salt
16:05 martin_ joined #salt
16:05 hobakill XenophonF: it currently looks like this: http://paste.debian.net/110814/
16:05 XenophonF OK
16:06 zed98014 hi.  can include statements in an .sls be parameterized.  i.e. i have a tarballs.sls that use the archive and alterative states.  I would like to feed it a variable, something like - include tarballs[java6]
16:06 XenophonF I don't think you need lines 3 and 4
16:06 XenophonF here's what I think is happening
16:07 XenophonF the "win" environment has three different paths
16:07 Kalinakov joined #salt
16:07 hobakill XenophonF: i smoked them down to just one. ;)
16:07 XenophonF your minion goes to download "WebDeploy" since that's what top.sls tells it to do
16:07 smcquay joined #salt
16:07 KyleG joined #salt
16:07 KyleG joined #salt
16:08 XenophonF so first it looks for WebDeploy.sls
16:08 XenophonF in the "win" environment
16:08 XenophonF that's line 226 in http://paste.debian.net/110812/
16:08 XenophonF the master gives it a file not found
16:08 XenophonF so it tries WebDeploy/init.sls
16:09 thedodd joined #salt
16:09 XenophonF and it finds the first one in /srv/salt/win/WebDeploy/init.sls
16:09 luminous pclermont: I am glad! that is so great to hear!
16:09 XenophonF which has the pkg.installed state in it
16:09 luminous pclermont: if you do any python development, you will be happy to know that you can easily use its merging capabilities in your own code
16:09 XenophonF but it checks the other folders associated with the environment
16:10 XenophonF that's when it finds /srv/salt/win/repo/webdeploy/init.sls
16:10 luminous zed98014: yes, use pillar for this. pillar are config keys for formula, which are specific to each minion
16:10 XenophonF and it tries to load that in as a state declaration
16:11 XenophonF see line 239 in http://paste.debian.net/110812/
16:11 zed98014 luminous - thanks i'm sort of using pillars but maybe not fully.  here's sort of what i'm up to http://paste.debian.net/110815/
16:11 pclermont luminous: have you managed to integrate reclass to generate the top?
16:11 XenophonF hobakill: so does this all make sense?
16:11 hobakill XenophonF: i would agree with that assessment entirely.
16:11 chiui joined #salt
16:12 XenophonF so the question is, does it work now that you've changed file_roots:win?
16:12 zed98014 my idea is instead of looping on pillar.get('tarballs') is instead to include tarballs.sls on a per-package basis, to accomodate differing packages' post-installs.  either that or put a terminal state in my tarballs.sls that other things can use requisites on
16:12 luminous pclermont: not as a master, though you can easily do that
16:13 luminous pclermont: I forget the mater config for that, but there is a way salt can ask an external app for top data
16:13 pclermont luminous: I run masterless minions, but I have tried all the options in the docs. but I can’t seem to make it work.
16:13 luminous pclermont: basically, you would configure that (it's all documented), and then you would create separate node.yml definitions for each note
16:14 luminous pclermont: ah, well I did a hack that has worked tremendously well for me, for this situation with a masterless minion
16:14 luminous it sounds complicated, but it is actually quite elegant and simple
16:14 pclermont please share :D
16:14 zed98014 then it is just a question of what to name my terminal state - ideally something generic that would not change.  'alternative_{tarball}' is kind of specific and may change if I restructure tarballs.sls.  is there a generic semaphore/synchronization state?
16:15 hobakill XenophonF: i think you go it.
16:16 luminous pclermont: basically, I have a set of super low-level/core formula which ensure salt, python, and reclass are all setup. Ensuring the minion's hostname is correct is part of that as well. As part of setting up reclass, I define a node.yml for the host, using the minion's id. This node.yml has a set of classes and parameters which are defined. Those classes expand to the list of apps.
16:16 luminous patarr: the reclass formula derives all of its information from a bootstrap.sls pillar definition
16:16 luminous oops..
16:16 luminous pclermont: ^^
16:16 kballou joined #salt
16:17 luminous pclermont: bootstrap.sls defines the classes and parameters for the node, along with the location of reclass details (nodes/classes/etc paths) and the git url/revision to checkout and install
16:17 hobakill XenophonF: thanks a million times over. wrapping my head around the windows part of this system has really been a challenge for me.
16:18 pclermont luminous: so basically your top.sls only contains the bootstrap.sls and then everything just falls into place. that does sound sexy
16:18 XenophonF hobakill: awesome! glad to have helped
16:19 troyready joined #salt
16:19 XenophonF that reminds me - i need to finish packaging salt as a msi for windows
16:19 XenophonF i may work on that some this week
16:19 luminous pclermont: with the node.yml defined, I then use a cmd.run with: update_tops_cmd = 'reclass-salt --top ' + nuri + curi + ' > ' + tops_path
16:20 hobakill XenophonF: i may have spoke too soon sadly..... the test=True was ok but when i ran the highstate i got an error.. :/
16:20 luminous pclermont: honestly, at first it felt a little hacky and weird, but yea.. sexy it is!
16:20 bmatt I wonder if there's some way to put an indication of the last 'apt-get update' run in the lowstate
16:20 XenophonF hobakill: run "salt-call --log-level debug state.highstate" on the windows minion and paste the output again
16:21 bmatt as our states get more complex, I see a dozen apt-get update calls in succession
16:21 luminous pclermont: the downside, which I intend to address in the future, is that to change the core definition of classes/parameters for the host, you have to update the bootstrap.sls and then run state.sls reclass.update_tops. But I've even automated this with a watch on bootstrap.sls to auto-run that cmd.run
16:21 hobakill i wish you could grep this shit. :)
16:22 kaiserpathos joined #salt
16:23 luminous pclermont: let me be clear though.. by core classes/parameters.. I mean the list of classes that are very high-level, and very rarely change. the list of classes usually includes an umbrella class where the changes will be made.. so when I change the details of say nginx or postgres, it's the low-level formula that update and maybe the core class, but never the mapping in the node.
16:23 luminous pclermont: similarly, for parameters.. these are _overrides_ for the node, which go above and beyond all the low-level defaults and even a number of ovberrides to those defaults
16:23 hobakill XenophonF: my stupid powershell doesn't scroll back far enough... hold on
16:24 XenophonF hobakill: no worries
16:24 vu joined #salt
16:24 luminous pclermont: the thing to understand about reclass is that it makes it really, really easy to define a bunch of classes with parameters that override and specify nuances.. for example, say you have a salt.minion.base, you can then build on that to define a salt.minion.masterless as well as a salt.minion.local_master, and whatever else..
16:24 XenophonF first thing i do logging into a new windows profile is change the default console scrollback buffer size
16:25 XenophonF and the second is enabling quickedit mode :)
16:25 kermit joined #salt
16:25 allanparsons joined #salt
16:25 luminous pclermont: so the node's parameters that override everything else, the stuff in bootstrap.sls.. that ends up looking like salt:minion:master or a hostname override, basically only a few keys
16:25 Sp00n and the third is increasing the width?
16:26 XenophonF no that's fourth
16:26 XenophonF third is changing the font to consolas
16:26 Sp00n ooo whats third?
16:26 Sp00n :D
16:26 bmatt pressing control-alt-delete
16:26 bmatt =D
16:26 hobakill XenophonF: it seems to be a windows-y issue
16:26 mugsie joined #salt
16:26 XenophonF sadly i'm so old school that my terminal widths all default to 132 cols
16:27 derito Hello there. Sorry if it sounds stupid but how does Salt handle connection issues during a sls' execution ?
16:27 go|dfish joined #salt
16:27 MatthewsFace joined #salt
16:27 seanz joined #salt
16:27 XenophonF hobakill: what kind of errors are you seeing?
16:28 hobakill XenophonF: http://paste.debian.net/110819/
16:29 hobakill XenophonF: the 'specified file' bit isn't encouraging
16:29 XenophonF hobakill: change 'salt://win/repo/webdeploy/WebDeploy_amd64_en-US.msi' to 'salt://webdeploy/WebDeploy_amd64_en-US.msi' in /srv/salt/win/repo/webdeploy/init.sls
16:30 XenophonF the salt: URIs are relative to the file_roots or win_repo folders
16:30 XenophonF not the /srv/salt folder
16:30 Comradephate joined #salt
16:31 m1crofarmer joined #salt
16:32 hobakill XenophonF: oddly got the same error
16:32 XenophonF hobakill: hang on let me RTFM
16:32 hobakill XenophonF: do i need to update the db?
16:32 XenophonF hobakill: probably
16:32 XenophonF hobakill: can't hurt
16:32 XenophonF :)
16:33 XenophonF hang on - the salt docs show salt://win/repo/ etc.
16:33 XenophonF it's basically a file not found error, if i understand this correctly
16:34 forrest joined #salt
16:34 hobakill XenophonF: yeah that's what i had thought as well about the path...... so i have no idea why it can't find it
16:34 XenophonF maybe do pkg.refresh_db on the minion too?
16:36 joehillen joined #salt
16:38 hobakill XenophonF: didn't think you could do a pkg.refresh_db on the master. anway - did the genrepo and the refresh on all minions and still can't find the installer  package
16:39 hobakill XenophonF: http://paste.debian.net/110823/         <--------the file exists
16:42 jalaziz joined #salt
16:43 XenophonF sorry, hobakill, I'm at a loss here
16:43 seanz retrospek: ping
16:44 sieve1 joined #salt
16:44 hobakill here's the latest run: http://paste.debian.net/110825/
16:47 hobakill XenophonF: even more annoying: salt "SALTWINTEST*" pkg.available_version WebDeploy
16:47 hobakill SALTWINTEST2.NA1.ad.group:
16:47 hobakill 3.5
16:48 XenophonF hobakill: I dunno maybe try removing the "win/repo" bits from the source URI
16:48 XenophonF then re-running genrepo/refresh_db
16:48 forrest hobakill, is the 'win' environment considering the win directory as it's homedir?
16:48 hobakill yeah i've done that process. thanks so much for the help though. we cleaned up my messy master file.
16:48 forrest or as the root dir would be a better way to put it
16:50 beneggett joined #salt
16:50 hobakill XenophonF: maybe a new clue? http://paste.debian.net/110827/
16:50 XenophonF oh hey a different error
16:50 hobakill that's when i try to do the install via salt "SALTWIN*" pkg.install 'WebDeploy'
16:51 XenophonF 1625 is an elevation error
16:51 ajolo joined #salt
16:51 XenophonF is the minion running as NT AUTHORITY\SYSTEM?
16:52 beneggett does the service state support load on startup? I want to make sure nginx is running on startup  I know I coould just do cmd.run chkconfig --levels 235 nginx on; but wondering if there is a good baked in way
16:52 beneggett (centos)
16:52 hobakill XenophonF: not sure how to check. it's just a next next next install.
16:52 XenophonF hobakill: what version of Windows?
16:53 arthabaska joined #salt
16:53 hobakill 2012 r-deuce
16:53 XenophonF heh
16:53 XenophonF full install or server core?
16:54 hobakill full
16:55 XenophonF basically error 1625 means that msiexec isn't being run by a user with an administrator token
16:55 aquinas joined #salt
16:55 rushm0r3 joined #salt
16:55 XenophonF OK open the Services management console
16:55 bmatt is watch_in a thing?
16:55 XenophonF or open Computer Management
16:56 laubossl1nk joined #salt
16:56 hobakill XenophonF: ok there
16:56 XenophonF look for the salt minion service
16:56 hobakill Log on as "Local System account"
16:57 XenophonF sounds right
16:57 poogles joined #salt
16:58 badon joined #salt
16:58 Ryan_Lane joined #salt
16:59 hobakill XenophonF: FML
16:59 hobakill XenophonF: i ran powershell as an admin and it did the install f'ing fine.
16:59 XenophonF using salt-call, right?
17:00 XenophonF oh the first time you ran it, you hadn't elevated
17:00 hobakill XenophonF: well i initiated it from the master
17:00 rushm0r3 is there a "salty" way to expose the zeromq events system to a external port. like through a config or something?
17:00 XenophonF see that's still worrisome
17:00 hobakill XenophonF: and now when i run a highsate i get the same "this installation package could not be opened" error
17:00 XenophonF the master just tells the minion to run msiexec
17:00 chrisjones joined #salt
17:00 XenophonF man, I don't know why it can't download the MSI file
17:01 schristensen left #salt
17:02 hobakill XenophonF: also what i don't get is that why, after it's installed, it's not just coming back as 'already installed'
17:02 hobakill (when i run the highstate from the master)
17:03 rushm0r3 joined #salt
17:05 hobakill XenophonF: we know it's not a path issue because this works fine: salt "SALTWINTEST*" pkg.install 'WebDeploy'
17:06 XenophonF exactly
17:07 vu joined #salt
17:07 laubossl1nk joined #salt
17:08 sieve1 joined #salt
17:08 logix812 joined #salt
17:08 ajolo joined #salt
17:09 rushm0r3 joined #salt
17:09 bhosmer joined #salt
17:12 ml_1 joined #salt
17:12 rushm0r3 joined #salt
17:13 aw110f joined #salt
17:15 conan_the_destro joined #salt
17:15 rushm0r3 joined #salt
17:16 ajolo joined #salt
17:16 q1x joined #salt
17:17 conan_the_destro joined #salt
17:18 sieve1 joined #salt
17:19 napper joined #salt
17:20 ipmb joined #salt
17:24 q1x joined #salt
17:25 ajolo joined #salt
17:25 rushm0r3 joined #salt
17:26 beando joined #salt
17:27 saurabhs joined #salt
17:29 rushm0r3 joined #salt
17:29 stephanbuys joined #salt
17:30 anuvrat joined #salt
17:30 nicolerenee joined #salt
17:30 druonysus joined #salt
17:31 nhubbard left #salt
17:31 allanparsons joined #salt
17:34 sieve1 joined #salt
17:34 quickdry21 joined #salt
17:34 rushm0r3 joined #salt
17:38 arthabaska joined #salt
17:39 rushm0r3 joined #salt
17:39 hobakill XenophonF: either i have no idea what in the world i'm doing, salt + win2k12r2 = fail, or a combination of both - but i just installed chocolatey via bootstrap on my minion and now it's telling me it's not there. even though if i go into powershell i can tab-complete the hell out of chocolatey
17:40 XenophonF hobakill: that's really weird
17:40 beneggett joined #salt
17:41 hobakill XenophonF: do you know what it takes to get the ears of an engineer at salt? $$$? my company has plenty if that's all it is. i feel stupid giving up on this windows crap but i'm so confused. you've been more than helpful but this is getting to be a waste of time for me and my company.
17:41 luminous hobakill: there are support options, yes
17:41 luminous hobakill: see saltstack.com
17:41 KyleG They offer a paid support option for businesses who need it
17:42 hobakill thanks KyleG et al
17:42 luminous hobakill: it's likely worth the few bucks it'll take to reoslve that quickly
17:42 XenophonF hobakill: you see that bit about executionpolicy unrestricted?
17:43 hobakill XenophonF: where?
17:43 fxdgear_ joined #salt
17:43 XenophonF in the chocolatey instructions
17:43 XenophonF but never mind
17:43 XenophonF i think i was about to go barking up the wrong tree
17:43 cachedout joined #salt
17:45 forrest hobakill, can you either create a discussion on the mailing list, or wait till UtahDave (the windows maintainer) and ask him?
17:45 forrest until UtahDave shows up that is
17:45 forrest granted he might not be around this week, so a discussion might get a better response
17:46 aquinas joined #salt
17:46 jslatts joined #salt
17:46 ajolo joined #salt
17:46 hobakill does the mailinglist = google user group?
17:47 forrest hobakill, yep
17:48 endersavage joined #salt
17:49 rushm0r3 joined #salt
17:50 Ahlee_ we're also going through WinRepo woes hobakill.  Reading the backlog now
17:51 hobakill Ahlee_: heh. my name is splattered all over it because i'm a windows derp
17:52 Ahlee_ so are we.  The windows admins have all but rejected salt, so we're attempting to fill in the missing gaps
17:53 forrest lol
17:53 hunthj joined #salt
17:53 forrest Ahlee_, how can they reject salt? What do they want to use instead?
17:53 forrest nothing?
17:53 hobakill Ahlee_: happy to help any way i can ... i can't believe it's as difficult as i'm making it
17:53 rushm0r3 joined #salt
17:53 Ahlee_ forrest: well, honestly?  group policy covers like 90% of salt
17:53 forrest Ahlee_, fair enough
17:53 hobakill SCCM is what my guys want
17:54 forrest sccm is awful though
17:54 hobakill it sure as hell is...that's why we're looking at puppet/salt/etc
17:54 forrest gotcha
17:54 hobakill but if i can't install bloody firefox or webdeploy via salt i feel like htat's something even sccm can handle
17:55 Ahlee_ Yeah, it took us a week to install notepad++ through salt
17:55 Ahlee_ which is rediculous
17:55 hobakill Ahlee_: we should be best friends. webdeploy is my notepad++ :)
17:56 Ahlee_ got a meeting in 5, but i'll read back log and see if i can shed any light
17:56 hobakill cheers Ahlee_
17:57 forrest hobakill, can you please document 'pain points' as you go through this? I've talked to Dave about bumping the windows docs a bit more, but since I don't use it, obviously it is a bit difficult for me to provide details for
17:57 hunthj [CRITICAL] Authentication module threw an exception: global name 'ldap' is not defined
17:57 apergos joined #salt
17:58 hunthj Trying to use the ldap authentication on salt-master. When I set the parameters defined in the documentation, I got the previous error.
17:58 hobakill forrest: i'm happy to. that utahdave dude could make a small fortune by pulling a chair up next to me and smacking me in the head when i'm wrong... but i agree with you - the dox = not amazing.
17:58 thedodd joined #salt
17:58 hunthj Installed the ldap module and same result
17:59 forrest hobakill, yea Dave works for Salt and does all the windows maintenance, but since it isn't the main usage, there isn't as much feedback about what needs improvement/better explanations
17:59 higgs001 joined #salt
17:59 hobakill let me revise, forrest i could make a small fortune tell salt what's wrong with the windows side. ;)
18:00 forrest hobakill, lol
18:00 stephanbuys joined #salt
18:00 forrest well, if there are issues then please create issues so improvements can be made
18:02 ksalman_ is there any functionaly in Salt to *share* the salt-master with another team? permissions or something like that?
18:02 hobakill forrest: i'm happy to but to revist all of this will take some time. i've sent an email to salt waving money in their faces asking for help. i'll see what that gets me.
18:03 ajolo joined #salt
18:04 apergos hello folks: I would like to do the equivalent of salt-cal --local from python using a salt module (via salt.client or salt.cli.caller, whatever is appropriate): what in fact do I use?
18:05 apergos so this amounts to, run a function on the local host without a master, via salt python api... any takers?
18:08 aw110f_ joined #salt
18:08 ganitsu joined #salt
18:08 Dattas joined #salt
18:13 allanparsons @apergos can you give a better use case?
18:14 allanparsons you might be able to run cmd.script
18:14 allanparsons or cmd.run
18:14 apergos well I have a python script that does some things via salt.client right now
18:15 apergos but we'd like to be able to set local grains before there is a working salt master
18:15 apergos and I'd like to do it without shell out to salt-call --local
18:16 apergos it's just uglier that way, so if there is a class in a module that I can use, so much the better
18:17 endersavage im unable to cp.get_file with my CentOS machines.  i can with my Ubuntu ones.  The debug shows the minion getting the command but not actually trying to fetch the file.  ideas?
18:18 allanparsons i think you can set them in /etc/salt/minion
18:18 allanparsons or there's a module.grains (http://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.grains.html)
18:21 apergos yes there is a module but what I want is to set them without running the grains.setval or whatever it is via the master
18:21 allanparsons also, @apergos... if you do a salt-call saltutil.sync_grains and then a salt-call state.sls <state>, it'll run anything in _grains
18:22 allanparsons just write them to /etc/salt/minion then
18:22 apergos yeaahhh but then I'm assuming things aobut our setup, the whole point of having the grain module is that it knows the innards
18:22 ksalman_ has anyone tried sharing salt-master with another team? I am curious how well it would work and how could we not step on each others toes
18:22 apergos and my script should not
18:23 allanparsons well, what grain data are you trying to write?
18:23 apergos so is there not a way to run a module function directly on the local host masterless, except via salt-call --local   ?
18:23 allanparsons you're going to need to make SOME assumptions, no?
18:24 apergos we're creating a new local grain actually
18:24 apergos based on a puppet role
18:24 allanparsons you trying to move facts to grains?
18:24 apergos no
18:25 apergos it's not a fact
18:25 allanparsons ok... i'd probably just shell out using a subprocess and set the grains and get the return value
18:25 yomilk joined #salt
18:25 stephanbuys1 joined #salt
18:25 jrdx joined #salt
18:26 apergos boooo  :-D
18:26 apergos ok well if the answer is that there's not an alternative, at least that's an answer, thanks
18:26 allanparsons can you import salt.grains?
18:26 allanparsons import salt ... import salt.grains
18:26 apergos sure
18:26 z3uS joined #salt
18:26 apergos I can import any dang thing I like
18:27 allanparsons i guess i'm not understanding what your'e rtrying to do
18:27 allanparsons you can do salt-call grains.set...
18:27 allanparsons or in your python script do import salt, import salt.grains and set that way
18:27 allanparsons or write yaml to /etc/salt/minion
18:27 austin987 joined #salt
18:27 apergos second approach is likely to sell the best
18:29 apergos I don't know why I didn't think of #2
18:29 apergos thanks for that
18:31 allanparsons :)
18:32 apergos I was trying to use salt.caller.Caller and shovel options into it and it was just not happy, this will be so  much simpler and to the point
18:32 _jslatts joined #salt
18:32 apergos er salt.cli.caller.Callr that is
18:34 hobakill XenophonF: Ahlee_ forrest this is this the kind of nonsense i'm talking about with salt........http://paste.debian.net/110844/
18:35 allanparsons woohoo!
18:35 alekibango_ joined #salt
18:35 forrest hah
18:35 stephanbuys joined #salt
18:39 kaptk2 joined #salt
18:40 XenophonF hobakill, is chocolatey a python package?
18:40 q1x joined #salt
18:40 XenophonF if so there's an option to reload salt after installing something should the python site-packages change
18:41 hobakill XenophonF: i don't have the foggiest idea. after i did the chocolatey.bootstrap command i bounced the minion...TWICE.. :)
18:41 XenophonF hobakill: that would do it too
18:41 XenophonF very odd
18:41 XenophonF what version of Salt are you running on the master and on the minion?
18:41 hobakill XenophonF: the point is - salt is pooping on its own face.  i can't use the build-in choclatey.install but i can do cmd.run? that's wacky
18:42 hobakill both are 2014.1.5
18:42 hobakill XenophonF: if i could jsut get the goddamn winrepo working i wouldn't need to do this ghetto rig.
18:44 XenophonF hobakill: no kidding
18:47 XenophonF hobakill: let me see if i can replicate your config/problems here
18:48 XenophonF I'm running FreeBSD 10 and Salt 2014.1.4 on the master, but perhaps that's close enough.
18:48 XenophonF I have a Windows Server 2008 R2 test VM that I can break.
18:49 alainv so I'm running into an issue lately where the salt-master will "lose" some minions - e.g. `salt 'api*' test.ping` will only return 3 of 4 expected nodes, and clearly expects the 4th but times out. salt-call on the 4th node works fine and both nodes can ping each other with `ping` just fine.
18:51 diegows joined #salt
18:51 jaimed joined #salt
18:53 q1x joined #salt
19:01 housl joined #salt
19:02 thedodd joined #salt
19:02 stephanbuys1 joined #salt
19:06 matthiaswahl joined #salt
19:13 KennethWilke joined #salt
19:16 KennethWilke using the default /srv/salt directory for states, is there any common reason to intermittently get errors for no matching sls found?
19:16 ccase joined #salt
19:16 KennethWilke in this case i have two gluster nodes, one of them consistently works and one works about 1/4th of the time
19:28 sieve joined #salt
19:34 TheThing joined #salt
19:36 jslatts joined #salt
19:36 badon_ joined #salt
19:38 bhosmer_ joined #salt
19:40 roolo joined #salt
19:41 ndrei joined #salt
19:42 alekibango joined #salt
19:43 Ahlee_ whew, that was a doozy
19:43 Ahlee_ sorry hoba, reading now.
19:52 elfixit joined #salt
19:54 quantumriff joined #salt
19:54 quantumriff I have cloned a minion in vmware.. and have renamed it with the vmware tools.. but what is the 'proper' way to force the mininion to forget its old id, and key?
19:55 Ahlee_ quantumriff: /etc/salt/minion_id, /etc/salt/pki/
19:55 quantumriff just rm the file, and the directory?
19:56 rallytime joined #salt
19:56 Ahlee_ Yes
19:56 Ahlee_ or perferably repopulate the minion_id file with a minion
19:56 Ahlee_ but hte pki dir can be blown away and regenerated
19:57 quantumriff Ahlee: thanks!
19:59 TheThing joined #salt
20:02 vu joined #salt
20:03 logix812 joined #salt
20:10 athe joined #salt
20:12 beneggett joined #salt
20:13 stevednd whiteinge: you around?
20:17 beneggett joined #salt
20:20 ajolo joined #salt
20:21 jslatts joined #salt
20:22 endersavage joined #salt
20:27 yomilk joined #salt
20:27 ghartz joined #salt
20:31 analogbyte hello, helium will be released this month, is that right?
20:31 forrest maybe
20:33 druonysuse joined #salt
20:37 luminous analogbyte: it'll go when it goes
20:41 smcquay joined #salt
20:42 q1x joined #salt
20:43 beneggett joined #salt
20:43 sieve joined #salt
20:47 ajolo joined #salt
20:54 Micromus_ How do I create a state that clones a git repo?
20:54 dalexander joined #salt
20:54 Eugene git.latest
20:54 Micromus_ Do I just clone the repo to the salt-fileserver, and place the files under management?
20:55 Micromus_ awesome, but would it be better maybe to download the files locally and the distribute via salt-fileserver for more control?
20:55 Eugene Distribution of files in a minion-specific way is one of those things salt needs work on.
20:56 jslatts joined #salt
20:56 Eugene I've tried setting up a system involving minion/group-specific repos in a gitolite server(and unique SSH access keys per-minion), but coudln't get it to work right.
20:57 Micromus_ mkay, I see that this project (logstashforwarder) also provides debian packages (not a apt-repo though)
20:57 Micromus_ how can i supply a .deb file via salt-fileserver and have it installed?
20:59 Eugene The proper way? Build yourself an apt repo and file.managed(or file.append) it into your sources list.
21:00 tyson_ joined #salt
21:00 sieve joined #salt
21:02 stevednd Micromus_: have you looked into gitfs?
21:02 bmatt Eugene: pkgrepo.managed
21:02 m1crofarmer joined #salt
21:03 Micromus_ stevednd: yeah, using it for saving states etc
21:03 Eugene Oh, that exists, I forget.
21:03 Micromus_ seems like a lot of work to set up and maintain an apt repo for 1 small file :o
21:04 Eugene pkg repos are only work when you update a package
21:04 XenophonF left #salt
21:04 stevednd Micromus_: you were asking about cloning to your master, and then distributing. That sounds an awful lot like gitfs
21:05 stevednd Micromus_: for the package you can always just use file.managed to get the file on the server, and then used cmd.run to do dpkg -i
21:05 forrest pkg.installed supports both kwargs, and sources, so you could try to install it that way.
21:05 stevednd I thought there was a way to do it automatically
21:06 forrest in fact, if you look at the docs there is even an example using sources to install straight from a file within salt.
21:06 forrest http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.installed
21:06 forrest about 2/3 of the way down, or just search for 'sources'
21:06 druonysuse joined #salt
21:06 druonysuse joined #salt
21:06 stevednd forrest: yes, that's correct, but is that functionality in 2014.1, or is it coming in helium?
21:07 forrest stevednd, it's in 2014.1 https://github.com/saltstack/salt/blob/v2014.1.1/salt/states/pkg.py#L328
21:08 KyleG joined #salt
21:08 KyleG joined #salt
21:08 Micromus_ forrest: that looks spot on to what I need!
21:08 Micromus_ (think I need!)
21:09 forrest cool
21:10 ajolo joined #salt
21:10 Valdo joined #salt
21:11 forrest jeez Eugene no big IRC dollars for you
21:13 flupke joined #salt
21:14 flupke hi babilen, finally got my ec2-autoscale reactor working, here it is in all its glory: https://gist.github.com/flupke/d1b62471e7782e412b1a
21:15 zemm joined #salt
21:16 forrest I really wish there was a way to see PRs in an organiztion on a per project basis :\
21:16 Eugene forrest - I don't work here, only visiting :v
21:17 forrest Eugene, I don't work here either :P
21:17 jhauser joined #salt
21:17 flupke babilen: and some explanations: https://gist.github.com/flupke/00779514c97dad1825e8
21:19 saurabhs joined #salt
21:20 babilen flupke: Great! I'll investigate it tomorrow in detail
21:22 beneggett joined #salt
21:24 ajolo joined #salt
21:24 babilen flupke: Anything that would be worth merging into the upstream code?
21:24 * babilen got his easy-rsa PKI reactor working today and hopes to open source it soon
21:25 rushmore babilen, you ever solve your minion communication issue ?
21:26 babilen rushmore: We did indeed
21:27 babilen It was a strange issue that I don't quite understand, but our network engineers figured it out. The gist was, more or less, that Linux is so braindead to answer ARP requests on all interfaces for all networks (and not only networks that the IP belong to)
21:28 steve joined #salt
21:29 rushmore good to know we were at least on the right track with something blocking communication external to salt :)
21:29 smcquay joined #salt
21:29 babilen This caused some faulty routes to be injected if you set arp_ignore to the default value of 0 (cf. https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt ) which is causing it to "reply for any local target IP address, configured on any interface" which is just a braindead default
21:30 flupke babilen: well yes this could be waaaayyy simpler, using a reactor for this is a giant hack
21:30 babilen So, in short: This caused two different routes from the minion to the master and back with different MTUs. The minion could communicate with the master, but packets didn't make it beack.
21:30 babilen flupke: I like reactors :)
21:31 flupke babilen: there could simply be a setting saying that some key should be automatically accepted, and another one to auto cleanup minions that have not been seen in a while
21:32 ggoZ joined #salt
21:33 yomilk joined #salt
21:37 n8n joined #salt
21:39 rushmore is there an easy way to set the 0MQ sub channel to an external tcp port, like via a config or something ?
21:40 ajolo_ joined #salt
21:41 khaije1 joined #salt
21:41 khaije1 just wanna say I love the work on the Saltfile, it's genius
21:41 khaije1 I'm playing with a C&C repo and loving it
21:41 ajolo_ joined #salt
21:42 khaije1 (for use w/ salt-ssh, in case that wasnt clear)
21:42 rushmore C & C music factory ?! that's awesome.
21:43 tyson_ joined #salt
21:44 rap424 joined #salt
21:45 rap424 left #salt
21:45 rap424 joined #salt
21:46 TK joined #salt
21:46 vbabiy joined #salt
21:46 jujube joined #salt
21:47 jujube Hi guys,  I am using Salt Cloud and am provisioning a server on Rackspace.  I just want to know if it is possible to also add block storage.
21:47 khaije1 'everybody' dance.now
21:47 Micromus_ Rendering SLS "base:common.logstash-forwarder.debian7" failed: Conflicting ID 'logstash-forwarder'
21:47 Micromus_ is the dash causing problems?
21:48 khaije1 left #salt
21:48 babilen Micromus_: It shouldn't, you might have logstash-forwarder in there twice
21:48 steve left #salt
21:48 Micromus_ ah, yes, once as pkg.installed and once as service
21:49 Micromus_ they should ofc be under the same logstash-forwarder
21:49 jujube Edited: Hi guys,  I am using Salt Cloud and am provisioning a *cloud* server on Rackspace.  I just want to know if it is possible to also add block storage.
21:49 forrest Micromus_, I'd also suggest to use underscores instead of dashes
21:49 KWASHI joined #salt
21:49 gzcwnk I am trying to keep webmin uptodate but I seem to be failing, I assume I have teh wrong command? http://pastebin.com/cDrC9xN6
21:49 forrest Micromus_, you don't HAVE to do it, but there are some weird things if you use jinja with dashes, so it just avoids issues entirely
21:50 Micromus_ mkay, official package name uses dash, but I'll take your word for it ;)
21:50 anuvrat joined #salt
21:50 forrest Micromus_, well, I mean in state IDs
21:51 forrest gzcwnk, you either need to use the '- version' option, or use pkg.latest
21:51 Micromus_ aha
21:51 forrest gzcwnk, salt isn't going to look at the package version otherwise, it's just ensuring it is installed with pkg.installed.
21:52 gzcwnk says sources paramter is not supported
21:52 forrest gzcwnk, in pkg.latest?
21:52 forrest yea it's not supported
21:53 forrest try using pkg.installed with - version: 1.690-1
21:53 forrest I don't use source very often in pkg.installed, so I'm not sure how it handles version values
21:53 gzcwnk http://pastebin.com/DFkAWkzh
21:53 forrest right, pkg.latest doesn't support sources, sorry
21:53 forrest should have noted that it would need to come from a repo
21:53 forrest I htought you were doing this as a one off
21:54 forrest *thought
22:02 gzcwnk initially it was a build thing, but I want to update on an ongoing basis 150 servers
22:03 stevednd How does the fall through for environments work with gitfs branches(if at all)?
22:03 gzcwnk I suppose i could remove webmin and then re-install it
22:04 druonysuse joined #salt
22:04 druonysuse joined #salt
22:05 gzcwnk that is very messy though
22:05 tyson_ joined #salt
22:07 vu joined #salt
22:08 gzcwnk is there a rpm module?
22:09 forrest gzcwnk, why not just stand up a package repo?
22:09 forrest then you can use pkg.latest
22:09 gzcwnk complex, guess a cmd.run will do
22:09 ajolo joined #salt
22:09 forrest and yes, there is an rpm module, but it doesn't support installations
22:10 gzcwnk so cmd.run looks the best bet
22:10 forrest gzcwnk, in that situation I'd use a file.managed to place the rpm on, then use cmd.run to do the install.
22:10 bigl0af joined #salt
22:10 gzcwnk I can just use rpm to get it via http
22:11 lz-dylan joined #salt
22:11 v0rtex joined #salt
22:11 ronc joined #salt
22:11 forrest oh yea if it's coming from an external location
22:11 JPaul joined #salt
22:11 forrest those guy seriously don't have a repo?
22:11 n0arch joined #salt
22:11 forrest they totally do http://www.webmin.com/rpm.html
22:12 gzcwnk oh ok, it isnt in epel
22:12 ajolo_ joined #salt
22:12 forrest yea looks like they have their own repo
22:12 forrest *shrug* multiple ways to solve it I guess.
22:12 forrest gzcwnk, did - version not work?
22:12 gzcwnk nope
22:12 forrest lame alright
22:13 ajolo_ joined #salt
22:13 fxdgear_ joined #salt
22:13 gzcwnk well rpm with http worked fine
22:13 Luke joined #salt
22:13 forrest cool
22:14 gzcwnk the troble with repos is versioning
22:14 gzcwnk if you get multiple versions of the same package in different repos all hell breaks lose
22:14 gzcwnk ive learned taht teh ahrd way
22:14 gzcwnk doh, cant type
22:15 gzcwnk that the hard way
22:15 Ahlee joined #salt
22:15 MTecknology joined #salt
22:16 hvn joined #salt
22:16 druonysuse joined #salt
22:16 bigmstone joined #salt
22:16 gzcwnk well 150 machines are being updated :D
22:17 Voziv joined #salt
22:17 forrest cool
22:17 gzcwnk maybe i should have done debug, lol
22:17 Luke joined #salt
22:17 ksalman_ has anyone tried sharing salt-master with another team? I am curious how well it would work and how could we not step on each others toes
22:18 gzcwnk security wise i avoid it or the desktops can f*** up yoru servers
22:18 gzcwnk your
22:19 forrest ksalman_, I haven't tried that. You could always use the client ACL to limit their interaction: http://docs.saltstack.com/en/latest/ref/clientacl.html
22:19 gzcwnk so we'll have 2 salt masters, one for servers one for desktops
22:19 Ryan_Lane joined #salt
22:19 gzcwnk hmmm that looks interesting, ACLs
22:21 forrest gzcwnk, I've created https://github.com/saltstack/salt/issues/14376
22:22 gzcwnk ah neat forrest, thansk for that
22:22 gzcwnk didnt know I could do that
22:22 forrest gzcwnk, ? The issues or the ACL thing
22:22 jhauser joined #salt
22:22 gzcwnk both  :D
22:22 forrest ahh ok
22:22 gzcwnk but i meant the issue
22:22 forrest gotcha
22:22 gzcwnk the ACLS will be useful
22:23 forrest you can subscribe to the notifications as well if you want to keep track of it and have a github account
22:23 gzcwnk but I think I'll still keep desktops in teh corner out of harms way, LOL.
22:23 forrest yea I don't blame you
22:23 savvy-lizard joined #salt
22:24 gzcwnk they are windows ppl after all  .....and I know diddly about windows, so safer both ways
22:29 aw110f joined #salt
22:30 sectionme joined #salt
22:32 tyson_ joined #salt
22:32 jalbretsen joined #salt
22:33 avn joined #salt
22:38 jamesbdev joined #salt
22:38 n0arch joined #salt
22:40 Ahlee joined #salt
22:41 n8n joined #salt
22:45 kryptt joined #salt
22:46 lz-dylan joined #salt
22:49 bhosmer joined #salt
22:49 tyson__ joined #salt
22:59 ajprog_laptop1 joined #salt
23:00 fxdgear joined #salt
23:02 fxdgear joined #salt
23:05 ajolo_ joined #salt
23:08 dalexand_ joined #salt
23:11 yomilk joined #salt
23:16 lz-dylan Is there a best practice for a place to store my salt-cloud map file?
23:16 manfred no, store them whereever you want
23:16 manfred cause you have to reference them directly
23:17 ajolo_ joined #salt
23:18 lz-dylan manfred: thanks. Any harm in putting them somewhere like /srv/salt? or /etc/salt? I feel a little dirty but want it in source control.
23:19 manfred you can put them wherever you want, cause you have to reference them directly
23:19 lz-dylan Haha, okay :)
23:20 lz-dylan (question-behind-prior-question was whether putting it in /srv/salt would either somehow bork salt or be readable by Mallory)
23:27 mechanicalduck_ joined #salt
23:32 logix812 joined #salt
23:33 tyson_ joined #salt
23:40 savvy-lizard joined #salt
23:40 slawdog02 joined #salt
23:42 mosen joined #salt
23:45 yomilk joined #salt
23:49 tyson_ joined #salt
23:54 Luke joined #salt
23:55 rushm0r3 joined #salt
23:56 dalexander joined #salt
23:57 tyson_ joined #salt

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