Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2018-01-23

| 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:08 saltslackbridge <james> Heyguys, can anyone help me out here?
00:09 saltslackbridge <james> Im trying to wrap win_system.get_pending_updates into a grain but I just can't get it to work
00:11 whytewolf why?
00:12 dagb joined #salt
00:13 saltslackbridge <james> Sorry connection keeps dropping let me try on my laptop
00:13 daemonkeeper joined #salt
00:14 Armadillo joined #salt
00:15 Hazelesque joined #salt
00:19 XenophonF I could see wanting to select a subset of minions based on whether they have updates pending.
00:19 XenophonF Salt Mine might be the better tool.
00:20 saltslackbridge <james> there we go
00:20 saltslackbridge <james> anyway
00:21 saltslackbridge <james> File uploaded https://saltstackcommunity.slack.com/files/U7ZN3MT2L/F8X14RJF7/-.py / https://slack-files.com/T7KPDM7M3-F8X14RJF7-e73b408f61
00:21 saltslackbridge <james> anything look wrong with that?
00:21 saltslackbridge <james> I assume it's the method ccall
00:22 saltslackbridge <james> but I've tried different variations etc and no dice
00:23 schemanic can the salt fileserver not recognize init.sls files more than 1 level down?
00:23 schemanic I have a file structure of formula/component1/init.sls, formula/component2/init.sls and i'm calling it in top as - formula.component1\n\t- formula.component2
00:25 whytewolf schemanic: I used to use that layout all the time for my openstack stuff.
00:27 whytewolf james. the fact that it is on slack so not everyone on IRC can see it?
00:27 lkthomas guys, I have pillar -> base -> nagios -> nagios.sls file defined
00:27 lkthomas how could I salt-call on this file ?
00:27 schemanic I found my problem. I have a remnant subdirectory from using saltscaffold that my states were under. the paths in top were wrong
00:28 whytewolf lkthomas: pillar -> base -> nagios -> nagios.sls is not a state that is a definition of variables that a state would use
00:29 threwahway joined #salt
00:30 lkthomas ok, found that from document called nagios.server
00:30 lkthomas but I have another error: Could not LazyLoad nagios.server: 'nagios' __virtual__ returned False: The nagios execution module cannot be loaded: nagios-plugins are not installed.
00:31 whytewolf pretty much says the issue there.
00:31 whytewolf nagios-plugins are not installed where salt can access them
00:32 lkthomas https://github.com/salt-formulas/salt-formula-nagios
00:32 lkthomas I am using this one, how could I check if it's installed correctly ?
00:33 saltslackbridge <james> Oh oops
00:33 saltslackbridge <james> import salt.modules.win_system def is_update_pending():     grains = {}     grains['update_pending'] = salt.modules.win_system.get_pending_update()     return grains
00:33 saltslackbridge <james> It's tired and I'm late
00:39 whytewolf lkthomas: you ran the wrong thing.
00:39 lkthomas yeah, please explain
00:40 whytewolf lkthomas: you want to state.apply nagios
00:40 Micromus joined #salt
00:40 whytewolf all a formula is is a bunch of states. you should already be familure with running states
00:40 whytewolf if not. do the tutorial
00:41 whytewolf https://docs.saltstack.com/en/latest/topics/tutorials/states_pt1.html
00:42 lkthomas No matching sls found for 'nagios.server' in env 'base'
00:43 whytewolf then you setup the formula wrong
00:43 lkthomas https://github.com/salt-formulas/salt-formula-nagios
00:43 lkthomas it's saying I should put those variables on pillar
00:43 lkthomas which is what I did
00:43 whytewolf no
00:44 whytewolf that is NOT the only thing you need to do
00:44 whytewolf you need to setup salt to know that you want to use that formula
00:44 lkthomas I have file_roots defined too
00:45 whytewolf what does your file_roots look like?
00:46 lkthomas fuck, hang on
00:46 lkthomas this test server seems didn't have that path
00:48 schemanic I'm having trouble getting archive.extracted to extract without a top-level directory. I've set clean: True under archive.extracted.
00:49 lkthomas whytewolf, https://gist.github.com/anonymous/7c9b76cfcf6c938a122458a546d1b033
00:49 lkthomas blah
00:49 lkthomas seems wrong again
00:50 whytewolf does /srv/salt/saltstack/formulas/salt-formula-nagios exist and contain the checked out git repo?
00:50 lkthomas let me rebuild this master test VM
00:50 lkthomas everything just wrong
00:52 pipps joined #salt
00:54 iggy saltslackbridge: @james `grains['update_pending'] = __salt__['win_system.get_pending_update']()` or something
00:59 whytewolf import salt.modules.win_system; __salt__ = { 'win_system.get_pending_update': salt.modules.win_system.get_pending_update }; then in the function call it with __salt__['win_system.get_pending_update']()
00:59 lkthomas now /srv/salt-states/formulas/salt-formula-nagios exists which match file_roots
00:59 lkthomas still no match
01:00 iggy whytewolf: do python grains not have the __salt__ dunder?
01:00 whytewolf the salt dunder is created after grains load
01:01 whytewolf lkthomas: did you change your config to match that? cause what you posted earlyer was /srv/salt/saltstack/formulas/salt-formula-nagios
01:01 lkthomas yes I did
01:01 whytewolf this is masterless right?
01:01 lkthomas no, it have one master and one minion
01:02 iggy ahh, then yeah, mine seems a much better way
01:02 whytewolf did you restart the master after you put in that change?
01:02 lkthomas whytewolf, yes, the whole master was rebuilt
01:03 whytewolf lkthomas: what does the tree of /srv/salt/saltstack/formulas/salt-formula-nagios look like?
01:03 whytewolf or what ever is in file_roots
01:03 lkthomas yeah it should be /srv/salt-states/formulas/salt-formula-nagios
01:04 whytewolf doesn't matter. what does the tree look like
01:04 lkthomas https://gist.github.com/anonymous/960b51a592be33bb4988545ce0b907c6
01:05 whytewolf ok... that is right. and you say when you state.apply nagios.server it says it doesn't exist?
01:05 lkthomas yep: No matching sls found for 'nagios.server' in env 'base'
01:06 whytewolf what is your full command?
01:07 lkthomas minion: salt-call state.apply nagios.server
01:08 whytewolf why are you running salt-call on the minion instead of salt on the master?
01:08 lkthomas that's all the same, no ?
01:09 lkthomas damn
01:09 whytewolf eh, not really. if the minion is misconfigured to act masterless then the salt-call wouldn't be able to find the files cause it isn't even trying to conect to the master.
01:09 lkthomas key problem
01:09 lkthomas wait
01:11 lkthomas strange, from saltmaster, salt * test.ping show no match
01:11 whytewolf did you accept the key?
01:11 lkthomas yes, now it's working
01:11 lkthomas I forget to quote t
01:11 lkthomas '*'
01:12 lkthomas now different error
01:13 lkthomas https://gist.github.com/anonymous/1404ead3ef3c34c915e7eb9bed7d7181
01:14 whytewolf that looks like you have an error in your pillar
01:14 whytewolf or they have an error in the formula
01:14 whytewolf or both
01:14 lkthomas how could I debug this error ?
01:16 whytewolf with luck. you would have to find which enabled their jinja is looking for that is failing
01:16 tom[] joined #salt
01:17 whytewolf lkthomas: you could post the contents of pillar.items in a gist
01:18 whytewolf anyway. I gota go
01:19 lkthomas nothing else except SSH key
01:29 pipps joined #salt
01:30 lkthomas anyone else could help ?
01:30 snath joined #salt
01:46 tiwula joined #salt
01:54 lkthomas sigh, anyone
02:02 wryfi joined #salt
02:03 pipps99 joined #salt
02:07 Creme left #salt
02:12 lkthomas how exactly could I test salt formulas is properly installed or not
02:15 sjorge joined #salt
02:15 nomeed joined #salt
02:16 c4rc4s joined #salt
02:27 nomeed joined #salt
02:33 lkthomas https://github.com/salt-formulas/salt-formula-nagios/issues/18
02:33 SalanderLives joined #salt
02:33 lkthomas anyone mind to have a look for me please ?
02:34 SalanderLives left #salt
02:55 lkthomas this bathsalt drive me nuts
02:57 ilbot3 joined #salt
02:57 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
03:07 lkthomas how could I check if my formulas install correctly ?
03:09 ntropy_ left #salt
03:09 ntropy joined #salt
03:20 MTecknology what do you mean by installL
03:20 MTecknology s/L/?/
03:21 lkthomas MTecknology, mind to check that github ticker please ?
03:21 DammitJim joined #salt
03:22 MTecknology what will I be looking for in it?
03:25 lkthomas https://github.com/salt-formulas/salt-formula-nagios/issues/18
03:25 lkthomas I just have no clue how could I troubleshoot this
03:26 pipps joined #salt
03:28 threwahway_ joined #salt
03:31 Edgan joined #salt
03:32 threwahway joined #salt
03:33 lkthomas MTecknology, any idea where is that error coming from ?!
03:34 MTecknology You asked about "how to tell if installed?" I asked a question about that.
03:37 lkthomas well how could I tell if my formulas install correctly ?
03:40 MTecknology You didn't answer my question.
03:43 lkthomas MTecknology, I don't understand what are you trying to ask
04:11 preludedrew joined #salt
04:18 sjorge joined #salt
04:38 shiranaihito joined #salt
04:38 armyriad joined #salt
04:41 XenophonF joined #salt
05:00 XenophonF lkthomas: run cp.list_master on the minion to see if the formula's directories appear in the correct location in the Salt file server
05:00 XenophonF from the config you posted, it looks like they are
05:01 XenophonF I'd expect you to see a "nagios" directory that contains the SLSes that comprise the formula.
05:01 XenophonF As for the question about the rendering error, you didn't include enough information to determine what broke.
05:02 XenophonF I assume the nagios.server Pillar SLS contains the necessary settings, but you don't show the Pillar top.sls file which assigns that Pillar SLS to the minion in question.
05:03 XenophonF so it's kind of hard for us here, on the other side of the screen, to guess what's going on there in front of you
05:03 XenophonF I suggest you start by verifying the correct Pillar data's available on your minion, e.g., `salt-call pillar.get nagios -l debug`.
05:04 XenophonF You might want to refresh the minion's Pillar data with `salt-call saltutil.refresh_pillar -l debug`
05:04 XenophonF (the debug logging is just there for your edification---I like seeing the background activities)
05:05 XenophonF if you see something about a rendering error and checking the master log, look at /var/log/salt/master
05:05 threwahway_ joined #salt
05:07 XenophonF I think MTecknology's point is that you don't really install a formula as copy it into place.
05:08 MTecknology My point is I had no idea what he thought he did or where things might have gone wrong
05:08 XenophonF well, yeah, that too
05:16 threwahway joined #salt
05:26 lkthomas XenophonF, I got a list of files yes
05:27 lkthomas nagios files is in formula/salt-formula-nagios/nagios/files directory
05:28 justan0theruser joined #salt
05:28 justan0theruser joined #salt
05:29 lkthomas the list is all green
05:29 lkthomas no red at all
05:35 pipps joined #salt
05:39 lkthomas XenophonF, you there ?
05:39 XenophonF I'm here.  Did you check the Pillar data on the minion?
05:42 lkthomas XenophonF, https://gist.github.com/lkthomas/3af453776c3e957ef1c6cea7fc34ad68
05:42 lkthomas it's looking good, what do you think ?
05:46 lkthomas if file placement is wrong, it should show red instead of green, correct ?
05:47 swills joined #salt
05:47 swills joined #salt
05:54 lkthomas XenophonF, seems missing entry on top.sls within pillar directory
05:55 lkthomas do I need to restart salt-master when I change any config inside pillar and base ?
05:55 lkthomas or salt-master will detect and reload by itself ?
06:01 Hybrid joined #salt
06:11 XenophonF in general, no restarts are required unless you're changing something under /etc/salt
06:11 XenophonF changes to files under /srv/salt take effect immediately, but you might need to trigger a Pillar data refresh on a minion (e.g., via saltutil.refresh_pillar or state.apply).
06:12 XenophonF nighty night. don't let the bedbugs bite.
06:15 lkthomas XenophonF, sigh, my problem still there
06:17 lkthomas when I include base: vm001: - nagios.server, I got another error
06:17 lkthomas Rendering SLS 'base:nagios.server' failed: Jinja variable 'dict object' has no attribute 'additional_packages'
06:21 tpaul joined #salt
06:21 Eric_TheITGuy joined #salt
06:22 XenophonF you'll need to visually inspect nagios/server.sls, looking for `additional_packages`
06:22 XenophonF maybe trace backwards into a map.jinja file, if there is one
06:23 XenophonF by debugging this you will figure out (a) how to fix it for yourself and (b) how to describe it in a new issue (or possibly a PR that fixes the issue)
06:23 XenophonF I'm going to take a wild guess and say you're running RHEL or CentOS, yes?
06:23 XenophonF not Debian?
06:24 XenophonF I really am going to bed now.
06:25 Eric_TheITGuy joined #salt
06:27 LocaMocha joined #salt
06:28 Eric_The1 joined #salt
06:28 Eric_TheITGuy joined #salt
06:32 lkthomas I think I have a clue now
06:34 Eric_TheITGuy joined #salt
06:35 LocaMocha joined #salt
06:55 xet7 joined #salt
07:01 xet7 joined #salt
07:04 Mattch joined #salt
07:06 jle Hi! What kind of memory usage should I expect for a master with about 1000 minions?
07:06 jle I am seeing 1.6 GB for a master with only 400 minions now.. is this really normal when idling?
07:09 Ricardo1000 joined #salt
07:10 evle2 joined #salt
07:17 MTecknology jle: That's a question that only you can really answer... I was able to drop ram/cpu usage on masters by over 50% by waiting for someone to leave and revamping how their pillar system works.
07:17 MTecknology If you have a poor design, you'll hit resource constraints sooner.
07:22 xet7 joined #salt
07:23 Raja joined #salt
07:26 impi joined #salt
07:30 Elsmorian joined #salt
07:34 niks joined #salt
07:35 niks left #salt
07:35 Ricardo1000 joined #salt
07:44 aldevar joined #salt
07:51 chowmeined joined #salt
07:51 jrenner joined #salt
07:55 zulutango joined #salt
08:03 drags joined #salt
08:11 lkthomas after switched to another formula
08:11 lkthomas I got success 0, failed 0
08:15 lkthomas after spending two days, I still don't understand how the whole things work
08:15 lkthomas it's either failed or do nothing
08:16 Tucky joined #salt
08:17 Hybrid joined #salt
08:19 aviau joined #salt
08:20 saltslackbridge <james> Alright, looks like I'm getting `global name '__salt__' is not defined`
08:20 saltslackbridge <james> When I call `salt.modules.win_system.get_pending_update()` in my grains
08:22 MTecknology something about 'salt.modules' and 'salt != __salt__' doesn't seem to match up.
08:22 saltslackbridge <james> Guess I'll have to fake the `__salt__` calls that the execution modules rely on
08:22 lkthomas https://github.com/saltstack-formulas/nagios-formula
08:22 saltslackbridge <james> ` reg_ret = __salt__['reg.read_value']('HKLM', key, vname)`
08:23 lkthomas I am trying to use this formula
08:23 saltslackbridge <james> Like that
08:23 lkthomas anyone mind to give me a hand ?
08:24 lkthomas I cloned this formula into formula directory
08:24 lkthomas included on salt-master
08:24 lkthomas so on pillar directory, I need to create a new folder call nagios, correct ?
08:25 MTecknology lkthomas: You're asking questions that require either many assumptions or knowledge of your current setup.
08:26 lkthomas MTecknology, if you aren't helping, please allow other people to help
08:26 lkthomas you have been trolling for a while
08:26 MTecknology lkthomas: If you want help, then you need to stop asking terrible questions.
08:27 lkthomas MTecknology, I am pretty sure you know everything in this world and never start anything at the first day, hell yeah
08:31 saltslackbridge <james> eh, I can't seem to get even `__salt__ = { 'reg.read_value': salt.modules.reg.read_value }`
08:31 saltslackbridge <james> to work
08:31 saltslackbridge <james> `global name '__salt__' is not defined  `
08:36 saltslackbridge <james> Anyone any ideas? Don't really want to copy the execution modules direcctly
08:36 saltslackbridge <james> DRY and all that
08:37 MTecknology james: you didn't respond to my comment, about the weirdness.
08:37 saltslackbridge <james> Oh sorry
08:37 tpaul left #salt
08:38 saltslackbridge <james> What do you mean, sorry?
08:38 MTecknology salt.modules.<mod>.<fun> is odd.
08:38 saltslackbridge <james> I couldn't just do `__salt__ = salt` because one uses dot notation and one uses dict right?
08:38 saltslackbridge <james> It's in a custom grain
08:38 MTecknology where did you come up with that syntax?
08:38 saltslackbridge <james> And you can't use __salt__ in grains
08:38 MTecknology and why are you trying to force a dunder dict to exist?
08:39 saltslackbridge <james> You have to import the modules
08:39 MTecknology !dunder
08:39 MTecknology grr
08:39 saltslackbridge <james> Because __salt__ relies on grains being present
08:39 saltslackbridge <james> or am I missing what you're saying?
08:39 MTecknology your "because" seems a bit odd..
08:39 MTecknology https://docs.saltstack.com/en/latest/topics/development/dunder_dictionaries.html
08:40 saltslackbridge <james> https://github.com/saltstack/salt/issues/24997
08:42 tpaul joined #salt
08:47 MTecknology james: I get what you're talking about now, after reading that bug.
08:48 yuhl_ joined #salt
08:48 tpaul left #salt
08:51 * MTecknology would need to see the source of the grain having issues to try to help
08:51 MTecknology you're basically just creating a dummy dunder dict because salt didn't get to the point where that exists yet, since grains are before modules.
08:53 toanju joined #salt
08:54 saltslackbridge <james> I just want to use `salt.modules.reg.read_value` in a grain
08:54 saltslackbridge <james> nope
08:54 saltslackbridge <james> wrong one
08:54 saltslackbridge <james> `system.get_pending_update`
08:55 saltslackbridge <james> But I can't override an internal reference to `__salt__`
09:17 saltslackbridge <whytewolf> Read the source of some built in grains.
09:29 nikeshm_ joined #salt
09:32 nikeshm_ left #salt
09:35 nikeshm joined #salt
09:36 nikeshm hi
09:37 nikeshm how can i monitor changes in a git repository
09:38 nkuttler nikeshm: use a git hook to notify you when something changes?
09:39 nikeshm nkuttler: any reference on implementation in salt state file
09:39 whytewolf Nikeshm: setup a bit hook to hit a salt-api end point the triggers a orchestration.
09:40 whytewolf Stupid autocorrect
09:40 whytewolf Also insomnia sucks
09:41 Elsmorian joined #salt
09:41 nkuttler nikeshm: 1. write the git hook, test it. 2. enable salt api, configure it to do what you want. 3. connect git hook to salt api. 4. write a state to put the git hook where you need it
09:42 nkuttler if necessary, update your salt master states with the api config
09:43 nikeshm thanks
09:45 Elsmorian joined #salt
09:49 MTecknology nikeshm: I have a git post-receive hook that fires a script that runs salt-event, then you have a salt reactor configured on the master to fire an orchestrate sls. When that fires, anything you want can happen.
09:52 xist joined #salt
09:57 toanju joined #salt
09:58 saltslackbridge <sjoerd> Does anyone have a pointer for me on how I can make kitchen-salt pull different scripts into /tmp/kitchen? I'm having issues with formula-fetch.sh that I want to troubleshoot
09:59 yuhl_ joined #salt
09:59 oida joined #salt
10:00 jle MTecknology: right now it is really an empty infrastructure.. 1 salt-master with 5 syndics with about 500 minions connected to every syndic master.. no pillars yet, just a couple (4-5) of states that are rolled out every hour..
10:00 jle MTecknology: mind sharing some numbers from your environment?
10:00 MTecknology 5 syndics is a LOT for only 500 minions.
10:01 MTecknology I can picture scenarios where it's appropriate, but it's still substantial.
10:01 whytewolf Mt reread that. He said 500 per syndic
10:02 MTecknology oooooh... did I read something different earlier?
10:02 jle we are still rolling out minions.. we have about 8000 in total
10:02 jle 8000 linux systems that is
10:03 jle yes.. i ment 500 minions per syndic
10:03 MTecknology 01:06 < jle> I am seeing 1.6 GB for a master with only 400 minions now.. is this really normal when idling?
10:03 MTecknology jle: Do you have 400 minions or 5 syndics w/ 500 minions connected to each?
10:04 jle sorry.. what I wrote was probably a bit confusing.. we have 1 master master with 5 syncic masters.. there are about 400-600 minions connected to each syndic master.. the syndic masters are using about 1.6 GB RAM idling
10:05 whytewolf Depending on a lot of factors that could be normal high or low
10:08 threwahway_ joined #salt
10:10 whytewolf It is 2am and I am ircing from my phone. I think I have a problem
10:11 threwahway joined #salt
10:12 whytewolf Goodnight
10:13 MTecknology whytewolf: heh.. it's 04 here... :P
10:22 Elsmorian joined #salt
10:27 toanju joined #salt
10:49 nledez joined #salt
10:49 xist joined #salt
11:06 Elsmorian joined #salt
11:11 threwahway_ joined #salt
11:12 lompik joined #salt
11:25 mattfoxxx joined #salt
11:32 Creme joined #salt
11:49 rgrundstrom I want to make a run on the salt master that targets grains.item productname 'something'... How would i do that?
11:52 rgrundstrom nvm i found it
12:03 toanju joined #salt
12:11 cablekevin joined #salt
12:20 nomeed joined #salt
12:21 nledez joined #salt
12:25 DammitJim joined #salt
12:29 netcho joined #salt
12:29 netcho joined #salt
12:36 tongpu joined #salt
12:47 Larri test
12:47 Creme left #salt
12:47 kettlewell joined #salt
12:54 rickflare joined #salt
13:17 numkem joined #salt
13:19 DammitJim joined #salt
13:32 gmoro_ joined #salt
13:33 cgiroua joined #salt
13:43 toanju joined #salt
13:44 edrocks joined #salt
13:51 jhauser joined #salt
13:52 pcn joined #salt
13:53 XenophonF joined #salt
13:53 nledez joined #salt
14:03 cgiroua_ joined #salt
14:16 indistylo joined #salt
14:21 DammitJim joined #salt
14:24 Elsmoria_ joined #salt
14:26 racooper joined #salt
14:31 tpaul_ joined #salt
14:36 nixjdm joined #salt
14:44 pualj joined #salt
14:49 nledez joined #salt
14:50 jrenner joined #salt
14:53 artur-ba joined #salt
14:54 yuhl_ joined #salt
14:58 artur-ba left #salt
14:59 arturba joined #salt
14:59 netcho joined #salt
15:14 mchlumsky joined #salt
15:18 ouemt joined #salt
15:35 pbandark joined #salt
15:36 cyteen joined #salt
15:41 jeblair joined #salt
15:47 salty-g joined #salt
15:54 DammitJim joined #salt
15:54 TTimo salt-cloud still thinks it has some minions from VMs that were terminated directly via EC2 - is there a way to force salt-cloud -d oldminion ?
15:57 wwalker Why doesn't this match in top.sls?  https://gist.github.com/wwalker/0f8fc637cac4b1626983e8306a3618c5    (int|test)-head-.*     test-head-03
16:02 Aleks3Y joined #salt
16:10 kettlewe_ joined #salt
16:21 wwalker never mind, restarting the master fixed it....
16:22 lanix joined #salt
16:26 toanju joined #salt
16:28 saltslackbridge <james> @whytewolf I have
16:33 tiwula joined #salt
16:36 saltslackbridge <gtmanfred> TTimo, no, when salt-cloud deletes them it adds `-DEL<uuid>` to the server name, so that it knows they have been deleted, you would need to manually change the name in ec2
16:37 saltslackbridge <gtmanfred> or wait for ec2 to clean up the terminated instances
16:38 TTimo gtmanfred: I mean .. I terminated them, they are no longer showing in the ec2 dashboard, but salt '*.' test.ping still tries to ping them
16:38 saltslackbridge <gtmanfred> oh
16:39 saltslackbridge <gtmanfred> you need to remove the keys from `salt-key`
16:39 TTimo ah .. I'll look into that then.
16:41 saltslackbridge <gtmanfred> deleting with salt-cloud will also take care of that
16:41 TTimo yeah, I reckon that's a better way
16:43 doubletwist joined #salt
17:03 impi joined #salt
17:04 ymasson joined #salt
17:09 netcho_ joined #salt
17:24 viq Is "master_alive_interval" only for multi-master, or can it also be used to "try to detect dead connection and reconnect to your single master"?
17:28 sjorge joined #salt
17:31 Lionel_Debroux joined #salt
17:33 snath joined #salt
17:37 shiranaihito joined #salt
17:53 sjorge joined #salt
17:54 Larri joined #salt
17:55 arturb joined #salt
17:55 Edgan viq: I would think the later.
17:56 arturb left #salt
18:02 nledez joined #salt
18:02 aldevar joined #salt
18:03 toanju joined #salt
18:03 artur-ba joined #salt
18:04 artur-ba left #salt
18:06 artur-ba joined #salt
18:06 edrocks joined #salt
18:10 artur-ba Hi. I am currently working with salt and spotted one issue that is a little troublesome. I have installed salt-minion on a Centos and trying to install an app on this vm. When executing command to salt (CLI or URL request) I spotted that task appears in a event queue which is great. Unfortunatelly it takes around 4 minutes for the minion to start installing an app on a vm (yum install process starts). Is this a configuration issue or
18:10 artur-ba ?
18:13 Mitaka89 joined #salt
18:15 Mitaka89 joined #salt
18:17 toanju joined #salt
18:18 Mitko_ joined #salt
18:22 NeoXiD Is there any reason to actually use the yaml_encode/yaml_dquote/yaml_squote filters instead of just using the standard |yaml filter? I'm kinda missing that in the docs and always used |yaml so far.
18:36 indistylo joined #salt
18:37 Hybrid joined #salt
18:38 nomeed joined #salt
18:39 aCodinMan joined #salt
18:44 viq Edgan: I was told on slack otherwise
18:49 indistylo joined #salt
18:56 aCodinMan joined #salt
18:57 toanju joined #salt
18:57 DoomPatrol artur-ba: is there an actual problem that is being encountered or you concerned about the speed of execution?
19:07 artur-ba It is a problem because we have created a services which comunicates with salt using HTTP, and other services  (we have microservice architecture) are sending tasks to this service to install an app, ping minion and so on. Unfortunatelly we are getting connection timeouts because request to install and app takes even 600-700 seconds
19:08 pipps joined #salt
19:09 MTecknology artur-ba: we would probably need to see your states and a debug log of execution (salt-minion -l debug ...) to be able to help you troubleshoot performance issues within your stack.
19:12 artur-ba MTecknology: I will try to send them tommorow, but first I need to ask about it my project manager. Our second idea it is to create an async sommunicatation with salt. Send requet to /minions endpoint with a task to execute receive jid and periodicly check task status
19:12 pipps joined #salt
19:13 MTecknology you can always configure a custom returner... it's something I want to do myself someday (for a nice long-term storage of all executions)
19:15 artur-ba ok, I need to read about it
19:15 DammitJim joined #salt
19:18 netcho_ joined #salt
19:18 MTecknology I need to do it :P
19:25 aCodinMan joined #salt
19:27 alfie joined #salt
19:28 Trauma joined #salt
19:29 artur-ba left #salt
19:30 edrocks joined #salt
19:31 pipps99 joined #salt
19:34 saltslackbridge <pfriel> Does anybody know how to use external_auth to allow a particular user to call a given salt state against any pattern using the salt API?  I'm trying something like below.. but that only matches literally '*' for the target systems.  I also tried using .* but that kicks back a 404. ```external_auth:   pam:     apiuser:       - '*':         - state.sls:             args:             - 'blah.take_action' ```
19:36 inad922 joined #salt
19:41 viq pfriel: https://docs.saltstack.com/en/latest/topics/eauth/index.html
19:41 viq sorry
19:41 aCodinMan joined #salt
19:42 viq Seems my terminal got stuck for a moment
19:42 saltslackbridge <pfriel> @vicviq no prob, thx for replying.  The problem I have is the target will be completely dynamic (always changing host names) so I want to match on any value in there
19:43 viq pfriel: and '*' doesn't work?
19:43 saltslackbridge <pfriel> @vicviq so even if it is compound match.. I'm trying to figure out what the equivalent of ```.*``` "match any value here" is
19:43 saltslackbridge <pfriel> @vicviq using '*' does not work.. it seems that would only match if I set my target to '*'
19:43 viq How about 'E@.' ?
19:44 saltslackbridge <pfriel> sure, let me try that
19:45 saltslackbridge <pfriel> @vicviq woot, that works.. thanks so much!  So is that essentially saying a compound match of wildcard?
19:45 viq yeah, https://docs.saltstack.com/en/latest/topics/targeting/compound.html
19:45 saltslackbridge <pfriel> gotcha, thank you sir
19:47 viq Though the docs do show an example of .* so I am confused... But they also say "put compound matcher here" and that worked, so at least there's that.
19:48 aCodinMan joined #salt
19:48 saltslackbridge <pfriel> @vicviq I just tried using '*' again and it is working this time.. so apparently it was pbkac the entire time.  Welp at least now I know two ways of making this work.  thanks again
19:49 viq :P
19:49 saltslackbridge <pfriel> I think my problem is I had two arguments in the same block.. thinking it would match either one.  I needed separate code blocks for each salt state I want to allow.
19:50 viq pfriel: https://docs.saltstack.com/en/latest/topics/eauth/index.html#limiting-by-function-arguments
19:51 saltslackbridge <pfriel> yeah I saw the doc... fail on my part
19:58 aldevar joined #salt
20:11 aCodinMan joined #salt
20:11 cyteen joined #salt
20:13 englishm_work joined #salt
20:14 saltslackbridge <gtmanfred> @pfriel please do not use templated or slack specific stuff in this channel, it is connected to irc
20:14 saltslackbridge <gtmanfred> instead use gist
20:20 aCodinMan joined #salt
20:23 dendazen joined #salt
20:29 gtmanfred joined #salt
20:29 socket- Hey all, I have ~10 python scripts which setup various grains on my infrastructure. I want to sync a particular grain, not all of them, is there a way I can do something like salt '*' saltutil.sync_grains patch_management
20:31 saltslackbridge <gtmanfred> you can whitelist and blacklist them https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.sync_grains
20:32 saltslackbridge <gtmanfred> and you can set it in the minion config https://docs.saltstack.com/en/latest/ref/configuration/minion.html#extmod-whitelist-extmod-blacklist
20:37 aCodinMan joined #salt
20:39 edrocks joined #salt
20:43 aCodinMan joined #salt
20:45 aCodinMa_ joined #salt
20:47 DammitJim joined #salt
20:49 aldevar joined #salt
20:51 pipps joined #salt
20:51 pipps99 joined #salt
20:53 pipps_ joined #salt
20:56 pipps__ joined #salt
20:57 pipps99 joined #salt
20:57 Elsmorian joined #salt
21:01 aCodinMan joined #salt
21:04 evle2 joined #salt
21:04 schemanic joined #salt
21:06 nledez joined #salt
21:07 onlyanegg joined #salt
21:08 jbailey joined #salt
21:10 XenophonF anyone running salt on windows xp/windows server 2003 or older?
21:12 XenophonF it looks like Salt 2017.7.2 bundles a version of psutil that doesn't support anything older than Vista
21:15 saltslackbridge <gtmanfred> isn’t windows 2003 end of lifed?
21:16 sjorge joined #salt
21:16 aCodinMa_ joined #salt
21:16 whytewolf from what i understand windows xp eol in 2014 and 2003 in 2015
21:17 pipps joined #salt
21:17 saltslackbridge <gtmanfred> yeah, so we dropped support for it.
21:23 Hybrid joined #salt
21:35 pipps joined #salt
21:36 pipps joined #salt
21:36 mujx[m] joined #salt
21:37 pipps99 joined #salt
21:41 Hybrid joined #salt
21:44 XenophonF it is but i keep it around in order to access a few legacy systems
21:44 XenophonF like old iLOs
21:45 XenophonF really chaps my hide that i can't tell browsers/java that yes, i know this ssl site is insecure, no, i don't care please connect anyway
21:45 hemebond What are you using? IE?
21:45 XenophonF ie8
21:46 XenophonF like i said, old iLO
21:46 hemebond Oh gosh, I was just joking. That's horrible.
21:46 XenophonF tell me about it
21:46 XenophonF i need to get rid of this hardware at some point
21:46 whytewolf what iLo are you using that you need ie8 for?
21:46 XenophonF iLO 2
21:47 XenophonF i need an old browser and an old java
21:47 XenophonF ah well, i have the issue solved, i just wanted to maintain this horrible kludge a little better ;)
21:48 XenophonF i have some scientific equipment that only has drivers for XP too, which is lame but there you have it
21:51 aCodinMan joined #salt
21:55 dendazen joined #salt
21:58 aCodinMa_ joined #salt
22:00 aldevar left #salt
22:01 pipps joined #salt
22:16 deuscapturus joined #salt
22:17 pipps99 joined #salt
22:18 saltslackbridge <netcho> anyone using grains for populating motd?
22:22 saltslackbridge <netcho> i wanna use value in bash script but trying to remove brackets ['my_grain_value']
22:23 saltslackbridge <netcho> smrh like `var="['my-grain']"; echo "${var:2: -2}"`
22:25 aCodinMan joined #salt
22:33 aCodinMa_ joined #salt
22:36 aCodinMan joined #salt
22:40 aCodinMa_ joined #salt
22:42 aCodinMan joined #salt
22:43 aCodinMa_ joined #salt
22:44 saltslackbridge <netcho> i answered myslef :)
22:48 aCodinMan joined #salt
22:49 nledez joined #salt
22:55 RandyT joined #salt
22:55 RandyT joined #salt
22:56 pipps99 joined #salt
22:57 cgiroua joined #salt
23:05 aCodinMan joined #salt
23:08 pipps joined #salt
23:14 xet7 joined #salt
23:16 RandyT joined #salt
23:16 RandyT joined #salt
23:29 pipps joined #salt
23:36 pipps99 joined #salt
23:41 pipps joined #salt
23:42 jpsharp XenophonF: I have the same problem with my dell and HP servers.  Connecting to drac or ilo is a right pain in the ass.
23:47 pipps joined #salt
23:52 RandyT joined #salt
23:52 RandyT joined #salt
23:55 UForgotten joined #salt
23:56 onlyanegg joined #salt
23:56 jhujhiti does anyone have a formula to manage openldap slapd using the online config rather than slapd.conf?
23:56 dendazen joined #salt
23:58 pipps joined #salt

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