Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-02-06

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

All times shown according to UTC.

Time Nick Message
00:02 irctc335 joined #salt
00:04 tligda joined #salt
00:05 aparsons_ joined #salt
00:10 hal58th I like salties. We're all jaded sysadmins for the most part
00:10 aparsons joined #salt
00:12 mosen good point
00:14 robawt +1
00:15 Twiglet So, salt causing your filesystem to run out of inodes is not fun
00:15 Twiglet it stops pillar data being passed to minions
00:16 Twiglet which results in lots and lots of fun blank entries in files/keys
00:16 JoeJulian If I want to test a salt module that I've written locally, the documentation says I put it in ${file_root}/_modules/ (or _states for a state module) on master. Can you test without a master and just use salt-call --local? If so, what's the trick because it doesn't seem to load into the salt dict?
00:16 Twiglet and basically everything breaking
00:16 mosen JoeJulian: yep you can test locally with just salt-call, did you run saltutil.sync_all to see if the modules are synced?
00:17 JoeJulian I tried sync_modules.
00:17 TheoSLC joined #salt
00:17 ocdmw joined #salt
00:18 JoeJulian Oh, crap. Mixed plurals again. Thanks.
00:18 mosen JoeJulian: nothing listed?
00:19 mosen ah cool
00:19 hal58th Twiglet right it up. That sounds absolutely horrible
00:19 Twiglet I prefer testing in vagrant boxes, makes for a nice clean environment
00:19 Twiglet hal58th, I plan to, right afer some whiskey and some sleep
00:19 Twiglet and setting up a blog ;)
00:19 hal58th cool thanks Twiglet
00:20 mosen JoeJulian: on just the test box you can use file_roots: local and add a gitfs root to your working copy.. if you want like a standalone dev node
00:20 mosen yeah vagrant makes more sense :)
00:20 Twiglet I keep meaning to tidy up my vagrant master/minion setup and put it on github
00:20 san4 joined #salt
00:22 Twiglet it has all kinds of pantsonhead retarded networking stuff because i use lxc
00:22 __number5__ it's not hard to run both master and minion on same machine for testing
00:25 jdowning joined #salt
00:25 jalbretsen joined #salt
00:26 ALLmigh__ joined #salt
00:29 SheetiS joined #salt
00:30 forrest Has anyone used pip.installed for running a local setup.py?
00:30 elfixit joined #salt
00:30 forrest I don't see a totally obvious way to do it via the pip.installed docs.
00:30 jopecko joined #salt
00:32 TheoSLC StackStack should buy Chocolatey.org
00:33 __number5__ why? no one using windows
00:33 TheoSLC I am now.
00:34 higgs001 joined #salt
00:34 TheoSLC i just need a decent software repo
00:34 subsignal joined #salt
00:34 nkuttler forrest: hrm, i pip install stuff from my private git repos. that runs setup.py i think?
00:35 forrest it automatically runs the setup.py when you do the checkout? Hmm,
00:36 nkuttler forrest: afaik yes, pip runs the installer
00:36 Pixionus joined #salt
00:38 bhosmer__ joined #salt
00:40 forrest Weird alright I'll give it a try, not sure how it will act for a repo I downloaded and the venv, thanks!
00:42 JordanTesting joined #salt
00:43 JordanTesting Does anyone know if there is a way to restrict a state based on a role? for instance... I have an ntp conf that gets blown out to everything (matching *) but I accidentally just made my ntp servers ref themselves. I would like to keep it as a global match but just say, if this is role ntp, don't apply this state. I can just wrap the state with a role check
00:43 JordanTesting but was wondering if there was an exclusion operation in the top.sls ?
00:45 jerematic joined #salt
00:46 murrdoc joined #salt
00:46 __number5__ JordanTesting: you can use compond matching in top.sls which support 'not' conditions http://docs.saltstack.com/en/latest/topics/targeting/compound.html
00:46 TheoSLC JordanTesting: yes.  docs.saltstack.com/en/latest/topics/targeting/compound.html
00:47 JordanTesting hmmm, I was sort of hoping to do the exclusion on the ntp role, but it makes sense why that isn't a viable thing
00:47 TheoSLC __number5__:  I haven't checked.  is NOT condition working on 2014.7.1.  I remember it being broken on 2014.7.0
00:47 StDiluted joined #salt
00:48 __number5__ TheoSLC: not sure, I don't have complex condition in my top.sls
00:49 subsignal joined #salt
00:49 Nazca joined #salt
00:50 arthabaska I asked this earlier, but didn't get a response.. so along the same line, is it possible to match based on a grain's value, such as G@mem_total:<1000 or version<1.0.0 ?
00:50 murrdoc it should be
00:50 murrdoc anything u can do with salt 'G@mem_total:<100' test.ping
00:50 murrdoc try it out
00:54 bhosmer__ joined #salt
00:55 arthabaska hmm doesn't seem to work for me on my hydrogen master (with some helium minions)--maybe it's only in helium?
01:00 echtish joined #salt
01:02 higgs001 joined #salt
01:06 yomilk joined #salt
01:09 murrdoc joined #salt
01:14 aparsons joined #salt
01:19 aqua^mac joined #salt
01:36 gnord joined #salt
01:39 MatthewsFace joined #salt
01:48 aparsons joined #salt
01:49 TTimo joined #salt
01:50 dude051 joined #salt
01:51 CryptoMe1 Anyone have a way to use file.append to add a string to a file? Shouldn't be a hard question, but the string in question contains a colon, which means salt sees it as a dict.
01:51 primechuck joined #salt
01:51 CryptoMe1 'options ndots:2' is my string
01:52 murrdoc intersting
01:52 murrdoc and \:2 doesnt work ?
01:52 CryptoMe1 nope.
01:52 CryptoMe1 nor \\:2 or \\\:2 lol
01:52 CryptoMe1 Tried throwing single and double quotes around it
01:53 CryptoMe1 I'd prefer to just use file.append, as opposed to creating a jinja-templated file.managed for each environment.
01:56 CryptoMe1 if it helps, here is the basic state
01:56 CryptoMe1 http://pastebin.com/W4YgUiuU
01:59 aCodinMa_ joined #salt
02:00 aCodinM__ joined #salt
02:05 brendanashworth joined #salt
02:05 jopecko joined #salt
02:05 brendanashworth left #salt
02:05 murrdoc joined #salt
02:19 cberndt joined #salt
02:23 aw110f joined #salt
02:24 Jimlad joined #salt
02:25 jdowning joined #salt
02:26 aw110f I have a machine that i can run salt-call from, but the master does see it as registered, running salt-key on the master does not list it
02:27 flupke joined #salt
02:27 jopecko joined #salt
02:29 analogbyte aw110f: when using salt-call, your minion does not contact the master... why do you think the master does see it as registered, if its not appearing in salt-key output?
02:34 jerematic joined #salt
02:35 aw110f analogbyte: the minion config points to the master
02:36 analogbyte aw110f: this does not mean its connected
02:36 analogbyte salt-key -L on the master doesn't list anything at all?
02:36 analogbyte then it's possibly a issue with your masters firewall
02:37 aw110f it doesnt list it when i run ssh-key -L
02:37 analogbyte aw110f: In that case, best review your masters firewall, and check if you can ping the masters fqdn as specified in your minions config
02:38 nitti joined #salt
02:41 meylor joined #salt
02:41 pdayton joined #salt
02:41 meylor1 joined #salt
02:42 meylor1 hey is there a web interface or api that can sit in front of Salt; that allows certain authenticated users to perform salt commands on specified minions?
02:45 meylor1 I'm looking at Halite
02:45 mosen joined #salt
02:50 Madhurranjan joined #salt
02:52 meylor1 nevermind found what i was looking for.http://docs.saltstack.com/en/latest/topics/eauth/index.html
02:53 Furao joined #salt
02:58 badon joined #salt
02:59 higgs001 joined #salt
02:59 twellspring joined #salt
03:00 brendanashworth joined #salt
03:00 brendanashworth left #salt
03:08 StDiluted joined #salt
03:11 favadi joined #salt
03:12 jopecko joined #salt
03:17 aquinas joined #salt
03:19 Madhurranjan joined #salt
03:20 malinoff joined #salt
03:28 ajw0100 joined #salt
03:29 Jimlad joined #salt
03:29 higgs001 joined #salt
03:34 mgw joined #salt
03:48 yomilk joined #salt
03:52 ALLmightySPIFF joined #salt
03:56 runnyspot joined #salt
03:56 mgw joined #salt
04:00 otter768 joined #salt
04:02 hasues joined #salt
04:03 hasues left #salt
04:06 Ryan_Lane joined #salt
04:07 cberndt joined #salt
04:10 clintberry joined #salt
04:10 runnyspot joined #salt
04:10 Cottser|away joined #salt
04:10 djinni` joined #salt
04:11 clone1018_ joined #salt
04:11 robawt joined #salt
04:16 clintberry joined #salt
04:20 ajw0100 joined #salt
04:20 giantlock joined #salt
04:21 clintberry joined #salt
04:22 jerematic joined #salt
04:24 desposo joined #salt
04:25 martinliu joined #salt
04:26 jdowning joined #salt
04:28 clintberry joined #salt
04:37 jopecko joined #salt
04:38 hvn joined #salt
04:38 clintber_ joined #salt
04:39 smcquay joined #salt
04:40 hvn hi all, is anyone use salt-cloud here? I'm using salt-cloud on 2014.1.10 on trusty and also checked 2014.7.1 ppa but those debs does not ship bootstrap.sh file anymore, is that a bug or intended behavior?
04:45 aqua^mac joined #salt
04:54 Micromus joined #salt
05:00 Furao joined #salt
05:12 obrit joined #salt
05:13 xt joined #salt
05:17 schlueter joined #salt
05:17 obrit Greetings, everyone. I have a question about iptables that I'm certain is just because I'm dumb. When I try to lock down my INPUT chain to only ssh and http, my minion can no longer talk to my master. Any ideas?
05:17 obrit This is iptables on the minion
05:19 Furao -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
05:22 cberndt joined #salt
05:22 obrit Furao: Ok, this looks like it's working
05:22 obrit Here is now what my chain looks like:
05:22 obrit Chain INPUT (policy DROP)
05:22 obrit target     prot opt source               destination
05:22 obrit ACCEPT     tcp  --  anywhere             anywhere             multiport dports http,https,ssh
05:22 obrit ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
05:25 obrit Yeah, I believe this is right. Thanks a lot!
05:25 Furao iptables-save and iptables-restore is easier to manage iptables btw
05:27 obrit Cool, thanks for the tip. That seems to be what you have to use for persistent rules anyway, isn't it?
05:28 bhosmer joined #salt
05:29 TTimo joined #salt
05:29 Furao https://github.com/bclermont/states/blob/master/states/firewall/init.sls#L27
05:30 Furao an evolved version of that
05:31 obrit Ah, very cool. Thanks again! This is all very helpful!
05:31 krelo joined #salt
05:37 djinni` joined #salt
05:39 jalbretsen joined #salt
05:51 Madhurranjan joined #salt
06:01 clintberry joined #salt
06:05 keeth joined #salt
06:10 ale joined #salt
06:11 jerematic joined #salt
06:16 joehh2 hvn: please file and issue and ping @joehealy if it is needed - it could be a packaging oversight
06:17 mikeywaites joined #salt
06:17 joehh2 TaiSHi: new packaging release has just gone up
06:18 joehh2 though I suspect you won't be thrilled it is packaging fixes to 2014.1.7 for salt-api
06:26 calvinh joined #salt
06:26 Madhurranjan left #salt
06:27 jdowning joined #salt
06:28 malinoff joined #salt
06:30 riceandbeans joined #salt
06:30 riceandbeans how well does salt support the various BSDs?
06:31 calvinh joined #salt
06:36 catpigger joined #salt
06:42 calvinh_ joined #salt
06:51 kermit joined #salt
06:58 AndreasLutro joined #salt
06:58 colttt joined #salt
06:58 evle1 joined #salt
07:04 Madhurranjan joined #salt
07:10 Madhurranjan hi, we're facing issues with salt-ssh where its not copying over custom state files present in _states
07:10 Madhurranjan how do we go about debugging it ?
07:11 Madhurranjan we see the folder on the remote machine where the entire saltstack content is present
07:14 Madhurranjan there is a salt.tgz that has 'lowstate.json' that has the required info but we always get 'State " " found in SLS " <sls file>" is unavailable'
07:19 flyboy joined #salt
07:19 zadock joined #salt
07:26 tomspur joined #salt
07:27 duncanmv joined #salt
07:27 jopecko joined #salt
07:38 Auroch joined #salt
07:45 KermitTheFragger joined #salt
07:47 BigBear joined #salt
07:50 otter768 joined #salt
07:53 smithd_ joined #salt
07:58 trikke joined #salt
07:58 keeth joined #salt
08:00 jerematic joined #salt
08:03 jcsp joined #salt
08:05 malinoff_ joined #salt
08:05 eseyman joined #salt
08:12 bash1234123123 joined #salt
08:13 hvn joined #salt
08:13 hvn joined #salt
08:14 bash1234123123 joined #salt
08:19 kawa2014 joined #salt
08:19 zadock joined #salt
08:21 kawa2014 joined #salt
08:22 kawa2014 joined #salt
08:25 N-Mi joined #salt
08:27 Madhurranjan joined #salt
08:27 bluenemo joined #salt
08:28 cberndt joined #salt
08:28 jdowning joined #salt
08:29 kawa2014 joined #salt
08:30 duncanmv joined #salt
08:31 karimb joined #salt
08:31 jcsp joined #salt
08:33 kawa2014 joined #salt
08:38 Andre-B joined #salt
08:40 dkrae joined #salt
08:44 lb1a joined #salt
08:49 dariusjs joined #salt
08:50 chiui joined #salt
08:51 mosen joined #salt
08:52 jcsp joined #salt
08:53 jcsp1 joined #salt
08:56 jcsp joined #salt
08:57 cberndt joined #salt
09:03 I3olle joined #salt
09:05 bluenemo joined #salt
09:06 JlRd joined #salt
09:09 favadi1 joined #salt
09:10 TTimo joined #salt
09:14 yomilk joined #salt
09:14 jhauser joined #salt
09:16 shorty_mu joined #salt
09:16 Grokzen joined #salt
09:17 jopecko joined #salt
09:21 hvn joined #salt
09:24 Anbu_ joined #salt
09:25 Anbu_ hey all
09:26 Anbu_ seperate top.sls for unathourized user  is possible ?
09:27 yomilk joined #salt
09:27 Anbu_ we can map top.sls for particular user, is it possible?
09:27 nkuttler Anbu_: well, you have conditions and includes, so why not
09:27 Anbu_ i dont know how to configure?
09:29 nkuttler which part are you unsure about?
09:29 Anbu_ see, top.sls execution followed by base env and sequentially in other env
09:30 Anbu_ this rule followed by root user or unauthorized user..
09:30 bhosmer__ joined #salt
09:31 yomilk joined #salt
09:31 keeth after a bunch of work, I was finally able to get Salt talking to multple private GitHub repos with gitfs and git_pillar (requiring multiple different deploy keys).  The solution in the end was to define SSH aliases (in .ssh/config) for each repo.  Could not find any other way to do it with multiple keys that works with both gitfs and git_pillar.  Is anyone else doing it this way?
09:31 Anbu_ it is possible to map for root user -> base/top.sls  or    other user ->dev/top.sls
09:32 Anbu_ nkuttler: it is possible to map for root user -> base/top.sls  or    other user ->dev/top.sls
09:32 Anbu_ nkuttler: ??
09:34 nkuttler Anbu_: i'm not even sure what you mean by user. user that runs the salt command? user that is configured on a minion? how does salt know which user is just processed?
09:35 jcsp joined #salt
09:36 bluenemo joined #salt
09:37 paulm- joined #salt
09:40 Anbu_ nkuttler: user can runs the salt command only, we can access through access control system with diff users
09:41 Anbu_ nkuttler: like authorize users and unauthoro=ize users
09:42 iwishiwerearobot joined #salt
09:42 Anbu_ nkuttler: by client acl and external auth salt access system
09:44 Anbu_ nkuttler: through this or any way we can use particular top.sls for mentioned user
09:44 Anbu_ nkuttler: to avoid concurrency issuses
09:45 Anbu_ nkuttler: i dont know how to handle this
09:45 agend joined #salt
09:48 intellix joined #salt
09:49 jerematic joined #salt
09:49 ocdmw joined #salt
09:50 xDamox joined #salt
09:50 teogop joined #salt
09:51 otter768 joined #salt
09:52 ekristen joined #salt
09:52 BigBear joined #salt
09:54 sinh joined #salt
09:57 Cottser|away joined #salt
09:58 nethershaw joined #salt
09:59 paulm- Is there a module to get the total swap space?
09:59 Madhurranjan joined #salt
10:02 cberndt joined #salt
10:04 crack joined #salt
10:06 kbyrne joined #salt
10:06 Furao joined #salt
10:07 danee joined #salt
10:07 paulm- I try to run {{salt['status.meminfo']()}} but I get {_error: 'Failed to return clean data'}
10:08 paulm- What does that even mean? It works when I run status.meminfo manually
10:11 totte left #salt
10:13 linjan joined #salt
10:19 slafs joined #salt
10:20 slafs left #salt
10:22 laax joined #salt
10:22 jcsp joined #salt
10:24 jcsp joined #salt
10:29 jdowning joined #salt
10:37 xintron joined #salt
10:38 xintron Is there any way of disabling the "scan for master" from a minion?
10:46 jcsp joined #salt
10:48 nkuttler joined #salt
10:49 giantlock joined #salt
10:52 fredvd joined #salt
10:57 ocdmw joined #salt
10:59 ThomasJ xintron: http://docs.saltstack.com/en/latest/topics/tutorials/quickstart.html
11:00 hvn joined #salt
11:00 TTimo joined #salt
11:02 calvinh joined #salt
11:04 riftman joined #salt
11:05 jopecko joined #salt
11:05 xintron ThomasJ, file_client is set to local but it's still sending requests over the network to look for a master :(
11:07 ThomasJ xintron: If you have restarted the minion after setting that, I would file a bug report as it's specifically not supposed to look for a master when that is set
11:08 xintron I'll do some more debugging but right now it does look like a bug
11:11 jasonrm joined #salt
11:12 evle1 joined #salt
11:15 riftman joined #salt
11:35 Madhurranjan joined #salt
11:37 jerematic joined #salt
11:45 CeBe joined #salt
11:45 calvinh_ joined #salt
11:46 Edgan joined #salt
11:46 jcsp joined #salt
11:51 viq joined #salt
11:52 otter768 joined #salt
11:55 Grokzen joined #salt
11:55 jalaziz_ joined #salt
11:56 paulm-- joined #salt
11:56 dooshtuRabbit1 joined #salt
11:58 bash1234123123 joined #salt
11:58 stooj joined #salt
11:59 riceandb` joined #salt
11:59 andrej joined #salt
12:00 philipsd6_ joined #salt
12:00 aron_kexp_ joined #salt
12:00 giantlock joined #salt
12:00 bigmstone joined #salt
12:01 cberndt joined #salt
12:01 tempspace joined #salt
12:01 desposo joined #salt
12:01 stbenjam joined #salt
12:01 simonmcc joined #salt
12:01 Ahrotahntee joined #salt
12:01 Ahrotahntee joined #salt
12:01 bfoxwell_ joined #salt
12:01 Guest59882 joined #salt
12:04 kwatoko joined #salt
12:05 ctrlrsf joined #salt
12:07 yuhl_work_ joined #salt
12:08 ThomasJ joined #salt
12:10 joehh joined #salt
12:10 dario` joined #salt
12:10 Nazca joined #salt
12:11 xsteadfastx joined #salt
12:11 vectra joined #salt
12:11 crane joined #salt
12:13 nyov_ joined #salt
12:13 nyov_ joined #salt
12:14 jtang_ joined #salt
12:15 extor_ joined #salt
12:15 danee joined #salt
12:15 extor_ left #salt
12:19 Tritlo joined #salt
12:21 johtso joined #salt
12:21 Linuturk joined #salt
12:21 stbenjam joined #salt
12:21 colttt joined #salt
12:21 ale joined #salt
12:21 xt joined #salt
12:21 favadi joined #salt
12:21 primechuck joined #salt
12:21 san4 joined #salt
12:21 che-arne joined #salt
12:21 FRANK_T joined #salt
12:21 bregalad joined #salt
12:21 Miq joined #salt
12:21 akafred joined #salt
12:21 numkem joined #salt
12:21 esogas_ joined #salt
12:21 wiqd_ joined #salt
12:21 pviktori joined #salt
12:21 gfa joined #salt
12:21 gamingrobot joined #salt
12:21 supermike_ joined #salt
12:21 ixs joined #salt
12:21 sifusam joined #salt
12:21 Rockj joined #salt
12:21 whateverman joined #salt
12:21 vlcn joined #salt
12:21 s0lar joined #salt
12:21 funzo joined #salt
12:21 iggy joined #salt
12:21 shalkie joined #salt
12:21 GrueMaster joined #salt
12:21 fxdgear joined #salt
12:21 DenkBrettl joined #salt
12:21 Gilou joined #salt
12:21 arapaho joined #salt
12:21 kaiyou joined #salt
12:21 m0nky joined #salt
12:21 grepory joined #salt
12:21 natewalck joined #salt
12:21 thunderbolt_ joined #salt
12:21 cetex joined #salt
12:21 johtso joined #salt
12:21 hebz0rl joined #salt
12:21 karimb joined #salt
12:22 hax404 joined #salt
12:25 Rockj joined #salt
12:29 jdowning joined #salt
12:31 fredvd joined #salt
12:33 TTimo joined #salt
12:36 totte joined #salt
12:38 jerematic joined #salt
12:38 TyrfingMjolnir joined #salt
12:39 vbabiy joined #salt
12:40 paulm-- How do you create mutually exclusive states?
12:42 JlRd joined #salt
12:47 giantlock joined #salt
12:50 mikeywaites joined #salt
12:50 popus joined #salt
12:52 paha joined #salt
12:53 bhosmer joined #salt
12:56 BigBear joined #salt
12:57 lothiraldan joined #salt
12:58 malinoff joined #salt
13:02 t0rrant joined #salt
13:03 jcsp joined #salt
13:11 TTimo joined #salt
13:12 SheetiS joined #salt
13:17 ociuhandu joined #salt
13:19 bhosmer joined #salt
13:27 Twiglet - unless: sls: path.to.blah
13:27 Twiglet ?
13:27 mapu joined #salt
13:31 giantlock joined #salt
13:31 timoguin joined #salt
13:32 xtalk joined #salt
13:34 jerematic joined #salt
13:35 xtalk good afternoon, can someone tell me this is allowed with file.managed http://pastebin.com/RREXnFQ3  ?
13:36 xtalk having multiple files in file managed ?
13:37 nkuttler that doesn't look like valid yaml
13:37 joehh xtalk: yes
13:37 joehh it will take the first that is found
13:37 egil yeah, thats not valid yaml
13:37 Andre-B_ joined #salt
13:37 nkuttler the yaml parser doesn't complain about duplicate keys?
13:38 joehh nkuttler: ahhh - now I see what you mean
13:38 joehh yes - I was refering to lines 11-14
13:38 joehh not the overall structure
13:38 xtalk soo every file needs its own file.managed ?
13:38 nkuttler ah
13:39 nkuttler xtalk: yeah, but you can also deploy entire directories and their content
13:39 nkuttler (yeah, afaik)
13:40 joehh with a file.recurse
13:41 xtalk thanks guys ! ill try the recusive one :D
13:41 egil or file.directory
13:41 egil depending on your needs ..
13:41 xtalk to bad that isnt allowed :)
13:42 toastedpenguin joined #salt
13:45 egil sure seems like it: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.directory
13:45 jdowning joined #salt
13:46 martin___ joined #salt
13:47 martin___ howdy
13:47 martin___ I have a question, I am writing a custom module, do anyone know how can I call the minion id within my modules/
13:48 __number5__ martin___: __grains__['id']
13:48 martin___ fantastic
13:48 martin___ thanks
13:49 __number5__ np
13:52 otter768 joined #salt
13:54 twellspring joined #salt
13:55 jonatas_oliveira joined #salt
13:59 jespada joined #salt
14:01 jcsp joined #salt
14:03 jeremati_ joined #salt
14:05 dooshtuRabbit joined #salt
14:06 dooshtuRabbit joined #salt
14:07 nitti joined #salt
14:07 dooshtuRabbit joined #salt
14:10 subsigna_ joined #salt
14:15 spiette joined #salt
14:22 elfixit joined #salt
14:24 cpowell joined #salt
14:30 mikkn joined #salt
14:31 BigBear joined #salt
14:34 monkey66 joined #salt
14:37 mpanetta joined #salt
14:41 mdasilva joined #salt
14:43 jopecko joined #salt
14:45 Grokzen joined #salt
14:48 Shax joined #salt
14:48 Shax su
14:48 Shax p
14:48 jcsp joined #salt
14:53 lothiraldan_ joined #salt
14:59 mikeywaites joined #salt
14:59 shorty_mu joined #salt
15:00 schlueter joined #salt
15:00 TTimo joined #salt
15:01 andrew_v joined #salt
15:03 timoguin_ joined #salt
15:03 schlueter1 joined #salt
15:03 twellspring joined #salt
15:05 JDiPierro joined #salt
15:09 hasues joined #salt
15:09 jopecko joined #salt
15:09 hasues left #salt
15:11 mikeywaites joined #salt
15:12 lothiraldan_ joined #salt
15:15 quist joined #salt
15:17 evle1 xtalk: Your paste ist not accessible anymore but maybe what you want is
15:17 evle1 file.managed:
15:17 evle1 names:
15:17 evle1 - /path/to/file1
15:17 evle1 - /path/to/file2
15:28 monkey66 joined #salt
15:30 primechuck joined #salt
15:31 tomh- joined #salt
15:32 MaliutaLap joined #salt
15:32 MaliutaLap joined #salt
15:32 jonatas_oliveira joined #salt
15:32 Grokzen joined #salt
15:34 mdasilva joined #salt
15:38 TheoSLC joined #salt
15:39 Brew joined #salt
15:39 Hybrid joined #salt
15:41 ocdmw joined #salt
15:42 monkey66 joined #salt
15:45 cmek joined #salt
15:48 monkey66 joined #salt
15:50 shorty_mu joined #salt
15:54 otter768 joined #salt
15:54 lnxnut joined #salt
15:55 numkem joined #salt
15:57 hvn joined #salt
15:57 ALLmightySPIFF joined #salt
15:57 ipmb joined #salt
15:57 aw110f joined #salt
16:01 CheKoLyN joined #salt
16:03 aw110f_ joined #salt
16:03 jcsp joined #salt
16:06 schlueter joined #salt
16:06 mdasilva joined #salt
16:09 aquinas joined #salt
16:13 clintberry joined #salt
16:13 monkey66 joined #salt
16:14 jalbretsen joined #salt
16:14 mapu joined #salt
16:16 shorty_mu joined #salt
16:17 mhubbard joined #salt
16:17 murrdoc joined #salt
16:18 rihannon joined #salt
16:18 schristensen joined #salt
16:18 monkey66 joined #salt
16:19 monkey66 left #salt
16:19 davet joined #salt
16:19 UtahDave joined #salt
16:19 yorjo joined #salt
16:21 yorjo Hi, somebody know how to escape the percent sign in a state file? I tried quoting, I tried doubling the %%
16:21 yorjo Rendering SLS 'base:scenario.base_win' failed: Unknown yaml render error; line 10
16:21 yorjo - name: "%%TEMP%%\install_file"    <======================
16:22 yorjo %TEMP% to use the TEMP directory variable on Windows
16:22 workingcats evle1, i didn't ask, but thanks, I needed that :)
16:25 thedodd joined #salt
16:25 smcquay joined #salt
16:27 TheoSLC joined #salt
16:29 gladiatr joined #salt
16:29 malinoff joined #salt
16:30 smithd joined #salt
16:31 zadock joined #salt
16:31 otter768 joined #salt
16:31 xtalk thanks evle1 !
16:31 nkuttler yorjo: can you pastebin the traceback and the sls file?
16:32 TyrfingMjolnir joined #salt
16:32 pduersteler joined #salt
16:34 pduersteler hi all. is it possible to check somehow if a given state is set for a minion, in a template file? I want to add certain things to a config file based on the state, or package installed on the system..
16:34 berserk joined #salt
16:35 pduersteler_ joined #salt
16:35 wnkz joined #salt
16:38 manfred yes
16:38 manfred use salt['pkg.search'] or whatever commands to run execution modules to do your checks
16:40 favadi left #salt
16:42 lothiraldan joined #salt
16:43 tligda joined #salt
16:44 ughloru joined #salt
16:45 ughloru I'm seeing an issue when running `salt-call pip.version` on windows:
16:45 ughloru [INFO    ] Executing command 'c:\\python27\\scripts\\pip2.EXE --version' in directory 'C:\\Users\\'
16:45 jopecko joined #salt
16:45 ughloru Error running 'pip.version': Unable to run command ['c:python27scriptspip2.EXE', '--version']
16:47 ughloru All of the backslashes have been stripped out.
16:47 ughloru This is on 2014.7.1
16:47 ughloru I tried downgrading to 2014.7.0 and the problem disappeared
16:50 UtahDave ughloru: try adding    python_shell=True
16:51 calvinh joined #salt
16:52 zadock joined #salt
16:52 Rockj joined #salt
16:53 ughloru I tried `PS C:\> salt-call pip.version python_shell=True` and received `The following keyword arguments are not valid: {'python_shell': True}`
16:54 ughloru Did I misunderstand where to set that parameter?
16:56 quist` joined #salt
16:59 zadock joined #salt
17:00 mikkn joined #salt
17:01 dunz0r joined #salt
17:02 Rockj joined #salt
17:03 yorjo nkutter: http://pastebin.com/vgmYfKw5
17:04 mikeywaites joined #salt
17:04 jonatas_oliveira joined #salt
17:07 imanc_ is it possible to set a salt servers id when installing via the bootstrap file?  Or if not, then how can it be changed?
17:09 thedodd joined #salt
17:09 egil imanc_: do you mean the master adress?
17:09 jcsp joined #salt
17:09 imanc_ egil: when I run salt '*' test.ping    the names of each server that is returned. I believe by default salt uses the fqdn?
17:10 imanc_ but i'd like to be something user friendly - 'webserver', 'dbserver' etc.
17:10 egil imanc_: hostname i think
17:10 imanc_ egil: so I just need to change the hostname and job done?
17:12 Guest15 joined #salt
17:12 egil imanc_: http://docs.saltstack.com/en/latest/ref/configuration/minion.html#std:conf_minion-id
17:12 ksalman1 can i not use require: pkg: with cmd.wait?
17:12 egil you can set the id in minion config
17:12 ksalman1 cmd.wait appears to be ignoring require: pkg:
17:13 egil imanc_: or set the hostname before you bootstrap
17:13 imanc_ egil: thanks!
17:14 evle1 Also. Look at -i key for salt bootstrap.
17:15 imanc_ evle1: exactly what i was after. Cheers!
17:17 spookah joined #salt
17:21 scarcry joined #salt
17:21 egil even better :)
17:21 imanc_ Suspect you can't set grains via that script tho :)
17:22 dunz0r joined #salt
17:22 evle1 I still prefer to use hostname as id though. Less chance for mistakes.
17:23 Ryan_Lane joined #salt
17:24 bhosmer joined #salt
17:25 evle1 BTW, is there a way to get a list of all minions with timestamps of their latest run of highstate?
17:25 peters-tx joined #salt
17:27 murrdoc nope
17:28 UtahDave joined #salt
17:29 Ryan_Lane evle1: if you use returners, you can record the salt runs in a database, or some other external system
17:29 Ryan_Lane then you'd be able to have that
17:31 jeremyr joined #salt
17:31 atbell joined #salt
17:31 thedodd joined #salt
17:31 atbell joined #salt
17:32 KyleG joined #salt
17:32 KyleG joined #salt
17:32 zer0def joined #salt
17:33 evle1 Actually I have a bit more complicated task.
17:33 evle1 I'm going to have a lot of minions that might suddenly go offline for a long time. I need them to receive latest state as soon as they are back online (and be up to date while they are accessible). Also I need to know if some of them were offline for too long.
17:33 pravka joined #salt
17:33 evle1 Is salt good tool for task like that?
17:34 CheKoLyN joined #salt
17:38 TaiSHi joehh, just read what you said, thanks!
17:38 arthabaska joined #salt
17:40 Grumper joined #salt
17:40 amcorreia_ joined #salt
17:41 MatthewsFace joined #salt
17:41 amcorreia joined #salt
17:41 smithd joined #salt
17:42 twellspring joined #salt
17:43 giantlock joined #salt
17:44 chiui joined #salt
17:44 khaije1 joined #salt
17:46 aparsons joined #salt
17:51 _JZ_ joined #salt
17:51 aparsons joined #salt
17:52 schlueter joined #salt
17:52 ALLmight_ joined #salt
17:54 nickj joined #salt
17:54 ALLmight_ joined #salt
18:03 aparsons_ joined #salt
18:03 mgw joined #salt
18:03 nickj we want to lock down the version of salt stack we're using instead of pulling the latest stable build so we're explicitly enabling the 2014-7 PPA, however the minor version is constantly changing.  Can we be confident that minor version changes in the salt minion will still be compatible with the salt master?
18:04 jonatas__ joined #salt
18:04 mdasilva joined #salt
18:05 ALLmightySPIFF joined #salt
18:06 ALLmight_ joined #salt
18:08 jonatas_oliveira joined #salt
18:10 manfred nickj:  you can't do that with the ppa
18:10 manfred nickj: your master shouldn't be older than the minion
18:10 manfred and we only can keep one package in the ppa at a time, so if you want to lock it to a version, you either need to install using pip or maintain your own packages
18:11 manfred nickj:  http://docs.saltstack.com/en/latest/faq.html#can-i-run-different-versions-of-salt-on-my-master-and-minion
18:12 hebz0rl joined #salt
18:12 btorch is there another way to get just the value with something lile "{{ salt['network.ip_addrs']('eth0') }} "
18:12 btorch instead of having to add a [0] in order to get the ip out of the ['x'] output sent back ?
18:12 aw110f joined #salt
18:14 eliasp btorch: the problem is: eth0 could have more than 1 IP assigned, so you need to explicitely state which of those you want… most of the times you'll have just 1 IP assigned to it, so using [0] by default should work for most cases
18:14 btorch I see
18:15 pduersteler joined #salt
18:15 cpowell joined #salt
18:16 pduersteler Hi all. I have some problems with file.managed and file.append, can someone give me a hint? http://serverfault.com/questions/665636/order-of-command-execution-when-using-file-append-and-file-managed-with-salt-sta
18:16 otter768 joined #salt
18:16 hvn joined #salt
18:16 pdayton joined #salt
18:18 hal58th pduersteler: When possible, it's not a great idea to manage a file and append to said file. Their are a couple solutions though
18:18 hasues joined #salt
18:18 hal58th pduersteler you need to flip your "require_in" to "require". You basically reversed the order of dependency
18:19 hasues left #salt
18:19 nickj thanks for the response manfred, the problem is we launch our masters far far less than the minions so if we just rely on something like launchpad to give us the latest build for the minion, that build could then not be compatible with the master.  sounds like pip is the way to go as you suggested
18:19 favadi joined #salt
18:20 pduersteler hal58th: aah, okay. so, what would be a nicer solution than the current one?
18:20 hal58th I would template the file so you don't need to even do a file.append. Trying to find you a good tutorial
18:22 hal58th Eh, this is all I could find with a really quick search. I'm sure the saltstack site has better stuff http://www.pythian.com/blog/managing-files-with-saltstack/
18:22 BigBear joined #salt
18:23 quantumriff joined #salt
18:23 pduersteler hal58th: i know how to manage files, the file has a few jinja conditions in it ;) but I just saw file.accumulated, eventually I can manage to build something with that one. thanks
18:23 hal58th welcome
18:28 Ozack-work joined #salt
18:31 forrest joined #salt
18:35 schlueter joined #salt
18:35 JDiPierro joined #salt
18:36 jtanner joined #salt
18:36 CheKoLyN joined #salt
18:39 mdasilva joined #salt
18:42 ALLmight_ joined #salt
18:42 kermit joined #salt
18:46 quantumriff joined #salt
18:47 jdowning joined #salt
18:49 trs_ joined #salt
18:49 jdowning joined #salt
18:51 trs_ Hoping to get one final clarification, is it not safe to assume that a salt master and salt minion are compatible if their release versions are different, even though the major version is the same?
18:54 jalaziz joined #salt
18:58 Guest15 joined #salt
18:59 hal58th1 joined #salt
19:01 ckao joined #salt
19:04 ALLmightySPIFF joined #salt
19:05 rihannon1 joined #salt
19:05 jalaziz joined #salt
19:12 thedodd joined #salt
19:14 higgs001 joined #salt
19:15 riceandbeans joined #salt
19:17 hvn joined #salt
19:22 robawt joined #salt
19:22 BigBear joined #salt
19:29 ajw0100 joined #salt
19:29 Guest15 joined #salt
19:32 dooshtuRabbit joined #salt
19:34 dooshtuRabbit joined #salt
19:35 dooshtuRabbit joined #salt
19:38 jalaziz joined #salt
19:43 Grokzen joined #salt
19:44 kaptk2 joined #salt
19:44 bash124512 joined #salt
19:46 bhosmer__ joined #salt
19:46 cpowell joined #salt
19:47 pduersteler joined #salt
19:49 pduersteler quick question: when I add a file from sls a to package b, how do I restart service b to pick up the new config? simply adding the file to the watch statement in sls b yields an error that the file is not available in package b - which makes sense somehow.
19:51 druonysus joined #salt
19:51 druonysus joined #salt
19:54 TTimo joined #salt
19:54 calvinh joined #salt
19:55 davet joined #salt
20:02 thedodd joined #salt
20:02 pduersteler ah, finally got it
20:04 smithd joined #salt
20:05 smithd joined #salt
20:05 aw110f analogbyte: about my minion issue not listed on the master but able to salt-call states. I'm able to ping the fqdn of the master from the minion
20:14 ajw0100 joined #salt
20:15 mikeywaites joined #salt
20:17 shorty_mu joined #salt
20:19 mdasilva joined #salt
20:25 sroegner joined #salt
20:27 otter768 joined #salt
20:28 jopecko joined #salt
20:29 laax joined #salt
20:38 giantlock joined #salt
20:42 mikeywaites joined #salt
20:45 mdasilva joined #salt
20:46 riceandbeans left #salt
20:49 rogst joined #salt
20:53 higgs001 joined #salt
20:56 Brew joined #salt
21:03 forrest_ joined #salt
21:06 hvn joined #salt
21:11 rawkode joined #salt
21:15 zie joined #salt
21:17 Pixionus joined #salt
21:19 higgs001_ joined #salt
21:23 zie hi, I need a minion to call SLS file(do stuff) on a remote minion. that's salt-call right?
21:26 aurynn maybe? this might be better served by orchestration
21:29 sjol_ joined #salt
21:31 schlueter1 joined #salt
21:31 manfred zie:  you can do publish.publish to run modules on other minions, such as the state.sls module
21:31 manfred http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.publish.html
21:31 manfred salt minion1 publish.publish 'minion2' state.sls something
21:32 mgw what will happen if more than one top.sls is present (due to multiple file roots and/or gitfs remotes)?
21:32 mgw is there some precedence?
21:32 zie it's hudson(jenkins) telling a machine to go hg fetch on a remote minion.
21:33 manfred mgw:  http://docs.saltstack.com/en/latest/ref/states/top.html there is a whole section on this page about that
21:33 manfred zie:  you could also use the reactor to send an event back to the master from a minion, to tell the master to do some predefined reactor task
21:33 mgw manfred: thanks
21:33 manfred zie:  http://docs.saltstack.com/en/latest/topics/reactor/
21:33 manfred zie:  https://github.com/gtmanfred/hammercloud-sls/blob/master/reactor/buildpackage.sls
21:34 dooshtuRabbit1 joined #salt
21:34 mgw manfred: I don't right away see where that handles multiple top.sls files
21:34 manfred zie:  https://github.com/gtmanfred/hammercloud-sls/blob/f4f9e823a1aa3e8ac1cae6afd6b3f56132e4bcf8/salt/git.sls#L25
21:34 manfred that is what I do there
21:34 mgw just multiple salt envs in one top.sls
21:34 manfred mgw:  http://docs.saltstack.com/en/latest/ref/states/top.html#how-top-files-are-compiled
21:34 mgw perfect, thanks manfred
21:34 dooshtuRabbit joined #salt
21:35 manfred The examples below all assume that the http://docs.saltstack.com/en/latest/ref/configuration/master.html#std:conf_master-file_roots are set as in the http://docs.saltstack.com/en/latest/ref/states/top.html#states-top-file-roots.
21:35 zie manfred: thanks!
21:36 jman251 joined #salt
21:36 zie I think reactor will be perfect for this, and will make it easier to move hudson to different machines/etc (as the need arises), or make it easier to do manually!
21:37 dooshtuRabbit joined #salt
21:37 hasues joined #salt
21:37 dooshtuRabbit joined #salt
21:38 manfred yar :)
21:38 rawkode Been working on an article as to why we use Salt for provisioning and deployment, in-case of it's of interest to anybody https://medium.com/@rawkode/97e77c4e624e
21:42 phpdave11 rawkode: cant view without facebook or twitter account?
21:43 hasues left #salt
21:43 rawkode phpdave11: I'll publish it, perhaps that will help!
21:43 phpdave11 heh
21:44 rawkode phpdave11: try https://medium.com/teamrock-devtech/continuous-delivery-in-an-autoscaling-environment-97e77c4e624e
21:45 ntropy thanks for sharing
21:45 schlueter joined #salt
21:45 phpdave11 thanks rawkode, i'll read it
21:46 donmichelangelo joined #salt
21:47 ]V[ joined #salt
21:47 ntropy say, if you have encrypted pillar data using gpg, how do you go about testing the states in dev environment?
21:48 ntropy i mean, i dont want to have a copy of the private gpg key on my dev salt master
21:49 ntropy oh, i suppose if i use the gitfs backend and have a dev branch then i can test with dummy pillar
21:50 higgs001 joined #salt
21:56 mirko joined #salt
22:03 BerndSch left #salt
22:06 hvn joined #salt
22:06 hvn joined #salt
22:23 rihannon joined #salt
22:26 jalaziz joined #salt
22:27 otter768 joined #salt
22:32 dude051 joined #salt
22:36 murrdoc joined #salt
22:40 kermit joined #salt
22:45 nebuchadnezzar joined #salt
22:48 otter768 joined #salt
22:50 CeBe1 joined #salt
22:51 jonatas_oliveira joined #salt
23:06 Grokzen joined #salt
23:07 jdowning joined #salt
23:12 KyleG1 joined #salt
23:16 bhosmer_ joined #salt
23:16 jopecko joined #salt
23:17 brianfeister joined #salt
23:17 TTimo joined #salt
23:19 subsignal joined #salt
23:20 KyleG joined #salt
23:20 KyleG joined #salt
23:22 TheoSLC joined #salt
23:27 TheoSLC joined #salt
23:30 Guest15 joined #salt
23:33 timoguin joined #salt
23:38 jopecko joined #salt
23:42 paulm- joined #salt
23:50 meylor joined #salt
23:53 meylor https://github.com/saltstack/salt-cloud/issues/580 Does anyone have any insight to why this was closed? Does the community not think that Route53/ELB work should not be done in salt-cloud?
23:54 cberndt joined #salt
23:54 saguilar joined #salt
23:55 hvn joined #salt
23:58 whytewolf meylor: just reading the ticket, but it looks like it is closed because it is a dup of https://github.com/saltstack/salt-cloud/issues/388
23:58 meylor yeah i saw that after

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