Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-09-11

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

All times shown according to UTC.

Time Nick Message
00:06 jas02 joined #salt
00:25 cyteen joined #salt
00:25 wjack left #salt
00:29 johnj joined #salt
00:32 Guest73 joined #salt
00:33 beebeeep joined #salt
00:58 k_sze joined #salt
00:59 k_sze joined #salt
01:07 rewbycraft joined #salt
01:14 sjorge joined #salt
01:30 johnj joined #salt
01:53 brokensyntax joined #salt
01:54 ilbot3 joined #salt
01:54 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.7, 2017.7.1 <+> 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
01:56 justanotheruser joined #salt
02:13 gnomethrower joined #salt
02:24 zerocoolback joined #salt
02:30 oida_ joined #salt
02:31 johnj joined #salt
02:42 Guest73 joined #salt
02:47 JPT joined #salt
02:49 Guest73 joined #salt
02:59 evle joined #salt
03:02 Guest73 joined #salt
03:11 kamellion_ joined #salt
03:26 cyborg-one joined #salt
03:32 johnj joined #salt
03:36 michelangelo joined #salt
03:56 AvengerMoJo joined #salt
04:06 pewpew joined #salt
04:23 omie888777 joined #salt
04:28 ninjada joined #salt
04:33 johnj joined #salt
04:45 golodhrim|work joined #salt
05:03 oida joined #salt
05:04 machinly joined #salt
05:33 johnj joined #salt
05:45 msn joined #salt
05:55 jas02 joined #salt
05:59 do3meli joined #salt
05:59 do3meli left #salt
06:02 jas02 joined #salt
06:11 colttt joined #salt
06:24 hammer065 joined #salt
06:28 felskrone joined #salt
06:34 johnj joined #salt
06:35 ninjada_ joined #salt
06:36 Ricardo1000 joined #salt
06:50 k_sze joined #salt
06:55 nku hrm, can i target minions by installed packages? other than writing a custom grain?
06:59 whytewolf no, installed packages is not tracked through anything to be targetted. so yes you would need a custom grain that listed packages
07:06 mayk joined #salt
07:07 nku thought so, thanks
07:13 marcaurele joined #salt
07:14 Hybrid joined #salt
07:18 pualj joined #salt
07:19 aldevar joined #salt
07:25 jas02 joined #salt
07:31 vicentiu joined #salt
07:33 jas02 joined #salt
07:35 johnj joined #salt
07:41 ninjada joined #salt
07:46 usernkey joined #salt
07:47 impi joined #salt
07:47 zerocoolback joined #salt
07:51 gmoro joined #salt
07:52 ninjada_ joined #salt
08:03 _KaszpiR_ joined #salt
08:04 bdrung_work joined #salt
08:07 coldbrewedbrew_ joined #salt
08:10 izrail joined #salt
08:13 ninjada joined #salt
08:13 frygor_ joined #salt
08:16 pbandark joined #salt
08:25 ivanjaros joined #salt
08:26 zerocoolback joined #salt
08:26 mayk joined #salt
08:27 _KaszpiR_ joined #salt
08:32 marwel joined #salt
08:32 mikecmpbll joined #salt
08:36 JohnnyRun joined #salt
08:36 johnj joined #salt
08:38 celerysalt joined #salt
08:42 zerocoolback joined #salt
08:46 celerysalt hi - when using ssh_list_nodegroups the match in top.sls is still nodegroup?
08:53 ninjada joined #salt
08:55 sergeyt joined #salt
09:00 ikarpov joined #salt
09:07 Naresh joined #salt
09:17 ikarpov joined #salt
09:30 Church- joined #salt
09:33 zerocoolback joined #salt
09:35 harisokanovic joined #salt
09:37 johnj joined #salt
09:37 pualj joined #salt
09:39 harisokanovic joined #salt
09:40 vicentiu joined #salt
09:42 heghe joined #salt
09:49 dunz0r How can I set a grain only if the grain isn't previously set?
09:49 shalkie joined #salt
09:50 raazvvann joined #salt
10:04 heghe joined #salt
10:05 raazvvann left #salt
10:09 Elsmorian joined #salt
10:12 harisokanovic|cl joined #salt
10:19 jhauser joined #salt
10:24 rgrundstrom joined #salt
10:29 sergeyt joined #salt
10:37 mavhq joined #salt
10:37 zerocoolback joined #salt
10:38 johnj joined #salt
10:39 zerocoolback joined #salt
10:40 Guest73 joined #salt
10:49 ivanjaros3916 joined #salt
10:49 darioleidi joined #salt
11:01 sergeyt joined #salt
11:16 Church- joined #salt
11:23 saltsa joined #salt
11:26 miruoy joined #salt
11:30 beardedeagle joined #salt
11:36 kbaikov joined #salt
11:38 wavded joined #salt
11:38 usernkey joined #salt
11:39 johnj joined #salt
11:42 sergeyt joined #salt
11:46 debian112 joined #salt
11:46 shoemonkey joined #salt
11:50 ninjada joined #salt
11:51 ninjada_ joined #salt
11:53 berto- left #salt
11:54 debian1121 joined #salt
12:03 evle1 joined #salt
12:04 rojem joined #salt
12:10 __[0_0]__ joined #salt
12:12 Nahual joined #salt
12:24 kamellion joined #salt
12:32 shoemonkey joined #salt
12:32 numkem joined #salt
12:36 justanotheruser joined #salt
12:38 Hybrid1 joined #salt
12:39 johnj joined #salt
12:42 aleph- joined #salt
12:44 ninjada joined #salt
12:44 Church- joined #salt
12:45 ninjada_ joined #salt
12:49 cgiroua joined #salt
12:50 sergeyt joined #salt
12:50 beardedeagle joined #salt
12:52 DanyC joined #salt
12:58 celerysalt joined #salt
13:11 _aeris_ joined #salt
13:11 sergeyt joined #salt
13:13 gh34 joined #salt
13:13 kamellion joined #salt
13:14 smead joined #salt
13:15 ninjada joined #salt
13:16 shoemonkey joined #salt
13:16 ninjada_ joined #salt
13:19 XenophonF absolutejam: no - i'm not using the compose-ng formula
13:20 XenophonF i'm a total docker newbie so i haven't really looked closely at what's all available for salt
13:21 XenophonF we have one webapp in production that was deployed using docker-formula, but someone else did it
13:21 Hybrid joined #salt
13:26 cgiroua joined #salt
13:32 misconfig joined #salt
13:33 misconfig joined #salt
13:38 ssplatt joined #salt
13:40 johnj joined #salt
13:44 mchlumsky joined #salt
13:44 NotBobDole joined #salt
13:47 abrcdbr_ joined #salt
13:53 tapoxi joined #salt
13:59 racooper joined #salt
14:00 snc joined #salt
14:03 jas02 joined #salt
14:04 wavded joined #salt
14:11 ninjada joined #salt
14:13 ninjada_ joined #salt
14:14 sergeyt joined #salt
14:15 misconfig left #salt
14:15 misconfig joined #salt
14:20 smead joined #salt
14:25 cgiroua joined #salt
14:29 smead joined #salt
14:30 heaje joined #salt
14:30 sarcasticadmin joined #salt
14:32 ninjada joined #salt
14:33 ninjada_ joined #salt
14:37 ninjada joined #salt
14:37 aleph- joined #salt
14:38 cyborg-one joined #salt
14:39 jas02 joined #salt
14:39 Brew joined #salt
14:40 sarcasticadmin joined #salt
14:41 johnj joined #salt
14:42 abrcdbr joined #salt
14:43 Church- joined #salt
14:43 marcaurele joined #salt
14:44 jas02 joined #salt
14:50 ninjada joined #salt
14:54 cyteen joined #salt
14:55 harisokanovic|cl joined #salt
14:56 harisokanovic|cl joined #salt
15:00 smead joined #salt
15:06 kamellion joined #salt
15:07 jsb515 joined #salt
15:08 Guest73 joined #salt
15:10 jsb515 left #salt
15:10 jsb515 joined #salt
15:11 sergeyt joined #salt
15:12 jsb515 left #salt
15:13 jsb515 joined #salt
15:26 _JZ_ joined #salt
15:30 evle1 joined #salt
15:34 sergeyt joined #salt
15:36 rojem joined #salt
15:40 bushelofsilicone joined #salt
15:40 fritz09 joined #salt
15:41 vicentiu joined #salt
15:42 tapoxi joined #salt
15:42 abrcdbr joined #salt
15:42 johnj joined #salt
15:51 omie888777 joined #salt
15:53 iggy nku: maybe mine? Depends what you are trying to do
15:57 ivanjaros joined #salt
15:58 iggy dunz0r: wrap the set in a jinja grains check?
16:08 DanyC joined #salt
16:09 DanyC joined #salt
16:09 zerocoolback joined #salt
16:16 sarcasticadmin joined #salt
16:18 Guest73 joined #salt
16:21 tiwula joined #salt
16:26 ashmckenzie joined #salt
16:27 turambar joined #salt
16:28 cgiroua_ joined #salt
16:32 sergeyt joined #salt
16:33 tiwula joined #salt
16:35 aleph- joined #salt
16:36 Church- joined #salt
16:41 aleph- joined #salt
16:41 Guest73 joined #salt
16:42 Church- joined #salt
16:42 avgoor joined #salt
16:43 johnj joined #salt
16:44 shadoxx joined #salt
16:49 smead joined #salt
16:51 impi joined #salt
16:55 ninjada joined #salt
17:01 Edgan joined #salt
17:05 dirtygambit joined #salt
17:07 sergeyt joined #salt
17:07 wavded joined #salt
17:08 skatz joined #salt
17:13 misconfig Hi everyone
17:13 misconfig Anyone have any idea why the grains for a minion doesn't match its contents of /etc/salt/grains? https://gist.github.com/ndobbs/459b910c930eb1dd0261564360c47d86
17:14 onlyanegg joined #salt
17:17 schemanic joined #salt
17:17 haam3r_ misconfig: Have you tried refreshing the grains before confirming?
17:17 misconfig yes
17:18 misconfig even restarted the minion
17:19 csmule joined #salt
17:21 haam3r_ hmm...any specific reason for using grains.list_present instead of grains.present?
17:22 misconfig yes, the roles grain is a dict, so in order to append to that list from what I understand grain.list_present is the appropriate way to do this.
17:24 misconfig whats strange is, the minions /etc/salt/grains is built correctly, it just seems like the minion is ignoring that file
17:24 misconfig I looked through the minion config and can't seem to find anything that is popping out as an option I should have enabled.
17:25 haam3r_ It seems that grains.present should also support this: ref:https://docs.saltstack.com/en/latest/ref/states/all/salt.states.grains.html#salt.states.grains.present
17:25 haam3r_ Mind trying with grains.present?
17:26 misconfig Not at all, going to try it now- Appreciate the second set of eyes
17:28 wavded joined #salt
17:30 misconfig still doesn't seem to update the minion
17:31 misconfig The /etc/salt/grains file gets updated accordingly on the minion
17:31 wavded joined #salt
17:31 misconfig however the master is unaware of the new grain
17:31 Guest73 joined #salt
17:35 haam3r_ are you adding the force parameter to grains.present?
17:35 wavded joined #salt
17:35 misconfig Yes, I had to
17:36 haam3r_ hmm okay
17:36 misconfig yeah, really weird
17:36 misconfig almost thinking it could be a bug
17:36 misconfig I tracked down the .py file for the state and looked at the source - calling grains.append with 2 arguments, not sure why the master // minion never seem to recognize the new grain
17:37 misconfig especially considering the /etc/salt/grains file is exactly the way I'd expect it to be after the state run.
17:37 misconfig the only grains that continue the exist are the ones that are set in the minions config file.
17:37 misconfig Maybe that's why? Maybe I need to set a new grain type entirely instead of appending to the roles dict
17:39 misconfig interesting - now it works
17:39 haam3r_ Yeah I looked at the source as well. grains.list_present uses grains.append and grains.present uses grains.set
17:40 kamellion joined #salt
17:40 haam3r_ Did you change anything?
17:40 kamellion joined #salt
17:40 misconfig I disabled the grain declaration in the minion config
17:40 misconfig now I'm able to stack grains
17:41 misconfig maybe since roles is defined in the minion config, the state doesn't allow the modification some how?
17:42 misconfig I think I can get somewhere from this point
17:42 misconfig Thanks haam3r_
17:42 haam3r_ Didn't really do anything, but no problem :)
17:43 misconfig Sometimes it just takes another person engaging to get wheels turning :)
17:43 haam3r_ true that
17:44 johnj joined #salt
17:46 NotBobDole joined #salt
17:48 schemanic Hello
17:49 schemanic joined #salt
17:50 schemanic Heya. I have a pillar key whose value is a list and not a nested dict. I'd like to write states that append to this pillar key value or ensure that certain lines are in it, does anyone know how to do that?
17:54 lordcirth_work schemanic, I smell an XY problem.  States depend on pillar, not the other way around.  Are you sure this variable should be in pillar?
17:56 schemanic lordcirth_work: What I'm trying to do is set up tomcat on an EC2 instance. The instance might be bigger or smaller depending on what gets chosen in the profile I set up. My pillar is storing a key that passes JAVA_OPTS to tomcat so it will be tuned properly for the size of the EC2 instance it's being set up on.
17:57 schemanic Also, I have other states that need to insert JAVA_OPTS of thier own to work properly
17:57 lordcirth_work schemanic, options like number of threads, that sort of thing?
17:57 onlyanegg schemanic: are you changing eg. xms and xmx?
17:57 schemanic because other programs need to run with javaagents
17:57 abrcdbr_ joined #salt
17:58 schemanic onlyanegg, yes I am. Right now the tomcat formula just has a list as the value of this key, and I want to do something like 'ec2_m3_xlarge_javaopts.sls'
17:58 lordcirth_work You might want to generate the relevant numbers in the state, using grains.  Ie look and see how many cores you have, not have the master tell it.
17:58 onlyanegg yeah, I do just that - but I'm not using the formula...
17:59 onlyanegg {% set memory = (grains.mem_total * pillar.certain_app.percent_of_memory) | round | int -%}
17:59 schemanic onlyanegg, can I actually do that IN a pillar file?>
17:59 onlyanegg -Xms{{ memory }}m
17:59 schemanic like set up one pillar that runs its own calculations?
18:00 onlyanegg actually, I'm not sure. I set that in my systemd environment file
18:00 schemanic can anyone answer if I can run jinja in pillar files?
18:02 schemanic onlyanegg, can you paste the way you calculate your jvm JAVA_OPTS? I would super appreciate that
18:02 onlyanegg you can for sure run jinja in pillar, but I don't think you can reference pillar or grain values...
18:03 schemanic Oh I think you can
18:03 schemanic https://docs.saltstack.com/en/latest/topics/tutorials/pillar.html#parameterizing-states-with-pillar
18:03 schemanic this has an example of running a grain check against the OS in the pillar
18:04 schemanic whytewolf, gtmanfred, can you speak as to the complications of running grain checks in pillar?
18:05 whytewolf yes, you can gather grains in pillar. the only thing is you shouldn't match against grains because it is considered a security risk.
18:06 schemanic thanks whytewolf.
18:06 nielsk joined #salt
18:06 schemanic onlyanegg, so if I follow you, I should be able to calculate what I want in my pillar and just have one pillar
18:06 lordcirth_work I thought pillar was rendered master-side?
18:06 lordcirth_work Or is it just the top.sls matching?
18:07 whytewolf pillar is rendered master side. the grains in pillar come from the grains cache that master stores
18:07 schemanic whytewolf, so as long as that cache is correct it should give me a proper value for my minion?
18:07 whytewolf yes.
18:08 whytewolf and a minion will update the masters grain cache when it's grain is updated
18:09 schemanic So that's fairly safe
18:09 schemanic So now I just need to understand how to properly tune my memory
18:10 nledez joined #salt
18:10 schemanic onlyanegg, is there a way I could get a look at your jinja formulas for calculating JAVA_OPTS?
18:13 onlyanegg schemanic: so it's really just what I put above with percent_of_memory: 0.70
18:14 onlyanegg lemme gist it
18:15 ecdhe joined #salt
18:15 ecdhe joined #salt
18:16 ecdhe joined #salt
18:19 _KaszpiR_ joined #salt
18:20 onlyanegg https://gist.github.com/onlyanegg/af7ffb2d923ff8c52b92134667c33d02
18:20 Church- joined #salt
18:23 nixjdm joined #salt
18:24 ProT-0-TypE joined #salt
18:25 _KaszpiR_ joined #salt
18:28 schemanic onlyanegg, thank you very much
18:29 onlyanegg np :)
18:30 schemanic onlyanegg, so it looks like what you're doing is saying 'set both Xms and Xmx to (70% of system memory)
18:31 onlyanegg yup
18:31 schemanic I see, so you don't allow it to fluctuate then - you're saying 'you have this much memory all the time
18:33 onlyanegg yeah, we set them the same - I actually don't know much about tomcat and how you would want to configure it - I was copying those values
18:33 onlyanegg but you could def say Xms={{ sixty_percent }} Xmx={{ seventy_percent }}
18:34 gh34 joined #salt
18:35 schemanic right. Thanks. I'm trying to understand how to properly tune my JAVA_OPTS but I don't understand which things I need to include and what I should avoid.
18:36 marcaurele joined #salt
18:40 marcaurele left #salt
18:42 shanth__ joined #salt
18:42 aldevar joined #salt
18:44 aleph- joined #salt
18:44 Church- joined #salt
18:45 johnj joined #salt
18:50 Mogget joined #salt
18:53 bluenemo joined #salt
18:57 ninjada joined #salt
19:01 pualj joined #salt
19:01 cliluw joined #salt
19:04 ivanjaros3916 joined #salt
19:12 J0hnSteel joined #salt
19:22 aleph- joined #salt
19:24 jas02 joined #salt
19:31 ecdhe joined #salt
19:33 ecdhe joined #salt
19:35 _JZ_ joined #salt
19:38 mayk joined #salt
19:40 tapoxi joined #salt
19:40 nixjdm joined #salt
19:41 heaje joined #salt
19:44 impi joined #salt
19:45 smead joined #salt
19:45 johnj joined #salt
19:47 tapoxi joined #salt
19:47 skatz_ joined #salt
19:48 skatz_ joined #salt
19:50 skatz Any ideas when installing salt on windows will require a reboot or not? I've seen it go both ways - sometimes a reboot gets triggered (by I think Visual C++) and sometimes it doesn't.
19:51 cyborg-one joined #salt
19:52 pualj_ joined #salt
19:52 ibro joined #salt
19:57 mattbillenstein joined #salt
20:04 NotBobDole joined #salt
20:08 wonko21 joined #salt
20:15 mayk_ joined #salt
20:15 leev_ joined #salt
20:16 dwfreed_ joined #salt
20:16 yuhl______ joined #salt
20:17 mihait_ joined #salt
20:17 nahkiss_ joined #salt
20:17 mattbillenstein I have an interesting problem where I have two different environments with different pillar data (say prod and dev) -- until now, I've never tried to mix them on the same master, but I'm thinking now about how I might do it
20:18 kuromagi^ joined #salt
20:18 dragon788_ joined #salt
20:18 mayk_ joined #salt
20:18 supermike___ joined #salt
20:18 mattbillenstein it makes my templates really really messy since the master lives in one environment, I essentially need to namespace all those vars with the environment using a value from each minion
20:18 petems_ joined #salt
20:18 cswang_ joined #salt
20:19 SteamWells_ joined #salt
20:19 mattbillenstein has anyone had a similar problem?
20:19 TRMander1on joined #salt
20:20 MightyJoe joined #salt
20:20 bigjazzsound_ joined #salt
20:20 Antiarc_ joined #salt
20:20 tapoxi joined #salt
20:21 CrummyGummy_ joined #salt
20:21 debian112 joined #salt
20:21 Aikar_ joined #salt
20:21 Aikar_ joined #salt
20:21 mayk_ left #salt
20:22 skeezix-hf2 joined #salt
20:22 mayk joined #salt
20:22 notCalle_ joined #salt
20:22 bbradley_ joined #salt
20:22 basepi_ joined #salt
20:22 evilrob_ joined #salt
20:22 c4rc4s_ joined #salt
20:22 rideh- joined #salt
20:22 aerbax_ joined #salt
20:22 Sketch_ joined #salt
20:22 mr_kyd- joined #salt
20:22 vaelen_ joined #salt
20:22 skr0bul joined #salt
20:23 lazybear_ joined #salt
20:23 bryguy_ joined #salt
20:23 WildPikachu_ joined #salt
20:24 Eugene joined #salt
20:27 brent joined #salt
20:28 nledez joined #salt
20:28 smead joined #salt
20:29 ekkelett joined #salt
20:30 nixjdm joined #salt
20:30 lordcirth_work joined #salt
20:30 twooster joined #salt
20:30 justyns joined #salt
20:31 hoonetorg joined #salt
20:32 onlyanegg joined #salt
20:32 Diaoul joined #salt
20:33 hexa- joined #salt
20:34 agustafson joined #salt
20:45 WildPikachu joined #salt
20:47 johnj joined #salt
20:47 lkolstad joined #salt
20:52 sjorge joined #salt
20:54 stack joined #salt
20:58 ninjada joined #salt
20:58 onlyanegg joined #salt
20:59 lkolstad joined #salt
21:03 _aeris_ joined #salt
21:04 noraatepernos joined #salt
21:06 ecdhe joined #salt
21:12 noraatepernos joined #salt
21:13 onlyanegg joined #salt
21:17 ChubYann joined #salt
21:19 NotBobDole joined #salt
21:21 phileus0 joined #salt
21:26 smead joined #salt
21:28 abrcdbr joined #salt
21:30 pmcg joined #salt
21:36 tapoxi joined #salt
21:39 nixjdm joined #salt
21:47 johnj joined #salt
21:50 debian1121 joined #salt
21:57 onlyanegg joined #salt
22:06 alem0lars joined #salt
22:09 Guest73 joined #salt
22:10 _aeris_ joined #salt
22:14 daxroc joined #salt
22:15 hillna joined #salt
22:15 alkyl joined #salt
22:18 NotBobDole joined #salt
22:24 Guest73 joined #salt
22:29 alem0lars joined #salt
22:30 ninjada joined #salt
22:33 mikecmpbll joined #salt
22:33 rojem joined #salt
22:34 onlyanegg joined #salt
22:35 rojem joined #salt
22:35 shoemonkey joined #salt
22:36 Church- joined #salt
22:42 ninjada joined #salt
22:44 nixjdm joined #salt
22:45 iggy there's always environments (which I don't normally suggest)
22:45 onlyanegg joined #salt
22:48 Guest73 joined #salt
22:48 johnj joined #salt
22:53 systemexit joined #salt
22:54 ninjada joined #salt
22:58 systemex1t joined #salt
23:01 ponyofdeath joined #salt
23:01 jthunt joined #salt
23:06 usernkey joined #salt
23:07 systemexit joined #salt
23:08 smead joined #salt
23:09 ninjada joined #salt
23:24 systemexit joined #salt
23:24 abrcdbr_ joined #salt
23:33 tiwula joined #salt
23:34 coldbrewedbrew joined #salt
23:34 coldbrewedbrew joined #salt
23:34 godber left #salt
23:35 coldbrewedbrew_ joined #salt
23:35 FreeSpencer joined #salt
23:35 FreeSpencer joined #salt
23:35 lane_ joined #salt
23:38 shoemonkey joined #salt
23:40 johnkeates joined #salt
23:41 justanotheruser joined #salt
23:45 Guest73 joined #salt
23:46 abrcdbr joined #salt
23:48 onlyanegg joined #salt
23:49 noraatepernos joined #salt
23:49 johnj joined #salt
23:55 systemexit joined #salt
23:56 rojem joined #salt

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