Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2018-01-22

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

All times shown according to UTC.

Time Nick Message
00:00 saltslackbridge joined #salt
00:04 mechleg joined #salt
00:08 kettlewe_ joined #salt
00:09 zerocool_ joined #salt
00:13 JawnAuz joined #salt
00:15 kettlewell joined #salt
00:16 lkthomas https://github.com/salt-formulas/salt-formula-nagios
00:16 lkthomas if I want to use it, should I put it on base or pillar directory ?
00:16 hemebond Formulas go into your formulas directory.
00:16 hemebond Or put the `nagios` subdirectory into your states.
00:16 JAuz joined #salt
00:17 hemebond (I guess that's what you mean by "base")
00:17 JAuz joined #salt
00:17 lkthomas OK, do I need full git directory ?
00:18 hemebond What I personally do is clone the Git repo to /srv/salt/formulas/blah
00:18 hemebond Then symlink from /srv/salt/states/base/blah -> /srv/salt/formulas/blah/blah
00:19 zerocoolback joined #salt
00:19 hemebond The "proper" way to use formulas is to clone the repo to your own place, then update the master config to pull that down for you.
00:21 lkthomas so I need to clone that repo, then symlink salt-formula-nagios/nagios to /srv/salt/states/base/nagios, correct ?
00:21 lkthomas there are tons of things that I don't need I think
00:21 hemebond That's what I do.
00:21 hemebond salt-master can do it for you, but I do it manually.
00:21 lkthomas such as _modules, tests, debian, metadata/service
00:21 hemebond It doesn't hurt to just clone it. It's not that big.
00:22 lkthomas yes, I mean, when I link it to base, I don't need all those files
00:22 hemebond And will make it easy to update later.
00:22 hemebond oh, those are outside the subdirectory, no?
00:22 lkthomas huh ?
00:22 hemebond Oh actually, if it has _modules then you might need those.
00:22 lkthomas what?! err
00:22 lkthomas do I need the whole repo link to states
00:22 * lkthomas confused
00:23 hemebond No, just the nagios subdirectory, the directory that contains the states.
00:23 lkthomas ok cool
00:23 hemebond However, if there is a _modules directory in the formula, then you might need to sort that out too.
00:23 lkthomas let me try, thanks
00:23 lkthomas ...
00:23 hemebond (this is done for you if you use salt-master)
00:23 lkthomas it does have _modules
00:23 lkthomas what should I do ?
00:24 hemebond If you're not comfortable with the manual process, follow the salt-master route.
00:24 lkthomas salt-master route = ?
00:24 hemebond https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
00:24 hemebond Add it as a gitfs_remote
00:24 whytewolf formulas are written so that the root of the formula can be accessed as a salt:// root location. it is up to you how to present that root to your system
00:25 lkthomas hemebond, LOL it's different than what you suggest on manual process
00:25 hemebond Yes.
00:25 hemebond The manual process is entirely manual :-)
00:26 lkthomas at least it doesn't to symlink
00:26 hemebond It would require you to copy over the contents of _modules to your own /states/base/_modules directory
00:26 lkthomas hemebond, nope, no mention on the page
00:27 hemebond The page I linked to isn't about the manual process.
00:27 hemebond It's about the proper way to include formulas.
00:28 JawnAuz joined #salt
00:32 sayyid9000 joined #salt
00:42 kettlewe_ joined #salt
00:43 zerocoolback joined #salt
01:02 otaria joined #salt
01:03 CJ_ joined #salt
01:07 ajw0100 joined #salt
01:07 CJ-Dennis joined #salt
01:23 kettlewell joined #salt
01:23 ahrs joined #salt
01:31 lkthomas I still don't understand the difference between base and pillar
01:31 hemebond base is states.
01:31 hemebond e.g., /srv/salt/states/base/
01:31 whytewolf base is an enviroment and pillar is a dict that holds data
01:32 hemebond Base is the environment name.
01:32 hemebond Oh yeah, pillars too.
01:33 lkthomas LOL, still confused, that's fine, nagios formula asking to define in Pillar, let me do it in pillar first
01:34 lkthomas maybe after a while I will understand
01:34 saltslackbridge <randy> base is where your states go
01:34 saltslackbridge <randy> pillars are where your secrets go
01:34 saltslackbridge <randy> and that’s a vast simplification
01:34 hemebond Your pillar base directory is probably /srv/salt/pillars
01:34 hemebond You can change it./
01:34 hemebond The default environment is base
01:34 lkthomas yeah
01:35 hemebond My base environment paths are /srv/salt/states/base/ and /srv/salt/pillars/base/
01:35 lkthomas what's pillar mean in Puppet term ?
01:35 hemebond Heira
01:35 saltslackbridge <randy> ^
01:35 lkthomas UGHH, fsck, I never use Heira
01:35 hemebond Pillars are better than Hiera.
01:36 whytewolf a better name would be hiera bus simpler
01:36 saltslackbridge <randy> well you don’t want to stick your sensitive data in your states
01:36 lkthomas OK, maybe I will learn along the way
01:36 saltslackbridge <randy> so learn you some pillars for great good
01:36 lkthomas randy, OH
01:37 whytewolf https://docs.saltstack.com/en/latest/topics/pillar/
01:37 lkthomas brb
01:37 lkthomas thanks all
01:37 tpaul joined #salt
01:43 darix joined #salt
02:03 otaria joined #salt
02:06 snath joined #salt
02:06 kettlewell joined #salt
02:16 nomeed joined #salt
02:16 kiorky joined #salt
02:17 nledez joined #salt
02:31 sabedevops joined #salt
02:36 zerocoolback 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, and https://saltstackcommunity.herokuapp.com (for slack) <+> We are volunteers and may not have immediate answers
02:59 sabedevops left #salt
03:03 evle2 joined #salt
03:04 otaria joined #salt
03:07 sabedevops joined #salt
03:11 pppingme joined #salt
03:27 zerocoolback joined #salt
03:28 zerocoolback joined #salt
03:29 zerocoolback joined #salt
03:30 zerocoolback joined #salt
03:31 zerocoolback joined #salt
03:36 otaria joined #salt
03:43 shiranaihito joined #salt
03:45 JPT joined #salt
03:46 otaria joined #salt
03:58 AdamSewell joined #salt
04:42 pipps joined #salt
04:57 tiwula joined #salt
05:23 KevinAn2757 joined #salt
05:37 taylorbyte joined #salt
05:42 otaria joined #salt
05:44 sayyid9000 joined #salt
05:56 lkthomas joined #salt
06:01 lkthomas joined #salt
06:12 lkthomas joined #salt
06:43 otaria joined #salt
07:01 CrummyGummy joined #salt
07:03 Ricardo1000 joined #salt
07:06 colttt joined #salt
07:13 pipps joined #salt
07:26 yuhl_ joined #salt
07:27 rgrundstrom joined #salt
07:28 pipps joined #salt
07:32 zerocoolback joined #salt
07:34 tpaul joined #salt
07:44 otaria joined #salt
07:49 pipps joined #salt
07:55 hammer065 joined #salt
07:57 viq I rather refer to pillars as "variables", since it's more than just secrets. But yeah, hiera is a good analogy.
08:00 Tucky joined #salt
08:04 tpaul left #salt
08:06 pipps joined #salt
08:09 aldevar joined #salt
08:14 darioleidi joined #salt
08:22 pipps joined #salt
08:28 Hybrid joined #salt
08:41 pbandark joined #salt
08:45 otaria joined #salt
09:01 Hybrid1 joined #salt
09:19 Hybrid joined #salt
09:27 darioleidi joined #salt
09:31 oida joined #salt
09:33 sayyid9000 joined #salt
09:35 ahrs joined #salt
09:37 zerocoolback joined #salt
09:40 ddask joined #salt
09:41 fl3sh joined #salt
09:45 otaria joined #salt
09:54 rgrundstrom Good morning everyone
09:58 Larri joined #salt
09:58 zerocoolback joined #salt
09:59 _xor joined #salt
10:20 wryfi_ joined #salt
10:20 Hybrid joined #salt
10:22 snath joined #salt
10:29 pipps joined #salt
10:35 Mattch joined #salt
10:37 sauth joined #salt
10:40 saltnoob58 joined #salt
10:41 saltnoob58 joined #salt
10:42 saltnoob58 joined #salt
10:42 saltnoob58 joined #salt
10:44 saltnoob58 hi
10:47 otaria joined #salt
11:07 Pulp joined #salt
11:18 saltnoob58 anyone know how to collect OS info like grains, only over ssh, with the minionless option?
11:25 mage_ joined #salt
11:25 mage_ hello.. any idea for https://gist.github.com/silenius/ed3b5e93024b888cc9060b8c3f9641a1 ?
11:28 otaria joined #salt
11:32 Creme joined #salt
11:38 otaria joined #salt
11:39 babilen saltnoob58: You mean with salt-ssh ?
11:53 yuhl_ joined #salt
12:10 zerocoolback joined #salt
12:11 zerocool_ joined #salt
12:13 honestly joined #salt
12:16 kettlewell joined #salt
12:23 Creme left #salt
12:29 saltnoob58 yes
12:30 saltnoob58 well it turns out it just works if you try it out, but the way documentation talks about how it's such an integral part of the minion makes you think it might not be the case
12:30 saltnoob58 also documentation sometimes conflates the agent and the target host both as minion
12:33 strobelight joined #salt
12:33 babilen salt-ssh essentially uploads a minion that is run in masterless mode
12:38 Elsmorian joined #salt
12:38 nledez joined #salt
12:39 otaria joined #salt
12:47 rh10 joined #salt
12:52 saltnoob58 that's seems like a weird way to do it, but i can't say ansible doesn't do the same thing. As long is works
12:54 babilen Well, you have to have some software that it run on the remote side
12:57 pipps joined #salt
12:58 xet7 joined #salt
12:59 Creme joined #salt
13:01 saltnoob58 joined #salt
13:14 Creme joined #salt
13:17 Hybrid joined #salt
13:17 permalac joined #salt
13:17 cyteen joined #salt
13:21 gmoro joined #salt
13:28 Deliant joined #salt
13:33 dev_tea joined #salt
13:40 otaria joined #salt
13:42 kedare joined #salt
13:42 kedare Hi all :)
13:42 kedare Question, is there a way to set multiple global job_cache ? Like it is possible with event returners ?
13:43 kedare Basically I have a web ui that is for now pointing to a MongoDB (To consult job status and results in a friendly way) and I’m moving it to PostgreSQL so I would like to inject everything in both, so I can develop the PostgreSQL one without impacting the existing one that is still using MongoDB
13:44 Hybrid1 joined #salt
13:47 otaria joined #salt
13:49 nickadam joined #salt
13:56 AvengerMoJo joined #salt
13:56 Hybrid joined #salt
14:15 nledez joined #salt
14:16 racooper joined #salt
14:17 Shirkdog joined #salt
14:23 otaria joined #salt
14:27 numkem joined #salt
14:29 otaria joined #salt
14:38 lanix joined #salt
14:38 Creme joined #salt
14:44 sayyid9000 joined #salt
14:44 otaria joined #salt
15:03 cyteen joined #salt
15:09 aldevar left #salt
15:10 mage_ canI use a 2017.x master with 2016.x clients ?
15:11 ntropy mage_: probably; master being on higher version than minions is fine, the other way around isn't recommended
15:11 mage_ ok thanks :)
15:12 schemanic joined #salt
15:13 saltslackbridge <gtmanfred> master should always be able to be a higher version
15:13 numkem joined #salt
15:13 doubletwist joined #salt
15:13 saltslackbridge <gtmanfred> https://docs.saltstack.com/en/latest/faq.html#can-i-run-different-versions-of-salt-on-my-master-and-minion
15:14 saltslackbridge <gtmanfred> and for most cases your minions can be newer than the master, except if your minions are on 2017.7.0 or 2017.7.1, it got broken there, but fixed in 2017.7.2
15:14 schemanic hello, can anyone help me with an issue I ran into friday? I'm sorry if anyone replied before but I couldn't be around after work. I need help with a problem I'm having when calling basically any salt functions on a specific minion
15:14 schemanic Passed invalid arguments to saltutil.sync_all: argument of type 'NoneType' is not iterable
15:14 AdamSewell joined #salt
15:14 aldevar joined #salt
15:15 ntropy schemanic: this channel is logged and logs are public - http://irclog.perlgeek.de/salt/ - maybe someone did already answer your question :)
15:15 ntropy (its in the topic)
15:15 mage_ thanks
15:16 cgiroua joined #salt
15:17 schemanic thanks ntropy, I didn't know such a tool was available. Unfortunately I don't think anyone answered me.
15:17 schemanic this seems to be an issue with basically everything I try running against the minon - state.apply, state.highstate, saltutil.sync_all etc.
15:17 schemanic I only seem to be able to call individual states
15:17 babilen schemanic: I've seen that when empty data was included in state/pillar declarations .. tricky to find and you might just want to perform a binary search on the "usual suspects"
15:17 babilen I *really* don't like seeing that issue
15:18 schemanic babilen, if I follow you, you mean to say that a change in my topfile might be causing the issue?
15:18 babilen I'd start with states that extend other states
15:18 babilen Not necessarily the top file - It could literally be anywhere where dynamic data is being included (or in this case: missing)
15:19 babilen So that a state declaration is incomplete
15:19 kojiro joined #salt
15:19 saltslackbridge <mts-salt> best way to diagnose it sadly is to start bisecting your config and reduce it down to the smallest working subset, then build back up again :(
15:20 babilen Yeah, binary search it is
15:20 babilen https://github.com/saltstack-formulas/php-formula/blob/master/php/ng/fpm/pools.sls was the last time I ran into this .. that formula bombs with the default configuration
15:20 schemanic babilen, what do you mean binary search?
15:20 saltslackbridge <gtmanfred> https://en.wikipedia.org/wiki/Binary_search_tree
15:20 babilen https://en.wikipedia.org/wiki/Binary_search_algorithm
15:21 babilen Essentially: Remove one half of your code, test .. if error gone: Remove half of that half, test again .. continue until you found the culprit
15:21 babilen (thing git bisect)
15:21 babilen *think
15:21 schemanic I see. so remove half of the states in my topfile and see whats breaking
15:22 babilen Sadly .. yes
15:22 schemanic hmm...
15:22 babilen If that fixes the problem, the issue must be in a state in the other half, so you focus on that
15:22 saltslackbridge <mts-salt> when something similar happened to me i copied the git data into a minion and started commenting huge swaths out and testing in masterless mode. it's helpful that a minion seems quite happy to be both :slightly_smiling_face:
15:22 babilen (rinse and repeat)
15:22 schemanic you mentioned 'empty data' being included. what might that look like?
15:23 bowhunter joined #salt
15:23 babilen Like the example I mentioned
15:23 babilen When {{ file_requisites(pool_states) }} is empty it bombs
15:24 babilen (which is the case with the default configuration)
15:24 schemanic The last thing I did that happened before I broke things was that I couldn't figure out the targeting expression in my topfile. I wanted to call out two specific minions. I got frustrated so I just copied the state/pillar assignments in my topfile and gave each it's own target expression.
15:25 babilen It's probably the most annoying error you'll ever encounter with SaltStack :)
15:25 saltslackbridge <mts-salt> we were trying to make import_yaml work inside pillar recently, and it just results in a totally empty pillar
15:25 saltslackbridge <mts-salt> some of the errors are indeed, well, frustrating
15:27 schemanic Okay. Thanks for the help. I'm going to go hunting for it.
15:28 babilen All the best!
15:35 beardo joined #salt
15:37 racooper joined #salt
15:40 nebuchadnezzar joined #salt
15:40 jholtom joined #salt
15:40 _val_ joined #salt
15:40 _val_ joined #salt
15:41 Tyrant joined #salt
15:41 Ryan_Lane joined #salt
15:42 andi- joined #salt
15:44 Tenyun[m] joined #salt
15:45 ThomasJ|m joined #salt
15:48 _val_ joined #salt
15:48 _val_ joined #salt
16:03 yuhl__ joined #salt
16:11 jle joined #salt
16:12 jle Hi! What kind of memory usage should I expect for a master with about 1000 minions?
16:13 jle I am seeing 1.6 GB for a master with only 400 minions now.. is this really normal when idling?
16:14 emerson left #salt
16:16 Hybrid joined #salt
16:18 snath joined #salt
16:19 edrocks joined #salt
16:25 Elsmoria_ joined #salt
16:25 tiwula joined #salt
16:26 Aleks3Y joined #salt
16:26 xet7 joined #salt
16:27 Kelsar joined #salt
16:28 heaje joined #salt
16:28 edrocks joined #salt
16:30 Naresh joined #salt
16:33 Elsmorian joined #salt
16:35 Elsmoria_ joined #salt
16:41 Hybrid joined #salt
16:43 ajw0100 joined #salt
16:50 cyteen joined #salt
16:51 ajw0100_ joined #salt
16:58 bowhunter joined #salt
16:59 armyriad joined #salt
17:02 t3rm joined #salt
17:07 pipps joined #salt
17:09 t3rm are there any active, open source gui/web frontends for salt?
17:10 pipps99 joined #salt
17:18 saltslackbridge <gtmanfred> saltpad is usually the one people recommend
17:25 schemanic joined #salt
17:27 FuzzyVeg joined #salt
17:27 otaria joined #salt
17:30 aldevar left #salt
17:32 pipps joined #salt
17:38 otaria joined #salt
17:49 kojiro In pillars I have a list of cnames. In state I want the A record for those strings. So I have `{{ cnames|map(salt['dnsutil.A'])|map(first) }}` to get the first result from dnsutil.A for each entry in the cnames list.
17:50 kojiro But the actual rendered state is a list of the characters in the repr of a generator object
17:51 kojiro I also tried to use the jinja `list()` filter, but get "Jinja error: no filter named <function caller at 0x7f9e5a904c80>"
17:55 kojiro If anyone has advice for dereferencing cnames across a list in states, I'd appreciate it
17:58 sabedevops joined #salt
18:04 pipps joined #salt
18:06 hoonetorg joined #salt
18:10 DammitJim joined #salt
18:11 edrocks joined #salt
18:12 otaria joined #salt
18:14 otaria left #salt
18:17 Deliant joined #salt
18:21 nethershaw joined #salt
18:22 onlyanegg joined #salt
18:24 Deliant joined #salt
18:26 FuzzyVeg left #salt
18:35 pipps joined #salt
18:39 onlyanegg joined #salt
18:55 ymasson joined #salt
18:59 schemanic_ joined #salt
19:02 pipps99 joined #salt
19:03 schemanic_ joined #salt
19:06 pipps joined #salt
19:16 schemanic__ joined #salt
19:16 sabedevops left #salt
19:32 schemanic__ joined #salt
19:40 pipps joined #salt
19:45 edrocks joined #salt
19:50 wryfi joined #salt
19:54 DammitJim joined #salt
20:00 wryfi joined #salt
20:00 aldevar joined #salt
20:01 pipps joined #salt
20:03 Trauma joined #salt
20:15 onlyanegg joined #salt
20:19 cyborg-one joined #salt
20:20 cyborg-one left #salt
20:21 TTimo joined #salt
20:24 taylorbyte joined #salt
20:26 wryfi joined #salt
20:26 MTecknology joined #salt
20:31 ntropy_ joined #salt
20:34 inad922 joined #salt
20:35 PFault joined #salt
20:39 schemanic__ babilen, holy crapsticks you know what my issue was?
20:39 pipps joined #salt
20:40 schemanic__ in my topfile I had this:
20:41 schemanic__ 'targeting_expression':\n\t- state1\n\t-state2\n\t - # state3 after written
20:41 schemanic__ there was a blank line item
20:46 pipps joined #salt
20:52 pipps joined #salt
20:53 babilen schemanic__: That's ...
20:53 babilen I'm so sorry
20:53 * babilen hands a pint of Grozet to schemanic__
21:00 XenophonF it comes in pints?!
21:01 MTecknology comes in bottles.. bottles are close to a pint?
21:02 * MTecknology wants to try it
21:07 aldevar joined #salt
21:11 pipps99 joined #salt
21:12 Creme joined #salt
21:20 pipps joined #salt
21:28 babilen Well .. I normally pour it into a pint glass
21:28 babilen Fraoch too
21:31 TTimo I have a minion that's taking a long time to go through it's highstate (started via saltcloud) .. is there a way I can 'tail' the log output from the master to see what it's doing ?
21:32 iggy TTimo: no (other than `salt 'minion' cmd.run "tail /var/log/salt/minion"` periodically
21:32 babilen TTimo: To debug this you might want to call "salt-call -ldebug state.apply" on the minion
21:32 TTimo yeah it's a Windows minion, tbh no idea where the logs are going
21:33 TTimo k
21:33 iggy having to log onto the minion and run stuff isn't very cloudy
21:33 TTimo I know right :)
21:34 babilen It does, however, solve the problem
21:35 whytewolf TTimo: could add '- fire_event: True' to all of your states and watch the event bus
21:38 babilen Is there a nice way to add something to every state?
21:38 aldevar left #salt
21:39 whytewolf honestly I could have sworn there was a config option that does it for states. but I'm on lunch.
21:40 nsidhu joined #salt
21:42 RandyT joined #salt
21:42 RandyT joined #salt
21:43 pipps joined #salt
21:45 pipps99 joined #salt
21:51 pipps joined #salt
21:53 pipps99 joined #salt
21:55 vtolstov joined #salt
21:56 pipps joined #salt
21:58 pipps99 joined #salt
21:58 pipps_ joined #salt
22:00 csmule joined #salt
22:00 ahrs joined #salt
22:03 darix- joined #salt
22:13 aviau joined #salt
22:14 sjorge joined #salt
22:29 pipps joined #salt
22:33 Elsmorian joined #salt
22:33 pipps99 joined #salt
22:47 RandyT_ joined #salt
22:47 RandyT_ joined #salt
22:51 cgiroua joined #salt
22:53 pipps joined #salt
22:59 Shirkdog joined #salt
23:00 schemanic joined #salt
23:06 armyriad joined #salt
23:06 ahrs joined #salt
23:17 Micromus joined #salt
23:24 ECDHE_RSA_AES256 joined #salt
23:25 __xor joined #salt
23:26 leev joined #salt
23:26 wright08 joined #salt
23:26 mauli joined #salt
23:27 tom[] joined #salt
23:27 poige joined #salt
23:27 nickadam joined #salt
23:27 aerbax joined #salt
23:27 gtmanfred joined #salt
23:28 daemonkeeper joined #salt
23:28 kshlm joined #salt
23:29 Armadillo joined #salt
23:29 Hazelesque joined #salt
23:43 pipps99 joined #salt
23:45 pipps joined #salt
23:54 tom[] joined #salt

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