Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-01-11

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

All times shown according to UTC.

Time Nick Message
00:05 RobertChen117 joined #salt
00:14 TyrfingMjolnir joined #salt
00:15 felskrone joined #salt
00:15 relidy joined #salt
00:19 otter768 joined #salt
00:22 quasiben joined #salt
00:28 jfred joined #salt
00:59 ajw0100 joined #salt
01:03 TimMc joined #salt
01:22 yomilk joined #salt
01:25 otter768 joined #salt
01:32 ageorgop joined #salt
01:34 yomilk joined #salt
01:35 futuredale joined #salt
01:37 Bryson joined #salt
01:46 ajw0100 joined #salt
01:48 armyriad joined #salt
01:50 catpig joined #salt
01:51 antpa joined #salt
02:07 armyriad joined #salt
02:13 otter768 joined #salt
02:14 yomilk joined #salt
02:17 edrocks_ joined #salt
02:17 quasiben joined #salt
02:19 edrocks__ joined #salt
02:23 yomilk joined #salt
02:34 evle joined #salt
02:35 beardedeagle joined #salt
02:47 subsignal joined #salt
02:49 ilbot3 joined #salt
02:49 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.3 | Paid support available for open source Salt! www.saltstack.com/support | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | Ask with patience as we are volunteers and may not have immediate answers
02:56 catpigger joined #salt
03:01 favadi joined #salt
03:08 beardedeagle joined #salt
03:10 jfred joined #salt
03:10 karlthane joined #salt
03:13 lsc joined #salt
03:14 relidy joined #salt
03:14 jfred joined #salt
03:15 dancat joined #salt
03:19 jfred joined #salt
03:23 otter768 joined #salt
03:35 racooper joined #salt
03:45 subsignal joined #salt
03:47 tmclaugh[work] joined #salt
03:57 digitalhero joined #salt
03:57 yomilk joined #salt
04:16 ageorgop joined #salt
04:19 dancat joined #salt
04:21 colegatron joined #salt
04:22 antpa joined #salt
04:26 ramteid joined #salt
04:37 tristianc joined #salt
04:41 orion_ joined #salt
04:42 orion_ Hi. Is the "salt-cloud -m foo -P" command idempotent?
04:42 orion_ Meaning, if I have 10 VMs defined in a map and I run the command twice, will I get 20 VMs or will nothing happen the second time? I'm on AWS/EC2.
04:42 dancat joined #salt
04:47 iggy orion_: yes
04:48 orion_ Wonderful! Thanks.
04:53 otter768 joined #salt
05:03 jeddi joined #salt
05:14 beardedeagle I see the fix for "salt-cloud -p some_profile namedvm -P" was committed. Nice!
05:15 bhosmer joined #salt
05:23 antpa joined #salt
05:32 quasiben joined #salt
05:33 rdas joined #salt
05:33 froztbyte joined #salt
05:43 pcdummy joined #salt
05:43 pcdummy joined #salt
05:46 digitalhero joined #salt
05:48 favadi joined #salt
05:49 subsignal joined #salt
05:59 netcho joined #salt
06:03 calvinh joined #salt
06:09 keimlink joined #salt
06:12 kshlm joined #salt
06:21 antpa joined #salt
06:26 tzero joined #salt
06:40 cberndt joined #salt
06:41 jhauser joined #salt
06:45 cyborg-one joined #salt
06:49 cliluw joined #salt
07:00 GreatSnoopy joined #salt
07:02 malinoff joined #salt
07:04 colttt joined #salt
07:11 otter768 joined #salt
07:13 Azid joined #salt
07:20 illern joined #salt
07:33 linjan joined #salt
07:35 digitalhero joined #salt
07:44 duncanmv joined #salt
07:50 subsignal joined #salt
07:50 yomilk joined #salt
08:00 otter768 joined #salt
08:02 yomilk joined #salt
08:02 otter768 joined #salt
08:03 TyrfingMjolnir joined #salt
08:04 otter768_ joined #salt
08:06 otter768_ joined #salt
08:07 dgutu joined #salt
08:08 otter768 joined #salt
08:10 otter768_ joined #salt
08:10 antpa joined #salt
08:12 otter768 joined #salt
08:12 asco1aro joined #salt
08:12 mattiasr joined #salt
08:15 KermitTheFragger joined #salt
08:15 otter768 joined #salt
08:16 TyrfingMjolnir joined #salt
08:17 otter768 joined #salt
08:19 otter768 joined #salt
08:21 otter768_ joined #salt
08:21 antpa joined #salt
08:22 denys joined #salt
08:23 slav0nic joined #salt
08:23 otter768 joined #salt
08:24 blckbit10 joined #salt
08:27 kawa2014 joined #salt
08:27 otter768_ joined #salt
08:29 otter768 joined #salt
08:31 otter768_ joined #salt
08:31 antpa joined #salt
08:33 felskrone joined #salt
08:33 otter768 joined #salt
08:33 AirOnSkin joined #salt
08:35 otter768 joined #salt
08:37 otter768 joined #salt
08:38 otter768_ joined #salt
08:39 impi joined #salt
08:40 antpa joined #salt
08:40 otter768 joined #salt
08:42 ingslovak joined #salt
08:44 otter768 joined #salt
08:46 otter768_ joined #salt
08:48 otter76__ joined #salt
08:50 otter768 joined #salt
08:51 subsignal joined #salt
08:52 otter768 joined #salt
08:52 opdude joined #salt
08:54 otter768 joined #salt
08:56 otter768_ joined #salt
08:57 otter768 joined #salt
08:59 otter768 joined #salt
09:00 GreatSnoopy joined #salt
09:02 otter768_ joined #salt
09:03 fredvd joined #salt
09:03 LondonAppDev__ joined #salt
09:03 otter768 joined #salt
09:03 Grokzen joined #salt
09:05 otter768_ joined #salt
09:07 otter768 joined #salt
09:09 otter768 joined #salt
09:11 otter768_ joined #salt
09:13 otter768 joined #salt
09:15 otter768_ joined #salt
09:17 otter768 joined #salt
09:18 otter76__ joined #salt
09:20 keimlink joined #salt
09:21 otter768_ joined #salt
09:22 otter768 joined #salt
09:23 digitalhero joined #salt
09:24 otter76__ joined #salt
09:25 elsmo joined #salt
09:26 yomilk joined #salt
09:28 otter768 joined #salt
09:29 s_kunk joined #salt
09:29 keimlink joined #salt
09:32 otter768 joined #salt
09:34 otter768_ joined #salt
09:34 kbaikov joined #salt
09:36 otter768 joined #salt
09:38 otter768 joined #salt
09:40 otter768_ joined #salt
09:40 chiui joined #salt
09:42 otter768 joined #salt
09:43 blckbit10 joined #salt
09:43 otter76__ joined #salt
09:44 Rumbles joined #salt
09:45 otter768 joined #salt
09:47 otter768_ joined #salt
09:51 RandyT joined #salt
09:51 otter768 joined #salt
09:52 rm_jorge joined #salt
09:53 otter768 joined #salt
09:55 otter768_ joined #salt
09:56 rotbeard joined #salt
09:57 otter76__ joined #salt
09:57 futuredale joined #salt
09:59 otter768_ joined #salt
10:01 tristianc joined #salt
10:01 otter76__ joined #salt
10:01 Micromus joined #salt
10:01 nihe joined #salt
10:01 iamtew_ joined #salt
10:01 saltsa_ joined #salt
10:02 rem5 joined #salt
10:02 xenoxaos- joined #salt
10:02 otter768 joined #salt
10:03 zer0def joined #salt
10:04 dh joined #salt
10:05 otter768_ joined #salt
10:06 impi joined #salt
10:08 otter768 joined #salt
10:08 kawa2014 joined #salt
10:10 otter768 joined #salt
10:12 otter768 joined #salt
10:14 huds joined #salt
10:14 otter768_ joined #salt
10:16 otter768_ joined #salt
10:18 otter768 joined #salt
10:19 dgutu joined #salt
10:20 otter768_ joined #salt
10:21 colegatron joined #salt
10:22 otter76__ joined #salt
10:23 otter768 joined #salt
10:25 otter768_ joined #salt
10:27 otter768 joined #salt
10:29 otter768 joined #salt
10:35 LondonAppDev joined #salt
10:35 giantlock joined #salt
10:36 daemonkeeper What did I miss to migrate, if I moved the salt master to another host, and I'm now getting  [WARNING ] jid does not exist / [WARNING ] Returner unavailable. Apart things seem to work fine
10:37 larsfronius joined #salt
10:37 denys joined #salt
10:40 larsfron_ joined #salt
10:41 daemonkeeper Probably the master job cache according to the log
10:41 daemonkeeper err code
10:45 daemonkeeper copying over /var/cache/salt/master/jobs fixes it, but I am not sure why this was necessary.
10:52 subsignal joined #salt
10:56 amcorreia joined #salt
11:04 yomilk joined #salt
11:12 kawa2014 joined #salt
11:14 s_kunk_ joined #salt
11:15 keimlink joined #salt
11:36 DanyC joined #salt
11:53 s_kunk joined #salt
11:53 subsignal joined #salt
11:56 mortis is there a way to make salt not cry when trying to recursivly copy content of an empty folder? :x
11:57 mortis some minions dont have anything in the source-folder
11:57 mortis and they give errors
11:57 mortis naturally
11:57 mortis but what im aiming for is something like "if source exists then copy it"
11:58 mortis else, do nothing
12:01 Grokzen joined #salt
12:02 felskrone joined #salt
12:02 dgutu joined #salt
12:03 rdas joined #salt
12:03 rem5 joined #salt
12:09 mr-op5 joined #salt
12:10 Grokzen joined #salt
12:16 digitalhero joined #salt
12:18 cuonglm joined #salt
12:19 nahkiss Is there a quick way to set salt-minion's master hostname to something at the same you deploy the minion?
12:20 yomilk joined #salt
12:20 nahkiss Like a parameter to the bootstrap installer
12:21 keimlink joined #salt
12:22 evle1 joined #salt
12:23 mortis sed -i 's/master: salt/master: salt2/g' /etc/salt/minion :D
12:23 nahkiss heh yeah
12:24 nahkiss seems that the bootstrap actually has -A parameter for it luckily :D
12:24 mortis sweet
12:24 nahkiss just had to go thru the code a bit
12:30 otter768 joined #salt
12:41 av_ joined #salt
12:41 giantlock joined #salt
12:47 subsignal joined #salt
12:48 blckbit10 joined #salt
12:48 subsignal joined #salt
12:53 ilbot3 joined #salt
12:53 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.3 | Paid support available for open source Salt! www.saltstack.com/support | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | Ask with patience as we are volunteers and may not have immediate answers
12:55 ScoreUnder In salt.modules.file.search, it's documented as searching for a "pattern". Is this a fixed string, a python regex, a filename-style match?
12:59 mattiasr joined #salt
12:59 quasiben joined #salt
13:01 cyborg-one joined #salt
13:04 rem5 joined #salt
13:08 ScoreUnder taking a step back: I want to rename a file if it contains a certain string
13:09 ScoreUnder I'm now trying to write a state to do this but I don't know how to access states from other states (I want to delegate to file.rename)
13:10 AndreasLutro ScoreUnder: I'd use onlyif and grep for that
13:11 morissette joined #salt
13:14 jeddi joined #salt
13:14 subsignal joined #salt
13:22 ScoreUnder AndreasLutro: that's what I tried, but onlyif only works for commands
13:27 XenophonF joined #salt
13:32 DammitJim joined #salt
13:34 akhter joined #salt
13:36 akhter joined #salt
13:39 AndreasLutro ScoreUnder: can you show me what you tried?
13:40 CeBe joined #salt
13:43 ScoreUnder http://paste.pound-python.org/show/6GQtuivTVi4pCZKyZn9n/
13:43 ScoreUnder Those are two of my attempts
13:44 ScoreUnder The first one fails because file.search throws an exception and there is no way to catch exceptions in jinja2
13:44 ScoreUnder The second one fails because "onlyif" doesn't exist on file.rename
13:45 AndreasLutro onlyif should exist on every state type, what version of salt are you running/
13:45 AndreasLutro ?
13:45 AndreasLutro also... are you aware of ssh_auth.absent, which can remove keys from authorized_keys?
13:46 JDiPierro joined #salt
13:47 gh34 joined #salt
13:47 ScoreUnder AndreasLutro: I want to wipe the entire file if the key is found, because it means the machine is using our old key list (which was horrifically un-manged)
13:47 ScoreUnder un-managed*
13:48 AndreasLutro gotcha
13:48 ScoreUnder on the machine in question, 2014.1.10, but on most we're on 2015.5.3
13:48 AndreasLutro well, the second state from your paste should work, assuming the grep command is correct
13:49 ScoreUnder what version was "onlyif" in every state added?
13:49 gh34 joined #salt
13:49 AndreasLutro I wouldn't know unfortunately
13:50 AndreasLutro I just know that onlyif/unless should work regardless of state type
13:51 ScoreUnder I'll revert to the onlyif version and try it on one of the 2015 machines
13:53 dyasny joined #salt
13:57 mansquad joined #salt
14:02 DanyC joined #salt
14:10 edrocks joined #salt
14:10 digitalhero joined #salt
14:17 bhosmer joined #salt
14:19 numkem joined #salt
14:23 dariusjs joined #salt
14:24 winsalt joined #salt
14:25 drawsmcgraw joined #salt
14:25 mapu joined #salt
14:27 tpaul joined #salt
14:29 viq joined #salt
14:31 otter768 joined #salt
14:31 cpowell joined #salt
14:33 ScoreUnder AndreasLutro: sorrt for taking so long - yes it appears to work in more recent salt versions, and the 2015 one is fine. It's just bad luck I was testing on a machine with an older salt. Thanks
14:36 tmclaugh[work] joined #salt
14:37 MikeyYeahYeah joined #salt
14:38 slav0nic_ joined #salt
14:38 quarcu_ hi chaps
14:38 quarcu_ is it possible to generate md5 in yml via jinja filter ?
14:38 quarcu_ I tried "{{ 'test1'|hash('md5') }}"
14:38 Tanta joined #salt
14:39 quarcu_ but get no filter named 'hash'
14:47 dendazen joined #salt
14:49 andrew_v joined #salt
14:53 hasues joined #salt
14:54 hasues left #salt
14:56 slav0nic_ joined #salt
14:56 kaptk2 joined #salt
14:56 dgutu joined #salt
14:57 racooper joined #salt
14:58 hasues joined #salt
14:59 ALLmightySPIFF joined #salt
15:00 slav0nic_ joined #salt
15:01 hasues left #salt
15:03 mpanetta joined #salt
15:06 zer0def joined #salt
15:15 zmalone joined #salt
15:18 Shirkdog joined #salt
15:18 tehsu Anyway to use logic to only run a portion of a formula if the top.sls has the pillar?
15:21 StogblenToast trying to implement a formula, I can just copy the contents of pillar.example into my real pillar.sls, right?
15:22 StogblenToast or should I link it some other way?
15:26 digitalhero joined #salt
15:26 digitalhero joined #salt
15:28 tmclaugh[work] joined #salt
15:31 rem5 joined #salt
15:32 kshlm joined #salt
15:32 cuonglm joined #salt
15:32 SVQTQ joined #salt
15:34 SVQTQ Hey guys. In my salt setup I have a statefile called files.sls. In this state-file I have a state called: /etc/nginx/sites-available/default:  file.absent:  - name: /etc/nginx/sites-available/default. Even though this statefile gets executed, the default file is still present. Any idea as to why this is still here? Or what possible reasons could be that this file is still here.
15:36 rem5 joined #salt
15:37 akhter SVQTQ: Check the permissions on that file.
15:37 rem5_ joined #salt
15:37 SVQTQ rw-r-r
15:37 SVQTQ akhter, ^
15:37 akhter Also if salt is running as a user other than root, make sure you can delete the file with that user.
15:37 SVQTQ it is running as root
15:38 akhter Have you checked the logs on the minion?
15:38 SVQTQ nope, doing that now
15:38 akhter I would check that, also check the logs on the master just in case.
15:39 akhter You might need to change the log level on both, by default they're set to "Info" which may not provide the info you need.
15:39 SVQTQ I do only see info log and some errors, but those errors are from a only-if state
15:39 akhter Could you provide a gist of the state?
15:40 XenophonF joined #salt
15:41 SVQTQ akhter, https://gist.github.com/SVQTQ/c30277ee0636c217bd54
15:41 XenophonF joined #salt
15:41 SVQTQ master logs gives me no errors either.
15:42 akhter One sec, let me test this out via cli.
15:42 akhter It may just be an issue on the state.
15:42 SVQTQ because of the name and then the name argument, maybe? So it'd be better to name it rm_default_available: file.absent: -name: /path/to/file
15:44 viq SVQTQ: - name is spurious there, you could have something like https://pbot.rmdir.de/2XaU7js-F7tvQHAI_8ZNBw
15:44 akhter That shouldn't matter.
15:44 viq Indeed it shouldn't
15:45 SVQTQ ok, I have edited, just to be conform with best practices.
15:45 XenophonF joined #salt
15:45 SVQTQ But I figured this wouldn't be the reason for the file not being removed.
15:45 akhter I wonder if it's not throwing an error where it should be.
15:46 viq salt-call -l debug state.sls nginx
15:46 viq and see what it does
15:46 SVQTQ ok
15:46 SVQTQ I did already remove the files myself, though.
15:46 akhter Yeah that seems to be the issue.
15:47 SVQTQ I will readd them
15:47 akhter Create another file.
15:47 viq (if your state is named nginx and is in top directory)
15:47 SVQTQ akhter, what seems to be the issue?
15:47 SVQTQ Because when I came here for help, the file was still present.
15:47 anotherZero joined #salt
15:47 SVQTQ after running a highstate where nginx' state file gets called.
15:48 akhter You can't have the state name and the name argument present.
15:48 akhter Either change the state name or remove the name argument as viq stated.
15:48 SVQTQ Oh, yes, I did that
15:48 SVQTQ ok, I hope it works now. I will test and report.
15:48 SVQTQ Thanks for the fast response, guys!
15:49 akhter You're welcome, file a bug report.
15:49 akhter This shouldn't be a problem or an error should be reported.
15:49 SVQTQ ok, I will
15:54 SVQTQ ohmy, it's been a while and cannot immediatly find the correct way to write it cli, I have an environment called 'foo' how to make the state.sls pick the file from that env? I tried salt 'name' state.sls nginx salt_env=foo test=true -l debug
15:54 SVQTQ It gives me the error no matching sls found in env BASE, while I pass the argument to be foo
15:55 SVQTQ ok, saltenv is enough :)
15:56 SVQTQ viq, your code example, could it be that this is not 100% correct, since I tried this and I get an error stating that the name (/etc/nginx/....) is not a dictionary
15:57 SVQTQ but the name should not be a dict imo, or does this stat ehave to be formed {'path/to': value}?
15:58 SVQTQ file.absent instead of file: -absent worked.
15:59 viq ah, sorry
16:02 SVQTQ no problem, this way, I remember it more easy for the next time.. If I oculd have just copy/pasted blind it wouldn't have been in my mind for longer than 2 min
16:03 viq :P
16:03 duncanmv joined #salt
16:12 dgutu joined #salt
16:13 bhosmer joined #salt
16:17 tristianc_ joined #salt
16:17 Brew1 joined #salt
16:21 colegatron joined #salt
16:24 Fiber^ joined #salt
16:25 ageorgop joined #salt
16:27 fredvd joined #salt
16:29 spiette joined #salt
16:30 ageorgop joined #salt
16:31 bluenemo joined #salt
16:32 otter768 joined #salt
16:32 ALLmightySPIFF joined #salt
16:38 favadi joined #salt
16:39 rburkholder joined #salt
16:41 oeuftete So I wrote a little mini-patch for dockerng so we could use a newer docker feature (--oom-kill-disable) internally.  Don't think it's really PR-ready (are new docker features going to happen on 2015.8?), but open to hearing if I should do something with it to make it more widely useful: https://github.com/oeuftete/salt/commit/99715c642ab716de0e322e885d0a0195a9da15cc
16:42 HardWall joined #salt
16:46 spuder joined #salt
16:51 _JZ_ joined #salt
16:52 RealityVoid joined #salt
16:53 tmclaugh[work]_ joined #salt
16:54 surge_ joined #salt
16:55 spuder_ joined #salt
16:57 surge_ I feel like I am missing something here. I have a new VM running 2015.5.5 and docker-py is present, but I get a key error for docker.pulled and docker.running. On another VM running 2015.5.3 with an older docker-py, I have no such issues.
16:58 surge_ Then I downgraded to 1.3.1 docker-py on the first VM and still nothing.
17:01 drawsmcgraw surge_: I've seen some Github issues talking about (among other things), issues with pushing/pulling to/from private registries
17:02 drawsmcgraw That and some other things (non-Salt related) I've seen have led me to just use cmd.script() and have a simple Bash script manage my Docker things.
17:02 surge_ I was trying to pull a public image :(
17:02 drawsmcgraw Maybe I'm fortunate and don't have complex needs, though
17:02 drawsmcgraw Very odd
17:02 drawsmcgraw Have you tried pulling said image on your own?
17:02 drawsmcgraw Without Salt?
17:02 surge_ Yeah, that works haha.
17:02 drawsmcgraw of course :)
17:03 drawsmcgraw surge_: Able to paste a link to your exact error?
17:03 surge_ I initially was doing cmd.run to do docker stuff, then I found the docker module, but now it looks like I’m reverting to good ol’ command line without salt intervention.
17:03 oeuftete surge_: is the key error that it can't find __salt__['docker.pull'] or something?  Maybe you need to reload your minion
17:04 surge_ http://pastebin.com/qbckLpcp
17:06 Bryson joined #salt
17:10 LondonAppDev joined #salt
17:11 keimlink joined #salt
17:11 drawsmcgraw surge_: I agree with oeuftete. That certainly sounds like it hasn't loaded the module
17:12 drawsmcgraw Also, are you using dockerng.running()
17:12 drawsmcgraw If you're writing new states, you'll want to use that for right now to specify the new Docker module
17:12 whytewolf drawsmcgraw: dockerng didn't exist in 2015.5.5
17:13 surge_ I’ve restarted the salt minion once before posting here and I have reload_modules: true in my docker/init.sls state.
17:13 CheKoLyN joined #salt
17:13 surge_ =/
17:13 drawsmcgraw whytewolf: Ah. Sorry, forgot about the versions surge_ was using
17:13 whytewolf surge_: check that what ever python is loading salt can "import docker"
17:13 surge_ yeah that works w/out issue
17:14 surge_ ah wait
17:14 surge_ damn amazon linux
17:14 surge_ gotta check python 2.6 too
17:15 bhosmer joined #salt
17:16 surge_ whytewolf: this is what happens when you just come back from vacation, you forget things. That was the issue. Salt uses python 2.6 on my amazon linux AMI. Going to fix my docker state file now.
17:17 whytewolf ahh vacations. I miss those
17:17 surge_ haha burnout is bad!
17:18 murrdoc joined #salt
17:19 whytewolf yes it is. I havn't had a real vacation since i started at the bank. stupid contract never accounted for them. I should have looked more closely before hand
17:25 shaggy_surfer joined #salt
17:28 TimMc ouch
17:31 shaggy_surfer joined #salt
17:32 impi joined #salt
17:32 writtenoff joined #salt
17:33 linjan joined #salt
17:39 DanyC joined #salt
17:45 TyrfingMjolnir joined #salt
17:50 gcorey joined #salt
17:52 XenophonF joined #salt
17:54 XenophonF joined #salt
17:55 TyrfingMjolnir joined #salt
17:56 kawa2014 joined #salt
18:03 racooper joined #salt
18:03 wendall911 joined #salt
18:03 gekitsuu joined #salt
18:06 ageorgop joined #salt
18:07 brianfeister joined #salt
18:14 netcho joined #salt
18:19 chiui joined #salt
18:20 Evolved joined #salt
18:22 Trauma joined #salt
18:25 TyrfingMjolnir joined #salt
18:25 bhosmer joined #salt
18:32 akhter does anyone know where the __salt__ options are kept?
18:33 akhter I'm trying to use state boto_route53, however it returns an error stating virtual() failed since boto isn't present.
18:33 akhter Which isn't true.
18:33 otter768 joined #salt
18:33 cliluw joined #salt
18:34 andrew_v joined #salt
18:38 akhter Never mind, I figured it out.
18:40 thejrose1984 joined #salt
18:42 phx joined #salt
18:44 ryau joined #salt
18:46 lemur joined #salt
18:47 lemur joined #salt
18:48 spuder joined #salt
18:50 spiette joined #salt
18:58 terratoma joined #salt
18:59 lemur joined #salt
19:01 digitalhero joined #salt
19:04 mansquid joined #salt
19:05 giantlock joined #salt
19:08 spuder_ joined #salt
19:09 MikeyYeahYeah joined #salt
19:10 lemur joined #salt
19:14 murrdoc how do i run highstate
19:14 murrdoc and see changes
19:14 wangofett How do I figre out if I configured my salt s3 properly? there's this dirlist thing: https://docs.saltstack.com/en/latest/ref/file_server/all/salt.fileserver.s3fs.html#salt.fileserver.s3fs.dir_list
19:14 murrdoc more than just a   Name: /etc/monit/monitrc - Function: file.managed - Result: Changed
19:14 murrdoc i want to see what actually changed
19:14 murrdoc Help
19:14 wangofett murrdoc: if you run state.highstate it should give you the changes to the file
19:15 murrdoc nope
19:15 murrdoc it dont do that wangofett
19:15 murrdoc --state-output=changes
19:15 murrdoc is what u need
19:16 * wangofett shrugs
19:16 wangofett mine does
19:16 stooj joined #salt
19:16 viq murrdoc: grep state_output /etc/salt/master
19:16 murrdoc wangofett:  u werent wrong
19:16 murrdoc viq:  u assumed i dont have a .d dir with all the configs
19:16 viq shrug, add a * at the end then
19:17 viq and also state_verbose
19:17 murrdoc `salt name* state.highstate --state-output=changes`
19:17 murrdoc is what i wanted
19:17 murrdoc thank u for helping
19:17 murrdoc sorry for being rude
19:17 murrdoc if i was rude
19:17 murrdoc iggy:  is a pansie
19:17 whytewolf for once you were not rude :P
19:18 murrdoc thanks boo
19:18 murrdoc had a code freeeze at work
19:18 murrdoc long story
19:18 TyrfingMjolnir joined #salt
19:18 linjan joined #salt
19:18 murrdoc basically have to release 2 months of changes
19:18 * murrdoc has adult diapers on
19:18 whytewolf oh fun
19:19 murrdoc u gonna goto salt conf whytewolf
19:19 whytewolf I have no idea. depends on working situation at the time.
19:20 denys joined #salt
19:21 * iggy slaps murrdoc
19:21 whytewolf if I am still on contract with the bank. then most likely not. if i have FTE with the bank [which they are trying to run the gauntlet of red tape for] then maybe. if new company. then fuzzy logic breaks down and cries
19:23 GreatSnoopy joined #salt
19:27 wangofett Is the s3 backend broken or is it just me? https://github.com/saltstack/salt/issues/30276
19:27 saltstackbot [#30276]title: Is filesystem s3fs broken on Centos7 w/2015.8.1, or am I doin' it wrong? | Master config:...
19:28 ryau_ joined #salt
19:32 MikeyYeahYeah joined #salt
19:33 chiui joined #salt
19:43 digitalhero joined #salt
19:45 mapu joined #salt
19:48 ryau joined #salt
19:49 ahammond where can I find a map of release codenames to releases? Specifically, what release is Helium?
19:49 murrdoc its the one that makes u sound funny
19:49 murrdoc ahammond:  https://docs.saltstack.com/en/latest/topics/releases/2014.7.0.html
19:50 ahammond Thanks1
19:50 zmalone https://docs.saltstack.com/en/latest/topics/releases/version_numbers.html
19:50 zmalone can help with upcoming releases
19:53 zmalone I had a minion with a hard coded grain in /etc/salt/grains, and that grain kept disappearing from the file.  Unfortunately, I don't have sequential backups and logs so I can tell when it disappeared.  Has anyone seen something similar, and can anyone think of modules or functions which would remove a grain from /etc/salt/grains?
19:53 ryau_ joined #salt
19:54 murrdoc1 joined #salt
19:55 whytewolf zmalone: anything in modules.grains.* or states.grains.* would do that. [those functions directly edit that file, to make their changes perm]
19:56 whytewolf but would need to grains.delval or grains.remove
19:57 lemur joined #salt
19:57 larsfronius joined #salt
19:57 zmalone Thanks, I wish I had more logs here, because I can't find anything in my file_root that would do it.
19:58 zmalone So it's hard to tell if a salt upgrade overwrote the file, if it was some sync from a master without the grain, or what exactly happened.
19:58 zmalone That's my problem though, thank you for the modules.grains pointer.
19:59 whytewolf no problem
19:59 snarfy joined #salt
19:59 brianfeister joined #salt
20:00 snarfy yo has anyone written a custom salt-cloud bootstrap script? i'm having a brain fart using jinja to access the grains. I know I can... I want to pre-seed them into /etc/salt/grains in a bash script
20:01 bhosmer_ joined #salt
20:02 whytewolf snarfy: read them into a dict, then yaml dump that dict out to a heredoc
20:03 spuder joined #salt
20:03 ryau joined #salt
20:03 chiui joined #salt
20:08 snarfy ... dowhatnow.
20:09 ryau_ joined #salt
20:10 whytewolf in your jinja. pull all the grains into a dict structure. then use the yaml filter to output. into what bash will use as a heredoc to write to /etc/salt/grains
20:11 whytewolf http://www.tldp.org/LDP/abs/html/here-docs.html
20:11 snarfy aight.
20:12 snarfy sounds like I need to do some reading, but thanks for pointing me in the right direction :D
20:15 Shirkdog joined #salt
20:15 racooper_ joined #salt
20:17 iggy snarfy: `salt-call --local grains.set foo bar`
20:18 justanotheruser joined #salt
20:22 snarfy iggy: i'm trying to have role-based cloud instances provision themselves. I need to be able to pre-specify the roles grain before salt is installed.
20:22 snarfy im used to having buit in salt functions to handle the yaml i guess, but they aren't available here
20:22 TyrfingMjolnir joined #salt
20:23 snarfy i think whytewolf is telling me to python it but doesn't realize just how stupid i am
20:23 denys joined #salt
20:24 whytewolf lol. no python needed. here-doc is a bash syntax also
20:24 Tanta put the grains in S3
20:25 Tanta I do this with masterless nodes in EC2, it works well
20:25 snarfy curious idea
20:25 murrdoc joined #salt
20:26 murrdoc salt-run manage.up --out=json | jq .[] | xargs -n 1 -I {} -P 1 salt {} state.highstate
20:26 murrdoc cos salt '*' state.highstate is not good nuff
20:26 Tanta http://pastebin.com/A5yHUnkJ
20:26 whytewolf run highstate only one systems reporting as up instead of waiting for them all to return?
20:26 Tanta here's the actual code I use
20:27 murrdoc whytewolf:  yeah
20:27 Tanta it's a little ghetto but it works
20:27 murrdoc cos i dont have a returner
20:28 MikeyYeahYeah joined #salt
20:28 larsfronius joined #salt
20:29 dendazen_ joined #salt
20:31 ryau__ joined #salt
20:34 heathn joined #salt
20:34 otter768 joined #salt
20:34 heathn Hey, I am wanting a salt master for each of our clients. Say I have 5 clients, is it possible to have 5 different Salt masters on a single server or should I just worry about having a single salt master to manage all clients?
20:35 jhauser joined #salt
20:35 Grokzen joined #salt
20:36 snarfy I think the real good argument for multiple masters is distributed systems
20:37 snarfy what could you hope to achieve by having multiple masters on the same server?
20:37 ryau joined #salt
20:37 zmalone heathn: It sounds like you are talking about a multi-tenant environment where people-clients have access to the minions
20:37 heathn My concern is having a change for one clients state effecting that of another clients.
20:37 snarfy oh I see.
20:37 zmalone in which case, running multiple masters, one per commercial client, makes sense, because otherwise you would be likely to see data leakage between clients
20:38 MikeyYeahYeah joined #salt
20:38 heathn Right, I am concerned about the data leakage, seems unnecessarily risky.
20:38 snarfy you want like different file root for different prof client
20:38 heathn yup.
20:39 zmalone I'd probably do that with multiple masters
20:39 snarfy yeah fair enough.
20:39 heathn How do I go about setting up multiple masters on a single server?
20:39 ryau_ joined #salt
20:40 zmalone https://docs.saltstack.com/en/latest/ref/configuration/master.html publish port and return port on different values, or multiple ips with a master on each (which would be easier)
20:40 heathn My google-fu always brings me to multi-master which I don't believe is what I want.
20:40 zmalone I'd probably go further, and have a completely separate VM for each client
20:40 snarfy yeah i was gonna say that
20:40 snarfy then you are more sure things are distinct
20:40 heathn Well my idea is to have my masters all on a single VPS box on Amazon or somewhere.
20:41 snarfy i think it could also depend on the # of minions
20:41 heathn Probably 2 minions per master.
20:41 snarfy ahh. few enough.
20:41 zmalone Can you run a masterless salt?
20:41 heathn And then I will load balance to those applications.
20:41 zmalone I've done chef-solo/zero from a git repo when I've had similar client requirements
20:42 heathn zmalone: I looked into masterless salt but the problem is I want the ability to scale if needed.
20:42 zmalone each client gets their own git repo, and each minion runs the appropriate repo
20:43 heathn Right but I also just want my master to build, name and designate state of the boxes.
20:43 heathn In masterless I image I need to use a different tool to bring up the VPS instance.
20:43 heathn I can do this with salt-cloud on the salt master server right now.
20:46 zmalone That should be possible by appropriately defining file_root, the above ports, etc. for each master process, although it'll require some digging to get them completely seperate
20:46 heathn I was thinking of maybe using docker containers (one for each master) and different ports to achieve my goal.
20:46 zmalone That would be easier.
20:46 heathn Sounds straighforward enough yea?
20:46 * heathn has never used Docker before.
20:47 heathn Should I maybe have a salt master that configures and deploys all of my docker containers?
20:47 MikeyYeahYeah joined #salt
20:49 rem5 joined #salt
20:52 racooper joined #salt
20:52 Gareth anyone know off hand when using salt-cloud, how it builds the minion configuration that ends up on the minion?
20:57 murrdoc it scps it
20:57 murrdoc from s3
20:57 murrdoc (no lies, o/)
20:57 * Gareth frowns at murrdoc
20:57 teryx510 joined #salt
20:58 Tanta if your solution involves adding docker, you aren't solving much
20:58 Tanta I use a bash script that finds out what the cluster of origin is, sets the minion's ID, and then runs high state
20:58 rawzone joined #salt
21:00 zmalone heathn could use chroots instead, but I wouldn't have much faith in multiple masters on a single host staying truly seperate
21:00 zmalone I suspect they'll find it easier to use docker then chrooting processes and installing salt in there
21:03 heathn yea, docker just seems easier.
21:06 zer0def joined #salt
21:07 digitalhero joined #salt
21:08 rem5 joined #salt
21:09 shaggy_surfer joined #salt
21:10 neogenix joined #salt
21:11 babilen Argh, file_tree pillar .. getting more and more important. *sigh*
21:12 babilen If only we had a way to define some form of generic targeting of SLS files in a directory structure to minions in a single file, rather than conflating directory structure and targeting ...
21:13 babilen /s
21:13 zmalone I'm about to tackle something similar
21:13 zmalone overuse of salt:// without realizing that all minions can read all files
21:16 babilen I still don't understand why imrxtx decided to not use a top.sls for file_tree pillars also ... It'll be super tricky to add that functionality now
21:17 babilen (and no, don't tell me that 1000+ symlinks are the right approach to target the same file to all your minions)
21:17 babilen zmalone: What do you have in mind?
21:18 aidalgol joined #salt
21:18 babilen https://github.com/saltstack/salt/issues/18406 ?
21:18 saltstackbot [#18406]title: Please support 'pillar:' URIs as source | It is very common that one wants to distribute sensitive files to minions and not make that information available to all minions that are connected to the master. The only way to achieve that is to use something like:...
21:20 zmalone Pretty much, although I'd be inlining my secrets into the pillar and then dropping them into a template when they get sent to a minion
21:20 zmalone I have doubts about the security of the message bus and pillar targeting, but it's better then salt://
21:20 ryau joined #salt
21:23 ryau__ joined #salt
21:26 zmalone I like that issue though
21:32 babilen Thanks
21:32 Tanta_G joined #salt
21:33 amcorreia joined #salt
21:33 zmalone I'm not very excited about it though, because it'll be a ton of work, for a solution which will be ugly to live with
21:33 zmalone (but far better than having secrets where all minions can reach them)
21:34 coval3nce joined #salt
21:35 coval3nce Anyone run into a “IndexError: list index out of range” error on network.default_route?  Running 2015.8.3
21:35 coval3nce calling with no args
21:38 coval3nce Ah, net-tools package was not installed, and thus netstat was not on system, which looks like the network.py module relies on
21:39 babilen zmalone: Would the file_tree pillar + nodegroups work for you? It just received an upgrade to ease the distribution of binary files. Pretty sad as the suboptimal targeting scheme will stay forever now, but it should be usable more or less. https://github.com/saltstack/salt/pull/30268 + https://github.com/saltstack/salt/issues/9569#issuecomment-170591058
21:39 saltstackbot [#9569]title: How can a binary file, such as a license key, be distributed via Pillar? | There doesn't seem to be a way to provision binary data into pillar values in order to feed to file.contents_pillar.
21:41 zmalone maybe, that looks like it's still a troubled pull request: https://github.com/saltstack/salt/pull/30268
21:41 saltstackbot [#30268]title: Optimize file_tree ext_pillar and update file.managed to allow for binary contents | The contents/contents_pillar/contents_grains options assume that the contents...
21:41 zmalone I might just defer until 2016.foo and see if anything changes
21:42 murrdoc you know what will change righ ?
21:42 murrdoc support for 2015.*
21:42 murrdoc :D
21:43 seblu joined #salt
21:44 zmalone looks like terminalmage was hoping to get that all in for 2015.8.4
21:44 geekatcmu You know that binary data can pretty much always be converted to/from base64, right?
21:45 geekatcmu For file.contents_pillar to work, you could probably gin up a base64 renderer (a la the gpg renderer)
21:48 brianfeister joined #salt
21:53 shaggy_surfer joined #salt
21:53 roock joined #salt
21:54 elsmo joined #salt
21:57 shaggy_surfer joined #salt
21:59 babilen geekatcmu: That's exactly it! That combined with a way to easily target entire files in a specific file_pillar_root would be perfect
21:59 digitalhero joined #salt
22:02 gimpy2938 left #salt
22:03 Ch3LL joined #salt
22:08 bhosmer joined #salt
22:08 digitalhero joined #salt
22:09 aron_kexp joined #salt
22:09 subsignal joined #salt
22:11 brianfeister joined #salt
22:12 keimlink joined #salt
22:14 akhter joined #salt
22:14 meggiebot joined #salt
22:15 mage_ is it possible to check what would be changed with salt "somemachine" state.apply ?
22:15 wangofett mage_: something like a dry run flag?
22:15 mage_ yep
22:16 mage_ salt "somemachine" state.apply test=True ?
22:16 wangofett I have no clue if there is. Would be interesting, though
22:17 keimlink joined #salt
22:17 fxhp joined #salt
22:20 mage_ works with test=True :)
22:22 colegatron joined #salt
22:24 lemur joined #salt
22:32 stanchan joined #salt
22:32 neogenix joined #salt
22:32 enimal joined #salt
22:35 otter768 joined #salt
22:37 chiui joined #salt
22:39 TOoSmOotH joined #salt
22:40 aidalgol left #salt
22:40 devopsprosiva joined #salt
22:44 devopsprosiva1 joined #salt
22:45 zenlot1 joined #salt
22:46 mosen joined #salt
22:47 blckbit10 joined #salt
22:49 wangofett okay, so I'm super confused. I have a <state>/init.sls file
22:49 devopsprosiva joined #salt
22:49 wangofett but when I run state.apply <state>
22:49 wangofett it tells me there's not one
22:49 wangofett o.O
22:49 wangofett is there a way to list all available states?
22:49 jfindlay mage_, wangofett: also see https://github.com/saltstack/salt/pull/30280/files, https://github.com/saltstack/salt/pull/30118
22:49 saltstackbot [#30118]title: State mock | This adds the "mock" option to state.sls and state.highstate. This allows for the state to be run without calling anything. The returned data is the return as if the states all ran successfully....
22:50 jfindlay may be useful
22:50 wangofett nice
22:50 devopsprosiva1 joined #salt
22:52 jfindlay it's a first step in more control over state execution to allow for more correct and powerful sls validation tools
22:52 devopsprosiva1 joined #salt
22:52 mage_ jfindlay: thanks for the info :)
22:53 jfindlay mage_: no problem :)
22:53 wangofett ahhhhh.... I added the s3 fileserver backend... but apparently I need to have multiple? Is that possible?
22:54 wangofett https://docs.saltstack.com/en/latest/ref/configuration/master.html#std:conf_master-fileserver_backend
22:54 wangofett found it
22:56 perfectsine joined #salt
22:58 hightekvagabond joined #salt
22:59 hasues joined #salt
23:03 ryau_ joined #salt
23:11 hasues left #salt
23:13 lemur joined #salt
23:15 jrgochan hello all. I'm trying to get gitfs working. I've created a local git repo and put my files in it, but I'm not sure how to verify if salt is using gitfs
23:15 jrgochan is there a command to list what files salt can see?
23:16 ryau joined #salt
23:16 jfindlay cp.list_master, I think
23:16 whytewolf salt-run fileserver.dir_list
23:16 whytewolf or salt-run fileserver.file_list
23:17 jrgochan Thank ya.
23:17 jrgochan Hrm. All sorts of empty. Must be doing something wrong
23:18 spuder joined #salt
23:18 whytewolf salt-run fileserver-update
23:18 whytewolf salt-run fileserver.update
23:18 otter768 joined #salt
23:18 whytewolf stupid brain putting a hyphen where a period should have been
23:19 jrgochan oooh. more information. still not working. but thanks!
23:19 ryau__ joined #salt
23:19 whytewolf add a -l debug to that and see if it tells you why it isn't updating
23:20 jrgochan GitError: Failed to connect to <magicalhostname>: Connection refused
23:21 whytewolf well, there you go.
23:21 jfindlay needs more magic
23:21 jrgochan yup yup. thanks for the commands. Now, debug time!
23:21 whytewolf hire gandalf.
23:21 jrgochan and maybe some hobbitsses
23:22 whytewolf just watch out for magic token rings
23:22 jrgochan and mount points of doom?
23:23 whytewolf it is times like this i do love this channel
23:24 jrgochan salt irc is best irc
23:25 murrdoc yes yes it is
23:25 RandyT Greetings gang
23:26 RandyT lorengordon: you around to look at something for me or anyone else that wants to set foot in salt + powershell?
23:26 whytewolf hummm in 8 lines and i have implimented a home built dyndns using salt and route53
23:26 RandyT https://gist.github.com/rterbush/b08c2eb429162d40d77f
23:26 lorengordon RandyT: sure
23:27 RandyT This script is working from powershell prompt on the server.
23:27 RandyT lorengordon: greetings
23:27 brianfeister joined #salt
23:28 RandyT have reverted to the cmd.script approach, but running into permissions issue. Not able to tease it out of the event log, but seems that perhaps there is permission issue running the powershell?
23:28 RandyT lorengordon: had some challenges condensing to one line as you suggested for some things, so am sticking for now with some things that work.
23:29 RandyT Have learned some interesting things that it is not possible to control dialog windows for .copyHere on zip folders as you can with filesystem folders...
23:29 RandyT but regardless, it seems that putting this in cmd.script has gotten past the blocking issue.
23:31 lorengordon RandyT: it looks like the write error is coming from the aws powershell commandlet
23:31 lorengordon how are the permissions to write to the bucket being delegated to the instance?
23:32 RandyT lorengordon: agreed, however, as mentioned, this runs at the command prompt
23:32 RandyT through iam role assigned to the machine.
23:32 RandyT credentials are in user-data
23:33 lorengordon ok, so when you test the script from the command prompt you're sure it is not using a credential file
23:33 RandyT yes
23:33 RandyT there are no credential files on the machine, role assignment only
23:33 mansquad joined #salt
23:34 RandyT and running these commandlets on command line work to copy and put files to the same location
23:34 lorengordon you can try enabling response logging to get more details from the aws commandlets
23:34 lorengordon https://blogs.aws.amazon.com/net/post/Tx1UX89ARJV7UC7/Response-Logging-in-AWS-Tools-for-Windows-PowerShell
23:35 RandyT it is as if when executed via salt cmd.script, we are executing somewhere other than the target minion
23:35 jrgochan Oooooooh! My gitfs is workings. Thanks!
23:35 lorengordon RandyT: that would be odd indeed. you try running from the instance using salt-call?
23:36 RandyT I have not, let me try that...
23:37 ryau_ joined #salt
23:38 RandyT fails with same error
23:38 lorengordon also, have you checked using state.show_sls that the parameters being passed to the script are not getting mangled by yaml/jinja?
23:38 tristianc_ joined #salt
23:39 lorengordon maybe print out the parameters from inside the script to be sure
23:40 RandyT lorengordon: just tried that and it appears that the parameters in -args: are correct
23:41 RandyT fwiw, script is being executed and doing compression of files, but it is the interaction with S3 that is failing, both get and Write...
23:41 RandyT which doesn
23:42 lorengordon i see the -region param on get-s3object, but not write-s3object. is it trying to write to the correct region?
23:42 lorengordon i think it will default to us-east-1
23:42 RandyT let me give that a try. works from command line...
23:43 ryau__ joined #salt
23:44 otter768 joined #salt
23:44 lorengordon RandyT: the only other thing would be to try the response logging
23:44 ryau joined #salt
23:44 hightekvagabond joined #salt
23:45 keimlink joined #salt
23:45 RandyT I am suspecting that "Access Denied" is regarding the commandlet and not access to the resource.
23:46 RandyT How do I control execution permissions for a ps script from salt?
23:46 larsfronius joined #salt
23:47 ryau_ joined #salt
23:48 RandyT execution policy to be more precise
23:49 lorengordon if it was the execution policy, the script wouldn't run at all
23:50 RandyT this relevant at all? https://github.com/saltstack/salt/blob/develop/salt/modules/cmdmod.py#L288
23:52 subsignal joined #salt
23:53 lorengordon when i've use the s3 commandlets, i haven't started the `key` with '/'. starting to stretch, but maybe that gets interpreted differently from the command line?
23:53 lorengordon i really don't think the execution policy is an issue here
23:56 digitalhero joined #salt
23:57 RandyT tried with changed key, no love
23:57 Corey What's the "proper" way to log the output of highstate runs to syslog?
23:57 lorengordon all i got left is response logging
23:58 RandyT lorengordon: thanks, will dig into that next
23:58 drawsmcgraw left #salt

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