Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-11-07

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

All times shown according to UTC.

Time Nick Message
00:02 SkyRocknRoll_ joined #salt
00:06 dxiri joined #salt
00:13 dxiri joined #salt
00:14 dxiri joined #salt
00:14 GMAzrael joined #salt
00:18 kbaikov[m] joined #salt
00:18 hackel joined #salt
00:18 freelock joined #salt
00:18 sxar joined #salt
00:18 jerrykan[m] joined #salt
00:18 toofoo[m] joined #salt
00:18 benjiale[m] joined #salt
00:18 viq[m] joined #salt
00:18 psychi[m] joined #salt
00:18 aboe[m] joined #salt
00:18 gomerus[m] joined #salt
00:18 ThomasJ|m joined #salt
00:18 theblazehen joined #salt
00:18 rtr63gdh[m] joined #salt
00:18 renaissancedev[m joined #salt
00:18 fujexo[m] joined #salt
00:18 dxiri joined #salt
00:20 bstevenson joined #salt
00:28 nethershaw joined #salt
00:32 tiwula joined #salt
00:54 JerryBowes joined #salt
01:00 swills joined #salt
01:00 swills joined #salt
01:00 swills_ joined #salt
01:00 JerryBowes Request for Help. Changed names of minions from xx-yy.blah.com to xx-yy. Can not figure out how to get rid of *blah.com keys
01:00 JerryBowes [1] Shut off minion
01:00 JerryBowes [2] changed minion_id to x-y
01:00 JerryBowes [3] Minion: rm -rf /etc/salt/pki
01:01 JerryBowes [4] Minion: rm -rf /var/cache/salt
01:01 JerryBowes [5] Master: salt-key -y -d x-y.blah.com
01:01 JerryBowes [6] Minion: echo "x-y" > /etc/salt/minion_id
01:02 JerryBowes [7] Minion: service salt-minion start
01:02 JerryBowes [8] Master: service salt-master restart
01:03 JerryBowes [9] Verify no x-y.blah.com file in /etc/pki/master/minions on saltmaster
01:03 JerryBowes [10
01:04 JerryBowes salt-key -L still lists, gets and replaces the x-y.blah.com keys in /etc/pki/master/minions
01:04 JerryBowes argh
01:05 swills joined #salt
01:06 swills_ joined #salt
01:13 GMAzrael joined #salt
01:16 onlyanegg joined #salt
01:16 MaGoo joined #salt
01:23 onlyanegg joined #salt
01:24 bluenemo joined #salt
01:41 kellyp joined #salt
02:09 kellyp joined #salt
02:19 cliluw joined #salt
02:24 zerocoolback joined #salt
02:31 cliluw joined #salt
02:31 darix joined #salt
02:35 sp0097 joined #salt
02:54 cliluw joined #salt
02:54 dxiri joined #salt
02:56 ilbot3 joined #salt
02:56 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.8, 2017.7.2 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers
02:56 pipps joined #salt
03:02 ashmckenzie joined #salt
03:14 blu_ joined #salt
03:19 ashmckenzie joined #salt
03:31 evle2 joined #salt
03:39 GMAzrael joined #salt
03:50 cyborg-one joined #salt
04:00 grayshadow joined #salt
04:01 grayshadow left #salt
04:38 GMAzrael joined #salt
04:51 SkyRocknRoll joined #salt
04:59 kellyp joined #salt
05:12 onlyanegg joined #salt
05:18 onlyanegg joined #salt
05:20 brokensyntax joined #salt
05:21 justanotheruser joined #salt
05:39 om2 joined #salt
05:41 GMAzrael joined #salt
05:43 brokensyntax joined #salt
05:49 impi joined #salt
06:01 wongster80 joined #salt
06:33 GMAzrael joined #salt
06:39 sh123124213 joined #salt
07:06 felskrone joined #salt
07:09 zerocoolback joined #salt
07:10 zerocoolback joined #salt
07:11 zerocoolback joined #salt
07:11 zerocoolback joined #salt
07:12 zerocoolback joined #salt
07:18 zulutango joined #salt
07:23 ircuser-1 joined #salt
07:27 Ricardo1000 joined #salt
07:32 zerocoolback joined #salt
07:33 zerocoolback joined #salt
07:33 zerocoolback joined #salt
07:38 do3meli joined #salt
07:39 do3meli left #salt
07:43 zerocoolback joined #salt
07:44 zerocoolback joined #salt
07:45 zerocoolback joined #salt
07:51 pualj joined #salt
07:51 johnj joined #salt
07:52 om2 joined #salt
07:57 hoonetorg joined #salt
07:57 Kax joined #salt
08:00 yuhl joined #salt
08:01 gmacon joined #salt
08:03 mrbobbytables joined #salt
08:03 mquatrani joined #salt
08:04 jcristau joined #salt
08:04 _val_ joined #salt
08:04 _val_ joined #salt
08:04 Kelsar joined #salt
08:05 futuredale joined #salt
08:07 aerbax joined #salt
08:09 Antiarc joined #salt
08:14 Hybrid joined #salt
08:17 major joined #salt
08:20 toanju joined #salt
08:27 mikecmpbll joined #salt
08:31 impi joined #salt
08:33 robman joined #salt
08:34 jrenner joined #salt
08:42 jrenner joined #salt
08:42 GMAzrael joined #salt
08:46 jas02 joined #salt
08:46 jas02_ joined #salt
08:50 vchauhan joined #salt
08:52 johnj joined #salt
08:59 pbandark joined #salt
08:59 mpodien joined #salt
08:59 kellyp joined #salt
09:01 mpodien left #salt
09:07 _KaszpiR_ joined #salt
09:12 mikecmpbll joined #salt
09:31 usernkey joined #salt
09:32 aldevar joined #salt
09:33 k_sze[work] joined #salt
09:34 Mattch joined #salt
09:42 kellyp joined #salt
09:47 GMAzrael joined #salt
09:49 nku joined #salt
09:53 johnj joined #salt
09:54 Miouge joined #salt
09:57 Naresh joined #salt
09:57 sybix joined #salt
10:06 aldevar left #salt
10:09 dhwt joined #salt
10:10 johnj joined #salt
10:13 obitech joined #salt
10:20 jhauser joined #salt
10:23 mosen joined #salt
10:26 toanju joined #salt
10:26 N-Mi joined #salt
10:26 N-Mi joined #salt
10:44 GMAzrael joined #salt
10:56 toanju joined #salt
11:05 Praematura joined #salt
11:07 Hybrid1 joined #salt
11:11 johnj joined #salt
11:12 coredumb joined #salt
11:22 kjsaihs joined #salt
11:24 stooj joined #salt
11:24 Hybrid joined #salt
11:39 GMAzrael joined #salt
11:56 _KaszpiR_ joined #salt
11:59 bdrung_work joined #salt
12:02 CrummyGummy joined #salt
12:07 averell joined #salt
12:12 johnj joined #salt
12:12 GMAzrael joined #salt
12:13 CrummyGummy Hi, I need to build a config file for one of my apps using salt. Different implementations have different values. Would I build my own formula or is there a better way to do it?
12:20 toanju joined #salt
12:20 babilen CrummyGummy: A 'formula' is essentially just a 'best practice' implementation that allows you to tailor your code to various platforms and give users the ability to configure their software via pillars
12:21 babilen If you don't require (and will never!) that overhead there are definitely other ways to do it that might be simpler
12:21 CrummyGummy best news ever...
12:23 babilen One simple way is to simply pass in different pillar data for different versions/implementations (?) and render the configuration file from that
12:24 babilen That would essentially boil down to one file.managed state and as many configuration SLSs as you have 'implementations'. Might also make sense to have a single, common, pillar in which you have all common values and then merge in additional settings that differ between implementations
12:25 babilen Bit tricky to provide "default" values though (which is were some of the patterns you find in modern formulas enter the arena)
12:25 babilen (with the state that is)
12:25 ivanjaros joined #salt
12:25 zerocoolback joined #salt
12:26 zerocoolback joined #salt
12:27 CrummyGummy babilen: ok, thanks, that sounds straight forward enough. Any tips on using file.managed to generate the file?
12:27 CrummyGummy I see there is a py_renderer.
12:28 CrummyGummy or something like
12:28 CrummyGummy - template: jinja
12:28 CrummyGummy - source: salt://project/templates_dir
12:29 babilen Really depends on the configuration file format
12:29 benner joined #salt
12:29 babilen Or whatever you refer to by "configurations" really
12:30 CrummyGummy can be yaml or json. THinks like MASTER_SERVER: server1 etc
12:30 CrummyGummy *things
12:31 babilen Shouldn't be tricky
12:32 babilen |yaml* and |json* are worth a look in this context then
12:32 babilen https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.serialize
12:32 babilen Have fun
12:33 CrummyGummy Thanks :)
12:33 CrummyGummy I'm pretty sure I'd never have stumbled across that without help
12:33 babilen No worries .. that's why IRC exists
12:34 CrummyGummy appreciate it
12:35 babilen https://docs.saltstack.com/en/latest/ref/serializers/all/index.html
12:36 haam3r_ joined #salt
12:36 babilen For the pillar merging bits you want to look into https://docs.saltstack.com/en/latest/ref/configuration/master.html#pillar-merging-options (in particular pillar_merge_lists)
12:40 CrummyGummy thanks (y)
12:42 kellyp joined #salt
12:44 toanju joined #salt
12:46 nomeed joined #salt
12:47 pualj joined #salt
12:50 haam3r_ joined #salt
12:53 haam3r_ joined #salt
12:56 pseudo_ joined #salt
12:57 pseudo__ joined #salt
13:01 JawnAuz joined #salt
13:03 _KaszpiR_ joined #salt
13:13 johnj joined #salt
13:14 CJ98 joined #salt
13:14 CJ98 left #salt
13:16 usernkey joined #salt
13:17 AdamSewell joined #salt
13:36 cgiroua joined #salt
13:36 numkem joined #salt
13:36 nku hrm, how do i import a macro from another env? the include path starts at the env state root, using jinja
13:37 nku doesn't look like jinja supports this..
13:39 nku well.. now i'm upset the docs recommend this :\ i guess i'll look into passing args to the jinja interpreter call..
13:45 GMAzrael joined #salt
13:48 AdamSewell joined #salt
13:50 AdamSewell joined #salt
13:51 AdamSewell joined #salt
13:52 msaygi joined #salt
13:55 _JZ_ joined #salt
13:56 edrocks joined #salt
13:59 Hybrid1 joined #salt
14:02 Micromus joined #salt
14:03 mikecmpb_ joined #salt
14:03 gh34 joined #salt
14:06 roddergreg joined #salt
14:07 edrocks joined #salt
14:13 roddergreg I'm considering using an api for salt open. What do most users utilize when running salt-open?
14:15 johnj joined #salt
14:16 roddergreg I know that salt-enterprise uses a web ui for managing salt. Is there a similar alternative for salt-open?
14:16 Hybrid joined #salt
14:21 haam3r_ joined #salt
14:29 ahrs joined #salt
14:47 racooper joined #salt
14:50 SkyRocknRoll joined #salt
14:58 Ahlee salt-api, a rest api that gives access to everything
15:00 dxiri joined #salt
15:05 toastedpenguin joined #salt
15:07 mchlumsky joined #salt
15:09 zerocoolback joined #salt
15:13 user-and-abuser joined #salt
15:13 toastedpenguin joined #salt
15:16 johnj joined #salt
15:17 Church- joined #salt
15:21 roddergreg Thanks!! I have it running now.
15:25 AdamSewell joined #salt
15:31 tiwula joined #salt
15:32 mikecmpbll joined #salt
15:32 nixjdm joined #salt
15:40 scooby2 Are there any good recent examples of using gitfs? I followed the website docs and got it setup but I must be using it wrong.
15:43 pewpew joined #salt
15:47 onlyanegg joined #salt
15:47 om2 joined #salt
15:47 scbunn joined #salt
15:52 Brew joined #salt
15:55 sybix joined #salt
15:57 toastedpenguin joined #salt
15:58 toastedpenguin joined #salt
16:05 ivanjaros joined #salt
16:11 toastedpenguin joined #salt
16:14 XenophonF scooby2: https://github.com/irtnog/salt-pillar-example/tree/master/salt/example/com/init.sls
16:14 XenophonF I'm using salt-formula and users-formula to configure GitPython
16:16 coredumb anyone using salt in full master-less mode?
16:17 DontGetSalty joined #salt
16:17 johnj joined #salt
16:22 cyborg-one joined #salt
16:22 Hybrid joined #salt
16:26 sp0097 joined #salt
16:26 mikecmpbll joined #salt
16:31 lordcirth_work coredumb, I am on one system
16:35 coredumb lordcirth_work: may I ask the reason why?
16:35 coredumb you use master/minion setup for the rest?
16:35 lordcirth_work coredumb, because no other system is allowed to have root on this box.
16:35 lordcirth_work For everything else, I use master/minion
16:35 coredumb ok
16:39 zerocoolback joined #salt
16:39 iggy nku: docs recommend what? Using environments?
16:40 Hybrid joined #salt
16:42 nkuttler iggy: macros..
16:42 iggy oh, they're both terrible
16:44 nkuttler what's wrong with envs?
16:45 nkuttler i basically had to start new ones, because the initial salt code was so bad, but couldn't be thrown away altoether..
16:45 csmule joined #salt
16:45 iggy saltenv's are fine in theory
16:46 iggy they just normally don't work out the way people want them to
16:46 nkuttler yeah, first time i have a problem, and it's more about the renderer, not the env
16:46 nkuttler ah, i see
16:46 nkuttler yeah, it's a little confusing at the beginning
16:48 scooby2 XenophonF: thanks
16:57 nkuttler meh, again and again i think i should be writing my states in python..
17:00 slegron joined #salt
17:00 slegron left #salt
17:02 XenophonF nku: you shouldn't be making cross-saltenv references
17:03 XenophonF just like you shouldn't be making cross-SLS references
17:03 XenophonF think of a saltenv as an interface boundary
17:03 XenophonF or a namespace
17:03 NeoXiD joined #salt
17:03 XenophonF private namespace i mean
17:05 nkuttler i wrote the macros so they can be used anywhere. they have nothing to do with the env really
17:08 usernkey1 joined #salt
17:13 Hybrid joined #salt
17:18 johnj_ joined #salt
17:21 kellyp joined #salt
17:32 usernkey joined #salt
17:34 JerryBowes joined #salt
17:43 teratoma joined #salt
17:50 jhauser joined #salt
17:51 Micromus joined #salt
17:53 laertus joined #salt
18:05 StolenToast joined #salt
18:07 pipps joined #salt
18:09 Praematura joined #salt
18:15 Micromus joined #salt
18:17 cyborg-one joined #salt
18:19 johnj_ joined #salt
18:19 pipps joined #salt
18:22 evle joined #salt
18:25 noobiedubie joined #salt
18:28 wongster80 joined #salt
18:28 onlyanegg joined #salt
18:34 macheck joined #salt
18:35 macheck [Daniel Wallace, SaltStack Community] test
18:35 gtmanfred nice
18:37 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.8, 2017.7.2 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic, and https://saltstackcommunity.herokuapp.com (for slack) <+> We are volunteers and may not have immediate answers
18:39 mikecmpbll joined #salt
18:39 gtmanfred Anyone that is unaware, we have started a community slack for working groups and other general community discussion. You can join/get an invite at https://saltstackcommunity.herokuapp.com/ or stay here, and we have bridge irc into slack using sameroom.io
18:48 coredumb yeah I'd rather stay on IRC ^^
18:49 macheck [Daniel Wallace, SaltStack Community] that is fine, and you can do that
18:56 Sokel joined #salt
18:56 brd gtmanfred: have you seen this? https://drewdevault.com/2015/11/01/Please-stop-using-slack.html
18:57 Sokel When configuring the salt api permissions, is it possible to be able to say that a user can only execute specific states? the documentation doesn't really give me examples on this.
18:58 pualj joined #salt
18:58 skeeved joined #salt
19:02 macheck [Daniel Wallace, SaltStack Community] I believe you can specify that in the eauth yes. https://docs.saltstack.com/en/latest/topics/eauth/index.html#limiting-by-function-arguments
19:03 lordcirth_work brd, very interesting, I agree.  There is Mattermost as well
19:03 AdamSewell joined #salt
19:04 pipps joined #salt
19:04 AdamSewell joined #salt
19:05 macheck [Daniel Wallace, SaltStack Community] you do not have to use slack, feel free to use irc, I will still also be using IRC, but there is a large group of people that prefer to use slack.
19:05 Deliant joined #salt
19:07 Eugene Relevant: https://xkcd.com/1782/
19:07 macheck [Daniel Wallace, SaltStack Community] i just sent that to someone else here about yall :p
19:09 lordcirth_work Open protocols are important
19:10 Eugene Open I don't care about. "Not changing every 6 months" I do. I haven't changed my IRC setup in longer than I can remember. And it logs to plain text.
19:10 Eugene Win-win?
19:11 skinkitten joined #salt
19:14 _KaszpiR_ joined #salt
19:15 edrocks joined #salt
19:20 johnj_ joined #salt
19:22 pipps99 joined #salt
19:22 Trauma joined #salt
19:24 SamYaple Eugene: IRC all the way, agree. However the slack irc-gateway is stable and nice, when slack is the only options. i have 3 slack gateways tied into my client at this point
19:24 SamYaple logs and all
19:28 woodtablet joined #salt
19:33 lroe here is a map.jinja file I am trying to alter to address a change debian made in stretch (version 9): https://gist.github.com/anonymous/fc5e7df3b3b5e07050e1c2515a296bf2
19:33 lroe lines 3-5 is the logic I am trying to add, but obviously from the output that is not how you do it: https://gist.github.com/anonymous/82dd8916bb4de103c82fc4906ae8204d
19:35 mroe joined #salt
19:35 onlyanegg joined #salt
19:35 mroe joined #salt
19:35 mroe sorry, I had to switch computers
19:35 mroe not sure if anyone responded
19:40 macheck [G B Iyengar, SaltStack Community] I dont have much experience on saltstack but seems like line 8 doesnt need that "." so just {% if grains[] ....%}
19:42 pipps joined #salt
19:44 yuhl joined #salt
19:47 relidy joined #salt
19:47 ChubYann joined #salt
19:48 robman joined #salt
19:51 mcqueen joined #salt
19:53 major joined #salt
19:54 usernkey joined #salt
19:58 mcqueenorama joined #salt
19:59 mcqueenorama best practice recommendation needed.  I've got a big batch of wobbly servers.  When one goes down my salts get hung up
20:00 mcqueenorama what's the standard for making salt skip of auto-remove dead servers?
20:00 mcqueenorama "or" not "of"
20:14 bildz {% if "S608109" in minion_id %}    <======================   This isnt possible with jinja?
20:17 iggy bildz: should work
20:17 iggy lroe: you can't use jinja like that inside other jinja
20:18 iggy lroe: you'd be better off filtering again based on oscodename (or something similar) after that block
20:21 johnj_ joined #salt
20:22 bildz yeah I just want to file.manage based on environment
20:27 iggy I guess I should specify that should work if minion_id is what I think it is... (might just use salt.grains.id to be sure it is what you think it is)
20:29 RodeoClown joined #salt
20:31 sarlalian joined #salt
20:42 Sokel if "S608109" in grains['id'] might work.
20:47 ekristen joined #salt
20:52 pabloh007fcb joined #salt
20:53 pabloh007fcb Hello All
20:56 pipps joined #salt
20:59 kellyp joined #salt
21:02 skinkitten joined #salt
21:03 cyborg-one joined #salt
21:08 kellyp joined #salt
21:22 rmelero joined #salt
21:22 johnj_ joined #salt
21:27 Sokel left #salt
21:30 brd does grains.get in a Jinja template not have a way to set a default value? https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.grains.html#salt.modules.grains.get
21:31 _JZ_ joined #salt
21:31 pipps joined #salt
21:33 kellyp joined #salt
21:33 macheck [Daniel Wallace, SaltStack Community] it does, just pass it as the second value
21:33 macheck [Daniel Wallace, SaltStack Community] salt.grains.get(‘what:ever:key’, ‘defaultstring’)
21:34 macheck [Daniel Wallace, SaltStack Community] it even says that in the definition of grains.get on that page, default=‘’
21:36 brd yeah, hence my specification about in Jinja
21:38 brd let me try
21:40 mcqueenorama any tips for me about salt hanging on down servers?
21:41 lordcirth_work mcqueenorama, -t 1 should reduce the hanging time, I think
21:43 brd huh, weird, Thanks Daniel
21:44 mavhq joined #salt
21:44 Ch3LL joined #salt
21:47 mcqueenorama thx
22:00 pipps joined #salt
22:05 pipps joined #salt
22:11 pipps99 joined #salt
22:23 johnj_ joined #salt
22:32 cgiroua joined #salt
22:39 saltrah joined #salt
22:43 RandyT anyone here happen to have a pointer to aws policy configuration to get ext_pillar s3 working with kms sse?
22:44 RandyT been searching for hours and not coming up with a working setup
22:44 mavhq joined #salt
22:49 scooby2 does file.recurse work with gitfs as a source? I can use file.manage to copy a source file from gitfs but when I try and copy the full directory salt is erroring.
22:51 N-Mi joined #salt
22:51 N-Mi joined #salt
22:51 racooper scooby2, yes file.recurse works with gitfs. I'm using it that way quite frequently.
22:52 scooby2 racooper: very odd. I must have something it does not like
22:52 racooper does the path have any dots in it?
22:52 scooby2 no
22:53 racooper have you run in debug on master to get more detailed logs?
22:54 racooper https://docs.saltstack.com/en/latest/topics/troubleshooting/
22:54 scooby2 its throwing a python exception
22:55 racooper then have you checked that with the github issues, to see if there's anything related?
22:55 scooby2 let me do that. thanks
23:01 pipps joined #salt
23:03 aldevar joined #salt
23:10 ecdhe joined #salt
23:12 rmelero I've had success putting pdb.set_trace() in the minion's python file that's throwing the exception and run with salt-call
23:12 rmelero gives you a chance to look around at variables at run time
23:12 mage_ joined #salt
23:13 rmelero jinja is terrible to troubleshoot sometimes
23:16 whytewolf I actually find troubleshooting jinja easier then the rest of the states sometimes
23:23 jhauser joined #salt
23:24 johnj_ joined #salt
23:30 zulutango joined #salt
23:36 RodeoClown joined #salt
23:37 rmelero I just hate the `could not find 'blah' in dict`
23:38 rmelero since we're using relclass for our pillar it gets hard figuring out where the issue comes from
23:39 GMAzrael joined #salt
23:55 zerocoolback joined #salt
23:57 jdshewey joined #salt
23:59 jdshewey So, is it possible to store execution modules inside of a formula folder (eg, /srv/salt/example_formula/_modules, or only in the fileroot? (eg, /srv/salt/_modules)

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