Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-08-04

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

All times shown according to UTC.

Time Nick Message
00:00 ninjada joined #salt
00:02 flowstate joined #salt
00:07 bluepaladin joined #salt
00:09 krymzon joined #salt
00:12 justanotheruser joined #salt
00:15 stanchan joined #salt
00:20 raspy_ joined #salt
00:21 evidence is it not possible to run multiple transports at once?  i understand i'd have to give 2 alternate ports, but it doesn't appear you can supply the transport option a list in master.conf
00:22 hemebond How would that work?
00:22 hemebond Different transport for different minions?
00:22 evidence zmq on 4505/4506, tcp on 55505 and 5506, and then yeah the minions decide which they connect to
00:23 evidence i have 10k minions i need to transition over, switching to tcp whole sale is a tall order
00:23 evidence not to mention any down or straggling servers that i'd be dealing with endleslly
00:23 evidence the only option might be to leave one of the masters on zmq and let the minions that haven't moved over yet to fail down to it
00:23 hemebond To TCP from? 0mq?
00:23 evidence but that does  mean i have to leave a master on zmq indefinitely
00:24 evidence shouldn't matter.. but yes zmq -> tcp
00:25 hemebond It doesn't matter, no, but I've not even thought about this so I don't know really what you're doing or why :-)
00:25 hemebond I wasn't even aware there was a need or desire to manually change the transport type.
00:25 evidence because zmq is now a useless middleman riddles with bugs/perf issues/memory leaks.  now that tornado is implemented and we can use raw tcp it's the better choice
00:25 evidence s/riddles/riddled/
00:25 hemebond Is it a manual change?
00:25 evidence yes
00:27 hemebond Oh, I thought any transport change would be automatic.
00:27 hemebond I guess I'm still on 0mq.
00:27 evidence there is zmq/raet/tcp
00:27 hemebond But yeah, multiple masters was the first thing that came to my mind.
00:30 Eugene joined #salt
00:42 Eugene joined #salt
00:42 JPT joined #salt
00:44 hemebond evidence: Did you see transport_opts?
00:52 fannet joined #salt
00:53 yidhra joined #salt
00:54 iamtew joined #salt
01:02 subsignal joined #salt
01:03 flowstate joined #salt
01:08 Nahual joined #salt
01:11 pipps joined #salt
01:17 catpigger joined #salt
01:22 subsignal joined #salt
01:24 nicksloan joined #salt
01:28 iceyao joined #salt
01:30 racooper joined #salt
01:32 ZachLanich joined #salt
01:34 hasues joined #salt
01:34 hasues left #salt
01:37 PerilousApricot joined #salt
01:39 snaggleb_ joined #salt
01:41 stanchan joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.5.11, 2015.8.11, 2016.3.2 | Support: https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | See also: #salt-devel, #salt-offtopic | Ask with patience as we are volunteers and may not have immediate answers
01:51 onlyanegg joined #salt
01:54 iceyao joined #salt
01:56 iceyao joined #salt
01:57 cyborg-one joined #salt
01:58 iceyao joined #salt
02:00 west575 joined #salt
02:02 flowstate joined #salt
02:04 stooj joined #salt
02:05 edrocks joined #salt
02:08 sagerdearia joined #salt
02:15 stooj joined #salt
02:20 hasues joined #salt
02:23 hasues left #salt
02:27 Brijesh1 joined #salt
02:27 lovecraftian joined #salt
02:28 stooj joined #salt
02:28 dyasny joined #salt
02:33 Brijesh1 joined #salt
02:36 ninjada_ joined #salt
02:37 coldbrewedbrew_ joined #salt
02:39 bastiand1 joined #salt
02:40 stooj joined #salt
02:42 FreeSpencer joined #salt
02:42 FreeSpencer joined #salt
02:43 alinuxninja joined #salt
02:43 Tyrm joined #salt
02:48 filippos joined #salt
02:51 Brijesh1 joined #salt
02:53 fannet joined #salt
02:53 stooj joined #salt
03:01 amcorreia joined #salt
03:01 alinuxninja joined #salt
03:03 flowstate joined #salt
03:06 mapu joined #salt
03:07 MTecknology joined #salt
03:08 Tyrm joined #salt
03:10 PerilousApricot joined #salt
03:11 krymzon joined #salt
03:12 stooj joined #salt
03:19 stooj joined #salt
03:20 alinuxninja joined #salt
03:24 subsignal joined #salt
03:28 Tyrm joined #salt
03:30 stanchan joined #salt
03:30 ZachLanich Hey guys, doe anyone in here have familiarity with Salt's Orchestration Runner?
03:32 Tyrm_ joined #salt
03:34 stooj joined #salt
03:34 k_sze[work] I get an error using the time.system state
03:34 k_sze[work] 'Failed to parse timedatectl output, this is likely a bug'
03:35 k_sze[work] I mean timezone.system
03:35 Tyrm joined #salt
03:39 ninjada joined #salt
03:42 mapu joined #salt
03:43 Tyrm joined #salt
03:45 writtenoff joined #salt
03:46 stooj joined #salt
03:49 scsinutz joined #salt
03:52 evle joined #salt
04:00 alinuxninja joined #salt
04:07 mosen joined #salt
04:08 edrocks joined #salt
04:12 stooj joined #salt
04:22 stooj joined #salt
04:24 alexhayes joined #salt
04:31 stooj joined #salt
04:41 stooj joined #salt
04:50 stooj joined #salt
04:51 alexhayes joined #salt
04:54 onlyanegg joined #salt
04:54 fannet joined #salt
04:56 alexhayes joined #salt
04:57 alexhayes joined #salt
04:58 stanchan joined #salt
04:59 stooj joined #salt
05:00 stanchan joined #salt
05:13 alinuxninja joined #salt
05:13 krymzon joined #salt
05:16 onlyanegg joined #salt
05:18 stooj joined #salt
05:24 bocaneri joined #salt
05:26 subsignal joined #salt
05:26 blueelvis joined #salt
05:28 alinuxninja joined #salt
05:29 iceyao joined #salt
05:41 alinuxninja joined #salt
05:45 stooj joined #salt
05:47 rdas joined #salt
05:52 scsinutz joined #salt
05:56 blueelvis joined #salt
05:57 alinuxninja joined #salt
06:00 jxm_ joined #salt
06:12 edrocks joined #salt
06:15 stooj joined #salt
06:16 Elsmorian joined #salt
06:16 Miouge joined #salt
06:19 kshlm joined #salt
06:26 subsignal joined #salt
06:27 alinuxninja joined #salt
06:28 stanchan joined #salt
06:35 POJO joined #salt
06:37 irctc359 joined #salt
06:40 alinuxninja joined #salt
06:51 Brijesh1 joined #salt
06:52 stanchan joined #salt
06:52 ribx joined #salt
06:55 fannet joined #salt
06:58 nicholas joined #salt
06:58 CeBe joined #salt
06:59 nicholas when I combine both formulas and my state-tree in gitfs_remotes, the dev environment looks for the dev branch in the formula as well? any way to set "no branches for this remote"?
07:01 SirMikkalot joined #salt
07:01 alinuxninja joined #salt
07:03 toanju joined #salt
07:03 stooj joined #salt
07:09 stanchan joined #salt
07:12 Inver joined #salt
07:14 krymzon joined #salt
07:15 fracklen joined #salt
07:17 om joined #salt
07:17 fracklen joined #salt
07:17 dragon2 joined #salt
07:23 stooj joined #salt
07:37 stooj joined #salt
07:49 ravenx joined #salt
07:49 ravenx mornign yall
07:49 Rumbles joined #salt
07:50 _sourpickle_ joined #salt
08:04 stanchan joined #salt
08:06 GreatSnoopy joined #salt
08:13 N-Mi joined #salt
08:13 N-Mi joined #salt
08:15 edrocks joined #salt
08:22 iceyao_ joined #salt
08:22 Electron^- joined #salt
08:28 subsignal joined #salt
08:32 s_kunk joined #salt
08:36 jhauser joined #salt
08:39 sfxandy joined #salt
08:47 jcalero joined #salt
08:48 lero joined #salt
09:01 zer0def joined #salt
09:02 vinz joined #salt
09:12 maettu1 left #salt
09:16 krymzon joined #salt
09:20 yidhra joined #salt
09:21 armyriad joined #salt
09:23 JohnnyRun joined #salt
09:33 fredvd joined #salt
09:49 permalac joined #salt
09:56 felskrone joined #salt
09:58 pppingme joined #salt
10:03 yuhlw_ joined #salt
10:15 kbaikov joined #salt
10:17 edrocks joined #salt
10:22 irctc737 joined #salt
10:23 latka I am using salt-ssh for configuring the minion. Now I need the IP address of the minion that master is spinning up to make some entries in some config files.
10:23 latka I have multiple networks on minions
10:23 latka how do I get the IP which I put in the roster file ?
10:30 flowstate joined #salt
10:31 subsignal joined #salt
10:36 barmaley joined #salt
10:40 latka Hello
10:40 latka How can I access roster flat file data in SLS file ?
10:46 KingOfFools_ joined #salt
10:48 sfxandy joined #salt
10:50 CeBe1 joined #salt
10:50 KingOfFools_ Hey guys. Is it possible to get more info from salt errors? Like in which line of python file error occured.
10:50 sfxandy morning all
10:51 alexhayes joined #salt
10:51 sfxandy ok so I've got a call to salt mine in my SLS file which works just fine ................. {% set profiles = salt['mine.get']('environment_id:FOO', 'profiles',  expr_form='grain') %}
10:51 JohnnyRun joined #salt
10:52 sfxandy how can i make the 'environment_id:FOO' bit dynamic?  can't figure out how to get the syntax right
10:54 sfxandy i want to be able to replace 'FOO' with a Pillar variable
10:54 Miouge joined #salt
10:55 KingOfFools_ sfxandy: try concatenation ('environment_id:'+pillar_variable, '...
10:56 sfxandy well i did try a concatenation using ~ which I believed was the Jinja concatenation character......
10:56 fannet joined #salt
11:01 edrocks joined #salt
11:02 ronnix joined #salt
11:03 amcorreia joined #salt
11:04 AndreasLutro it is
11:09 sfxandy thought so AndreasLutro
11:09 nagri hello
11:09 nagri can anyone please help me out with this http://stackoverflow.com/questions/38765421/how-to-access-roster-file-data-from-an-sls-file
11:11 KingOfFools_ nagri: since you can write states with python, you can do it by python i guess
11:13 KingOfFools_ nagri: https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.py.html
11:13 KingOfFools_ maybe this will help
11:18 jcalero hey, I'm trying to restart a service (the salt-master in fact) on a machine I'm provisioning with salt-ssh as part of setting that machine up as a salt-master. I'm using the official salt-formula to install and boot up the salt-master but I'm also doing some stuff after salt is installed, like setting up "role" grains, which would require the salt-master to be restarted. Any idea how I would go about that?
11:19 jcalero I'm looking into the "watch" and "onchance" conditions but I'm not sure how the work, especially since the 'salt-master' service.running state is managed by the salt-formula, not my own state.
11:19 AndreasLutro only minions use grains
11:21 jcalero hah, yes, of course! I might be going at this the wrong way :)
11:24 jcalero ok so I'm obviously confused, but how come I can do 'salt-ssh my-salt-master grains.items' and get a list of grains? I only ran 'salt-ssh my-salt-master state.sls salt.master' previously, which presumably should only install the salt master.
11:25 AndreasLutro salt-ssh works by transferring a portable salt minion onto the host and running it in local mode
11:25 AndreasLutro that's the minion you're getting grains from
11:25 babilen (which is running on the master)
11:25 jcalero right, that makes a lot of sense
11:30 goestin joined #salt
11:32 goestin Hi all, i think i found a (few) bugs in salt/beacons/service.py. What is the proper way to submit a bug/fix (I've never done such a thing before)
11:36 KingOfFools_ goestin: i think you can create an issue on github
11:38 armyriad joined #salt
11:39 armyriad joined #salt
11:56 Mandorath joined #salt
12:00 Mandorath I have us a set with a cmd.retcode defined in a state that requires a package to be installed first. The problem is that when i run the state the set is triggerd first, thus before the state that installs the package so it can actually use the command. What is a good way to solve this (prefferably without using entire scripts)?
12:07 armyriad joined #salt
12:08 numkem joined #salt
12:11 goestin Does anyone know how to create a pull request? (im kind of a programming noob)
12:11 goestin but i have cloned the salt repo to my account, fixed te bug and pushed it bag in my account and now i need to create a pull request i think?
12:12 babilen Did you push it into a new branch?
12:13 AndreasLutro goestin: if you push the changes you made to a new branch and then go to your forked repo on github.com, a green "make pull request" button should appear
12:14 babilen https://help.github.com/articles/creating-a-pull-request/
12:14 babilen You might have to select the branch you developed in, but usually GH informs you of that
12:16 goestin ack, i think i've managed :)
12:16 goestin w00t, my first contribution!!! :D
12:16 CeBe1 joined #salt
12:17 N-Mi joined #salt
12:17 N-Mi joined #salt
12:17 west575 joined #salt
12:18 krymzon joined #salt
12:23 antpa joined #salt
12:26 Mandorath Should have used cmd.run, *sigh*.
12:27 nicksloan joined #salt
12:29 west575_ joined #salt
12:31 mdpolaris joined #salt
12:32 KingOfFools_ guys, does anyone using ldap3 module?
12:32 subsignal joined #salt
12:33 babilen KingOfFools_: What would you ask this hypothetical person?
12:34 KingOfFools_ babilen: i have some weird stuff happening, when trying to use function modify in this module
12:34 babilen Okay
12:34 KingOfFools_ babilen: trying to debug it right now, looks like it unpacks arguments the wrong way or something
12:34 babilen You might want to ask a more specific question and provide some examples of what you've tried on a pastebin
12:35 babilen I am not familiar with that module, but others might be able to help if they are given more information
12:36 KingOfFools_ babilen: example from documentation doesnt even work :)
12:45 jcalero joined #salt
12:50 foobar_ joined #salt
12:52 mdpolaris I am working with salt-api and cherrypy and I have an issue with using publisher_blacklist and salt-api. I had non-sudo users blacklisted and when that is enabled i am unable to run REST commands
12:53 mdpolaris is there a way to keep that blacklist and use cherrypy?
12:57 fannet joined #salt
12:59 ivanjaros joined #salt
13:01 dyasny joined #salt
13:03 gh34 joined #salt
13:07 flowstate joined #salt
13:08 dyasny joined #salt
13:08 racooper joined #salt
13:10 emaninpa joined #salt
13:12 subsignal joined #salt
13:18 flowstate joined #salt
13:24 feld joined #salt
13:27 DaveQB joined #salt
13:31 edrocks joined #salt
13:31 dyasny joined #salt
13:32 scoates joined #salt
13:34 Tanta joined #salt
13:51 flowstate joined #salt
13:53 west575 joined #salt
13:54 iceyao joined #salt
13:57 _JZ_ joined #salt
13:58 perfectsine joined #salt
13:59 protoz joined #salt
14:05 antpa joined #salt
14:06 jhauser_ joined #salt
14:11 johnkeates joined #salt
14:11 JohnnyRun joined #salt
14:13 POJO joined #salt
14:16 ajw0100 joined #salt
14:17 mikecmpbll joined #salt
14:20 krymzon joined #salt
14:21 impi joined #salt
14:21 bowhunter joined #salt
14:25 PerilousApricot joined #salt
14:26 ronp_usa1 joined #salt
14:30 Tyrm joined #salt
14:33 ivanjaros joined #salt
14:42 hasues joined #salt
14:42 PerilousApricot joined #salt
14:43 ZachLanich joined #salt
14:43 hasues left #salt
14:44 DammitJim joined #salt
14:44 jweede joined #salt
14:45 scsinutz joined #salt
14:47 stanchan joined #salt
14:48 perfectsine joined #salt
14:51 armyriad joined #salt
14:52 Brew joined #salt
14:58 fannet joined #salt
15:08 PerilousApricot joined #salt
15:08 impi joined #salt
15:09 RandyT joined #salt
15:09 fannet joined #salt
15:09 thebignoob joined #salt
15:10 thebignoob I'm having issues with salt-mine, is there any good ways to help troubleshoot why grains are not getting stored?
15:11 thebignoob i'm using salt to spin up a postgres cluster with a master and a set of slaves, the master information get's stored in mine, i'm able to do this with no problem in my aws instance in us-west-1, but when i go to my stage env in us-east-1 nothing get's stored, code for salt is all stored in a repo so everything should be standard across the board
15:12 johnkeates the mine is on the master
15:12 west575_ joined #salt
15:12 thebignoob yeah that the impression i'm under
15:14 fredrick joined #salt
15:14 corichar joined #salt
15:17 irctc729 joined #salt
15:18 irctc729 Hi I have a question that maybe some can answer quite quickly
15:18 irctc729 If I have a state that looks for a configuration file
15:19 irctc729 that file might be a specific one or a default one but it should be name the same on teh targeted server
15:20 ZachLanich joined #salt
15:20 irctc729 so the source section of the yaml should take a list and if it can find the specific file use it otherwise use the deafualt one
15:20 irctc729 is that possible
15:21 irctc729 does it make sense
15:21 thebignoob couldn't you get the machines name from grains.items?
15:21 PerilousApricot joined #salt
15:22 irctc729 all machines will have this file and its application not machine dependent on what we are monitoring and alerting off and in waht environment
15:23 irctc729 we have a default but at times we may wanto to push out a more specific one for a perticular application at deploy time but have the state be the same
15:25 Tanta joined #salt
15:28 cyborg-one joined #salt
15:31 edrocks joined #salt
15:37 jhauser joined #salt
15:37 cmarzullo parameterize the source. Use pillar to define a source. where it defaults to the one you generally want. So you can optionally provide pillar to point to a different source.
15:37 cmarzullo For example most of my ntp servers use the same template file. Except for this one wierd guy. He has his own.
15:39 alinuxninja joined #salt
15:39 irctc729 ok thanks for that. i will give it a go
15:41 blueelvis joined #salt
15:44 Perilous_ joined #salt
15:47 stanchan joined #salt
15:49 cprior joined #salt
15:57 KingOfFools_ Where I should ask a question if I think there's kind of a bug in salt module or mislead in documentation? I'm not a programmer, so Im not sure
15:57 scsinutz joined #salt
16:01 heaje joined #salt
16:08 writtenoff joined #salt
16:10 ivanjaros joined #salt
16:11 Edgan joined #salt
16:12 Sarph joined #salt
16:22 pipps joined #salt
16:23 PerilousApricot joined #salt
16:23 pipps joined #salt
16:26 Sarphram joined #salt
16:30 Miouge joined #salt
16:39 ageorgop joined #salt
16:42 iggy KingOfFools_: here is a good start, we'll tell you to open an issue if something is wrong
16:42 iggy (and for future reference... don't ask to ask, just ask)
16:43 mdpolaris I am working with cherrypy and was wondering if it is possible to set saltenv in a /run call
16:44 mdpolaris or, should i not work with direct function calls and setup wekhooks with reactors instead?
16:48 scoates joined #salt
16:49 Brijesh1 joined #salt
16:49 ageorgop joined #salt
16:49 PerilousApricot joined #salt
16:50 iggy mdpolaris: did you try it? I don't see anything specific, but then again, a lot of stuff is just passed through various layers of the stack
16:51 mdpolaris I did, i think i just found a possible solution, i need to put that in the kwargs
16:51 mdpolaris i’m about to try, i’ll report back
16:52 iggy most people avoid environments like the plague, so you probably won't find a whole lot of docs on them (especially in concert with salt-api)
16:54 raspy_ joined #salt
16:55 raspy_ does anyone know if you can set default IAM policies for every new user group created ?
16:55 mdpolaris hmm, didn’t seem to work…i am strictly using it for the purpose of dev vs prod, so at least for production it won’t be an issue
16:56 mdpolaris so i can test modules, is there a better method for testing new states, etc?
16:56 iggy mdpolaris: the other option is to set the env in the minion config file
16:56 mdpolaris yeah, good point. That should do what I need for this
16:56 mdpolaris thanks
16:57 mdpolaris if i figure out the API call i’ll post it in here…i feel like i am very close :)  famous last words
16:58 timoguin joined #salt
16:59 iggy yeah, would be good for someone to know (and we can always tell people to search the irc logs)
17:04 tapoxi joined #salt
17:04 RObs joined #salt
17:04 RObs HELP
17:05 RObs how to do git clone from URL using salt state
17:05 mdpolaris i figured out my mistake, i was doing a state.apply and i wasn’t passing the state in the args, so it was like this: "fun": "state.apply agileworx.add_user" instead of "fun": "state.apply”, “arg”: application.add_user"
17:06 cmarzullo RObs: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.git.html
17:06 tapoxi RObs salt.state.git.latest ?
17:07 mdpolaris but to add saltenv in there, just add this: "fun": "state.apply”, “arg”: application.add_user”, "kwarg": { "saltenv": "dev" }
17:07 mdpolaris would it be helpful for me to post the full curl command?
17:08 mdpolaris minus sensitive bits of course
17:09 toanju joined #salt
17:11 tapoxi mdpolaris what's the state?
17:12 fyb3r joined #salt
17:12 kurt_ joined #salt
17:14 kurt_ hey folks. any advice on debugging why my salt-ssh isn't seeing my pillar? i have a `master` file (which i confirmed is being referenced correctly) which has pillar_roots: base: - ./pillar
17:14 mdpolaris I was doing a state.apply on one of my own states: here is the full WORKING curl: curl -sSk https://localhost:8000/run -H 'Accept: application/x-yaml' -H 'Content-Type: application/json' -X POST -d ‘[{“username": "USERNAME", "password": "PASSWORD", "eauth": "pam", "client": "local", "tgt": "GRAIN_NAME", "expr_form": "grain", "fun": "state.apply", "arg": "application.add_user", "kwarg": { "saltenv": "dev" }}]’
17:14 mdpolaris thanks for the help
17:14 kurt_ but `salt-ssh --log-level=debug dev1 pillar.items` gives empty dict
17:14 kurt_ or `dev1:     ----------`, more specifically
17:16 PerilousApricot joined #salt
17:16 kurt_ (flipping minion_data_cache=False doesn't change anything either, so i dont think its a caching issue)
17:19 Fiber^ joined #salt
17:19 Lionel_Debroux joined #salt
17:22 krymzon joined #salt
17:23 mohae joined #salt
17:24 impi joined #salt
17:26 kurt_ ack. okay. my file was init.sls instead of top.sls
17:30 Rumbles joined #salt
17:32 ktosiek joined #salt
17:32 Miouge joined #salt
17:33 tiwula joined #salt
17:33 amcorreia joined #salt
17:33 edrocks joined #salt
17:40 scsinutz joined #salt
17:42 Qlawy is is possible to run reactor as different user than root?
17:42 Qlawy or is it possible for user to list all other users jobs?
17:48 tiwula joined #salt
17:49 dijit I feel bad making a one line pull request.
17:49 tiwula joined #salt
17:50 pipps joined #salt
17:51 tiwula joined #salt
17:51 om joined #salt
17:51 GreatSnoopy joined #salt
17:55 Edgan How do I check the transport method salt is using?
17:59 mikecmpbll joined #salt
18:03 miker_ joined #salt
18:05 stanchan joined #salt
18:07 KingOfFools joined #salt
18:15 joshin joined #salt
18:18 Edgan whytewolf: I solved my mystery of /etc/salt/pki vs /etc/salt/pki/minion. There is migration code from two years ago that moves files from /etc/salt/pki to /etc/salt/pki/minion, but is wrapped in an if statement that says if transport equals zeromq. The default transport seems to have changed.
18:20 Qlawy salt is migrating to rabbit, isnt it?
18:21 Edgan Qlawy: I thought it was moving toward RAET
18:23 lubyou hi
18:23 lubyou in python salt modules, what is the recommended way to print warning?
18:24 lubyou warnings*
18:24 Qlawy Edgan: hmm... you are right
18:29 Edgan whytewolf: actually, looks like the if statement is only for master not minion. Also looks like the same code works on trusty, but not xenial. So the question is why.
18:30 beardedeagle joined #salt
18:32 beardedeagle Is anyone here using the consul sdb?
18:35 iggy Edgan: the default hasn't changed
18:35 iggy lubyou: using the logging module (like every module does)
18:35 lubyou thx @iggy
18:45 pipps joined #salt
18:46 babilen Edgan: RAET is stillborn, the new thing is the tornado based tcp transport -- https://docs.saltstack.com/en/latest/topics/transports/tcp.html
18:46 Sketch what's wrong with zeromq?
18:48 Edgan iggy: I am seeing signs of ipc/tcp not zeromq
18:48 Edgan babilen: good to know
18:49 ssplatt joined #salt
18:49 Edgan iggy: and I am not setting a transport
18:49 iggy zeromq is tcp
18:50 iggy raet was the one that was going to be ucp
18:50 Edgan iggy: Then the docs are confusing, because they talk about transport as tcp and not zeromq
18:51 iggy where?
18:51 babilen Well, there is the "tcp transport" and transports using tcp
18:51 babilen iggy: https://docs.saltstack.com/en/latest/topics/transports/tcp.html
18:51 Edgan iggy: https://docs.saltstack.com/en/latest/topics/releases/2016.3.0.html  "TCP Transport presence events were updated to work with a NAT (PR 30629)."
18:52 iggy yeah, that's specifically talking about the tcp transport module
18:52 iggy (which is not the default)
18:52 ssplatt what’s the best way to manage just the very first line of a file without touching the rest?  i was thinking file.line: - mode: replace; but i keep getting a python error saying it expects a character buffer object.  mode: insert and mode: ensure  are not giving me the result I want
18:53 ssplatt and I don’t want file.managed because there are some other dynamic things in the file modified by another source.
18:54 Edgan iggy: then I have salt.transport.ipc and salt.transport.mixins.auth in my /var/log/salt/master for extra confusion.
18:54 stanchan joined #salt
18:56 POJO joined #salt
18:56 iggy ssplatt: file.accumulated ?
18:56 jf_ joined #salt
18:56 stanchan joined #salt
18:56 jf_ has anybody tried installing pylint recently?
18:57 jf_ getting a whole bunch of 'SyntaxError's for some reason
18:58 jf_ https://gist.github.com/anonymous/5c2c83a06800c2d5388e30aa93333115
19:00 timoguin joined #salt
19:01 ssplatt iggy: hmm that doesn’t look quite like it’ll do it.  i kind of want block replace, but i don’t think the -marker_start will take a “begining of file” regex
19:02 babilen jf_: #python ?
19:03 scsinutz joined #salt
19:04 7YUABRO0N joined #salt
19:04 jf_ hm. I use python2 (2.7.6 to be precise). I just expected it to work with p2 still, I guess. But u might be on to something
19:04 7YUABRO0N Hey all, I've got salt installed on mac os
19:04 7YUABRO0N wait
19:04 7YUABRO0N this is not my screenname
19:05 schemanic_ joined #salt
19:05 jf_ I see a couple of "py3"s in there. I basically just followed the instructions from the coding style page. Is there some specific version I should use for python 2?
19:05 schemanic_ Hi, now I'm back
19:05 schemanic_ anyway, I've installed salt on mac os el capitan with macports
19:05 schemanic_ it seems to have only installed one package called salt
19:06 schemanic_ None of the standard files are created under /etc/salt though
19:06 schemanic_ can anyone speak to this? It's not hard to *make* those files, but I'm curious why they don't get put there like a salt minion on linux
19:09 jf_ do u know any port that installs to /etc?
19:09 jf_ are u really looking at "/etc" on the mac?
19:10 scsinutz joined #salt
19:10 schemanic_ jf_,  how would I know if I'm on the 'real' /etc/ or not
19:11 schemanic_ /etc/salt is there
19:11 schemanic_ but its near to empty
19:11 schemanic_ also I'm not familiar with the term 'port'
19:12 ribx joined #salt
19:12 jf_ you really should have some idea. Macports is not exactly newbie friendly
19:12 whytewolf port is a package under macports
19:12 jf_ I'm not a fan, but have u considered homebrew?
19:14 schemanic_ I once tried to run the homebrew install, but salt just outright didnt install properly
19:14 scsinutz1 joined #salt
19:14 schemanic_ I can try it
19:14 whytewolf brew doesn't install the etc files either :P but to be honest it is because they are not needed to be installed. what is put in the /etc/salt directory on linux is really a template for a file
19:14 schemanic_ do you assert that the homebrew installation does a better job?
19:14 schemanic_ whytewolf, I understand that, but It bothers me that there isnt consistency
19:15 schemanic_ in the same manner, when installing salt on windows, you get those template files, but they're written for linux
19:15 whytewolf you expect consistency in something that salt has no controll over?
19:15 whytewolf salt doesn't make the installers for brew or macports
19:16 whytewolf and it is more consistent with a pip install of salt
19:16 jf_ https://repo.saltstack.com/
19:17 schemanic_ Well I'd say thats an issue in itself, but that is is a fair point about third party packagers. I just cant see any standard supported method for osx on the salt site
19:17 schemanic_ jf_,  what is the url you posted?
19:17 whytewolf that would be an offical package for salt
19:18 schemanic_ oh wow
19:18 tapoxi joined #salt
19:18 schemanic_ Well now I feel silly
19:18 jf_ check it out
19:18 schemanic_ This page is what comes up more often when searched. https://docs.saltstack.com/en/latest/ref/configuration/index.html
19:19 schemanic_ whoos
19:19 schemanic_ not that
19:19 schemanic_ https://docs.saltstack.com/en/latest/ref/configuration/index.html
19:19 schemanic_ damnit
19:19 beardedeagle how does one use pillar modules on masterless salt. I followed the instructions here: https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.consul_pillar.html but if I salt-call consul_pillar.consul_fetch blah blah then it tells me that that module is not available
19:19 schemanic_ https://docs.saltstack.com/en/latest/topics/installation/osx.html
19:19 krymzon joined #salt
19:19 west575 joined #salt
19:20 whytewolf schemanic_: reread that page you just posted. ignoreing everything after earlier builds from supported branches
19:20 jf_ any quick help with pylint for python2? I just need a pointer
19:21 beardedeagle unless pillar modules are not available to masterless minions
19:22 beardedeagle don't know if that is true.
19:23 iggy beardedeagle: that's not how you call ext_pillars
19:23 iggy you just call pillar.get like normal
19:23 iggy salt-call <module>.<function> ... the module can only be stuff in salt.modules
19:24 schemanic_ whytewolf, jf_ thank you both. I'm sorry if I seem like a persnickety ass - I completely overlooked that there was a straight up official package.
19:24 om joined #salt
19:25 beardedeagle thanks iggy. not sure this is going to work in masterless mode anyway though
19:25 whytewolf schemanic_: no problem. official packages are actualy kind new to salt in general only about a year old now
19:26 pipps joined #salt
19:30 iggy beardedeagle: it should
19:31 beardedeagle it just returns whatever I feed pillar.get back to me. not returning key values like you would expect consul_pillar.consul_fetch to
19:33 iggy does it work in master-full?
19:34 armyriad joined #salt
19:36 west575_ joined #salt
19:37 edrocks joined #salt
19:45 PerilousApricot joined #salt
19:50 protoz joined #salt
19:52 PerilousApricot joined #salt
19:54 scoates joined #salt
19:55 keys joined #salt
19:55 mikecmpbll joined #salt
19:57 jf_ Can somebody give me an example of a pylint invocation? not to sure what to put for "salt/dir/to/lint" (https://docs.saltstack.com/en/latest/topics/development/conventions/style.html)
19:58 jf_ I've tried (within a checkout of the repo) 'pylint --rcfile=.pylintrc .' ... which I expect (or hope?) to work out, but instead I get a
19:58 jf_ F:  1, 0: error while code parsing: Unable to load file '__init__.py' ([Errno 2] No such file or directory: '__init__.py') (parse-error)
19:59 jf_ passing any other dir seems to be worse, with complaints about undefined variables scrolling off the scren
20:00 tapoxi how do you guys do linting? I'm just using a vagrant box to call state.highstate
20:00 armyriad joined #salt
20:01 jf_ tapoxi: if u can't tell, I don't even know how to start
20:02 perfectsine joined #salt
20:03 nZac joined #salt
20:04 hop joined #salt
20:06 pipps joined #salt
20:12 om joined #salt
20:15 stanchan joined #salt
20:19 PerilousApricot joined #salt
20:23 DammitJim joined #salt
20:23 DammitJim in a pillar, can I do something like: {% if (grains['host'] == '*app*') %}
20:23 DammitJim meaning any host with the word app ?
20:24 DammitJim I know that there is an "startswith"
20:24 DammitJim but not a contains?
20:26 lero joined #salt
20:27 protoz joined #salt
20:28 cmarzullo if 'app' in grains['host'] might work also
20:29 writtenoff joined #salt
20:29 ajw0100 joined #salt
20:32 ssplatt i believe there is a way to compound match or pcre match in a way similar to matching in a top file
20:32 DammitJim thanks, that did it!
20:33 talia joined #salt
20:33 ssplatt https://docs.saltstack.com/en/2015.8/ref/modules/all/salt.modules.match.html   i think i was thinking of that
20:34 taliaraven Hi folks, I'm trying to setup a gitfs backend with a JIRA Stash repo and I can't get it working. I'm not sure how to troubleshoot this.
20:34 cmarzullo DammitJim: if you are doing this jinja in the top.sls you probably want to use the differnt matchers.
20:34 armyriad joined #salt
20:35 DammitJim no, this is in a template
20:35 Elsmorian joined #salt
20:35 taliaraven I see nothing interesting in the log files telling me why it's not reading the gitfs file backend. Any idea what I should look at? Or what info helps?
20:36 raiden joined #salt
20:37 Guest27847 when we give folder path in form (salt://some_folder) .. is the file copied from master?
20:37 Guest27847 or it gets picked up from minion's cache
20:37 Guest27847 sorry very new to salt
20:38 robawt salt:// comes from the master originally
20:38 MTecknology hm... is there any way to specify in /etc/salt/minion that salt-minion should NOT read anything in .d?
20:39 taliaraven I'm typing ```salt '*' cp.list_master_dirs``` and I'm not getting any output from it. The miniions return, but it's blank.
20:41 DammitJim how do I troubleshoot a template?
20:41 Guest27847 but when I give the salt:// path and the file is present in master...the file.recurse fails
20:45 keys taliaraven: run the master with -l trace to get more info from logs. See if you can connect to git back-end directly with ssh -T git@github.com
20:45 keys backend I dunno why I say
20:45 felskrone joined #salt
20:45 stanchan joined #salt
20:46 keys or wherever your repo is. You may need to set a .ssh/config identity file for gitfs to connect
20:48 jf_ Can somebody give me an example of a pylint invocation? not to sure what to put for "salt/dir/to/lint" (https://docs.saltstack.com/en/latest/topics/development/conventions/style.html)
20:48 keys I guess that I'm giving info assuming your trying to connect to a private repo over ssh, but not sure your situation. If not a private repo, the instructions on saltstack docs should be more helpful.
20:50 jf_ every possibility of 'pylint --rcfile=/path/to.pylintrc some/salt/source/dir' has led to some form of output that shows me I'm not doing it correctly (tons of "undefined variable" reports, etc.)
20:52 taliaraven @keys: I'm using an HTTPS connection. Backend works from my desktop. I can see the file I want in Stash. I will run the master with -l trace.
20:52 alexhayes joined #salt
20:53 taliaraven @keys: omg I just realized what I did. Log files just told me I didn't have git installed on the master. >_< Sorry to bug you
20:53 keys trace could give you more info. though you might notice while you are watching the trace, if perhaps running -l trace in foreground, that you will reach a point where it wants username and password
20:53 om joined #salt
20:53 keys ah nice!
20:53 keys well good find, quick fix then
20:54 taliaraven Yah, right? I setup a barebones server and forgot I wasn't using our standard build that has core and dev utils like git already >_>
20:54 keys sometimes, any day can feel like a Monday
20:54 keys glad u found it
20:55 taliaraven def. Thanks for your help @keys
20:55 dfib joined #salt
20:55 keys np
20:59 keys DammitJim: You could try pasting your jinja into a validator to check syntax?
20:59 fredrick Anyone using syndic
20:59 derekmaciel joined #salt
21:00 DammitJim it's alright keys
21:00 DammitJim I just used the module to make sure I was calling stuff properly
21:01 Tyrm_ joined #salt
21:01 fredrick more so has anyone made state file for managing syndic
21:02 Tyrm__ joined #salt
21:02 Slimmons joined #salt
21:04 PerilousApricot joined #salt
21:09 LessSneaky joined #salt
21:11 cmarzullo yes fredrick I manage syndics with a saltstack formula.
21:11 fredrick cmarzullo how do you handle updating the master file on the salt master with new syndics?
21:12 cmarzullo the syndics are just minions of the master.
21:12 fredrick yes but the master has to have them in the master file?
21:12 cmarzullo lemme look again. but don't recall having them in the master file.
21:13 fredrick Shoot never mind it is just setting it to true..
21:13 fredrick that makes it much easier
21:13 cmarzullo yeah ordermasters true
21:14 fredrick nice so in your state do you just install master and syndic
21:14 cmarzullo I have a master, minion, syndic, api, and cloud states.
21:14 cmarzullo all wrapped under a formula so different ones get applied as needed.
21:14 fredrick I have all but the syndic
21:15 cmarzullo my syndic formula includes master and minion and basically just ensures the syndic package is installed and the service is running.
21:15 cmarzullo everything else is parameterized in pillar for the master file.
21:16 cmarzullo sorry not syndic formula. but syndic state. saltstack-formula/saltstack/syndic.sls
21:16 fredrick cool that is what I had planned but for some reason I thought I had to add the syndic names to the master.
21:16 filippos joined #salt
21:16 fredrick thanks again.
21:16 cmarzullo no worries good luck!
21:18 mariusv joined #salt
21:18 mariusv joined #salt
21:20 stanchan joined #salt
21:21 irctc030 joined #salt
21:21 irctc030 is there a way to push files from master to minion in a runner
21:21 irctc030 ?
21:22 west575 joined #salt
21:25 taliaraven @irctc030: salt '*' cp.get_file salt://test.txt /root/test.txt
21:26 taliaraven that's the command line, but it also exposes it in python if you're writing a runner:
21:27 taliaraven https://docs.saltstack.com/en/latest/ref/file_server/  - Look at the end for fileclient module
21:28 irctc030 @taliaraven ..runner executes on master right...so how will cp.get_file work there
21:28 taliaraven oh my mistake. I'm just learning this myself :)
21:29 irctc030 okay :) any other alternative that you know of
21:29 taliaraven maybe you want to remote execute the get_file? Or send a command to the minion to do that first?
21:30 irctc030 ahh sure ...will try that
21:30 cyborg-one joined #salt
21:34 PerilousApricot joined #salt
21:37 west575 joined #salt
21:39 edrocks joined #salt
21:42 beardedeagle joined #salt
21:42 flowstate joined #salt
21:45 om joined #salt
21:51 nicksloan joined #salt
21:54 alexhayes joined #salt
21:56 fyb3r left #salt
21:57 pipps joined #salt
21:58 pipps joined #salt
22:00 flowstate joined #salt
22:03 hasues joined #salt
22:03 hasues left #salt
22:06 antpa joined #salt
22:08 irated joined #salt
22:08 irated HAAALP!!!
22:09 MTecknology How does salt figure out which functions in a custom grain will return grains? Is it all functions that don't start with _?
22:09 irated https://gist.github.com/pryorda/161042a83a558c6068a68cb822a5a08f - GID doesnt get poppulated.
22:10 MTecknology irated: typo
22:10 MTecknology hint: line 12
22:11 irated MTecknology: sorry the service-users was another section
22:11 irated sec
22:12 irated https://gist.github.com/pryorda/161042a83a558c6068a68cb822a5a08f
22:13 MTecknology k.. so, what doesn't work?
22:13 irated gid
22:13 MTecknology k?
22:13 MTecknology what doesn't work?
22:13 irated - gid: {{ salt['pillar.get']('support-users:{{ support_usr }}:gid', '') }}
22:14 irated it ends up populated a default gid
22:14 irated 100X
22:14 antpa joined #salt
22:14 irated populating*
22:14 jrklein joined #salt
22:15 MTecknology that shouldn't happen because your alternative is ''
22:15 * MTecknology sighs
22:15 irated if gid is null it will use an automagic one from the os.
22:15 MTecknology irated: {{ {{ }} }} <-- no
22:16 irated ??
22:16 irated so {{ salt['pillar.get']('support-users:support_usr:gid', '') }}
22:16 irated should work?
22:16 MTecknology no
22:16 MTecknology not the way you expect anyway
22:16 irated thought so
22:17 MTecknology add about 8 chars
22:17 MTecknology (if you count the spaces)
22:18 irated you lost me
22:18 MTecknology {{ }} <-- python ... how would you write that string in python?
22:19 irated \{\}
22:19 ponyofdeath hi, trying to emulate a virtualbox salt test environment with a docker image. only issue i am seeing is the service.running state is bombing out inside docker. any ideas?
22:19 irated well
22:19 MTecknology got my answer..  ref: https://docs.saltstack.com/en/latest/topics/grains/#writing-grains  (fyi)
22:19 irated \{\{ \}\}
22:19 MTecknology 17:16 < irated> so {{ salt['pillar.get']('support-users:support_usr:gid', '') }}
22:19 MTecknology start there
22:20 MTecknology How would you writ that in python?
22:20 MTecknology You want to include a variable, no?
22:20 irated concatenate it
22:20 irated or use strfmt
22:20 MTecknology concat is the right answer
22:20 stanchan joined #salt
22:21 irated is join the answer or concat?
22:21 irated im trying to find concat in jinja
22:21 MTecknology ponyofdeath: docker isn't designed to have salt running inside of a container
22:22 MTecknology irated: +
22:22 MTecknology {{ salt['pillar.get']('support-users:' + support_usr + ':gid', '') }}
22:22 irated oh duh...
22:22 MTecknology I wanted to try to teach a little bit :(
22:22 irated I was over complicating it
22:23 om joined #salt
22:23 irated i was thinking I had to do some crazy magic with it
22:23 irated ponyofdeath: dockerfile please?
22:24 MTecknology When at first you don't succeed, your first solution was probably wrong.
22:24 irated having salt run in a container is weird
22:24 irated MTecknology: :P
22:24 MTecknology not just weird, but it breaks how docker wants to work
22:24 irated Yeh
22:25 MTecknology ponyofdeath: what's your end goal?
22:26 protoz joined #salt
22:26 tpaul joined #salt
22:27 flowstate joined #salt
22:27 iggy use ~ instead of +
22:29 MTecknology iggy: those search terms are very difficult to use...   "jinja + vs ~" for /some/ reason only gives me comparisons of jinja against a million other things
22:29 subsignal joined #salt
22:31 pipps joined #salt
22:31 MTecknology iggy: Any hints? I'm still struggling to find the docs on ~
22:33 MTecknology ah!
22:33 ponyofdeath MTecknology: replace virtualbox with docker
22:33 MTecknology "Converts all operands into strings and concatenates them"
22:33 ponyofdeath MTecknology: when testing my salt stuff with vagrant
22:34 shadoxx ponyofdeath: you recommend the vagrant/docker workflow? how come? i'm contemplating a switch myself. i don't think i'll be able to do a full docker conversion since i'm building the hypervisors with vagrant too
22:34 shadoxx ponyofdeath: but for app servers.
22:34 shadoxx whoops. thought I was in #vagrant.
22:35 ponyofdeath irated: https://bpaste.net/show/e39ac48bb0fc
22:35 ponyofdeath shadoxx: i think it should be possible as it works with lxc
22:36 MTecknology ponyofdeath: docker != lxc ... not by a heck of a long shot
22:36 irated ponyofdeath: ewww
22:36 MTecknology ponyofdeath: docker wants each container to have exactly one pid
22:36 irated ssh in a docker container
22:36 ponyofdeath MTecknology: they both utilize linux namespaces no
22:36 irated ;)
22:37 MTecknology ponyofdeath: ya... and debian and redhat both utilize an init system
22:37 shadoxx yum is essentially apt
22:37 MTecknology lol ... ya, that
22:37 ponyofdeath earth is flat
22:37 irated ponyofdeath: init doesnt run inside docker
22:37 irated jinx
22:37 irated jinx @ MK_FG
22:37 irated MTecknology: **
22:37 irated inside docker contianers unless specifically told to.
22:38 MTecknology I didn't even realize it was an option
22:38 MTecknology being an option is scary...
22:38 irated I think phuton or w/e allows you to iirc
22:38 irated the vmware one
22:40 irated sorry phusion not the vmware one
22:40 irated photon is the the other minos
22:40 irated min-os
22:40 irated ponyofdeath: https://github.com/phusion/baseimage-docker might be better for what you're doing
22:42 vook left #salt
22:43 ponyofdeath irated: thanks i will check it out
22:46 tracphil joined #salt
22:52 stanchan joined #salt
22:57 Tyrm joined #salt
23:05 scoates joined #salt
23:22 hasues joined #salt
23:23 hasues left #salt
23:25 om joined #salt
23:27 pipps joined #salt
23:29 jfelchner joined #salt
23:40 tmkerr joined #salt
23:40 pipps joined #salt
23:42 edrocks joined #salt
23:48 PerilousApricot joined #salt
23:52 skeezix-hf joined #salt
23:56 iggy MTecknology: + concat's strings ... ~ converts the things to strings and concats
23:56 stanchan joined #salt
23:57 iggy lxd is the way of the future
23:57 * iggy runs

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