Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-02-12

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

All times shown according to UTC.

Time Nick Message
00:01 shaggy_surfer joined #salt
00:04 Ch3LL Glasswalker: yep you will need to include the file to require it: https://docs.saltstack.com/en/latest/ref/states/requisites.html#require-an-entire-sls-file
00:05 Glasswalker Ok, when using network.system to apply a new hostname to a system. I used require_reboot, but how do I actually make it reboot to apply? Or at least restart the network service?
00:06 Glasswalker I've got an installer that depends on the hostname being set correctly, and reflected in /etc/hosts... So I have sethostname.sls doing just that, 2 states, one to set hostname, one to add to hosts file with host.present.
00:06 Glasswalker But when I require that sls on the installer state, the installer still can't detect the hostname correctly
00:06 Glasswalker oddly enough, when I then re-run the state (still no reboot) it works fine and can detect hostname...
00:06 shoemonkey joined #salt
00:07 bhosmer_ joined #salt
00:09 Glasswalker ls
00:09 Glasswalker doh lol
00:10 LondonAppDev__ joined #salt
00:10 cyborgIone joined #salt
00:10 writteno1 joined #salt
00:11 mark____1 joined #salt
00:12 shaggy_surfer1 joined #salt
00:12 tcolvin_ joined #salt
00:13 ws2k3_ joined #salt
00:13 cpowell joined #salt
00:13 edulix_ joined #salt
00:13 Ch3LL Glasswalker: looks like this might be a bug -> https://github.com/saltstack/salt/issues/27716  <- is that what you are experiencing?
00:13 saltstackbot [#27716]title: salt-ssh: require_reboot is ignored for network.system state | ## Problem Description...
00:14 Rkp_ joined #salt
00:14 Glasswalker Yes, exactly it. Though I'm not using salt-ssh
00:14 djgerm left #salt
00:14 Glasswalker but otherwise directly matches
00:15 jfroche_ joined #salt
00:15 zenlot2 joined #salt
00:15 pppingme joined #salt
00:16 Ch3LL Glasswalker; yeah i wonder if its not salt-ssh related. might be helpful to add that its also occuring without salt-ssh for you to that issue report
00:16 Rockj joined #salt
00:17 logandg joined #salt
00:18 Ch3LL also if you just want to restart the network servers you could just  do a service.running with a watch on network.status
00:18 Glasswalker Added comments to that effect
00:18 Ch3LL or do you have to restart the host?
00:18 Glasswalker Nah, restart network service should do it
00:18 Glasswalker I'll try that :)
00:18 Ch3LL k cool
00:18 Glasswalker Sorry for all the questions, and thanks for all your help btw ;)
00:19 Ch3LL don't apologize. i'm glad i could help :)
00:19 Glasswalker I'm new to salt, and trying to rapidly learn it, trying to leverage it for a complex environment deployment
00:19 amcorreia joined #salt
00:19 Ch3LL yeah no worries. ask away
00:19 Glasswalker So kinda diving into the deep end fast lol
00:19 Ch3LL haha nice
00:19 Glasswalker Another question, as part of this. Trying to get my head around pillar to parameterize a bunch of stuff (right now as first pass all my states are mostly hardcoded stuff)
00:20 Glasswalker For example, if I set a pillar value for a host as "class:dbhost"
00:20 Glasswalker can I then set another pillar value for hostname as "DBHostX" where X is the number of currently existing minions with the class:dbhost flag, + 1?
00:20 Glasswalker So first dbhost minion becomes DBHost1 and second becomes DBHost2 and so on?
00:21 Glasswalker I'm trying to come up with an automatic hostname state, which triggers off of a class of minion set via pillar.
00:21 Glasswalker also then I'll use my top files to define states based on a class qualifier
00:22 Glasswalker so then my workflow becomes boot new host, set it's class, let the rest fall into place programmatically
00:22 M-MadsRC joined #salt
00:26 ecrane joined #salt
00:29 ruxu joined #salt
00:30 devopsprosiva I need to set "export LC_ALL='C'" before installing a package. Can I do this in the pkg.installed state?
00:31 Glasswalker So basically I think I can figure the rest out, aside from can I count minions that match a qualifier?
00:32 Glasswalker devopsprosiva, would https://docs.saltstack.com/en/latest/ref/states/all/salt.states.environ.html not help with that?
00:32 iggy Glasswalker: use mine probably
00:32 dendazen joined #salt
00:32 iggy devopsprosiva: what Glasswalker said (beat me to it)
00:32 Glasswalker have a state to set environment, then set as required by your package state
00:33 abednarik joined #salt
00:33 devopsprosiva Glasswalker: Ok. Didn't think about it. Let me try it out.
00:37 treaki_ joined #salt
00:37 hasues joined #salt
00:37 hasues left #salt
00:38 mosen joined #salt
00:39 cyborgIone joined #salt
00:40 M-liberdiko joined #salt
00:41 joe_n joined #salt
00:48 fracklen joined #salt
00:52 hightekvagabond joined #salt
00:59 antpa joined #salt
01:01 bhosmer_ joined #salt
01:01 ecrane whytewolf - I figured out why that issue I had earlier with the _address error is happening. I'm going to submit a patch, unless you already filed something.
01:02 sarlalian joined #salt
01:07 cyborg-one joined #salt
01:09 ecrane joined #salt
01:09 shaggy_surfer joined #salt
01:10 ecrane geeze.. kicked off of chat. Whytewolf, if you wrote anything can you please repeat it?
01:11 ifattah joined #salt
01:11 ifattah hello!
01:12 ifattah I wanted to extend my logger by redacting sensitive information that might be output by log.info/debug/warn/etc
01:12 ifattah I was really suprised to see this:
01:12 ifattah AttributeError: 'SaltLoggingClass' object has no attribute 'setLogRecordFactory'
01:15 ifattah Can someone point me to where SaltLoggingClass can possibly be extended to accept a custom LogRecord class?
01:25 rem5 joined #salt
01:39 * Muchoz reached that glorious moment where all of the states succeed.
01:40 cyborg-one joined #salt
01:42 mark____ joined #salt
01:45 neilf__ joined #salt
01:54 jaybocc2 joined #salt
01:57 tracphil joined #salt
02:09 shaggy_surfer joined #salt
02:16 hightekvagabond joined #salt
02:20 catpigger joined #salt
02:20 justanotheruser joined #salt
02:27 fracklen joined #salt
02:28 malinoff joined #salt
02:30 donmichelangelo joined #salt
02:34 myraft hey all, trying to follow the tutorial to deploy apache httpd. Having some conceptual problems. Basically, once I create the top.sls and webserver.sls, what is needed on the minion ?
02:34 cyborg-one joined #salt
02:36 myraft trying this again, trying to follow the tutorial to deploy apache httpd. Having some conceptual problems. Basically, once I create the top.sls and webserver.sls, what is needed on the minion ?
02:38 cyborg-one joined #salt
02:38 srinivas_ joined #salt
02:43 Ch3LL myraft: as long as you install the salt-minion package on the minion and point it to your master thats all you need to do
02:46 Ch3LL what tutorial are you following?
02:46 ajw0100 joined #salt
02:46 brianfeister joined #salt
02:48 myraft @Ch3LL: Thanks for responding. I am following the docs on saltstack site.
02:48 evle joined #salt
02:49 myraft @Ch3LL: Basically when I run the state.highstate I get error like this " Comment: The following package(s) were not found, and no possible matches were found in the package db: apache"
02:50 myraft @Ch3LL: so if I am trying to install httpd (Apache webserver) on minion, where the minion get the software RPM ?
02:59 myraft @Ch3LL: I think I missing the conceptual part of how the minion will work?
03:04 esharpmajor joined #salt
03:11 cpowell joined #salt
03:17 iggy from the computers normal software repo's
03:18 iggy if you are getting package not found, it's probably called something else on your distro... like maybe httpd instead of apache
03:19 srinivas_ joined #salt
03:20 rihannon joined #salt
03:21 jinkyu joined #salt
03:31 mohae joined #salt
03:31 quasiben joined #salt
03:36 quasiben joined #salt
03:40 quasiben joined #salt
03:45 cyborg-one joined #salt
03:48 esharpmajor joined #salt
03:53 jaybocc2 joined #salt
03:58 hightekvagabond joined #salt
03:58 myraft hey guys, to install some software on minion (e.g. apache webserver, nginx), where does the minion get the RPM from ?
04:00 ruxu joined #salt
04:05 malinoff joined #salt
04:10 akhter joined #salt
04:10 treaki_ joined #salt
04:16 fracklen joined #salt
04:24 rem5 joined #salt
04:26 filip_ joined #salt
04:34 cyborglone joined #salt
04:37 iggy myraft: the normal place
04:39 myraft @iggy: thanks
04:40 myraft so I get it is the equivalent of doing a local install, except that it will happen based on the "master's" command.
04:40 myraft @iggy: Basically when I run the state.highstate I get error like this " Comment: The following package(s) were not found, and no possible matches were found in the package db: apache"
04:40 doompatrol imagine the master is "you
04:41 doompatrol rhel/centos doesn't call it apache iirc
04:41 doompatrol it's httpd
04:41 myraft @doompatrol: got it. But that is the exact tutorial i am following.
04:42 iggy the tutorial was probably written for a distro that does call it apache
04:42 doompatrol or your misunderstanding the state called "apache"
04:43 myraft @doompatrol, @iggy: I get it, actually the tutorial is good enough to point out that httpd is the equivalent version on my OS.
04:43 iggy (I don't actually know of any distro that calls the packages apache... ubuntu/debian call it apache2, rh based stuff is httpd, etc)
04:43 myraft but the error I am getting is when running state.highstate is : " Comment: The following package(s) were not found, and no possible matches were found in the package db: apache"
04:44 myraft how do I overcome that ?
04:44 doompatrol change the pkg to httpd
04:44 myraft @doompatrol- interesting point.
04:45 doompatrol https://docs.saltstack.com/en/latest/topics/tutorials/pillar.html
04:45 doompatrol pkgs:   {% if grains['os_family'] == 'RedHat' %}   apache: httpd   vim: vim-enhanced
04:45 catpig joined #salt
04:45 doompatrol "apache" is merely how the tutorial is describing the salt satte
04:45 doompatrol state*
04:55 jxm_ joined #salt
04:56 myraft @doompatrol: Thanks got it to work
04:57 doompatrol cool beans
05:02 doorsnsardines left #salt
05:06 krymzon joined #salt
05:06 rihannon joined #salt
05:08 armyriad joined #salt
05:09 kermit joined #salt
05:09 donmichelangelo joined #salt
05:10 flebel joined #salt
05:11 gchao joined #salt
05:11 captain_magnus joined #salt
05:11 wych joined #salt
05:11 cliluw joined #salt
05:12 emaninpa joined #salt
05:12 agj joined #salt
05:12 rideh joined #salt
05:12 skarn joined #salt
05:12 berto- joined #salt
05:13 okfine joined #salt
05:15 ymt123 joined #salt
05:16 antpa joined #salt
05:16 Vye joined #salt
05:16 tawm04 joined #salt
05:17 av_ joined #salt
05:18 onlyanegg joined #salt
05:19 anthpa joined #salt
05:19 jaybocc2 joined #salt
05:21 kshlm joined #salt
05:22 voidspacexyz joined #salt
05:25 chutzpah joined #salt
05:30 voidspacexyz1 joined #salt
05:31 frew joined #salt
05:37 rdas joined #salt
05:39 rem5 joined #salt
05:42 iggy https://github.com/SS-archive/salt-states
05:43 evaryont those seems terribly out of date. probably would still work, just need to be careful
05:45 iggy they are a decent reference
05:45 iggy but the person that was asking all the questions left, so...
05:46 iggy they aren't nearly as indescribably complex as most of the stuff in saltstack-formulas
05:48 impi joined #salt
05:48 cyborglone joined #salt
05:53 pwalsh joined #salt
06:00 cyborglone joined #salt
06:01 totzky joined #salt
06:01 SunPowered joined #salt
06:03 voidspacexyz joined #salt
06:05 fracklen joined #salt
06:07 jaybocc2 joined #salt
06:08 mapu joined #salt
06:10 voidspacexyz joined #salt
06:12 jimklo joined #salt
06:21 felskrone joined #salt
06:26 bhosmer joined #salt
06:28 Dividesbyzer0 joined #salt
06:32 cyborglone joined #salt
06:32 ruxu joined #salt
06:35 anmol joined #salt
06:47 voidspacexyz joined #salt
06:48 neilf__ joined #salt
06:52 kshlm joined #salt
06:54 mark____ joined #salt
06:56 voidspacexyz1 joined #salt
07:00 ruxu joined #salt
07:06 viq joined #salt
07:11 rmnuvg joined #salt
07:12 cpowell joined #salt
07:13 giantlock joined #salt
07:19 colttt joined #salt
07:21 onlyanegg joined #salt
07:25 colttt_ joined #salt
07:32 voidspacexyz1 joined #salt
07:33 cyborglone joined #salt
07:33 yuhlw joined #salt
07:34 keimlink joined #salt
07:42 voidspacexyz joined #salt
07:43 cangiani joined #salt
07:45 impi joined #salt
07:46 pwalsh joined #salt
07:48 felskrone joined #salt
07:48 slav0nic_ joined #salt
07:50 KermitTheFragger joined #salt
07:51 antpa joined #salt
07:53 fracklen joined #salt
07:54 fracklen joined #salt
08:02 jhauser joined #salt
08:02 jaybocc2 joined #salt
08:06 linjan joined #salt
08:15 bhosmer joined #salt
08:23 brianfeister joined #salt
08:26 ruxu joined #salt
08:28 kawa2014 joined #salt
08:42 nidr0x joined #salt
08:52 LondonAppDev joined #salt
09:00 amcorreia joined #salt
09:00 krymzon joined #salt
09:01 ronnix joined #salt
09:02 joe_n joined #salt
09:03 jaybocc2 joined #salt
09:04 geomacy joined #salt
09:04 voidspacexyz1 joined #salt
09:05 joe_n joined #salt
09:09 bhosmer joined #salt
09:13 xf10e joined #salt
09:13 xf10e hi *
09:15 wych joined #salt
09:17 GreatSnoopy joined #salt
09:18 joe_n joined #salt
09:22 onlyanegg joined #salt
09:31 krymzon_ joined #salt
09:32 josuebrunel joined #salt
09:36 fredvd joined #salt
09:41 s_kunk joined #salt
09:41 losh joined #salt
09:42 malinoff left #salt
09:42 malinoff joined #salt
09:42 s_kunk_ joined #salt
09:42 krymzon joined #salt
09:43 k_sze[work] joined #salt
09:44 s_kunk joined #salt
09:44 rideh joined #salt
09:51 voidspacexyz1 joined #salt
09:51 rubendv joined #salt
09:51 rubendv joined #salt
09:51 tracphil joined #salt
09:53 antpa joined #salt
09:53 krymzon joined #salt
09:55 kbaikov joined #salt
09:55 Xevian joined #salt
09:57 amcorreia joined #salt
10:00 N-Mi joined #salt
10:00 N-Mi joined #salt
10:02 ericof joined #salt
10:03 keimlink joined #salt
10:03 bhosmer_ joined #salt
10:05 pwalsh joined #salt
10:11 * impi is away: I'm not here right now
10:12 linjan joined #salt
10:12 brianfeister joined #salt
10:16 CeBe joined #salt
10:17 mgresser joined #salt
10:19 krymzon_ joined #salt
10:22 patchedmonkey joined #salt
10:24 Rumbles joined #salt
10:25 cyborglone joined #salt
10:26 Alexxannar joined #salt
10:28 fredvd joined #salt
10:28 Alexxannar Hello! Can anyone give me an advice how to include hiera in salt. Ive configured master config file " - hiera: /srv/pillar/ext_pillar/hieradata" and the same in hiera.yaml, but i'm a bit confused how to enable this external pillars in my states
10:29 AndreasLutro Alexxannar: you don't enable external pillars in states, they're just there in the pillar data
10:30 Alexxannar how i can see them, i cant understand how to include them in top.sls pillar, or i'm doing something wrong?
10:36 brianfeister joined #salt
10:38 giantlock joined #salt
10:39 josuebrunel joined #salt
10:46 krymzon joined #salt
10:49 SpX joined #salt
10:49 mgresser joined #salt
10:55 antpa joined #salt
11:00 xf10e Alexxannar: top.sls is only for the default file based pillar
11:03 bhosmer joined #salt
11:03 jespada joined #salt
11:04 jaybocc2 joined #salt
11:06 ronnix joined #salt
11:10 abednarik joined #salt
11:14 cpowell joined #salt
11:15 Meili joined #salt
11:16 Meili Hey guys. Is it possible to override a build in template with my own?
11:16 _Cyclone_ joined #salt
11:16 Antiarc joined #salt
11:17 pwalsh joined #salt
11:20 giantlock joined #salt
11:21 qqqqq joined #salt
11:21 qqqqq Im fucking mad
11:21 Score_Under joined #salt
11:24 Meili Omg... really?
11:25 qqqqq Im so fucking pissed
11:25 Score_Under erjohnso: I've been debugging a frustrating issue in salt (when adding the _developer group to users on a mac), and I've traced it back to commit 9f6293b63c49df583e83d52122aca5f6180c8651 (and the various refactorings thereof), so it looks like there was an intentional decision to disallow viewing/editing of groups beginning with underscores. Is that right? If so, I'm wondering how much I'll break by remo
11:25 Score_Under ving that code and/or whether I should report it as a bug.
11:26 qqqqq left #salt
11:33 zer0def just before i start bumbling around in the codebase, can anyone point me in the direction where i could start analyzing Salt's requisite mechanism?
11:33 Score_Under I wouldn't know, but for the record it seems like every time requisites haven't worked it's been my own fault
11:37 zer0def no, i'm not questioning their ability to work, just curious about the manner that they work in, Score_Under
11:39 impi joined #salt
11:42 RuriRyan joined #salt
11:43 dendazen joined #salt
11:43 AndreasLutro zer0def: state.py I think
11:43 zer0def thanks AndreasLutro
11:45 Rumbles joined #salt
11:47 RuriRyan heyho, I've got a question regarding the extension_modules setting - I've set it to 'srv/modules' and in there is a file called 'coreutils.py' with a simple function called intersection - now I would gess I can call this function e.g. from jinja code, but I get an error that the AliasLoader has no such attribute - if someone could help me, that would be great :D
11:47 impi joined #salt
11:47 giantlock joined #salt
11:56 antpa joined #salt
11:58 bhosmer joined #salt
11:58 stevej joined #salt
11:59 Meili RuriRyan: are you trying to add a custom module or what?
11:59 RuriRyan yes
12:00 RuriRyan and i wan't to access it from the pillar
12:00 quasiben joined #salt
12:04 Meili since you called the folder "modules" I assume it's an exec module?
12:04 Meili the location of the modules folder appears to be difficult to change. try putting it in /srv/salt and call it "_modules"
12:06 tracphil joined #salt
12:06 RuriRyan that was my first try, then i get's synched to
12:06 RuriRyan *synced to the minions
12:06 RuriRyan but i can't exectue it from the pillar
12:07 abednarik joined #salt
12:07 Score_Under Does anyone know how I can override a single function in a module? My first attempt was this: https://a.uguu.se/mpdbma.png and my second this: https://a.uguu.se/tgrfsk.png but it turns out that far more than just __virtual__ would need to be wrapped like that so I can't help but think I'm doing it wrong. I don't want to copy/paste the entire module if I can avoid that
12:08 Meili RuriRyan: I havent tried custom exec modules from pillar. What is the message you get?
12:09 RuriRyan Meili: [salt.utils.templates][ERROR   ][34496] Rendering exception occurred: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'coreutils.intersection' is the error i get
12:12 RuriRyan I would guess it simply can't find the module but I don't know where I should put for salt to find it. I tiref /srv/salt/_modules, /srv/modules/coreutils.py, /srv/modules/_modules/ - only thing left is put it next to the other modules in the /lib/python/site-packages/salt/modules/
12:12 Meili RuriRyan: I'm not sure I can help you with that... I myself just started using salt 4 days ago :$
12:12 Meili If it can't find the module, it would give another error
12:12 Score_Under RuriRyan: Did you give it a __virtual__ function?
12:12 RuriRyan Score_Under: yes
12:13 Meili and... do you return an alternative name?
12:13 cangiani joined #salt
12:13 RuriRyan I return the the filename aka. 'coreutils'
12:15 Meili try removing your virtual function or just return true
12:18 RuriRyan removing the __virtual__ function and returning True changed nothing, same error
12:20 ronnix joined #salt
12:20 Score_Under RuriRyan: just to make sure, did the (correct version of the) file make it to /var/cache/salt/minion/extmods/modules/?
12:20 Score_Under on the minion
12:21 sjorge joined #salt
12:21 sjorge joined #salt
12:21 fracklen joined #salt
12:21 stevej Hi guys, I am trying to build a development environment using branches in gitfs, but from testing and reading it seems that _modules have to be in base. If that's the case then developing changes to _modules will affect your production branches.
12:21 RuriRyan The modules doesn't need to get synced to minions, it's a pillar module, so it has to stay on the master
12:22 stevej Am I right that _modules has t be in the base/master branch and if so is it actually feasible to develop changes to these moduels on a production salt master in any way?
12:23 xenoxaos joined #salt
12:23 Score_Under stevej: I'm testing an extension module on a branch right now
12:23 fracklen joined #salt
12:23 Score_Under stevej: I just run "saltutil.sync_all" with "saltenv=branch_name_here"
12:24 RuriRyan ok i've solved my issue <.<
12:24 CrummyGummy there seems to be a problem with the git_pillar documentation. It says that the branch name is specified by env where it only seems to work when specified by name.
12:24 RuriRyan I had to create an addition modules directory for salt to find it
12:24 Score_Under RuriRyan: for the record what was the solution?
12:25 `chris joined #salt
12:25 intr1nsic joined #salt
12:25 RuriRyan I thought since the setting is called extension_modules, on the master, I thought it would search for modules and not for a directory called modules inside the given one
12:26 CrummyGummy or maybe I'm missing something
12:26 srinivas_ joined #salt
12:26 nkuttler grmbl.. looks like all my minions are unresponsive unless i restart them
12:28 Score_Under I'm still not understanding this issue with globals. How on earth does salt differentiate between a function I've imported from elsewhere and one I've defined in the module, and why?
12:28 nkuttler does anybody here restart minions periodically or something? this hasn't happened in a very long time to me
12:29 stevej Interesting, i totally missed applying saltenv to sync_all, sync_all sounds like it would sync everything to me... I'll test that now.
12:29 Score_Under nkuttler: the procedure over here is to run 'ssh root@machine salt-call [...]' under gnu parallel ;D
12:29 mparr joined #salt
12:30 Score_Under nkuttler: because the minions seem to disconnect or fail to connect with little to no explanation as to why, and the salt master commands give almost no information about which jobs failed
12:30 nkuttler Score_Under: i just fired up clusterssh.. not too many minions fortunately
12:30 RuriRyan we've got a state which populates our /etc/salt/roster file - if minions become unresponsive (mostly due to master restarts) i can simply run salt-ssh '*' service.restart salt-minion and everything is fine :D
12:30 Score_Under yep, there's a small cult following of clusterssh over here too :D
12:31 lompik joined #salt
12:31 CrummyGummy my bad, I misunderstood
12:32 nkuttler i don't like it a lot, but sometimes it gets the job done ;)
12:33 nexus2000 joined #salt
12:33 cangiani joined #salt
12:33 malinoff joined #salt
12:37 sjorge joined #salt
12:37 sjorge joined #salt
12:38 tracphil joined #salt
12:49 nexus2000 joined #salt
12:49 ruxu joined #salt
12:50 stevej Score_Under: That works like a charm, I knew I must be mising something. Thanks
12:50 garphy joined #salt
13:05 jaybocc2 joined #salt
13:06 impi joined #salt
13:11 evle1 joined #salt
13:13 rotbeard joined #salt
13:14 geomacy joined #salt
13:16 tspecht joined #salt
13:18 tspecht Hello guys! Quick question: I played around with Salt using a master/minion setup a little and now would like to move ahead and integrate more different minion types. I was wondering - whats the preferred way of developing the States and Pillars with Salt? I assume the code itself should be stored inside a git but then I would need to pull and push a lot while writing the files to try out stuff. Any suggestions on this?
13:22 josuebrunel joined #salt
13:24 onlyanegg joined #salt
13:25 AndreasLutro tspecht: set up a local VM cluster, use nfs to share state/pillar files with the master VM. vagrant makes this easy
13:26 tspecht Okay thanks a lot, I figured this would be the best way to go but was looking for some confirmation. Thanks a lot :)
13:27 jettero joined #salt
13:27 cangiani joined #salt
13:27 AndreasLutro also I use salt-ssh for the initial installation of salt master/minion in the VMs
13:28 jettero I have a wierd thing where if I  salt '*' saltutil.pillar_refresh, many/most of my hosts return more than once, which makes -p crash … but if I pick a hosts that returns more than once and salt hostid saltutil.pillar_refresh, it only returns once
13:28 jettero am I missing something simple?
13:30 AndreasLutro jettero: do you have multiple masters? is there a possibility your hosts are running multiple minion daemons? is there a possibility your master has the same minion added under 2 ids?
13:33 akhter joined #salt
13:35 DammitJim joined #salt
13:35 numkem joined #salt
13:35 Score_Under okay how the heck do I override an existing module. This is really getting on my nerves right now. I've spent more than two and a half hours trying to patch one single function to remove one misfeature
13:37 akhter_1 joined #salt
13:37 viq tspecht: also test-kitchen may be useful
13:37 jettero AndreasLutro: no, only one master. I've carefully checked to make sure minion ids are unique (hostname-uuid actually). I doubt they have more than one minion running, but it's possible
13:37 AndreasLutro Score_Under: create /srv/salt/_modules/modname.py, run salt '*' saltutil.sync_all
13:38 Score_Under AndreasLutro: I have a module like that and I've loaded it and I've confirmed that it's loaded (with prints), but none of the functions in it ever get called
13:38 dendazen joined #salt
13:39 AndreasLutro hmm, not sure then
13:40 Score_Under On the test machine, /var/cache/salt/minion/extmods/modules/mac_user_fixes.py  http://paste.pound-python.org/show/CsP0WAqpBpFKNeOVi9KG/
13:40 jettero checked. only one minino running on the hosts
13:40 jettero strange. I do have more than one pillar, but I'd expect single host output to show multiple returns too if that was the issue
13:41 Score_Under http://paste.pound-python.org/show/BWeL42XSj7WjXtQfQlgd/ sanitized out the companyname and username but here's the top of what salt-call outputs on that machien
13:42 Score_Under I've made a small modification to the salt state for user.present to print out the groups lists while it's modifying them, to help debug the issue
13:42 akhter joined #salt
13:43 AndreasLutro jettero: maybe some of the pillars have been cached and therefore aren't returning the second time? pure speculation here
13:43 Score_Under ah that was an old paste, one sec: http://paste.pound-python.org/show/h3lr7VdVmpnyKNvIu2Rq/
13:43 dendazen_ joined #salt
13:44 patchedmonkey joined #salt
13:44 Score_Under The version is "salt-call 2015.8.5 (Beryllium)", and if I were to give my best guess I'd say that salt is loading but ignoring my module.
13:46 bhosmer joined #salt
13:46 AndreasLutro Score_Under: your paste doesn't make it obvious why or even that your custom module function isn't being used... that error could be caused by a lot of things
13:48 Score_Under AndreasLutro: salt.states.user.present calls salt.states.user._changes which runs __salt__['user.info'], so to display that error which I Ctrl+C'd out from, it *must* have called user.info. My module is reporting its name as "user", contains a function called "info" and is definitely being loaded and having __virtual__ called. I've got a print at the very top of the "info" function in that module, but th
13:48 Score_Under e print never fires.
13:50 jettero AndreasLutro: yeah, my guess is that when I target one host, salt sees the one host return and it says: True and exits. But when there's lots of host, the second returns show up cuz it's still sitting there waiting
13:50 AndreasLutro Score_Under: right, makes sense. I don't know what the problem could be then
13:50 cpowell joined #salt
13:52 Score_Under AndreasLutro: I saw a bug for this closed in 2013, I'm wondering if it is the same thing: https://github.com/saltstack/salt/issues/5990
13:52 saltstackbot [#5990]title: Custom Modules / State Modules Not Overriding Default Modules | So I noticed when upgrading to 0.16.0 that my custom django module was not being used anymore, and instead salt was using the builtin django module....
13:52 Score_Under there is also this bug: https://github.com/saltstack/salt/issues/18094 (also closed)
13:52 saltstackbot [#18094]title: Bug: loader: module override not working as documented | (tested in 2014.1.10, but did not see any commit log about it toward 2014.7)...
13:54 tracphil joined #salt
13:55 cangiani joined #salt
13:56 Score_Under I don't believe that bug has been fixed
13:57 bet0x joined #salt
13:58 Score_Under salt.loader.LazyLoader._load_module has a loop near the end which copies all attributes to its dict without checking if they existed already in there. salt.loader.LazyLoader._load(_inner_load) calls _load_module on various modules until the key exists
13:58 bet0x i just found saltstack
13:58 Score_Under so, two scenarios:
13:58 bet0x i feel in love, fast and shit and not complicated as the others :P
13:58 subsignal joined #salt
13:58 Score_Under 1. _load_module is called on the external module first. But that means that when a function is called which exists only on the builtin module, _load_module will be called on that and overwrite all the functions exported by the external module
13:59 Score_Under or,
13:59 subsignal joined #salt
13:59 Score_Under 2. _load_module is called on the internal module first. Since the right function is now in the dict, the external module is never loaded
13:59 malinoff joined #salt
14:00 Score_Under am I wrong in either of those? If not should I write a new bug report and/or pull request?
14:00 bet0x how to download salt (i was on the docs) without register?
14:00 dendazen joined #salt
14:01 ronnix joined #salt
14:01 Hetman joined #salt
14:01 Score_Under bet0x: I use my package manager. If you don't have it in the official repos there will usually be a third party repo containing it
14:01 Score_Under bet0x: and on mac, it's in homebrew
14:02 antpa joined #salt
14:09 malinoff joined #salt
14:10 bhosmer joined #salt
14:11 dendazen_ joined #salt
14:12 ronnix joined #salt
14:12 GreatSnoopy joined #salt
14:13 bet0x i like salt more than puppet or chef
14:13 bet0x too complex
14:13 bet0x and ruby is crap for this kind of tasks :P
14:13 rem5 joined #salt
14:15 Score_Under ayyy. I think I miught have found a fix for the bug. I'll make a pull request.
14:17 gh34 joined #salt
14:18 akhter joined #salt
14:18 patchedmonkey joined #salt
14:18 irctc866 joined #salt
14:20 slav0nic joined #salt
14:22 cpowell joined #salt
14:24 racooper joined #salt
14:24 akhter joined #salt
14:28 akhter_1 joined #salt
14:28 Hetman joined #salt
14:30 malinoff joined #salt
14:34 CrummyGummy Hi, how do I implement a grain in a pillar definition?
14:35 Score_Under https://github.com/saltstack/salt/pull/31160 pull request is written :P
14:35 saltstackbot [#31160]title: Fix module load order. Related to #5990, #18094 | My attempt at fixing module loading. My use case is that I want to override a small selection of functions from an existing larger module. I found that nothing worked and it's in part due to how individual functions are loaded, and in part due to how modules are ordered....
14:35 CrummyGummy I need to inject the hostname into the data.
14:36 Score_Under CrummyGummy: What's the use case? Every time I've needed to do that I've shied away (becuase I don't think it's possible) and implemented it as part of another template somewhere
14:37 cangiani joined #salt
14:37 CrummyGummy Score_Under: I'm implementing the nginx.ng formula and I need to set the servername in the virtual server.
14:38 CrummyGummy the virtual servers/hosts are defined in pillar
14:41 JDiPierro joined #salt
14:42 cangiani joined #salt
14:44 CrummyGummy injecting the lua code might also be a challenge
14:44 KennethWilke joined #salt
14:48 Brew joined #salt
14:48 mapu joined #salt
14:52 perfectsine joined #salt
14:54 josuebrunel joined #salt
14:54 Edgan_ joined #salt
14:56 scoates joined #salt
14:56 AndreasLutro CrummyGummy: just like you would in states - {{ grains.fqdn }}
14:56 andrew_v joined #salt
14:59 fracklen joined #salt
15:03 CrummyGummy thanks
15:04 oida joined #salt
15:06 jaybocc2 joined #salt
15:09 Tyrm joined #salt
15:09 stevej I'm trying to set up minion targetting for two environments in the top file and the documentation for top.sls is a little unclear. I would like minions to end up in production environemtn unless minion environment config overrides to development, but minions default to base. My top file sits in master branch with just two wildcard definitions for prod and dev and no mention of base. I think I have a fundamental misunderstanding of environment targetting in
15:09 stevej the top file.
15:14 debian112 joined #salt
15:15 dyasny_ joined #salt
15:23 Muchoz joined #salt
15:24 amcorreia joined #salt
15:25 ronnix joined #salt
15:25 mavhq joined #salt
15:25 shiriru joined #salt
15:25 fracklen joined #salt
15:26 kevinqui3nyo joined #salt
15:26 Entaris joined #salt
15:26 davisj stevej: You should be able to just rename 'base' to 'production' in your top file and file_roots setup. Then set 'environment: whatever' on the minion.
15:27 Entaris greetings
15:27 winsalt joined #salt
15:27 numkem joined #salt
15:31 hasues joined #salt
15:32 _JZ_ joined #salt
15:34 patchedmonkey joined #salt
15:36 josuebrunel joined #salt
15:37 kevinqui3nyo i'm trying to fire (or send i don't yet understand the distinction) and while the master is receiving the event, it is not acting on it https://gist.github.com/kevinquinnyo/a4f361cddd860c3f9424
15:38 stevej davisj: My stretgy is that base/master holds the top file which determines the highstate for each environment. The top.sls has wildcard for production and dev but production first in the file so minions match that unless overridden. If I make it just production and development, where do I put the top file saying what states are in each?
15:39 kevinquinnyo anyone see anything wrong with my gist?
15:41 doompatrol joined #salt
15:42 kevinquinnyo oh god i see the problem
15:42 davisj stevej: Minions won't ever match a non-base environment unless you either set 'environment:' in the minion config, or pass saltenv=X on the cmdline
15:42 kevinquinnyo my reactor.conf has an incorrect path for the reactor directory
15:43 davisj and, file_roots will also need a 'production' element that points to the location of the desired top.sls
15:43 nidr0x joined #salt
15:44 stevej davisj: I see, the top documentation lead me to believe I could target minions to an environment, but actualyl this is only targetting within an environment.
15:44 stevej We have gitfs so as far as I can tell file roots is handled entirely by the gitfs config.
15:45 stevej So top.sls sits in master and this defines states to apply to the production and development branches/environments. I target these environments in the minion config and all is good?
15:46 emaninpa joined #salt
15:47 davisj stevej: I've avoided gitfs so I'm out of my depth there.
15:49 stevej davisj: gitfs presents exactly like file roots but your branches create the file roots automatically in a cache folder. Otherwise the behaviour seems similar so I will adjust our approach to explciitly target production or development in our minion configs and have top in base defining their state setup. Thanks
15:50 davisj stevej: Right, I think if you replace 'file_roots' with 'gitfs_roots' then my previous statements would still be true.
15:50 davisj N.P.
15:52 JDiPierro joined #salt
15:54 mavhq joined #salt
15:57 emaninpa_ joined #salt
16:03 dyasny joined #salt
16:03 fracklen joined #salt
16:03 abednarik joined #salt
16:04 emaninpa joined #salt
16:04 antpa joined #salt
16:04 giantlock joined #salt
16:08 cangiani joined #salt
16:10 rem5 joined #salt
16:14 mavhq joined #salt
16:15 emaninpa joined #salt
16:15 Muchoz joined #salt
16:17 spiette joined #salt
16:18 davisj @bar(input):button2
16:19 mavhq joined #salt
16:22 ronnix joined #salt
16:24 tligda joined #salt
16:25 ronnix joined #salt
16:29 DammitJim joined #salt
16:31 emaninpa joined #salt
16:31 morissette joined #salt
16:33 malinoff joined #salt
16:33 CheKoLyN joined #salt
16:33 bowhunter joined #salt
16:37 N-Mi joined #salt
16:37 N-Mi joined #salt
16:41 cpowell joined #salt
16:42 rem5 joined #salt
16:44 fracklen joined #salt
16:45 ronnix joined #salt
16:46 writtenoff joined #salt
16:46 JohnnRun joined #salt
16:48 JohnnRun hi all. I'm quite new to saltstack.. I'm still experimenting. I used puppet from long time. I don't understand if there is a way to store all the minion grains serverside somewhere.
16:49 gladiatr joined #salt
16:49 JohnnRun what is the puppet "storedconfig"
16:50 viq JohnnRun: two keywords for you: "peer communications" and "mine"
16:51 JohnnRun tnx viq
16:51 viq first allows you to query for things live, second is a cache akin to puppetdb
16:53 JohnnRun tnx
16:56 Muchoz The templating engine acts like jinja, right? You can use salt['pillar.get'] or salt.pillar.get, right?
16:57 krymzon_ joined #salt
17:01 jaybocc2 joined #salt
17:01 abednarik joined #salt
17:04 patchedmonkey joined #salt
17:07 onlyanegg joined #salt
17:09 shaggy_surfer joined #salt
17:09 jespada joined #salt
17:10 impi joined #salt
17:13 shaggy_surfer joined #salt
17:15 jaybocc2 joined #salt
17:15 akhter joined #salt
17:15 LtLefse joined #salt
17:19 antpa joined #salt
17:19 abednarik joined #salt
17:21 akhter joined #salt
17:26 akhter joined #salt
17:27 cyborg-one joined #salt
17:29 kevinquinnyo is there some sort of "gotcha" regarding the availability of pillar data in a state when invoked via local.state.sls ?  I'm getting incomplete pillar data but full pillar data when invoking the same state from the command line on salt master
17:29 kevinquinnyo when invoked via a reactor through local.state.sls I should clarify
17:31 jimklo joined #salt
17:31 akhter joined #salt
17:32 patchedmonkey joined #salt
17:35 kevinquinnyo ok so here's the better question.  Why is local.state.sls inside a reactor not passing the pillar data i'm setting with the kwarg key?  but the same thing works from command line on salt master passing it in as a kwarg on the command line
17:35 kevinquinnyo https://gist.github.com/kevinquinnyo/25c3e964e72e63a55fba
17:35 kevinquinnyo is my syntax not correct in the start.sls file in the above gist?
17:37 NeckBeardPrince joined #salt
17:37 gtmanfred kevinquinnyo: you have to pass pillar: in the kwarg in the reactor file
17:38 kevinquinnyo i am
17:38 kevinquinnyo arent i?
17:38 giantlock joined #salt
17:38 gtmanfred ahh, it looks like you are
17:38 kevinquinnyo i pasted a gist https://gist.github.com/kevinquinnyo/25c3e964e72e63a55fba  start.sls is the reactor file
17:38 gtmanfred that i do not know then, cause that is exactly how I have done it
17:39 antpa joined #salt
17:40 kevinquinnyo is my nested data structure correct there?  from the docs, it looked like it kwarg is a list of dicts, and pillar key should be a dict
17:40 linjan joined #salt
17:41 ageorgop joined #salt
17:41 kevinquinnyo oh you know what, i think i have that structure wrong actually
17:43 kevinquinnyo gtmanfred: yeap i had the structure wrong.  {'kwarg': {'pillar': {'new_minion': data['id']}} }
17:43 kevinquinnyo working now, thanks
17:44 gtmanfred ahh, cool
17:44 gtmanfred np
17:44 pdayton joined #salt
17:44 geomacy joined #salt
17:45 pdayton joined #salt
17:49 mavhq joined #salt
17:50 abednarik joined #salt
17:52 djgerm1 joined #salt
17:54 djgerm1 how would one specify the identity (regarding git checkouts) of the salt-master?
17:55 kshlm joined #salt
17:56 webby_ joined #salt
17:56 webby_ hello!
17:56 mavhq joined #salt
18:00 Fiber^ joined #salt
18:01 mavhq joined #salt
18:02 onlyanegg joined #salt
18:02 kaushal_ joined #salt
18:09 hightekvagabond joined #salt
18:11 bhosmer joined #salt
18:11 hightekvagabond joined #salt
18:13 hal58th joined #salt
18:13 mavhq joined #salt
18:15 webby_ question.. hopefully someone has an idea.. So i am using the artifactory state and it does not like the classifier option... I keep getting the follow: [ERROR   ][23279] "Cannot find requested classifier 'jar-with-dependencies' in the snapshot version metadata.\n
18:15 djgerm1 left #salt
18:15 webby_ per artifactory that is the classifier for the file i a am wanting
18:16 hal58th djgerm1, can you be more specific?
18:16 numkem joined #salt
18:17 GreatSnoopy joined #salt
18:17 webby_ salt master says can't serialize ArtifactoryError()
18:19 akhter joined #salt
18:20 rm_jorge joined #salt
18:22 cangiani joined #salt
18:24 mavhq joined #salt
18:25 akhter joined #salt
18:26 bhosmer joined #salt
18:31 kshlm joined #salt
18:31 jimklo joined #salt
18:32 abednarik joined #salt
18:33 akhter joined #salt
18:34 ronnix joined #salt
18:35 fracklen joined #salt
18:36 Rumbles joined #salt
18:36 cangiani joined #salt
18:38 NeckBeardPrince joined #salt
18:39 NeckBeardPrince joined #salt
18:40 mapu joined #salt
18:42 akhter joined #salt
18:45 baweaver joined #salt
18:46 Ludo- hi! in salt-cloud, I used this statement tag: {'Environment': 'production'}
18:46 Ludo- how do I retrieve it?
18:46 Ludo- is it a grains or anything like that?
18:48 akhter joined #salt
18:55 LtLefse anyone else here use salt-cloud with Azure?
18:56 bonzibuddy joined #salt
18:56 KingJ joined #salt
18:56 Ch3LL Ludo: i'm not an expert on salt-cloud but is this what you mean: https://docs.saltstack.com/en/latest/ref/clouds/all/salt.cloud.clouds.ec2.html#salt.cloud.clouds.ec2.get_tags
18:57 Ch3LL you can use -a get_tags
18:57 mavhq joined #salt
18:57 jfindlay LtLefse: we test Azure, but I haven't used it personally
18:57 LtLefse I'm having a problem where I have to manually create a "Cloud service" for each VM
18:58 LtLefse salt-cloud is supposed to create one named after the VM, but it claims the cloud service already exists (which it doesn't), so it doesn't get created
18:58 jfindlay LtLefse: I'll ask our salt-cloud guy when he gets back from lunch
18:58 LtLefse jfindlay: cool, thanks
18:59 fracklen joined #salt
18:59 akhter joined #salt
19:00 jfindlay LtLefse: if you could paste somewhere your cloud profile and provider configs and the salt-cloud command you're using with `-l debug`, with any private info removed, that would be very helpful
19:00 LtLefse sure, I'll get that
19:00 patchedmonkey joined #salt
19:02 brianfeister joined #salt
19:03 NeckBear_ joined #salt
19:04 NeckBeardPrince joined #salt
19:05 NeckBeardPrince joined #salt
19:08 akhter joined #salt
19:08 kshlm joined #salt
19:09 cangiani joined #salt
19:09 ruxu joined #salt
19:12 Antiarc joined #salt
19:13 jaybocc2 joined #salt
19:13 mavhq joined #salt
19:13 baweaver joined #salt
19:14 cyborglone joined #salt
19:15 mavhq joined #salt
19:15 edrocks joined #salt
19:16 abednarik joined #salt
19:17 LtLefse https://gist.github.com/jvestrum/7d95ffa8540b5b3319a0
19:18 jfindlay LtLefse: excellent, thanks
19:19 jfindlay would you actually mind submitting that as a new issue: https://github.com/saltstack/salt/issues/new
19:20 mavhq joined #salt
19:21 LtLefse jfindlay: sure, I can do that
19:22 jfindlay thanks
19:22 akhter joined #salt
19:24 Ashald hi guys
19:25 Ashald I need to write a custom SDB module for my Salt setup
19:25 Ashald I guess where should I put it so Salt will be able to access it?
19:27 jaybocc2_ joined #salt
19:30 LeProvokateur joined #salt
19:30 jfindlay Ashald: I'm guessing in salt://_sdb/
19:31 Ashald sounds veeery good :)
19:31 Ashald will give it a try
19:31 Ashald thanks
19:31 jfindlay and then you will have to sync it as usual
19:31 jfindlay sure
19:31 akhter joined #salt
19:32 Brew joined #salt
19:32 giantlock joined #salt
19:32 mavhq joined #salt
19:33 LtLefse jfindlay: https://github.com/saltstack/salt/issues/31178
19:33 saltstackbot [#31178]title: salt-cloud won't auto-create Cloud Service for Azure VMs | When I attempt to deploy an Azure VM, salt-cloud claims that the "Cloud service already exists" even though it doesn't; this in turn causes the VM deploy to fail....
19:35 akhter joined #salt
19:38 Ashald still didn't try it but it seems it should be in '$extension_modules/sdb'
19:39 Crazy67 joined #salt
19:39 geomacy joined #salt
19:39 akhter joined #salt
19:41 antpa joined #salt
19:41 abednarik joined #salt
19:42 NeckBeardPrince joined #salt
19:43 kshlm joined #salt
19:49 baweaver joined #salt
19:52 subsignal joined #salt
19:53 ajw0100 joined #salt
19:54 numkem joined #salt
19:58 impi joined #salt
20:00 jaybocc2 joined #salt
20:02 UtahDave joined #salt
20:05 viq joined #salt
20:07 Trauma joined #salt
20:14 joe_n joined #salt
20:15 SunPowered joined #salt
20:21 Aardvark joined #salt
20:22 kshlm joined #salt
20:42 stevednd maybe I'm imagining it, but isn't there a option in an orchestration to only run a command against 1 minion in a group?
20:42 impi joined #salt
20:51 baweaver joined #salt
20:52 JerryDude_ joined #salt
20:52 aboe I got a question on salt-run with a masterless minion, will this work?
20:53 UtahDave stevednd: I don't know if we have that feature or not
20:54 UtahDave aboe: yeah, I think it will
20:54 aboe UtahDave, I thought so too I see salt.client.get_local_client
20:55 aboe but salt-run virt.host_info bugs about /var/run/salt/master...
20:55 stevednd UtahDave: basically what I need to do is when I deploy my application only one machine should run any necessary sql code to update the db. I don't keep the apps on the same server as the db, and the servers are dynamic
20:55 stevednd I don't really care which app server runs the sql code
20:55 stevednd I just need one and only one of them to do it
20:57 baweaver joined #salt
20:58 tracphil joined #salt
20:58 JerryDude_ HI all   i am running  code on a salt 2015.8.3 I developped on a salt 2015.5.5  and it fails  on  the  latest  while working  fine in the previous version. this is the code  : http://pastebin.com/YY7PVTPH
20:58 JerryDude_ its really basic
20:59 JerryDude_ this  is  where / how  it actually used later one in a state : http://pastebin.com/Yq8haBq2
20:59 kshlm joined #salt
21:00 JerryDude_ anyone can help ?
21:02 beardedeagle joined #salt
21:05 DammitJim joined #salt
21:05 gladiatr JerryDude_: what version is failing?
21:06 JerryDude_ 2015.8.3
21:06 whytewolf JerryDude_: you didn't say how it was failing. but based on recent things i have heard. VMware changed to VMWare somewhere.
21:06 whytewolf check the value of the grain
21:06 cro joined #salt
21:06 JerryDude_ yeah  it looks   like this article  which  i just  found https://groups.google.com/forum/#!msg/salt-users/4tPp6m5PXMQ/tB_W5PjICAAJ
21:07 iggy stevednd: pick one using dictsort and first jinja pillars??
21:07 iggy stevednd: pick one using dictsort and first jinja fitlers?
21:07 iggy gah
21:07 JerryDude_ does anyone know what is  the  proper fix for this  issue ?
21:09 whytewolf JerryDude_: try {% if grains['virtual']|lower == 'vmware' %}
21:10 whytewolf I don't remeber if the filter name is lower
21:12 stevednd iggy: you mean using something like mine.get to target and get a list of all applicable minions, and then apply the filters to that?
21:13 rem5 joined #salt
21:15 JerryDude_ it works !!! Thank you  very much  gladiatr and  whytewolf ! :)
21:16 saltene joined #salt
21:17 fredvd joined #salt
21:22 rem5 joined #salt
21:29 bhosmer__ joined #salt
21:33 beardedeagle joined #salt
21:33 felskrone joined #salt
21:36 shaggy_surfer joined #salt
21:37 kshlm joined #salt
21:41 sinonick joined #salt
21:42 antpa joined #salt
21:43 baweaver joined #salt
21:44 hal58th joined #salt
21:51 fracklen joined #salt
21:51 felskrone joined #salt
21:51 GrueMaster left #salt
21:53 spiette joined #salt
22:02 AirOnSkin joined #salt
22:11 fracklen joined #salt
22:11 onlyanegg joined #salt
22:13 akhter joined #salt
22:14 kshlm joined #salt
22:17 akhter_1 joined #salt
22:18 grumm_servire joined #salt
22:19 tpaul joined #salt
22:24 abednarik joined #salt
22:28 duncanmv joined #salt
22:28 duncanmv dmacvicar
22:28 fracklen_ joined #salt
22:32 jfindlay whytewolf: https://github.com/saltstack/salt/pull/30880
22:32 saltstackbot [#30880]title: VMWare -> VMware | Fixes #30807; replaces #30848. [VMware](https://vmware.com/) uses `VMware`, so so should we.  We also shouldn't be mixing grains between `VMWare` and `VMware`....
22:32 jfindlay that is against develop though.  Older versions mix VMWare and VMware
22:34 JDiPierro joined #salt
22:42 zenlot1 joined #salt
22:43 Rumbles joined #salt
22:47 kshlm joined #salt
22:47 iggy stevednd: yeah
22:50 NeckBeardPrince joined #salt
22:51 NeckBeardPrince joined #salt
22:56 armyriad joined #salt
23:02 hightekvagabond joined #salt
23:04 joe_n joined #salt
23:06 rem5 joined #salt
23:06 hal58th joined #salt
23:07 baweaver joined #salt
23:10 twork is there a way... to tell salt "make all the files in [directory] 664" (or whatever perms) when i don't know the files beforehand?
23:11 jfindlay twork: `file.recurse`.  Look at the `file_mode` parameter
23:11 jfindlay that is if you're after a state to do that
23:11 stanchan joined #salt
23:11 twork been looking at that...
23:12 Tyrm_ joined #salt
23:12 Tyrm__ joined #salt
23:12 twork jfindlay: but what i don't quite get is, how to make the recurse apply to stuff under the directory, but not the directory itself
23:13 twork ...or something like that. i'll go look again. thanks.
23:13 rem5 joined #salt
23:17 Muchoz joined #salt
23:19 hasues left #salt
23:19 twork jfindlay: aha! nope, i was using 'recurse', not 'file_recurse'. thanks. (and i have asked this same question here previoiusly. sigh.)
23:19 twork er, _mode rather. anyhow.
23:24 kshlm joined #salt
23:30 antpa joined #salt
23:32 baweaver joined #salt
23:32 woodtablet joined #salt
23:34 woodtablet *grr* about this salt stack issue
23:34 woodtablet https://github.com/saltstack/salt/issues/29094
23:34 saltstackbot [#29094]title: [SALT REPO] rhel 7 and rhel5 are failing to install | ```...
23:35 onlyanegg joined #salt
23:37 woodtablet anyone know the work around ?  i tried vutny's suggestion but no luck
23:38 woodtablet like yamamushi i am trying to deploy from aws as well and it fails everytime
23:40 onlyanegg joined #salt
23:45 UtahDave woodtablet: is this an AWS specific bug?
23:45 woodtablet hi dave
23:46 woodtablet i meet you at SCALE a couple of weeks ago
23:46 woodtablet i am not sure if its aws only, because the only machines I have tried to boot strap are in aws
23:46 woodtablet its seems to be a key mismatch, like the packages are signed with one key, but the published key doesnt match
23:47 woodtablet https://gist.github.com/gwaters/4c1760ec9f6eb2eed9e6
23:47 ashmckenzie joined #salt
23:48 woodtablet updated the gist to show the versions of salt-cloud that i am running on the deployment box
23:50 kevinquinnyo joined #salt
23:51 fracklen joined #salt
23:54 ruxu joined #salt
23:59 UtahDave woodtablet: have you ran  `salt-cloud -u`  ? to update your bootstrap script?
23:59 jaybocc2 joined #salt
23:59 UtahDave Oh, wait
23:59 UtahDave This is on RHEL 7 right?

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