Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-09-07

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

All times shown according to UTC.

Time Nick Message
00:05 quasiben joined #salt
00:11 otter768 joined #salt
00:15 fbettag joined #salt
00:33 jondonas joined #salt
00:35 asyncsrc joined #salt
00:44 pravka joined #salt
00:48 quasiben joined #salt
00:49 sunkist joined #salt
00:53 JDiPierro joined #salt
00:58 larsfronius joined #salt
00:59 pravka joined #salt
01:05 quasiben joined #salt
01:11 homeshlice joined #salt
01:12 Jahkeup joined #salt
01:22 CeBe1 joined #salt
01:27 phw_ joined #salt
01:29 quasiben joined #salt
01:33 JDiPierro joined #salt
01:39 cberndt joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt | 2015.5.5 is the latest | Please use https://gist.github.com for code, don't paste directly into the channel | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
01:52 catpiggest joined #salt
02:00 JDiPierro joined #salt
02:01 pm90_ joined #salt
02:02 JDiPierro joined #salt
02:04 ggillies joined #salt
02:06 SgtMalicious joined #salt
02:06 SgtMalicious joined #salt
02:06 clintber_ joined #salt
02:07 mage_ joined #salt
02:07 qybl_ joined #salt
02:07 munhitsu_ joined #salt
02:08 Edgan_ joined #salt
02:08 basepi_ joined #salt
02:08 kuromagi^ joined #salt
02:08 bytemask_ joined #salt
02:09 esharpmajor_ joined #salt
02:10 jfroche_ joined #salt
02:10 SneakyPh1l joined #salt
02:10 Laogeodritt| joined #salt
02:10 oeuftete_ joined #salt
02:10 mspo_ joined #salt
02:10 pfalleno1 joined #salt
02:10 stickmac1 joined #salt
02:10 sybix_ joined #salt
02:12 otter768 joined #salt
02:13 writteno2f joined #salt
02:13 geekatcmu_ joined #salt
02:13 _tr_h_ joined #salt
02:13 Vye_ joined #salt
02:13 Emantor_ joined #salt
02:14 gchao_ joined #salt
02:14 unusedPh- joined #salt
02:15 Cyis_ joined #salt
02:16 muep joined #salt
02:16 Guest57774 joined #salt
02:17 eichiro joined #salt
02:18 laax joined #salt
02:18 al joined #salt
02:19 \ask joined #salt
02:19 xenoxaos joined #salt
02:21 ShibMcNe joined #salt
02:21 GrueMaster joined #salt
02:21 Horgix joined #salt
02:22 davisj joined #salt
02:22 ede joined #salt
02:22 packeteer joined #salt
02:23 deus_ex joined #salt
02:25 evilrob joined #salt
02:27 hardwire joined #salt
02:27 Steven| joined #salt
02:29 mrwboilers1 joined #salt
02:33 FreeSpencer_ joined #salt
02:34 Ahlee_ joined #salt
02:34 zwi joined #salt
02:34 FineTralfazz joined #salt
02:34 FreeSpencer joined #salt
02:34 micko1 joined #salt
02:34 g3cko joined #salt
02:34 awpti joined #salt
02:35 DaveQB joined #salt
02:35 SaveTheRb0tz joined #salt
02:35 deus_ex joined #salt
02:36 fxhp joined #salt
02:36 hoonetorg joined #salt
02:37 icflournoy joined #salt
02:38 quasiben joined #salt
02:39 FredFoo joined #salt
02:40 virusuy joined #salt
02:45 quasiben joined #salt
02:47 TyrfingMjolnir joined #salt
02:49 cztanu1 joined #salt
02:49 subsigna_ joined #salt
02:50 aurynn_ joined #salt
02:50 deus_ex1 joined #salt
02:51 g3cko_ joined #salt
02:52 Alan_S_ joined #salt
02:52 TyrfingMjolnir joined #salt
02:53 vandemar joined #salt
02:55 DaveQB14 joined #salt
02:57 ws2k3_ joined #salt
02:58 FineTralfazz joined #salt
03:02 jab416171 joined #salt
03:02 scooby2 joined #salt
03:02 __alex joined #salt
03:04 thehaven_ joined #salt
03:05 boargod2 joined #salt
03:05 subsignal joined #salt
03:07 g3cko joined #salt
03:07 nebuchad` joined #salt
03:08 shnguyen joined #salt
03:08 favadi joined #salt
03:08 Clyph joined #salt
03:09 homeshlice joined #salt
03:09 pprkut joined #salt
03:10 aquinok joined #salt
03:11 dthom91 joined #salt
03:13 intr1nsic joined #salt
03:14 awpti joined #salt
03:14 teepark joined #salt
03:15 nobrak joined #salt
03:15 nobrak joined #salt
03:16 TyrfingMjolnir joined #salt
03:21 Alan_S_ joined #salt
03:21 TyrfingMjolnir joined #salt
03:21 ggillies does anyone know if it's possible to change pillar variable mid state?
03:21 dimeshake joined #salt
03:22 Gilou joined #salt
03:22 ggillies I want to leverage the neutron execution module but change the credentials for the openstack cloud for different users during the state
03:22 dthom91 joined #salt
03:27 timoguin joined #salt
03:27 marcinkuzminski joined #salt
03:28 jeblair joined #salt
03:31 opensource_ninja joined #salt
03:35 skarn joined #salt
03:38 timoguin joined #salt
03:38 Antiarc joined #salt
03:47 dthom91 joined #salt
03:57 auzty joined #salt
03:59 auzty joined #salt
04:00 jopecko joined #salt
04:01 homeshlice joined #salt
04:06 joe_n joined #salt
04:09 Hipikat left #salt
04:13 otter768 joined #salt
04:19 laax joined #salt
04:20 evle joined #salt
04:20 mosu_ joined #salt
04:23 asad_ joined #salt
04:24 asad_ hello
04:25 asad_ anybody ?
04:28 asad_ left #salt
04:49 ramteid joined #salt
04:56 homeshlice joined #salt
04:59 larsfronius joined #salt
05:09 paha joined #salt
05:09 voxxit joined #salt
05:10 favadi joined #salt
05:15 opensource_ninja joined #salt
05:19 hardwire joined #salt
05:36 dthom91 joined #salt
05:44 vvoody joined #salt
05:45 GnuLxUsr joined #salt
05:54 asad joined #salt
05:54 asad hello
05:54 Guest30119 hello
05:55 Guest57774 left #salt
05:56 totte joined #salt
05:57 colttt joined #salt
06:02 Guest30119 left #salt
06:07 favadi joined #salt
06:11 joe_n joined #salt
06:14 otter768 joined #salt
06:14 joe_n joined #salt
06:18 dopesong joined #salt
06:20 laax joined #salt
06:21 dopesong_ joined #salt
06:22 joe_n joined #salt
06:24 georgemarshall joined #salt
06:24 anmolb joined #salt
06:24 zer0def joined #salt
06:24 dayid joined #salt
06:24 dayid joined #salt
06:24 sirex joined #salt
06:25 chamunks joined #salt
06:25 [vaelen] joined #salt
06:25 sirex joined #salt
06:26 AndreasLutro joined #salt
06:36 favadi joined #salt
06:39 homeshlice joined #salt
06:49 katyucha joined #salt
06:54 kukacz joined #salt
06:59 kawa2014 joined #salt
07:00 Ztyx joined #salt
07:02 Ztyx joined #salt
07:02 irctc472 joined #salt
07:02 irctc472 hi anyone is there?
07:02 eseyman joined #salt
07:02 irctc472 hey
07:03 irctc472 I had one question
07:03 babilen No, you are alone
07:03 irctc472 what?
07:03 irctc472 how to install package.json dependencies with saltstack?
07:04 lb1a joined #salt
07:04 babilen What is package.json ?
07:05 AndreasLutro irctc472: have you tried searching for "salt npm"?
07:05 babilen irctc472: What are its dependencies?
07:07 babilen On Debian a simple "npm: pkg.installed: []" should do it. There is also https://github.com/saltstack-formulas/node-formula for a more generic approach
07:11 irctc472 I will try this: npm: pkg.installed: []
07:14 TyrfingMjolnir joined #salt
07:15 linjan joined #salt
07:19 GreatSnoopy joined #salt
07:19 joe_n joined #salt
07:19 TyrfingMjolnir joined #salt
07:22 slav0nic joined #salt
07:31 impi joined #salt
07:37 kbyrne joined #salt
07:41 Ztyx joined #salt
07:45 sirex joined #salt
07:48 ssc Hi. I have the feeling that salt ignores the "salt_output" config.  I’ve set "state_output: nested; state_verbose: False" in both the minino and master config but I still get the full and detailed out put when I do "salt host state.apply".
07:48 chiui joined #salt
07:49 ssc s/nested/mixed
07:49 ssc Using the '--state-output=mixed' option also doesn't change anything.
08:01 gmoro joined #salt
08:02 Ztyx joined #salt
08:03 babilen Did you restart the master? 'state_output: mixed' works for me. Also: Which version of salt is that? Also: Where did you find "state_output: nested" ?
08:05 babilen https://docs.saltstack.com/en/latest/ref/configuration/master.html#state-output only lists 'full', 'terse' and 'mixed' and I can't find anything else in the source.
08:06 losh joined #salt
08:07 babilen I was also under the impression as if that setting is for highstates, but let me check ...
08:08 gfa joined #salt
08:09 mikeywaites joined #salt
08:09 babilen Ah, no, it isn't
08:10 kbaikov joined #salt
08:12 jhauser joined #salt
08:13 chiui joined #salt
08:14 hemebond joined #salt
08:14 N-Mi joined #salt
08:15 otter768 joined #salt
08:16 hemebond How are people handling per-server or per-environment files and templates? Anything using some sort of role/profile pattern?
08:16 pbrooko joined #salt
08:16 markm joined #salt
08:17 vim-zz joined #salt
08:18 vim-zz hey! i am looking into a way of setting the minion id outside the minion config file, what other sources are there for minion id?
08:18 AndreasLutro vim-zz: /etc/salt/minion_id and the hostname, I think
08:18 hemebond vim-zz: I don't know of any except the minion file.
08:18 babilen hemebond: Different values in pillars mostly and, naturally, different states for different boxes. But then your question is *really* quite generic as the concrete implementation crucially depends on the particular problem you are trying to solve
08:19 hemebond babilen: I'm thinking very, very generally :-) So you use custom states where you can't set everything via a pillar and/or the formula?
08:19 babilen vim-zz: Why?
08:20 pbrooko_ joined #salt
08:20 babilen hemebond: That simply means that a particular formula or state isn't generic enough to handle my usecase and therefore requires a patch.
08:20 David_B55 joined #salt
08:21 hemebond Ah okay. If you needed to provide a file/template, where would you want to store it? In its own state directory?
08:21 laax joined #salt
08:22 vim-zz babilen: i want to have a minion formula which distribute the default minion configuration, e.g. the default master dns address, etc. but if i override it, then i lose the minion id and role. as for role i can use pillar, but for id...
08:22 hemebond Isn't the minion id in minion_id?
08:22 vim-zz AndreasLutro: thanks, i'll try /etc/salt/minion_id
08:23 babilen vim-zz: Something like: https://github.com/saltstack-formulas/salt-formula/blob/master/salt/files/minion.d/f_defaults.conf#L69 ?
08:24 babilen That formula also allows you to set the master address. Note that you will have to remove the old and accept the new key if you change the id of an already accepted minion
08:25 babilen You might want to configure it *before* the minion contacts the master for the first time (e.g. via salt-ssh or suitable provisioning settings, ...)
08:25 vim-zz babilen: thanks, it looks what i should be using - any chance u have an example of using it, maybe a public project?
08:26 mikeywaites joined #salt
08:26 PI-Lloyd joined #salt
08:27 babilen No, but you would, essentially, clone the formula somewhere, reference that clone in your master configuration via GitFS (cf. https://docs.saltstack.com/en/latest/topics/tutorials/gitfs.html) and configure a suitable pillar for your minion
08:29 vim-zz good i stopped by here today ;-)
08:30 linjan joined #salt
08:31 keimlink joined #salt
08:32 amitash joined #salt
08:34 pbrooko joined #salt
08:37 jeddi joined #salt
08:38 supersheep joined #salt
08:42 ice joined #salt
08:42 Guest19748 left #salt
08:45 gfa left #salt
08:47 ninkotech joined #salt
08:52 laax joined #salt
08:56 Ztyx joined #salt
08:59 mohae_ joined #salt
09:00 impi joined #salt
09:10 keimlink joined #salt
09:12 X67r joined #salt
09:13 Cottser joined #salt
09:22 monkey66 joined #salt
09:28 kbyrne joined #salt
09:36 pm90_ joined #salt
09:37 dh joined #salt
09:38 yawniek joined #salt
09:39 zerthimon joined #salt
09:39 miao9611 joined #salt
09:43 sirex joined #salt
09:45 miao9611 hello
09:46 Gardinero joined #salt
09:46 hemebond hi
09:46 Gardinero Hello there.
09:48 Gardinero Is there any way for troubleshooting when trying to pkg.install a file on a Windows minion and I get the following error message: Unable to cache file "salt://Windows/Adobe/Flash\ Player/install_flash_player_18_active_x.msi from saltenv: base"
09:49 Gardinero Can I somehow check the path with a salt command?
09:49 hemebond check the path?
09:50 hemebond Where is that file located relative to your file_root?
09:51 Gardinero The file root points to a mounted volume and the file itself is located in a subdir.
09:52 hemebond So something like /srv/salt/Windows/Adobe/Flash... ?
09:52 rjc joined #salt
09:52 Gardinero Not really. the repo files are located in /srv/salt/... but the installer files are on /mnt/sdb1/data/...
09:53 hemebond Ah, well salt:// urls are relative to the file_root on the master, not the local machine.
09:53 hemebond (as far as I know)
09:54 manfred it depends, if I remember correctly, there are some weird things you have to do to get chocolatey to work fro pkg.install on windows
09:56 Gardinero Ok. I will start from the beginning. Perhaps I made a mistake in the configuration.
09:57 ws2k3_ joined #salt
09:57 manfred unfortunately I don't know anything about setting it up, i just know that there are extra files you have to have in place for chocolatey
09:57 alexlist_ joined #salt
10:00 Gardinero left #salt
10:01 miao9611 The salt hangs when I run the command on a minion. How can I debug it ?
10:01 hemebond miao9611: Run the minion manually in debug mode
10:01 hemebond salt-minion -l debug
10:01 hemebond Then send the command and watch the output on the minion.
10:01 babilen (make sure you stop the normal service first)
10:02 hemebond ^
10:02 ws2k3 joined #salt
10:02 favadi joined #salt
10:02 miao9611 [DEBUG   ] Reading configuration from /etc/salt/minion.d/change_schedule_mine_update.conf [DEBUG   ] Including configuration from '/etc/salt/minion.d/recon.conf' [DEBUG   ] Reading configuration from /etc/salt/minion.d/recon.conf
10:03 miao9611 Then salt hangs a few minutes
10:03 miao9611 [DEBUG   ] Initializing new SAuth for ('/etc/salt/pki/minion', 'hostname', 'tcp://ip:4506') [DEBUG   ] Decrypting the current master AES key
10:03 miao9611 Then , it will run again.
10:04 hemebond Could be some sort of key issue. Is this a new minion?
10:04 miao9611 There is nothing appeared on the sreen. So I want to know if there is a way that I can debug deeply.
10:05 miao9611 No, it has runs many days.
10:05 glyf joined #salt
10:05 hemebond Enabled debug logging on the master
10:05 hemebond log_level_file: debug
10:07 miao9611 I have run tcpdump when run salt-call. when the minion hang, there is no contact between the master and minion
10:09 hemebond salt-call?
10:10 hemebond You're not sending the command from the master?
10:10 miao9611 yes. From the master, It runs normally
10:10 hemebond Ooh.
10:11 hemebond Pass. I've never actually used salt-call.
10:11 hemebond :-P
10:11 miao9611 Thanks anyway.
10:13 favadi joined #salt
10:15 ssc babilen: sorry, had to go afk.
10:15 ssc "state_output: nested" was an error. I meant "state_output: mixed"
10:16 otter768 joined #salt
10:16 Grokzen joined #salt
10:16 ssc I run 2015.5 (.5 on the master ,.0 on a minion)
10:17 larsfronius joined #salt
10:17 ssc The minion is Ubuntu Vivid; salt installed via the bootstrap-script.  The server is OS X and "pip install salt"
10:17 ssc I restarted both, the master and the minion.
10:24 aarontc joined #salt
10:26 GrueMaster joined #salt
10:27 Xevian joined #salt
10:31 babilen ssc: What is the output you see? Could you paste it to one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, http://dpaste.de, … please?
10:33 ssc http://0bin.net/paste/oB4CrkxeKnxWNdS2#SBT8QzEG6yGNm31JhYxZU+I1oirwT9qhuzfnO10TAFY
10:35 ssc I tested it with a master and two minions.  One minions and the master have the config flags "state_output: mixed; state_verbose: False" set, the other minion runs with the defaults.
10:35 ssc The output for both minions is the same (http://0bin.net/paste/oB4CrkxeKnxWNdS2#SBT8QzEG6yGNm31JhYxZU+I1oirwT9qhuzfnO10TAFY)
10:36 ssc And the same that I got before I configured the state_output flag.
10:36 babilen Of which command is that the output? Could you also paste the output of "salt --versions-report" ?
10:37 sirex joined #salt
10:38 ssc This is the output of "salt 'host-*' state.apply
10:38 ssc http://0bin.net/paste/nDQiGetb6zZwTkBw#89Qzr+IhvnySs7bW9LFNrZOAVwoQaA37pf7mrg6fJTE
10:38 babilen Why are you using state.apply rather than "normal" functions?
10:39 anmolb joined #salt
10:39 ssc The docs told me that "salt '*' state.apply' is the proper way to apply a highstate to several mnions
10:39 babilen Which docs?
10:39 ssc the salt docs
10:41 ssc Okay, when I do "salt 'host-*' state.sls ssl.dhparams" it works as expected.
10:41 ssc And I get less output then before.
10:41 babilen state.apply is rather new. Do you see the same behaviour if you run "salt '*' state.highstate" ?
10:41 jeadre joined #salt
10:42 bluenemo joined #salt
10:43 ssc yes, state.highstate also works as expected.
10:43 anmol joined #salt
10:43 ssc https://docs.saltstack.com/en/getstarted/fundamentals/top.html <-- this is were I got "state.apply" from.
10:44 ssc that guide was the first thing I read. :)
10:44 babilen https://github.com/saltstack/salt/issues/24383
10:45 babilen ssc: I'd stick to state.highstate and state.sls for now
10:45 ssc Okay.
10:46 ssc Shall I create an issue for this on github?
10:46 ssc oh, i overlooked your message
10:50 ssc thanks for your help
10:50 ssc :)
10:51 babilen yw
10:58 sgargan joined #salt
10:58 anmol babilen, I was trying out passing pillar data as json structure dynamically to conf file. As in http://paste.ubuntu.com/12306460/ but that doesn't work am I missing something
10:58 babilen .oO( Why aren't you asking the entire channel? )
10:59 anmol my apologies :(
10:59 babilen But {{hostname}} doesn't reference the pillar at all. You want pillar.get for that .. I'd recommend to read the pillar docs
11:00 UForgotten joined #salt
11:01 babilen Something along the lines of salt['pillar.get']('hostname') -- It should be noted though that 'hostname' is a rather unfortunate choice and that 'collectd:python:hostname' might make more sense .. I would also like to point out: https://github.com/saltstack-formulas/collectd-formula
11:02 babilen https://github.com/saltstack-formulas/collectd-formula/blob/master/pillar.example#L121 + https://github.com/saltstack-formulas/collectd-formula/blob/master/collectd/python.sls + https://github.com/saltstack-formulas/collectd-formula/blob/master/collectd/files/python.conf
11:04 quasiben joined #salt
11:20 sgargan joined #salt
11:28 jeffspeff joined #salt
11:30 pbrooko joined #salt
11:36 Tangresh joined #salt
11:36 pm90_ joined #salt
11:38 Tangresh Hello salt, does anyone have experience running salt-minions as a non-root user with sudo_user on CentOS7? I keep running into problems and can't get it to work properly.
11:38 quasiben joined #salt
11:39 babilen What kind of problems? But I think that it is fair to say that it is an unusual setup
11:40 Tangresh First of all, the salt-minion would not be reachable (timeout) from the master when not started as daemon (e.g. sudo salt-minion -u saltminion)
11:40 joe_n joined #salt
11:41 Tangresh I think the zmq code runs into a timeout on the minion. Maybe because the initial connection to the master is done as root and somehow the sockets get lost after user switch?
11:43 SunPowered joined #salt
11:43 kbyrne joined #salt
11:43 Tangresh Now I start salt-minion with -d (daemon) and the timeouts went away, but I can't run any states: The function "state.highstate" is running as PID 28229 and was started at 2015, Sep 07 11:34:51.866081 with jid 20150907113451866081
11:43 babilen Your guess is as good as mine. I'd throw in "-ldebug" to get more info, but haven't bothered running minions as non-root so far.
11:44 babilen I do use salt-ssh without problems though, but that doesn't involve a master naturally
11:45 AndreasLutro Tangresh: my first guess would be that there isn't passwordless sudo set up, and salt is getting stuck at a password prompt
11:45 Tangresh I ran with -l all and a few additional log statements added in the code, but no more info...
11:46 Tangresh passwordless sudo is definitly set up and I can run other execution modules without problems
11:48 babilen So, what is the output of "salt-minion -ldebug -u saltminion" ?
11:51 Tangresh @babilen https://gist.github.com/Tangresh/3a038a7ddec168ca7d00
11:51 dkrae joined #salt
11:53 babilen That looks fine, did you run a state from the master? Can you ping the minion?
11:53 Tangresh Can't ping the minion, can't reach the minion at all
11:54 Tangresh Also, lines 1-67 in that gist are the same as 68-134
11:54 Tangresh After "Re-using SAuth for ('/etc/salt/pki/minion', 'frontend', 'tcp://10.102.10.50:4506')" the minion gets stuck for a minute before repeating
11:55 babilen Does that behaviour change if you start salt-minion as the saltminion user?
11:56 zer0def joined #salt
11:56 Tangresh yes
11:56 babilen How?
11:57 vim-zz joined #salt
11:57 Tangresh so, "sudo salt-minion -u saltminion" -> timeout, but "sudo -u saltminion salt-minion -u saltminion" -> no timeout
11:57 babilen Good
11:57 lobosky_ joined #salt
12:00 babilen Tangresh: What is your "sudo_user" setting in /etc/salt/minion (or whereever you configure that)
12:02 Tangresh Just to be clear: that timeout occurs with and without sudo_user set
12:02 Tangresh But this is my setting: sudo_user: root
12:02 babilen Shouldn't that be 'saltminion' ?
12:05 Tangresh I don't think it should, but I just tried it and got the same output for state.sls/state.highstate commands
12:06 Tangresh But now cmd.run 'ls -la' doesn't return the contents of /root anymore, but the contents of /, which makes sense, since the saltminion user doesn't have a home dir
12:09 lobosky_ Hi saltusers, I'm unable to change directory permissions using this state https://gist.github.com/anonymous/bd9cb8bf2ee5f80c5125
12:10 lobosky_ I just have this error: Failed to change user user1, failed to change group to G etc...
12:11 lobosky_ could you help me to understand the issue ?
12:12 AndreasLutro the users/groups need to exist
12:13 kbyrne joined #salt
12:13 lobosky_ Yes they exist
12:14 lobosky_ but they are LDAP users
12:14 babilen Oh yeah
12:14 babilen https://github.com/saltstack/salt/issues/12803
12:16 otter768 joined #salt
12:22 lobosky_ thanks babilen, this is the issue then :
12:22 lobosky_ To clarify from our discussion on salt-users, the file state is only using pwd for user/group lookup, not full PAM. So anything outside of passwd is inaccessible to the file state/module.
12:23 sgargan joined #salt
12:23 lobosky_ umh...is there a workaround meanwhile ?
12:34 fredvd joined #salt
12:39 sunkist joined #salt
12:43 kbyrne joined #salt
12:47 anmol joined #salt
12:49 keimlink joined #salt
12:50 Ztyx joined #salt
12:53 lobosky_ I think that the solution cmd.run "chown user group" is the best choice
12:54 babilen Sounds sensible .. That being said: LDAP integration for file.* would be good. Mind commenting on that bug?
12:55 babilen I mean you would have to include an extra cmd.run state for every file.* state that manages a file that belongs to an LDAP user or group
13:00 homeshlice joined #salt
13:04 glyf joined #salt
13:06 kawa2014 joined #salt
13:06 amitash joined #salt
13:11 Ztyx joined #salt
13:16 Kurisutian joined #salt
13:16 kbyrne joined #salt
13:18 larsfronius joined #salt
13:19 dthom91 joined #salt
13:19 sgargan joined #salt
13:23 Kurisutian Hi guys! Could anybody help me finding out why I can't run salt-ssh? I can execute it but it gets stuck and never delivers any results. I'm new to salt and a bit overwhelmed by the amount of possibilities...
13:24 Kurisutian I checked it on my local laptop (running Manjaro Linux, an Arch Derivate) and it does not work. Using a VM with Debian 8 it does work flawless... so I'm a bit stuck here...
13:24 babilen Kurisutian: What exactly are you trying?
13:25 Kurisutian babilen: I am running 'sudo salt-ssh '*' test.ping' with a valid roster file and nothing happens. Same on Debian 8 with the same roster file does deliver results...
13:25 babilen So Debian works and Arch is broken?
13:26 Kurisutian it seems so
13:26 babilen Well ... you could run Debian everywhere ;)
13:27 Kurisutian I checked with both Arch packages, they both won't work
13:27 Kurisutian I can't due to various reasons... ;)
13:27 babilen But seriously: Which version of salt do you run on Arch? What does "salt-ssh --versions-report" give you? Can you SSH to the minion in question from your Arch box? What does "salt-ssh -ldebug '*' test.ping" give you on the Arch box?
13:28 Kurisutian SSH to the client works
13:28 racooper joined #salt
13:28 quasiben joined #salt
13:29 babilen Feel free to paste relevant output to one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, http://dpaste.de, …
13:29 Kurisutian version is salt-ssh 2015.5.5 (Lithium)
13:29 kbyrne joined #salt
13:31 Kurisutian here's the debug output: https://paste.debian.net/310654/
13:35 Kurisutian It get's stuck then and I have to ctrl+c to exit... nothing happening no matter how long I'm waiting....
13:36 supersheep joined #salt
13:38 kawa2014 joined #salt
13:41 Kurisutian babilen: anything else I can deliver to find out what's wrong? Right now we cannot run salt-minions (some restrictions we are working on to get resolved soon) so I have to use salt-ssh for now... I am currently doing this as a pilot project to integrate it within our department ;)
13:42 babilen I'm still itnerested in the output of "salt-ssh --versions-report", but it seems to be related to $something in the Arch packaging that I know nearly nothing about nor really care for
13:43 dthom91 joined #salt
13:44 Kurisutian I see... so I would be better of reporting it there?
13:46 kbyrne joined #salt
13:46 babilen Well, it obviously works on Debian, so is unlikely to be an issue with salt itself, but rather due to its packaging, your platform or configuration. If the same roster works from a Debian box, but not on an Arch one we can also conclude that the roster is fine. The issue must therefore be specific to your Arch box.
13:47 babilen But then, without even the "salt-ssh --versions-report" there is little to say about it
13:48 Kurisutian sorry, I missed posting this... just a sec...
13:49 Kurisutian here it is: https://paste.debian.net/310656/
13:50 nbari joined #salt
13:51 nbari hi all, any idea of how to use the test.ping within a recipie,  I would like to ping some hosts to sanitize the mines
13:51 nbari or basically only execut the recipie if host are up and running
13:51 nbari any idea ?
13:51 icflournoy joined #salt
13:52 babilen Kurisutian: What does "iptables-save" give you on the Arch box?
13:53 Kurisutian babilen: https://paste.debian.net/310657/
13:57 kbyrne joined #salt
13:58 dijit joined #salt
13:58 babilen Kurisutian: That looks quite fine
13:59 babilen I do, however, have "sudo: True" in my roster, mind trying that?
13:59 Kurisutian I'll do, just a second
14:00 babilen Ah, works fine without it here .. (on Debian naturally!)
14:00 babilen Any fancy SHELL you are using on Arch?
14:00 dendazen joined #salt
14:00 dendazen left #salt
14:01 Kurisutian nope, just bash
14:02 kbyrne joined #salt
14:02 Kurisutian tried with the sudo:true but it didn't work either
14:02 quasiben joined #salt
14:02 djinni` joined #salt
14:03 kbyrne joined #salt
14:04 kbyrne joined #salt
14:05 sxar joined #salt
14:06 zer0def joined #salt
14:06 babilen Kurisutian: And "ssh ac1accshcmsapabsac1a02" works as root?
14:06 babilen (or "ssh ac1tesaaccshcfgmgmtmwbsac1a01" )
14:07 Kurisutian no, not as root... that's why I defined the user in the roster file.... but generally I can ssh to the target machine, yes
14:07 zwi joined #salt
14:07 kbyrne joined #salt
14:08 babilen Kurisutian: Well, make that "ssh -i /home/vfoeller/.ssh/id_rsa tomcat@ac1tesaaccshcfgmgmtmwbsac1a01"
14:08 babilen *cfoeller
14:08 sxar_ joined #salt
14:09 icflournoy joined #salt
14:09 kbyrne joined #salt
14:09 Kurisutian works
14:09 babilen You might need to pass "-i" to salt-ssh, but lets see if that ssh command works. Did you have to do *anything* for it to work?
14:10 kbyrne joined #salt
14:10 dendazen joined #salt
14:11 Kurisutian you mean salt-ssh -i /home/cfoeller/.ssh/id_rsa 'ac1tesaaccshcfgmgmtmwbsac1a01' test.ping ?
14:12 Kurisutian this would result in "No hosts found with target /home/cfoeller/.ssh/id_rsa of type glob"
14:12 babilen Kurisutian: Did you have to do *anything* for ssh -i /home/cfoeller/.ssh/id_rsa tomcat@ac1tesaaccshcfgmgmtmwbsac1a01" to work? (e.g. accept the initial connection)
14:12 babilen No, I meant "salt-ssh -i 'ac1tesaaccshcfgmgmtmwbsac1a01' test.ping"
14:13 Kurisutian that also didn't work and no, I didn't have to do anything for it to connect
14:14 Kurisutian Unfortunately I have to leave for now due to something I have to take care of. Would you mind if I get in touch again tomorrow and take another look at it? Some incident here at work that I have to solve... :(
14:14 babilen sure
14:14 babilen Good luck
14:14 Kurisutian thank's a lot... I really appreciate your help :)
14:15 Kurisutian Talk to you again tomorrow! BYE :)
14:17 otter768 joined #salt
14:19 dendazen joined #salt
14:22 kevinquinnyo joined #salt
14:23 quasiben joined #salt
14:28 zwi joined #salt
14:34 quasiben joined #salt
14:34 larsfronius joined #salt
14:36 cyborg-one joined #salt
14:37 alexlist_ joined #salt
14:43 viq joined #salt
14:45 mapu joined #salt
14:51 Fiber^ joined #salt
14:51 dekstroza joined #salt
14:53 kbyrne joined #salt
14:53 dekstroza hi everyone, somewhat noobish here when it comes to saltstack, trying to produce custom grain that will find interface used for default route, and then return ip address of that interface...stuck at calling salt.modules.network.default_route inside template...am I doing something crazy here, perhaps there is a better way to achieve this? any help is wellcome
14:54 JDiPierro joined #salt
14:55 kbyrne joined #salt
14:56 kbyrne joined #salt
14:57 kbyrne joined #salt
14:58 kbyrne joined #salt
14:59 iggy it could probably be done with straight python, but if some code that's already there does most of what you need already, run with it
14:59 kbyrne joined #salt
15:00 dekstroza this is the grain i am trying to use: https://gist.github.com/dekstroza/cd8ac1b1c5d3e65e9034
15:01 iggy you could use __salt__['network.default_route']()
15:02 iggy instead of importing the modules that are already loaded
15:02 iggy (actually, should not could)
15:02 zwi joined #salt
15:04 kbyrne joined #salt
15:06 kbyrne joined #salt
15:08 icflournoy joined #salt
15:16 shiriru joined #salt
15:21 JDiPierro joined #salt
15:21 Norbell joined #salt
15:27 impi joined #salt
15:30 jagguli`` joined #salt
15:31 DaveQB joined #salt
15:40 kbyrne joined #salt
15:42 dopesong joined #salt
15:42 eosinx joined #salt
15:48 quasiben joined #salt
15:52 JDiPierro joined #salt
15:53 Tangresh joined #salt
15:53 dendazen joined #salt
16:00 ksj is there a way to get the salt command to print where it's trying to read the files from? I have the correct directory set for file_root, yet it's not finding the top.sls file (which is there and valid)
16:02 dopesong joined #salt
16:04 ksj scratch that....I mistyped the directory....nothing to see here
16:06 sunkist joined #salt
16:14 ageorgop joined #salt
16:16 rm_jorge joined #salt
16:18 armguy joined #salt
16:18 otter768 joined #salt
16:22 alexlist_ joined #salt
16:23 markm joined #salt
16:29 Norbell joined #salt
16:31 dendazen joined #salt
16:32 kawa2014 joined #salt
16:35 alexlist__ joined #salt
16:37 armguy joined #salt
16:40 cberndt joined #salt
16:53 pm90_ joined #salt
16:55 eosinx joined #salt
17:05 larsfronius joined #salt
17:07 pravka joined #salt
17:09 eosinx left #salt
17:09 sgargan joined #salt
17:14 JDiPierro joined #salt
17:15 zwi joined #salt
17:17 linjan joined #salt
17:30 JDiPierro joined #salt
17:32 subsignal joined #salt
17:34 pppingme joined #salt
17:38 riftman_ joined #salt
17:38 riftman_ left #salt
17:40 sgargan joined #salt
17:44 Diaoul joined #salt
17:46 riftman joined #salt
17:47 dopesong joined #salt
17:48 sgargan joined #salt
17:51 clintberry joined #salt
17:53 JDiPierro joined #salt
18:04 riftman joined #salt
18:07 PI-Lloyd joined #salt
18:11 eosinx joined #salt
18:11 GreatSnoopy joined #salt
18:16 dergrunepunkt joined #salt
18:16 dergrunepunkt hi, anyone with experience using keystone module?
18:18 zer0def joined #salt
18:19 otter768 joined #salt
18:19 keimlink joined #salt
18:25 sgargan joined #salt
18:26 fredvd joined #salt
18:26 pppingme joined #salt
18:28 jopecko joined #salt
18:29 babilen dergrunepunkt: What would you ask this hypothetical person?
18:32 chiui joined #salt
18:32 dergrunepunkt babilen: i'm working on a multiregion setup for openstack and keystone module overwrites a region endpoint with the one from the other region instead of creating a second endpoint
18:32 pravka joined #salt
18:37 babilen Okay, so now that people know what you are trying to find information about maybe somebody will answer. It is a bit unfortunate that it is being "wrapped" in our discussion and therefore appears "answered", but "anyone, ..." questions typically don't do well on IRC
18:38 szhem joined #salt
18:40 ageorgop joined #salt
18:41 dergrunepunkt It's a long shot, but I won't loose hope
18:43 ageorgop joined #salt
18:44 PI-Lloyd joined #salt
18:50 laax joined #salt
18:55 riftman joined #salt
19:00 cyborg-one joined #salt
19:02 cruatta joined #salt
19:02 win_salt joined #salt
19:03 win_salt does anyone use the pyobjects renderer?
19:04 timoguin joined #salt
19:06 win_salt I was wondering if git or svn modules worked in pyobjects, i get an error saying they are not defined
19:16 s_kunk joined #salt
19:27 ajw0100 joined #salt
19:39 sgargan joined #salt
19:46 jor joined #salt
19:52 thehaven joined #salt
19:56 dthom91 joined #salt
20:01 sgargan joined #salt
20:06 kukacz joined #salt
20:08 Steven- joined #salt
20:09 toastedpenguin joined #salt
20:11 dthom91 joined #salt
20:12 jhauser joined #salt
20:15 toastedpenguin joined #salt
20:20 otter768 joined #salt
20:21 tkharju joined #salt
20:28 dthom91 joined #salt
20:31 ajw0100 joined #salt
20:34 GnuLxUsr joined #salt
20:34 sgargan joined #salt
20:40 GnuLxUsr joined #salt
20:40 vim-zz joined #salt
20:41 vim-zz does anybody know if i can use negagive filter on top.sls, i.e. if i want all 'roles' to run some formula except for one?
20:41 vim-zz does anybody know if i can use negagive filter on top.sls, i.e. if i want all 'roles' to run some formula except for one?
20:42 babilen Use a compound matcher with "and not ..."
20:43 babilen But I'd rather explicitly list all targets for a state (maybe genenrate that from a list with by looping over a list or whatever)
20:44 vim-zz can u give or point me to an example of such "and not..."?
20:45 vim-zz ok, found something, i'll try first
20:45 hasues joined #salt
20:45 babilen Di you read https://docs.saltstack.com/en/latest/topics/targeting/compound.html already?
20:45 babilen '* and not G@kernel:Darwin' is one example in there.
20:46 babilen I mean you have basic logic operators and the power of normal boolean logic. (yeah, De Morgan again!)
20:46 sgargan joined #salt
20:47 babilen Luckily nobody forces you to keep it in CNF ;)
20:50 vim-zz babilen: thanks, it works! just needed the term 'compound' to google...
20:51 babilen Great, enjoy!
20:51 teryx510 joined #salt
20:51 babilen I would recommend to read the entire of the "targeting" chapter in the salt documentation.
20:58 pppingme joined #salt
21:02 CeBe joined #salt
21:06 joehh joined #salt
21:06 pravka joined #salt
21:16 sgargan joined #salt
21:35 edeefelt joined #salt
21:37 dthom91 joined #salt
21:40 cruatta joined #salt
21:41 Ztyx joined #salt
21:42 quasiben joined #salt
21:45 sgargan joined #salt
21:48 pravka joined #salt
22:04 quasiben joined #salt
22:12 ajw0100_ joined #salt
22:15 SunPowered joined #salt
22:16 SunPowered joined #salt
22:17 jeddi joined #salt
22:21 otter768 joined #salt
22:22 sxar_ joined #salt
22:22 dthom91 joined #salt
22:30 dthom911 joined #salt
22:31 s_kunk joined #salt
22:35 icflournoy joined #salt
22:46 Aidin joined #salt
22:47 Grokzen joined #salt
22:55 Rebus joined #salt
23:15 mullein joined #salt
23:19 sk_0 ok i had to reboot out salt-master aws instance. it's back up and minions can salt-call but running salt 'bla*' test.ping times out
23:19 sk_0 Salt request timed out. The master is not responding. If this error persists after verifying the master is up, worker_threads may need to be increased.
23:19 sk_0 i upped worker_threads to 15 and restarted the master. didn't help
23:20 aristedes joined #salt
23:21 pm90_ joined #salt
23:25 aristedes1 joined #salt
23:25 aristedes1 left #salt
23:27 Aidin left #salt
23:38 ch0ke joined #salt
23:39 womble How do I request only a subset of states be applied to a node?  (For people familiar with Puppet, something equivalent to `--tags`)
23:39 ch0ke hi everyone.  having a slight issue getting my reactor to work.  i created a gist here: https://gist.github.com/ch0ke/821f745cc5246f632b1e
23:47 laax joined #salt

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