Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-02-07

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

All times shown according to UTC.

Time Nick Message
00:00 scsinutz joined #salt
00:01 gableroux joined #salt
00:03 edrocks joined #salt
00:15 madhadron I'm missing something. ec2-autoscale-reactor has an event arriving that an autoscaling group has scaled up. And then it calls runner.cloud.create, which starts a new instance
00:15 madhadron which doesn't seem at all the desired behavior
00:18 scsinutz joined #salt
00:28 madhadron Oh, wait, cloud.create is supposed to be stateful
00:32 alvinstarr joined #salt
00:38 jas02 joined #salt
00:45 mikecmpbll joined #salt
00:57 gtmanfred madhadron: it does not start a new instance
00:57 gtmanfred it passed the instance_id to the driver, which doesn't call request_instance
00:57 gtmanfred instead it just bootstraps the minion
00:58 gtmanfred madhadron: https://github.com/saltstack/salt/blob/develop/salt/cloud/clouds/ec2.py#L2583
00:58 madhadron Ah. Okay, I'm obviously getting tired, since I haven't managed to parse out the create methods cloud/__init__.py
00:59 gtmanfred it is in the ec2 create option, not all drivers have request_instance seperated out from create() like ec2 does
00:59 gtmanfred i believe DO and openstack/nova do as well
00:59 madhadron And now it makes sense. Okay.
01:00 madhadron So I should be able to call salt-cloud on an existing instance in EC2 as well and have it bootstrapped provided that I pass its instance id, right?
01:00 gtmanfred you cannot do it through salt-cloud
01:00 gtmanfred you can do it through salt-run cloud.create and pass the instance_id there
01:00 madhadron That's better anyway
01:00 gtmanfred and the cloud.create execution module
01:01 madhadron So if I spin up a bunch of instances with cloud-init, pull out their instance ids, and call cloud.create on them, I should have a nice path to bootstrapping everything.
01:02 madhadron Thanks. Now time to knock off and play with my kids.
01:11 ssplatt joined #salt
01:14 woodtablet left #salt
01:20 DEger joined #salt
01:24 petems joined #salt
01:24 munhitsu_ joined #salt
01:24 mattl joined #salt
01:27 mohae joined #salt
01:28 k_sze[work] joined #salt
01:31 chowmeined joined #salt
01:35 snarfy^ joined #salt
01:38 mvensky joined #salt
01:38 jas02 joined #salt
01:48 _JZ_ joined #salt
01:48 gnomethrower joined #salt
01:50 alvinstarr joined #salt
02:03 edrocks joined #salt
02:09 catpiggest joined #salt
02:13 XenophonF joined #salt
02:14 ozux joined #salt
02:16 orion___ left #salt
02:27 druonysus_ joined #salt
02:33 zenith777 joined #salt
02:34 scsinutz joined #salt
02:37 evle joined #salt
02:39 jas02 joined #salt
02:40 scsinutz joined #salt
02:46 zenith777 joined #salt
02:53 scsinutz joined #salt
02:54 F1l0s0f joined #salt
03:04 scsinutz joined #salt
03:10 rpb joined #salt
03:11 pcn oes anyone know how to use pepper to call the survey.hash runner?
03:11 pcn Not pepper the cli, that should read libpepper
03:11 stooj joined #salt
03:12 ssplatt joined #salt
03:20 mpanetta joined #salt
03:30 druonysus__ joined #salt
03:32 scsinutz joined #salt
03:32 stooj joined #salt
03:35 sh123124213 joined #salt
03:39 DEger joined #salt
03:39 petems joined #salt
03:40 stooj joined #salt
03:40 jas02 joined #salt
04:05 edrocks joined #salt
04:07 preludedrew joined #salt
04:08 stooj joined #salt
04:29 sp0097 joined #salt
04:32 stooj joined #salt
04:40 djgerm joined #salt
04:43 stooj joined #salt
04:49 justanotheruser joined #salt
05:06 scsinutz1 joined #salt
05:07 rdas joined #salt
05:17 scsinutz joined #salt
05:21 DanyC joined #salt
05:35 PatrolDoom joined #salt
05:42 jas02 joined #salt
05:48 stooj joined #salt
05:56 stooj joined #salt
06:03 ivanjaros joined #salt
06:03 snarfy^ joined #salt
06:08 Straphka joined #salt
06:09 dh joined #salt
06:15 ronnix joined #salt
06:25 bocaneri joined #salt
06:27 eseyman joined #salt
06:39 DanyC joined #salt
06:45 sacha joined #salt
06:47 flughafen joined #salt
06:48 sh123124213 joined #salt
06:57 stooj joined #salt
07:01 ivanjaros joined #salt
07:02 Pummage joined #salt
07:02 Pummage Hi! We'
07:02 Pummage We're looking into adopting Salt and it's viability in our organisation, is this the right place to ask questions?
07:03 stooj joined #salt
07:06 whytewolf right place, but most people are asleep. however there is also the salt-users group
07:07 whytewolf https://groups.google.com/forum/#!forum/salt-users
07:07 edrocks joined #salt
07:11 Pummage Ahh, right. Understandable. I guess I only have one questions. We've got roughly 750 Windows servers of various flavors from 2008 to 2016. Is it going to be a nightmare to implement? We've already got an agent management tool (N-central) and we're considering other tools to see if they jobs better.
07:12 stooj joined #salt
07:13 whytewolf ahh, personally I don't use windows in professional settings. so i am not the best example. however i have seen salt used for windows based setups. it is more complex then other systems since windows does not follow some of the same paradigms of unix/linux which makes auto deployment a lot easier on said systems.
07:18 HPUser joined #salt
07:20 HPUser Hello All I have one question about libcloud and saltstack. Can I use all methods of libcloud -> cloudstack with salt cloud ?
07:21 whytewolf HPUser: https://docs.saltstack.com/en/latest/ref/clouds/all/salt.cloud.clouds.cloudstack.html
07:22 HPUser Thanks this are the only method available ?
07:23 whytewolf not sure why you are asking about methods. salt-cloud isn't really a programing interface
07:24 whytewolf and yes, that is all that is exposed through salt-stack for cloudstack
07:24 whytewolf err salt-cloud not saltstack
07:25 HPUser SO not all call of libcloud are exposed on Salt Cloud correct ?
07:26 HPUser only the one listed on saltstack documentation
07:26 whytewolf that is correct.
07:26 HPUser thanks a lot
07:33 HPUser What is the better way to implement libcloud with Saltstack is there is a simple way to make this integration?
07:33 sh123124213 joined #salt
07:37 rawzone joined #salt
07:38 CrummyGummy Morning :) Please advise me as to how to run formulae in files rather than in top.sls. I have no issue when the formula is in the top file but it would be cleaner to have it all in one file that is referenced from the top file. Please see my gist below for reference.
07:38 CrummyGummy https://gist.github.com/waynegemmell/77d8eace699b9c3d8f4b8d2ea72ef5cb
07:41 stooj joined #salt
07:44 Rene- joined #salt
07:44 jas02 joined #salt
07:45 cyborg-one joined #salt
07:47 rawzone joined #salt
07:47 impi joined #salt
07:50 stooj joined #salt
07:51 fracklen joined #salt
07:53 ruxu joined #salt
07:58 ruxu joined #salt
07:59 stooj joined #salt
08:06 jhauser joined #salt
08:11 darioleidi joined #salt
08:18 HPUser_ joined #salt
08:21 fracklen joined #salt
08:22 xet7 joined #salt
08:22 gnomethrower joined #salt
08:22 fracklen joined #salt
08:24 fracklen_ joined #salt
08:26 ozux joined #salt
08:31 mikecmpbll joined #salt
08:42 eThaD joined #salt
08:44 Rene joined #salt
08:45 jas02 joined #salt
08:50 toanju joined #salt
08:58 xs- joined #salt
09:00 scooby2 joined #salt
09:01 lasseknudsen joined #salt
09:03 scristian joined #salt
09:04 JohnnyRun joined #salt
09:06 mikecmpbll joined #salt
09:07 djgerm what's wrong with this? {% set host, domain1, domain2, domain3, domain4 = minion_id.rsplit('.', 4) %} I get an error "Jinja variable 'minion_id' is undefined"
09:09 edrocks joined #salt
09:12 pcn Wher eis minion_id coming from?
09:12 ronnix joined #salt
09:12 djgerm yah… as soon as I asked I realized that was missing >_<
09:13 pcn Rubber duck debugging always works
09:15 flughafen pcn +1
09:15 DanyC joined #salt
09:18 alex80 is there a way to have, at any time, the list of minions that failed to apply a state ? from a central location ? and keep the possibility to call the master from the minion (salt-call)
09:21 alex80 the only lead I have right now is to output the result of 'salt-call' or 'salt' (from the master) in json and use whatever tool is appropriate
09:23 AndreasLutro look into event returners
09:23 AndreasLutro there's no out of the box solution for it I think, maybe except saltstack enterprise
09:24 gnomethrower what's the best practice for restarting, say, sshd, when Salt changes its configuration?
09:24 gnomethrower I've found a number of ways to do it and nothing seems "right"
09:25 AndreasLutro a watch statement on the service
09:25 inad922 joined #salt
09:26 alex80 ok AndreasLutro, so the idea would be to use event returners to have the output of both commands sent to a backend that will collect data
09:26 alex80 so it requires a bit of work
09:27 ozux joined #salt
09:29 AndreasLutro yep. I wrote a returner that sends any state failures to a slack channel
09:30 s_kunk joined #salt
09:30 s_kunk joined #salt
09:31 gnomethrower AndreasLutro: that seems backwards to me... the service listening for changes
09:31 gnomethrower instead of the change pushing a reload to the service
09:31 gnomethrower (back to nothing seems "right")
09:31 AndreasLutro semantics...
09:31 AndreasLutro it's the same thing
09:33 alex80 ok AndreasLutro, thanks for the help ! another question, how states can be managed by tools ? example: I have a state that says "install sshd", but someone clicks on a button to disable that state, how can it be achieved ?
09:34 AndreasLutro alex80: write a webapp with an API, use external pillars to fetch data from that API into salt pillars, use that pillar data to enable/disable services
09:39 mariusv joined #salt
09:39 mariusv joined #salt
09:40 alex80 ok thanks! and just for aesthetics, to disable a service, you write a sls state file named, e.g, service.nginx.disable ? salt does not how to reverse a state ?
09:40 alex80 know*
09:42 AndreasLutro no, I do this:
09:43 AndreasLutro nginx-service: service.{{ 'running' if pillar.web.get('enable_server', true) else 'dead' }}: ...
09:43 alex80 oh, this is indeed much better
09:45 alex80 since you have a good experience/knowledge, do you have general advice to beginners ?
09:46 AndreasLutro sure https://www.lutro.me/posts/hints-towards-learning-saltstack
09:47 alex80 thank you :)
09:56 teclator joined #salt
09:57 ozux joined #salt
10:00 ronnix_ joined #salt
10:05 djgerm1 joined #salt
10:05 daxroc Should having several mine functions declared on ~100 minions cause the master to become unresponsive, things seem to queue up when I enable the functions/mine.get(s)
10:05 daxroc * The mine.get calls are defined in the pillar for the 100 minions.
10:07 AndreasLutro mine data is refreshed at somewhat regular intervals so yes it could cause an overload I guess
10:07 AndreasLutro but probably shouldn't
10:07 daxroc Seems to cause zmq to timeout and eventually crash
10:20 nickabbey joined #salt
10:26 HPUser_ hello can somebody give me a guide to configure cloudstack module an example will be great
10:43 abednarik joined #salt
10:45 candyman88 joined #salt
10:48 jas02 joined #salt
10:49 eThaD joined #salt
10:49 Reverend joined #salt
11:01 lasseknudsen2 joined #salt
11:03 harkx joined #salt
11:04 Reverend I've accidentally deleted the bookmark to that github page of someone who made salt minions do two runs on startup...
11:04 Reverend any ideas anyone?
11:05 Reverend ahhh. good old IRC history.
11:06 HPUser_ for the cloudstack module can I specify a specific port on the provider configuration file ?
11:09 denys_ left #salt
11:11 nfahldieck joined #salt
11:11 nfahldieck hi, is there any option yet that let me set a default batch-size in master config?
11:13 CrummyGummy Hi, sorry for the repost. Please advise me as to how to run formulae in files rather than in top.sls. I have no issue when the formula is in the top file but it would be cleaner to have it all in one file that is referenced from the top file. Please see my gist below for reference.
11:13 CrummyGummy https://gist.github.com/waynegemmell/77d8eace699b9c3d8f4b8d2ea72ef5cb
11:14 jhauser joined #salt
11:18 xet7_ joined #salt
11:19 xet7 joined #salt
11:20 giany joined #salt
11:24 rdas joined #salt
11:25 gmacon joined #salt
11:33 ozkavosh joined #salt
11:40 Reverend hey guys.
11:41 Reverend any idea how the git.present is detecting git repos?
11:41 Reverend https://hastebin.com/ezilepaxim.sql
11:41 Reverend having a bit of an issue getting it to actually tell if it's a repo or not :/
11:41 eThaD joined #salt
11:42 jhauser joined #salt
11:42 evle joined #salt
11:43 abednarik joined #salt
11:45 viccuad__ left #salt
11:45 debian112 joined #salt
11:45 HPUser_ I have configured Cloudstack providers but I receive an _GET_SERVER_CERTIFICATE:certificate verify failed
11:45 HPUser_ is there a way to not do this verification ?
11:45 Reverend https://hastebin.com/sutazixace.lua looks like salt is looking for the /.git folder...
11:45 Reverend but just can't
11:46 Reverend what a bastard
11:46 ozkavosh That means the folder contains stuff, and salt is trying to init the folder as a repo?
11:46 amcorreia joined #salt
11:49 jas02 joined #salt
11:51 Reverend the folder exists and -is- a git repo...
11:51 Reverend buyt salt seems to think it's not
11:51 Reverend but I can';t see why it would think that looking at it's git.py state
11:53 Reverend ohhhhh it's okay.
11:54 Reverend Sicowork just noticed it was because we haven't set bare = false
11:54 Reverend derfp
11:59 impi joined #salt
12:06 jagguli hi, I want to schedule a runner function on the master, i've added schedule on the minion running on the master, but im getting an invalid function error
12:07 scoates joined #salt
12:14 debian112 joined #salt
12:15 BHauser joined #salt
12:18 BHauser Hi all, after updating my CentOS 7 i'm having a problem with SaltStack/Foreman. I think i tracked back the problem to SaltStack, see: https://hastebin.com/dakisiguho
12:18 BHauser The same command is currently working on another machine (which i havent updated yet).
12:27 BHauser Version report: https://hastebin.com/mocuqaheri
12:28 AndreasLutro seems like file diffs in state outputs are missing newlines in 2016.11
12:30 AndreasLutro oh, no, it's just file.line
12:30 AndreasLutro whew
12:32 edrocks joined #salt
12:33 Brew joined #salt
12:36 swills joined #salt
12:36 Tanta joined #salt
12:43 BHauser Ah, i fixed it. "mv /var/cache/salt/master /var/cache/salt/master_" and restart master
12:51 _Cyclone_ joined #salt
13:00 swills joined #salt
13:01 KaczuH joined #salt
13:04 jas02 joined #salt
13:12 averell joined #salt
13:15 jhauser joined #salt
13:16 jagguli is there a way to check the master schedule ?
13:18 fgimian joined #salt
13:18 ravenx joined #salt
13:19 ravenx can someone help me with an s3fs problem
13:19 ravenx it keeps saying that "AuthorizationHeaderMalformed:  The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-2'
13:19 ravenx but no where in my config did i set us-east-1
13:20 AndreasLutro I think us-east-1 is just the default
13:20 ravenx right
13:20 ravenx but how can i change that
13:21 AndreasLutro no clue!
13:21 ravenx cuz right now saltstack, when i apply my states keeps throwing that at me.
13:21 nfahldieck hi, is there any option yet that let me set a default batch-size in master config?
13:23 ozux joined #salt
13:25 abednarik joined #salt
13:26 candyman88 joined #salt
13:30 ronnix joined #salt
13:42 scoates joined #salt
13:42 edrocks joined #salt
13:50 austin_ joined #salt
13:50 austin_ GM all. it would seem that file.copy with subdir: True should replicate `cp -R` functionality
13:50 austin_ however, it does not seem to work
13:51 jas02_ joined #salt
13:51 austin_ i get the awesomely vague :      Comment: Failed to copy "/srv/powerline-server/develop/backend/app" to "/srv/powerline-server-releases/develop/app"
13:51 austin_ is it expected that i great the `app` dir first ?
13:52 abednarik joined #salt
13:53 toanju joined #salt
13:56 ssplatt joined #salt
13:59 edrocks joined #salt
14:08 chnyda joined #salt
14:08 abednarik joined #salt
14:08 xist joined #salt
14:10 brousch__ joined #salt
14:11 abednarik joined #salt
14:11 CrummyGummy Nmind re my above question. Seems the file was missing :(
14:12 CrummyGummy What editor do you guys use for these sls files? Netbeans is bloaty...
14:13 toanju joined #salt
14:13 ravenx vim
14:13 ravenx vim with salt-vim plugin just for the indentation
14:14 CrummyGummy That sounds tempting. I didn't know that plugin existed
14:14 ravenx it does
14:15 ravenx nice 'n lightweight
14:28 mandy joined #salt
14:28 mandy Hi all
14:30 mandy can anybody help me to figure out i am getting 504 response code when i used salt-api with runner ?
14:33 mandy is ther anybody to help me out with this problem
14:33 mandy Plz help me
14:34 mandy @saltstackbot
14:34 mandy hi
14:34 sh123124213 joined #salt
14:34 Sammichmaker joined #salt
14:34 Sammichmaker joined #salt
14:35 ravenx how are you running it?
14:35 ravenx behind a reverse proxy, or?
14:35 ravenx localhost?
14:35 mandy no
14:35 mandy my server ip where i configured saltmaster
14:35 WKNiGHT joined #salt
14:36 DEger joined #salt
14:37 mandy actualy i m able to use local in salt api
14:37 catpig joined #salt
14:37 mandy but when i am using runner with salt api and passding cloud.profile function
14:38 mandy it just create the vm but after that it giving response 504
14:38 Poppabear joined #salt
14:38 Poppabear joined #salt
14:38 mandy it taking 300 seconds
14:39 ravenx are your ports open ?
14:39 mandy i also changed the value to 1200 in my app.py file.....still it not reflecting timeout
14:39 ravenx maybe it timed it
14:39 mandy yes
14:39 ravenx from your localmachine do this:
14:39 ravenx nc -zv <hostname> <port>
14:40 mandy ok
14:41 mandy it showing port successed
14:41 jschoolcraft joined #salt
14:41 mandy can you tell me how can i change its timeout value which it by defalut taking 300 seconds????????????
14:42 ravenx that i'm not sure
14:42 mandy have u try runner with saltapi??
14:43 ronnix joined #salt
14:43 mikecmpbll joined #salt
14:44 pcn mandy instead of using the sync runner, can you call the async runner?
14:45 jeffspeff joined #salt
14:45 pcn So if you look at https://github.com/saltstack/pepper/blob/develop/pepper/libpepper.py#L279-L307
14:48 mandy @pcn what is the differnce in sync and async runner
14:48 pcn So I'm not sure why libpepper doesn't seem to provide a runner_async, but it looks like it should be almost exactly the same as the runner method.
14:48 pcn mandy the async calls allow you to submit the request, and they return a job id
14:49 racooper joined #salt
14:49 pcn Instead of holding the connection open, you can poll the API to determine when the job has done.  When you get the job state, you can examine it to determine success or failure.
14:49 mandy ok     i will try that also 'client': 'runner',                   'fun': 'cloud.profile',                   'prof': 'stack_micro',                   'instances': 'ins3'.......................i am using ths
14:50 pcn client would change to runner_async
14:50 mandy ok
14:50 pcn https://docs.saltstack.com/en/latest/topics/netapi/index.html#salt.netapi.NetapiClient.runner_async
14:50 pcn It should return almost immideatly
14:50 pcn It should return a document whose result contains a job ID
14:51 mandy but i am using cheerypy netapi module
14:51 pcn yes
14:51 pcn So with that you can construct another runner request to query for that job id:
14:51 pcn https://github.com/saltstack/pepper/blob/develop/pepper/libpepper.py#L339-L346
14:51 keltim joined #salt
14:51 pcn libpepper just queries the salt-api
14:52 pcn you can use it yourself, or just copy the relevent code to construct your request.
14:52 jas02_ joined #salt
14:52 mandy can runnner async working with cheerypy
14:53 mandy ??
14:53 pcn mandy all of those calls are exposing pieces of the salt api to all of the netapi modules, including cherrypy as far as I know.
14:53 mandy @pcn thanks
14:54 mandy i will try with runner_async
14:54 Fil0s0f joined #salt
14:54 mandy but i have one query
14:54 pcn Sure
14:55 mandy that default value of timeout for this runner salt api in cherrypy is 300 seconds...........?
14:55 pcn Probably
14:55 mandy because when i tried to run salt api it created vm
14:55 mandy but after 300 seconds
14:55 mandy it give me response 504 code
14:56 mandy so can u suggest me how to eradicate this 504 code
14:56 mandy ??
14:56 pcn So again, the point of the async call is that you are no longer relying on having an open connection.
14:56 pcn If you curl a request to the netapi module using a sync runner, this is what happens:
14:57 mandy ohhhh
14:57 pcn request -> server..........................[etc.] timeout
14:57 pcn If you use the async runner, you are instead doing this:
14:58 mandy ok
14:58 pcn client request -> server .. -> client response { result: job_id }.... ; another client request -> server "tell me how this job id is doing" ... server replies to client -> "not done yet"
14:58 pcn etc. until it's done/
14:59 nickabbey joined #salt
14:59 pcn You can also follow the job using https://docs.saltstack.com/en/latest/topics/jobs/#lookup-jid so you only have to be concerned that the job itself is completing
15:00 pcn Once you know that's working, you can invoke lookup_jid via the netapi.  It's the same function being run on the salt-master either way.
15:00 pcn Once you know that what you're doing is completing, you can have your client submit the job, then poll for a result for as long as you want.  http service timeouts aren't a concern.
15:01 pcn That's what the async functions provide
15:03 mandy can you send me one examples
15:03 mandy ??
15:06 pcn Let me see, my smaller stuff is built off of sync runners right now, so hang on a tic
15:06 pcn Oh, yeah, I have a cli open with something I could do.  Hang on a moment.
15:07 mandy ok
15:07 mandy thanks @pcn
15:07 dyasny joined #salt
15:13 candyman88 joined #salt
15:17 pcn https://gist.github.com/pcn/e5a3036dfc48cc9bfd1e57011bd5f80a
15:19 CrummyGummy How does   mysql_query.run know which credentials to use? I'm getting 'MySQL Error 1045: Access denied for user 'root'@'localhost''
15:19 CrummyGummy there's no username and password option
15:20 pcn https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mysql.html
15:20 pcn CrummyGummy: ^^^
15:20 mandy @thank u soo much fot your time. will try and let u know about this.
15:21 mandy @pcn
15:21 CrummyGummy But a module can't be run in a state file? All my other config was successfully applied via the formula.
15:21 pcn mandy good luck.  You caught me at the right time, I was working on that last night
15:21 candyman88 joined #salt
15:24 CrummyGummy pcn: Oh, this? -> configuration:
15:24 CrummyGummy In order to connect to MySQL, certain configuration is required in /etc/salt/minion on the relevant minions. Some sample configs might look like:
15:24 CrummyGummy it can't be set in pillar?
15:24 zer0def babilen: you happen to be around?
15:24 pcn CrummyGummy looks like it needs to be in the grain
15:25 pcn errr... in the minion
15:25 nickabbey joined #salt
15:25 pcn CrummyGummy if you have that in pillars, you can probably put that into /etc/salt/minion.d/mysql_query.conf f'rinstance
15:25 CrummyGummy pcn: Thanks, I'll check that out.
15:26 zer0def babilen: when you get to have a spare moment, could you ping me?
15:26 pcn just make sure you restart the minion first, the minion doesn't pick up changes dynamically
15:26 dyasny joined #salt
15:30 _JZ_ joined #salt
15:30 sarcasticadmin joined #salt
15:33 babilen zer0def: pong
15:35 scoates joined #salt
15:35 mikecmpb_ joined #salt
15:41 scoates joined #salt
15:42 Fil0s0f Hello, everyone.  Who can I address a question about win_wua (Windows Update) module to?  I am curious if an "exception" mechanism will be developed for the module to exclude specific updates/categories from being installed
15:45 scoates joined #salt
15:52 scoates joined #salt
15:52 nickabbey joined #salt
15:57 scoates joined #salt
15:58 tiwula joined #salt
15:58 scoates joined #salt
16:06 amagawdd joined #salt
16:10 Reverend checking a grain in a reactor... someone tell :D
16:10 Reverend <3
16:11 keltim is there a way to use dns srv records as jinja variables? without doing like salt['cmd.shell']('dig _salt._tcp.foo.com srv')
16:12 cmarzullo external pillar?
16:12 keltim I can't believe there isn't a state module for dns. I guess I can just use the execution module
16:12 keltim cmarzullo, yeah I think that's the right way
16:13 Inveracity joined #salt
16:16 tkojames joined #salt
16:17 jas02 joined #salt
16:18 sp0097 joined #salt
16:21 fracklen joined #salt
16:27 giany left #salt
16:38 fracklen joined #salt
16:38 dendazen joined #salt
16:40 qman__ so, I'm trying to set up alpine linux as a salt minion, and my states are failing when trying to create groups and users, because groupadd and useradd don't exist since alpine runs busybox
16:40 qman__ is there a way to tell salt to use adduser instead?
16:44 Satyajit joined #salt
16:45 lilvim joined #salt
16:47 mikecmpbll joined #salt
16:48 pcn qman__: does alpine have packages for those?
16:48 qman__ not that I can find, I've been searching for it
16:48 pcn Or maybe you can start by managing  file that wraps useradd?
16:50 qman__ ah, think I found it, called shadow
16:53 jas02 joined #salt
16:55 darthzen joined #salt
16:58 jas02_ joined #salt
17:00 DanyC joined #salt
17:00 ronnix joined #salt
17:00 scsinutz joined #salt
17:01 debian112 joined #salt
17:02 DanyC joined #salt
17:07 scsinutz joined #salt
17:09 tkojames So we have to move our environment to another place and want to make sure everything gets moved over. I was thinking about running grains.items and outputting in JSON and using python to pull certain sections of the file. We want to move to Salt-Cloud and put certain fields  into the vmware.conf file. Like CPU core Ram dns etc.. for each VM. Anybody every do something like this before? Not sure what the best approach is.
17:14 onlyanegg joined #salt
17:15 sh123124213 joined #salt
17:19 woodtablet joined #salt
17:20 nixjdm joined #salt
17:25 debian112 joined #salt
17:28 nickabbey joined #salt
17:29 swa_work joined #salt
17:30 eThaD joined #salt
17:32 k_sze[work] joined #salt
17:38 thenut joined #salt
17:41 scsinutz joined #salt
17:43 impi joined #salt
17:47 edrocks joined #salt
17:49 Reverend well that turned out to be an easier solution than I anticipated
17:51 Reverend as it happoens you can just queue highstates
17:51 Reverend i was trying to log the queeue run value or something in a grain to detect the amount of highstates ran... turns out you just add "queue=True"
17:51 Reverend derp
17:52 whytewolf CrummyGummy: pcn: just reading back here. the mysql modules most defintly can have it's configs in pillar
17:54 brd Reverend: you mean if too many agents hit the master all at once?
17:54 snarfy^ joined #salt
17:55 orionx joined #salt
17:55 nickabbey joined #salt
17:55 snarfy^ joined #salt
17:55 Reverend brd: no, i need to run 2 highstates when a minion first turns on to fetch various grain data from the sls's
17:55 Reverend brd: it will set fire to things otherwise.
17:55 snarfy^ joined #salt
17:56 ronnix joined #salt
17:56 brd Reverend: oh, do you have some interdependencies that require 2 runs?
17:56 snarfy^ joined #salt
17:56 onlyanegg joined #salt
17:56 snarfy^ joined #salt
17:56 Reverend ish. we have multiple versions of php and nginx needs to know what is running on that server, for iunstance
17:56 Reverend so we have to set a grain...
17:56 snarfy^ joined #salt
17:56 Reverend but you can only do that on the first highstate xD haha
17:57 Reverend brd ^
17:57 snarfy^ joined #salt
17:57 brd Reverend: Ahh, interesting.  Thanks for explaining :)
17:57 snarfy^ joined #salt
17:58 Reverend no worries man.
17:58 Reverend i spent like 2 hours looking for a solution
17:58 snarfy^ joined #salt
17:58 Reverend and it was a case of "copy pasta, change the name. done"
17:58 snarfy^ joined #salt
17:59 snarfy^ joined #salt
17:59 snarfy^ joined #salt
17:59 snarfy^ joined #salt
18:00 snarfy^ joined #salt
18:00 snarfy^ joined #salt
18:01 snarfy^ joined #salt
18:01 snarfy^ joined #salt
18:02 snarfy^ joined #salt
18:02 snarfy^ joined #salt
18:02 snarfy^ joined #salt
18:03 snarfy^ joined #salt
18:03 snarfy^ joined #salt
18:04 snarfy^ joined #salt
18:04 ruxu joined #salt
18:04 snarfy^ joined #salt
18:04 MTecknology {% if not pillar.get('use_ldap', False) %}  vs.  {% if pillar.get('use_ldap', False) == False %}   <-- which would be better form? or is there a best form?
18:05 snarfy^ joined #salt
18:05 snarfy^ joined #salt
18:05 MTecknology holy crap that's a heck of a broken connection
18:05 snarfy^ joined #salt
18:06 snarfy^ joined #salt
18:06 snarfy^ joined #salt
18:06 hackel joined #salt
18:07 snarfy^ joined #salt
18:07 whytewolf MTecknology: really the question is readability for me i prefer the if not if using bools
18:07 snarfy^ joined #salt
18:07 Edgan joined #salt
18:07 snarfy^ joined #salt
18:08 MTecknology I wasn't sure if there would be some secret jinja reason why one would be better than the other or if maybe they were both bad
18:08 snarfy^ joined #salt
18:08 snarfy^ joined #salt
18:09 snarfy^ joined #salt
18:09 whytewolf no, the only thing about it is it seems to negate the setting. so it already is breaking the brain true is false false is true. cats and dogs sleeping together
18:09 snarfy^ joined #salt
18:10 snarfy^ joined #salt
18:10 snarfy^ joined #salt
18:11 snarfy^ joined #salt
18:11 snarfy^ joined #salt
18:11 MTecknology $client wanted me to improve their ldap grains so instead of just saying if ldap is configured, the grain also decides if ldap should be configured, they wanted me to modify the states to rely on those grains to figure out if they should execute or if they have to wait until the second highstate, nad then they wanted the grain to be overridden by shared data in pillar accessed using a custom
18:11 MTecknology module
18:11 snarfy^ joined #salt
18:12 snarfy^ joined #salt
18:12 snarfy^ joined #salt
18:13 whytewolf so $client sounds like a pain in the ass
18:13 MTecknology I opted to instead, remove the grain, remove the custom shared pillar data for this from a >150k line file, moved it all into an easy to read 70 line pillar file, removed the use of the custom module, and just made crap work on the first highstate
18:13 snarfy^ joined #salt
18:13 MTecknology I waited until they were leaving before I made that push so now I get to wait for the argument
18:13 snarfy^ joined #salt
18:14 snarfy^ joined #salt
18:14 MTecknology My hope being they get time to think it over before arguing that it's not how things are done around here
18:14 snarfy^ joined #salt
18:15 snarfy^ joined #salt
18:15 whytewolf so, why all this "custom module" stuff instead of using map.jinja which is what it sounds like it rewrites
18:15 snarfy^ joined #salt
18:16 snarfy^ joined #salt
18:16 MTecknology because that's not how things are done, it doesn't use the magic custom thingy
18:16 snarfy^ joined #salt
18:16 snarfy^ joined #salt
18:17 snarfy^ joined #salt
18:17 MTecknology sorry, that's a literal representation of the logic
18:17 snarfy^ joined #salt
18:18 snarfy^ joined #salt
18:18 MTecknology too much throwing good money after bad and too little taking a step back and asking what the original problem was and what /other/ options were available to you that you didn't consider?
18:18 snarfy^ joined #salt
18:19 snarfy^ joined #salt
18:19 snarfy^ joined #salt
18:19 whytewolf so $client had $admin at some point who wanted to keep $job. convinced $client that custom magic was the real way forward. making it harder for anyone else besides them able to work on the system. built in job security
18:19 snarfy^ joined #salt
18:20 snarfy^ joined #salt
18:20 MTecknology worse!
18:20 snarfy^ joined #salt
18:21 snarfy^ joined #salt
18:21 whytewolf worse?
18:21 snarfy^ joined #salt
18:21 whytewolf where is an op when you need one
18:22 snarfy^ joined #salt
18:22 snarfy^ joined #salt
18:22 MTecknology $client has $person_in_charge that prefers working on IT things and than taking the full duties of that role, in part because of a lack of man power. They're quite smart and know what the crap is up, but they're so busy they take the very first solution that comes to their mind rather than taking a step back and breathing.
18:22 snarfy^ joined #salt
18:23 snarfy^ joined #salt
18:23 snarfy^ joined #salt
18:24 snarfy^ joined #salt
18:24 whytewolf yikes, that is worse
18:24 snarfy^ joined #salt
18:25 snarfy^ joined #salt
18:25 snarfy^ joined #salt
18:25 snarfy^ joined #salt
18:26 snarfy^ joined #salt
18:26 snarfy^ joined #salt
18:27 snarfy^ joined #salt
18:27 snarfy^ joined #salt
18:28 snarfy^ joined #salt
18:28 snarfy^ joined #salt
18:28 snarfy^ joined #salt
18:29 snarfy^ joined #salt
18:29 swa_work joined #salt
18:29 snarfy^ joined #salt
18:30 snarfy^ joined #salt
18:30 kingscott joined #salt
18:30 snarfy^ joined #salt
18:30 snarfy^ joined #salt
18:31 snarfy^ joined #salt
18:31 snarfy^ joined #salt
18:32 kingscott I am setting up zabbix on all of my minions. We have 5 building on our campus, and I would like to have each minion point to a zabbix proxy rather than a zabbix server. Would this be possible to do by ip address of the minion? building 1 is 10.1.x.x and building 2 is 10.2.x.x...so on.
18:32 snarfy^ joined #salt
18:32 snarfy^ joined #salt
18:33 snarfy^ joined #salt
18:33 snarfy^ joined #salt
18:34 snarfy^ joined #salt
18:34 snarfy^ joined #salt
18:34 snarfy^ joined #salt
18:35 snarfy^ joined #salt
18:35 snarfy^ joined #salt
18:36 tkharju joined #salt
18:36 snarfy^ joined #salt
18:36 snarfy^ joined #salt
18:37 snarfy^ joined #salt
18:37 Trauma joined #salt
18:37 nickabbey joined #salt
18:37 snarfy^ joined #salt
18:38 snarfy^ joined #salt
18:38 snarfy^ joined #salt
18:38 snarfy^ joined #salt
18:39 whytewolf kingscott: that does not sound like a difficult problem. jinja + network module should be able to pull that together
18:39 whytewolf https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.network.html
18:39 snarfy^ joined #salt
18:39 kingscott awesome. thanks for the reference. i was looking for the documentation, but didn't find this page. Thanks.
18:39 snarfy^ joined #salt
18:40 snarfy^ joined #salt
18:40 snarfy^ joined #salt
18:41 snarfy^ joined #salt
18:41 snarfy^ joined #salt
18:41 snarfy^ joined #salt
18:42 snarfy^ joined #salt
18:42 snarfy^ joined #salt
18:42 swa_work joined #salt
18:43 snarfy^ joined #salt
18:43 snarfy^ joined #salt
18:44 snarfy^ joined #salt
18:44 snarfy^ joined #salt
18:44 snarfy^ joined #salt
18:45 snarfy^ joined #salt
18:45 snarfy^ joined #salt
18:46 snarfy^ joined #salt
18:46 snarfy^ joined #salt
18:47 snarfy^ joined #salt
18:47 snarfy^ joined #salt
18:47 snarfy^ joined #salt
18:48 snarfy^ joined #salt
18:48 onlyanegg joined #salt
18:48 snarfy^ joined #salt
18:49 snarfy^ joined #salt
18:49 fracklen joined #salt
18:49 snarfy^ joined #salt
18:49 snarfy^ joined #salt
18:50 snarfy^ joined #salt
18:50 snarfy^ joined #salt
18:51 snarfy^ joined #salt
18:51 scsinutz joined #salt
18:51 swa_work joined #salt
18:51 snarfy^ joined #salt
18:51 snarfy^ joined #salt
18:52 snarfy^ joined #salt
18:52 snarfy^ joined #salt
18:53 snarfy^ joined #salt
18:53 snarfy^ joined #salt
18:53 scoates joined #salt
18:54 snarfy^ joined #salt
18:54 snarfy^ joined #salt
18:54 snarfy^ joined #salt
18:54 jas02 joined #salt
18:55 snarfy^ joined #salt
18:55 snarfy^ joined #salt
18:56 snarfy^ joined #salt
18:56 prg3 joined #salt
18:56 snarfy^ joined #salt
18:57 snarfy^ joined #salt
18:57 snarfy^ joined #salt
18:58 snarfy^ joined #salt
18:58 onlyanegg joined #salt
18:58 snarfy^ joined #salt
18:59 snarfy^ joined #salt
18:59 snarfy^ joined #salt
18:59 snarfy^ joined #salt
19:00 snarfy^ joined #salt
19:00 snarfy^ joined #salt
19:01 snarfy^ joined #salt
19:01 snarfy^ joined #salt
19:01 fracklen joined #salt
19:02 snarfy^ joined #salt
19:02 snarfy^ joined #salt
19:02 ksoviero Can someone please stop snarfy?
19:02 snarfy^ joined #salt
19:03 snarfy^ joined #salt
19:03 snarfy^ joined #salt
19:04 snarfy^ joined #salt
19:04 snarfy^ joined #salt
19:04 snarfy^ joined #salt
19:05 snarfy^ joined #salt
19:05 snarfy^ joined #salt
19:06 snarfy^ joined #salt
19:06 snarfy^ joined #salt
19:07 ivanjaros joined #salt
19:07 snarfy^ joined #salt
19:07 snarfy^ joined #salt
19:08 snarfy^ joined #salt
19:08 snarfy^ joined #salt
19:09 snarfy^ joined #salt
19:09 snarfy^ joined #salt
19:09 swa_work joined #salt
19:09 snarfy^ joined #salt
19:10 snarfy^ joined #salt
19:10 snarfy^ joined #salt
19:11 snarfy^ joined #salt
19:11 Eugene Most IRC clients have an option to hide join/part messages, especially for large channels
19:11 snarfy^ joined #salt
19:12 snarfy^ joined #salt
19:12 snarfy^ joined #salt
19:13 snarfy^ joined #salt
19:13 snarfy^ joined #salt
19:13 snarfy^ joined #salt
19:14 snarfy^ joined #salt
19:14 snarfy^ joined #salt
19:15 snarfy^ joined #salt
19:15 snarfy^ joined #salt
19:16 snarfy^ joined #salt
19:16 alvinstarr joined #salt
19:16 snarfy^ joined #salt
19:16 snarfy^ joined #salt
19:17 snarfy^ joined #salt
19:17 snarfy^ joined #salt
19:18 snarfy^ joined #salt
19:18 snarfy^ joined #salt
19:19 snarfy^ joined #salt
19:19 snarfy^ joined #salt
19:19 snarfy^ joined #salt
19:20 Poppabear geesh ..
19:20 snarfy^ joined #salt
19:20 snarfy^ joined #salt
19:21 jas02 joined #salt
19:21 snarfy^ joined #salt
19:21 awpti joined #salt
19:21 snarfy^ joined #salt
19:22 snarfy^ joined #salt
19:22 snarfy^ joined #salt
19:23 snarfy^ joined #salt
19:23 * Shirkdog runs salt-call on irc bot :)
19:23 snarfy^ joined #salt
19:23 awpti howdy folks. i've got a user.present state that's simplying spitting back: "failed to create new user <username>". salt-call -l debug state.show_highstate gives me no clue as to the reason and the googles aren't helping.
19:24 snarfy^ joined #salt
19:24 snarfy^ joined #salt
19:24 snarfy^ joined #salt
19:25 snarfy^ joined #salt
19:25 Neighbour awpti: if you're running this on a specific minion, try running the minion in the foreground by starting it with `salt-minion -l debug` instead of running it as a service, and check that debug output for anything that might help
19:25 snarfy^ joined #salt
19:25 Neighbour also try to run just the state that's causing this, instead of the highstate
19:25 awpti Good idea -- didn't even think about that!
19:26 snarfy^ joined #salt
19:26 snarfy^ joined #salt
19:26 Neighbour you could even try `salt-minion -l all`, but that generates *massive* amounts of ..output :)
19:26 nZac joined #salt
19:26 snarfy^ joined #salt
19:28 cyborg-one joined #salt
19:31 DanyC joined #salt
19:32 s_kunk joined #salt
19:32 ChubYann joined #salt
19:32 onmeac joined #salt
19:34 sh123124213 joined #salt
19:38 mikecmpbll joined #salt
19:40 klaas joined #salt
19:42 Brew joined #salt
19:48 Poppabear awpti: in the gid try using a name instead of the id, also above user.present do a group.present on the same group name .. ran into this issue earlier and thats what solved it for me
19:53 djgerm joined #salt
19:54 ronnix joined #salt
19:56 jas02 joined #salt
19:58 DanyC joined #salt
20:03 swa_work joined #salt
20:03 mvensky joined #salt
20:04 Praematura joined #salt
20:12 swa_work joined #salt
20:22 nidr0x joined #salt
20:25 scsinutz joined #salt
20:27 cswang joined #salt
20:28 onlyanegg joined #salt
20:31 djgerm1 joined #salt
20:46 scsinutz joined #salt
20:46 keldwud joined #salt
20:47 keldwud the salt meet thursday at pluralsight, does anybody know if there's room available for children to play in during the meet?
20:53 ronnix joined #salt
20:53 whytewolf um. might help if you include the city in your query as there are people all over the world in here
20:58 abednarik joined #salt
21:01 tooth you mean you're not all from the salt mines of the earth?
21:02 keldwud whytewolf: I was being obscure on purpose :) didn't want to identify my location on IRC to those who didn't already know.
21:03 whytewolf oh, okay. personally I don't care. anyone can know I'm from vegas
21:03 sp0097 left #salt
21:05 nickabbey joined #salt
21:05 jhauser joined #salt
21:08 nickabbey joined #salt
21:15 brd keldwud: huh, you are IRCing from ViaWest.. I used to work for them..
21:15 brd keldwud: from a netblock they have in SLC..
21:15 ronnix joined #salt
21:17 aboe joined #salt
21:20 keldwud :)
21:24 whytewolf well i wasn't going to mention that the comapny he listed only has one location. but i guess i will now :P
21:25 brd lol, sorry :)
21:26 madhadron joined #salt
21:28 madhadron Anyone know how to set minion config when calling salt-run cloud.create?
21:29 gtmanfred you should be able to pass a minion={'key
21:29 gtmanfred you should be able to pass a minion={'key': 'value'} to the commandline
21:29 gtmanfred basically anything you would put in the profile file should be able to get passed to cloud.create
21:29 madhadron Ah. Is it JSON or a Python dict?
21:29 eThaD joined #salt
21:29 gtmanfred json
21:29 madhadron Perfect. Thanks.
21:30 gtmanfred if you are running from the commandline, if you run from python and use the CloudClient directly, you would pass a python dictionary
21:30 madhadron Right.
21:31 ronnix_ joined #salt
21:34 barmaley joined #salt
21:34 madhadron And formatting the argument as JSON makes it work like a charm. Thanks again.
21:35 gtmanfred :D no problem
21:35 borsin joined #salt
21:36 borsin which state would be best used to set the hostname of a machine?
21:36 scsinutz joined #salt
21:37 whytewolf network.system i think
21:38 madhadron https://docs.saltstack.com/en/latest/ref/states/all/salt.states.network.html
21:38 DanyC joined #salt
21:38 madhadron The documentation claims it's only stable for RHEL based systems. I don't know if that's current.
21:39 ronnix joined #salt
21:40 borsin i'm on a centos machine, that works. thanks.
21:40 ronnix joined #salt
21:42 relidy joined #salt
21:46 * brd about to deploy salt in anger
21:46 brd #@$#%!ing puppet
21:57 jas02 joined #salt
21:59 nickabbey joined #salt
21:59 nickabbe_ joined #salt
22:01 ronnix joined #salt
22:08 bakins joined #salt
22:17 DanyC joined #salt
22:18 potatofever joined #salt
22:19 potatofever left #salt
22:19 onlyanegg joined #salt
22:20 DammitJim joined #salt
22:23 oida joined #salt
22:26 ivanjaros3916 joined #salt
22:27 DanyC joined #salt
22:33 onlyanegg joined #salt
22:33 ronnix joined #salt
22:33 ponyofdeath anyone getting apt pkgAcquire::Run errors on bootstrap vagrant boxes with 16.04 ubuntu?
22:34 ponyofdeath it seems bootstrap works fine but it errors out so vagrant stops
22:40 ssplatt joined #salt
22:41 onlyanegg joined #salt
22:46 djgerm joined #salt
22:49 jhauser joined #salt
22:51 DanyC joined #salt
23:07 jmickle joined #salt
23:10 rpb joined #salt
23:11 whiteinge joined #salt
23:28 tercenya joined #salt
23:34 preludedrew joined #salt
23:39 jas02 joined #salt
23:43 sh123124213 joined #salt
23:45 overyander joined #salt
23:46 sh123124213 joined #salt
23:48 ssplatt joined #salt
23:50 jhauser joined #salt
23:53 sh123124213 joined #salt

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