Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-03-28

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

All times shown according to UTC.

Time Nick Message
00:07 nidr0x joined #salt
00:12 darvon joined #salt
00:14 kliquori joined #salt
00:14 flowstate joined #salt
00:18 iceyao joined #salt
00:23 brianfeister joined #salt
00:26 scoates joined #salt
00:40 aphor Maybe it would be fun to have SCTP transport?
00:41 ajw0100 joined #salt
00:47 iggy I personally would like to see a pigeon transport
00:47 aphor RAET looks like reinventing a lot of lower protocol layers which were not invented here (NIH).
00:48 quasiben joined #salt
00:56 teatime similarly, a pigeon transport would be a waste when one can simply use the TCP transport over RFC 1149.
00:58 zenlot joined #salt
01:02 kliquori joined #salt
01:06 iggy there is some info floating around about why they chose to make something other than RAET
01:06 iggy *other than 0mq
01:08 brianfeister joined #salt
01:10 iggy it's not simply NIH, there are legit complaints about 0mq at scale (ask anyone with a decent number of minions)
01:11 RobertChen117 joined #salt
01:17 edrocks joined #salt
01:18 ajw0100 joined #salt
01:24 scooby2 joined #salt
01:28 aphor https://www.linkedin.com/in/samuel-m-smith-phd-4652751 <-- creepy all-seeing-eye stole the RAET architect?
01:32 catpigger joined #salt
01:38 subsignal joined #salt
01:39 favadi joined #salt
01:41 aqua^c joined #salt
01:46 favadi joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.8 | SaltConf16: http://saltconf.com/register/ | Paid support available: 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:52 quasiben joined #salt
01:56 flowstate joined #salt
02:12 hightekvagabond joined #salt
02:13 beardedeagle I have a issues with people who put phd in their name
02:16 iggy iggy phd
02:17 iggy knowing someone who bothered to get her phd and how much work she put in... I don't have a problem with it
02:24 jtang joined #salt
02:27 beardedeagle Oh the time and effort I respect, I have just never had a good interaction with anyone in a work environment that puts phd in their name.
02:28 beardedeagle personally*, should have prefaced that entire thing
02:28 evle joined #salt
02:28 justanotheruser joined #salt
02:34 iggy think it depends a lot on the major... ecology majors that play in the mud all day are probably less prone to be neckbearded asshats than any CS phd's I've ever met
02:34 iggy so I feel you on that one
02:35 blu_ joined #salt
02:36 teatime it definitely depends on the context and the field
02:36 teatime in some it would be narcissim or whatever
02:37 teatime in others it may be important to avoid being marginalized
02:37 teatime (if such qualifications are the norm, you could do yourself a disservice downplaying your own.)
02:42 aphor If you can get people to pay you to write new network protocols, I don't think getting marginalized will be avoidable with a titular feather in your cap.
02:42 aphor Eminent super-nerd, or Eminent super-nerd PhD?
02:43 beardedeagle heh, all I have is a ged to my name
02:43 aphor Which one gets the most attention at the cocktail party?
02:43 beardedeagle joined the army at the age of 17 and did network administration for them for 7 years
02:44 beardedeagle then got a job working for ibm
02:44 aphor your work speaks for itself, IMnsHO.
02:44 beardedeagle just kept going from there
02:45 beardedeagle agreed @aphor
02:45 aphor well.. always be selling: advocate for your really good work, but not with bullshit titles.
02:46 aphor That is so.... old-Europe.
02:46 teatime like a lot of fields
02:46 racooper joined #salt
02:46 teatime what you guys are saying works in tech
02:47 aphor We are the blacksmiths of our time.
02:47 beardedeagle rofl
02:49 inre joined #salt
02:57 flowstate joined #salt
03:02 beardedeagle I will agree that titles carry a lot of weight though
03:03 pppingme joined #salt
03:03 teatime my sister has a PhD, and I am aware of how much time and effort she put into it.
03:04 beardedeagle When I was an admin I was looking at engineers thinking: "man that would look so much better on my resume". Now I am in the same boat as an engineer looking at developers lol.
03:04 teatime she works at a hospital now, and while she doesn't care, and I'm annoyed that she can't use the title 'Dr.' or people would laugh at her
03:04 teatime since she's not an MD
03:04 beardedeagle Ah, specifically because she is at a hospital I assume
03:04 teatime yeah
03:05 teatime and heh beardedeagle, I have never been comfortable / willing to use 'Engineer' to describe myself / my job, since I don't have an engineering degree or PE license.  but that seems to be the minority opinion.
03:06 teatime anyway, I think military background looks very favorable on a resume.
03:07 beardedeagle It definitely hasn't hurt, that's for sure.
03:07 beardedeagle Pretty sure the only reason I got hired at IBM is because the guy interviewing me had a son that was deployed.
03:07 aphor It can be a proxy for work ethic.
03:08 aphor Don't let that get exploited.
03:08 teatime yeah, it implies a certain modicum of responsibility and discipline.
03:08 teatime which is really important and difficult to select for.
03:08 beardedeagle Too late @aphor
03:08 beardedeagle I put in twice as many hours as anyone else in my department
03:08 aphor beardedeagle: that's at your discretion.
03:08 beardedeagle true, but I love working.
03:09 aphor I hope they deserve it.
03:09 beardedeagle I love what I do
03:09 beardedeagle so I don't mind
03:09 kshlm joined #salt
03:09 aphor Do you love your coworkers?
03:09 beardedeagle hell no
03:09 beardedeagle but my boss on up is pretty awesome
03:10 aphor OK. Time to recruit.
03:10 beardedeagle well, the people I directly work with at least I should say. I get along with the dev's very well.
03:10 beardedeagle lol
03:10 beardedeagle nice
03:11 aphor I get asked by ex-military people if I served. I tend to get along with no-bullshit personalitites.
03:12 aphor I'm also allergic to bullshit.
03:12 beardedeagle same
03:13 aphor Being older, I think it can be my job sometimes to bring the shame when people make sloppy bad choices from shortsighted self-interest or comfort seeking.
03:14 beardedeagle my thing is, own up to it. if you make a mistake, admit it. if you don't then we have issues.
03:14 aphor "I hope you have to debug that six months after you forgotten you wrote it."
03:15 beardedeagle lol
03:17 brianfeister joined #salt
03:26 RobertChen117 joined #salt
03:33 favadi joined #salt
03:45 subsignal joined #salt
03:50 zer0def joined #salt
03:51 kliquori joined #salt
03:56 flowstate joined #salt
03:57 aharvey joined #salt
03:58 esharpmajor joined #salt
04:13 mgresser joined #salt
04:14 brianvdawson joined #salt
04:15 whytewolf humm. I have worked with a lot of people over the years. ex-military can be ok. but some of them do have chips on their shoulder. however the ones that really Irk me are anyone who has worked for a three letter. [cia, nsa, fbi, etc] they tend to flow with the BS on unheard of scales.
04:15 teatime "lol
04:16 teatime I worked for one of those, indirectly.  it eventually drove me nuts and I had to quit.
04:17 whytewolf I think it is cause a lot of the work they do is classified and they have to tell people something so they get used to telling wild stories.
04:18 whytewolf I used to have a boss that worked on the range [area 51]. the bullshit factor out of him was unbelieveable. to the point that it became a game to call him on it
04:19 whytewolf [and yes it was verified that he did work area 51 :P]
04:20 teatime my job was super boring.
04:20 teatime at least in terms of secrets.
04:21 whytewolf ahhh then you probley never reached the BS levels ;)
04:21 teatime def. heard lots of BS :)
04:21 teatime it was mostly just institutional incompetence though
04:22 whytewolf ahh there is tons of that. three letter agency or not
04:25 beardedeagle I just don't talk about the secret things
04:25 beardedeagle that's why they are secrets
04:25 kshlm joined #salt
04:25 teatime that does seem easier.
04:25 beardedeagle right?
04:25 teatime you have to be in pretty deep to actually need cover stories.
04:25 beardedeagle the most I ever say is I delt with a lot of comsec
04:25 beardedeagle thats all they need to know
04:26 whytewolf beardedeagle: honestly it is more then i want to know.
04:26 whytewolf :P
04:26 beardedeagle eh I have recruiters ask me and such
04:27 whytewolf really? all they should ask is do you have a security clearence.
04:27 whytewolf not what juicey secrets you have
04:27 teatime "What kind of work do you do" seems like a perfectly reasonable question; it's up to you to censor details as appropriate.
04:28 beardedeagle lol, it's the "what did you do" question. I just fire off "I did network administration, I delt with comsec"
04:28 beardedeagle dealt*, even
04:28 whytewolf ahh okay, thats fair
04:28 beardedeagle and of course "Yes I have a security clearance"
04:28 beardedeagle rofl, like I am going to let that thing expire
04:29 beardedeagle license to make money is what that is
04:29 whytewolf yeah. I don't have one. but i do pretty well for not having one. or a diploma, or a degree. and losing my ged so can't even prove i have that anymore.
04:30 whytewolf but recruters seem to perk up when i tell them i built an openstack cluster in my bedroom
04:31 beardedeagle lol
04:33 whytewolf thats actually how i got the job at the bank i work for now :/ i was doing some openstack work for the company i used to work for. was getting frustrated with a lack of documentation so bought a bunch of parts and built mock up in my bedroom
04:34 whytewolf which also is how i got deep into salt cause i use salt to build the bloody thing
04:36 * iggy wants to punch openstack in the dick (or whatever genitals it has)
04:36 whytewolf lol. right now i am in that same boat
04:37 whytewolf I am having a hella of a time with the intergration bridge settings
04:37 whytewolf and openvswitch compleatly ignoring them for instance creation. but they work find for bridge building
04:38 beardedeagle yeah my company is pushing to move everything it can into openstack
04:38 beardedeagle and the ui is cool and all/not
04:38 whytewolf avoid mirantis if you can...
04:39 beardedeagle so I used salt to build out a complete cicd pipe for "efforts"
04:39 beardedeagle and I wish we paid for SSE
04:39 beardedeagle because I manually have to integrate into snow right now
04:39 beardedeagle and it sucks
04:40 beardedeagle literally the only reason I want it
04:41 beardedeagle also @iggy, pretty sure openstack is asexual
04:46 subsignal joined #salt
04:46 whytewolf the openstack libs in salt need a compleate rewrite at this point. since I'm running liberty at home the keystone stuff doesn't work for anything that touches domains [like setting up heat, which requires domains now] the neutron network stuff also has some serious details that are lacking. and there is no heat module even though it would actualy tie in really well with salt states
04:48 beardedeagle agreed
04:49 iggy I started looking at using the openstack cli python lib to try to add some more functionality to the openstack modules/states
04:49 iggy didn't get very far
04:50 beardedeagle setting metadata would have been great with salt
04:50 aharvey joined #salt
04:50 beardedeagle right now I do it all via some crazy orch tasks
04:50 iggy you should see the unless's we had to write
04:50 iggy truly eye-burning
04:51 whytewolf lol. I don't doubt it.
04:51 beardedeagle I have thought about tackling the openstack libs for salt. I think I feel another 3 or 4 week vaca coming on and might try my hand at it then. last time I went on vaca I fixed winexe 1.1 for centos 7 lol.
04:53 beardedeagle or at least the nova libs
04:53 iggy I tried to get some time to work on it at work... other projects though
04:58 flowstate joined #salt
04:58 RobertChen117 joined #salt
05:00 beardedeagle c# hurts my face
05:01 whytewolf C# makes me a SAD Panda
05:01 beardedeagle about to take a 2 hour c# hacker rank
05:02 beardedeagle tryna get me that dev title lol
05:06 brianfeister joined #salt
05:06 beardedeagle joined #salt
05:06 RobertChen117 joined #salt
05:10 sarlalian joined #salt
05:11 rdas joined #salt
05:20 fracklen joined #salt
05:28 favadi joined #salt
05:29 brianfeister joined #salt
05:42 whytewolf finally! found that stupid setting. only had to sort though each of the settings that were listed as bridge [cause apperently the one setting i wanted was the only one that DIDN'T say it was an intergration_bridge setting]
05:46 subsignal joined #salt
05:53 kliquori joined #salt
05:53 VR-Jack3 joined #salt
05:56 flowstate joined #salt
06:00 favadi joined #salt
06:07 _AndrewPashkin_ joined #salt
06:10 cberndt joined #salt
06:12 beardedeagle aaaaaand let the C# asshattery commence
06:12 teatime Does anyone know of any software that actually implements the Unicode fraction-slash display behavior?  (The idea that 10⁄20 is supposed to display as ¹⁰⁄₂₀)
06:23 slav0nic joined #salt
06:25 rdas joined #salt
06:31 cberndt joined #salt
06:40 kliquori joined #salt
06:47 subsignal joined #salt
06:50 RobertChen117 joined #salt
06:55 RobertChen117 joined #salt
06:56 flowstate joined #salt
07:11 om joined #salt
07:14 RobertChen117 joined #salt
07:20 linjan_ joined #salt
07:51 mavhq joined #salt
07:53 iggy does setting worker_threads work for anyone?
07:57 flowstate joined #salt
08:05 bastiandg joined #salt
08:05 mgresser joined #salt
08:10 mavhq joined #salt
08:19 fracklen joined #salt
08:23 atmosx joined #salt
08:29 dmaiocchi joined #salt
08:37 fracklen joined #salt
08:38 marnom joined #salt
08:41 kliquori joined #salt
08:47 GreatSnoopy joined #salt
08:48 subsignal joined #salt
08:49 favadi joined #salt
08:56 flowstate joined #salt
09:01 Phtes joined #salt
09:07 cberndt joined #salt
09:27 fracklen_ joined #salt
09:27 RobertChen117 joined #salt
09:27 kliquori joined #salt
09:47 mavhq joined #salt
09:57 flowstate joined #salt
09:57 nidr0x joined #salt
09:59 TyrfingMjolnir joined #salt
09:59 nidr0x joined #salt
10:12 jtang joined #salt
10:44 ITChap joined #salt
10:50 subsignal joined #salt
10:50 jtang joined #salt
10:52 punkoivan joined #salt
10:53 punkoivan joined #salt
10:55 punkoivan joined #salt
10:55 thallera1 joined #salt
10:57 punkoivan joined #salt
10:58 flowstate joined #salt
10:58 punkoivan joined #salt
11:00 punkoivan joined #salt
11:01 fracklen joined #salt
11:01 punkoivan joined #salt
11:07 mavhq joined #salt
11:11 rdas joined #salt
11:18 mavhq joined #salt
11:24 rburkholder joined #salt
11:28 evle1 joined #salt
11:29 kliquori joined #salt
11:31 quasiben joined #salt
11:38 amcorreia joined #salt
11:39 zahna joined #salt
11:46 dmaiocchi joined #salt
11:49 abednarik joined #salt
11:49 Lionel_Debroux_ joined #salt
11:57 flowstate joined #salt
12:03 jeddi joined #salt
12:06 esharpmajor joined #salt
12:08 inire joined #salt
12:12 mavhq joined #salt
12:15 kliquori joined #salt
12:21 DammitJim joined #salt
12:22 Salty-salter joined #salt
12:22 akhter joined #salt
12:24 loacker joined #salt
12:30 mgresser joined #salt
12:30 sroegner joined #salt
12:36 sjorge joined #salt
12:36 sjorge joined #salt
12:38 mavhq joined #salt
12:38 nyx_ joined #salt
12:39 favadi joined #salt
12:44 metalseargolid joined #salt
12:46 bluenemo joined #salt
12:46 subsignal joined #salt
12:46 bluenemo hi guys. Is the jinja templatetag not available in salt? https://docs.djangoproject.com/en/dev/ref/templates/builtins/#templatetag  using 2015.8.8 (Beryllium)
12:47 hemebond bluenemo: Checking now but possibly not; you're reading Django documentation, not Jinja2.
12:48 bluenemo uh yes.. how would I escape something in {foobar}, where I want to template foobar. I'm tryting to use salt for latex files
12:48 hemebond Escape? Escape for what?
12:48 bluenemo not sure if I should try mako or sth for it, never used it before. maybe jinja isnt the best choice here
12:48 teatime bluenemo: to clarify, Django's template language is a lot like Jinja2, but it is not actually Jinja2.
12:49 bluenemo well I want {{{ foo['bar'] }}} to be {foobar} in the final file
12:49 bluenemo yeah sry for that link - i actually didnt look at it and thought it was jinja doc.. my bad ! :) I need something like this feature
12:49 hemebond bluenemo: http://jinja.pocoo.org/docs/dev/templates/#escaping
12:51 bluenemo hemebond, the example is a bit basic :/ dont get how I would do: \setkomavar{fromname}{{{ company['imprint']['name'] }}}
12:51 bluenemo result should be => \setkomavar{fromname}{Example GmbH}
12:51 AndreasLutro bluenemo: easiest to just use strings - {{ '{' ~ company.imprint.name ~ '}' }}
12:52 bluenemo uh thats cool. I didnt think of putting it together inside the {{ }}
12:52 bluenemo nifty! thanks AndreasLutro :) didnt know that was possible in {{ }}, only thought it would work in {% %}
12:54 teatime I thought you could choose-your-own delimeters too, but perhaps not on a file-by-file basis.
12:56 flowstate joined #salt
12:56 bluenemo when I do   \setkomavar{fromaddress}{{ '{' ~ company['imprint']['street'] ~ ' \\\ ' ~ company['imprint']['city'] ~ '}' }}    I have to use three \\\ to get two \\ in the result. Why is there interpretation still? I thought whne using single quotes there is no further interpretation?
12:59 AdamSewell joined #salt
13:00 AdamSewell Is there a way to rename a salt minion from the master?
13:00 akhter joined #salt
13:04 akhter joined #salt
13:06 subsignal joined #salt
13:07 quix joined #salt
13:08 mavhq joined #salt
13:08 bluenemo AdamSewell, you can edit minion_id (or something similar) in /etc/salt/minion and then restart the minion. It should then just show up in salt-key on the master.
13:08 bluenemo Use with caution :)
13:09 bluenemo (edit with sth like salt 'foobar-minion' cmd.run 'sed magic'
13:10 AdamSewell bluenemo, i got ya. sounds like i'll have to get crafty lol
13:11 bluenemo AdamSewell, you might want to set up ssh via salt :)
13:11 AdamSewell lol thanks
13:11 bluenemo sth like salt 'minion' cmd.run 'apt-get -y install openssh-server'
13:12 bluenemo (or use a formula)
13:12 bluenemo but if salt is your last connection to the minion, I recommend being careful :D
13:12 kliquori joined #salt
13:19 TooLmaN joined #salt
13:20 subsignal joined #salt
13:23 hasues joined #salt
13:24 akhter joined #salt
13:24 mapu joined #salt
13:31 hasues left #salt
13:32 XenophonF oh man i love whoever wrote salt.modules.win_wua
13:34 XenophonF twangboy, if you're out there---thank you
13:34 XenophonF you just saved me a tone of work
13:38 akhter joined #salt
13:42 akhter joined #salt
13:43 loacker joined #salt
13:47 akhter joined #salt
13:48 bluenemo When I do   {{ task_time * 60.0 }}   where task time = 60.3   I get   UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 1681: ordinal not in range(128)
13:49 perfectsine joined #salt
13:51 nyx_ joined #salt
13:55 Tanta joined #salt
13:55 akhter joined #salt
13:55 bluenemo ah, fo|float()
13:57 rawzone joined #salt
13:59 jerredbell joined #salt
14:00 scoates joined #salt
14:03 teatime bluenemo: so, what was the problem?
14:04 bluenemo teatime, already found out, thanks.
14:04 teatime 0xe4 is very close to the first byte of 60*60.3, but it shouldn't be inserting it as a raw byte... I as assuming you had a "ä" elsewhere in the template or interpolated data.
14:04 teatime bluenemo: yes, I'd like to know what it was.
14:05 mpanetta joined #salt
14:05 bluenemo teatime, from what I figured, value * 50 only works whne I use value|float()
14:07 bluenemo How do I add floats to a float inside a for loop while being able to read that value after the for loop?   something like {%- do price_total|float() += price|float() -%}  but this aint working
14:08 rem5 joined #salt
14:12 andrew_v joined #salt
14:12 akhter joined #salt
14:14 aphor joined #salt
14:15 teatime there is set, but pretty sure you cannot use it like that.  you may be able to use http://jinja.pocoo.org/docs/dev/templates/#sum
14:15 rem5 joined #salt
14:15 teatime the template language is intentionally weak on logic; you should either make the pillar data closer to the structure you need to use, or use e.g. the py renderer.
14:16 josuebrunel joined #salt
14:16 aphor sfxandy: try sniffing the events as you let a state.highstate finish on one minion at a time.
14:21 akhter joined #salt
14:22 kliquori joined #salt
14:24 aharvey joined #salt
14:25 ronnix joined #salt
14:29 Tanta use {% set result = cmd.run('echo "scale=2; ' ~ value1 ~ '+' ~ value2 ~ '" | bc') %}
14:29 _JZ_ joined #salt
14:29 Tanta do the math with bash and bc, not ninja
14:29 bluenemo when I have a list called foo = [1.0, 2.3, 3.44]    how do I add all numbers together?
14:29 bluenemo (in jinja)
14:30 teatime that is terrible imo, Tanta
14:30 _JZ_ joined #salt
14:30 bluenemo Tanta, fun :D terrible indeed teatime, but very good to know ;) However yes, it might be preferable to write a jinja module here..
14:30 teatime bluenemo: {{ foo|sum }}
14:31 bluenemo ah sum, thx !! :)
14:31 teatime (linked above :)
14:32 bluenemo teatime, set doesnt work inside => outside for
14:32 bluenemo do does (like do foobar.append(bla) )
14:32 bluenemo so in the loop I append all numbers to an empty list and then use list|sum
14:32 bluenemo ok for me
14:32 bluenemo thanks for your input guys! :)
14:32 teatime yes, hence "you cannot use it like that"
14:33 Karunamon joined #salt
14:37 Ron1 joined #salt
14:37 Ron1 Hi, How can I use the salt-forumula, I have a module which I cloned to my computer
14:37 Ron1 ?
14:41 metalseargolid joined #salt
14:43 bluenemo Ron1, did you install a new module but its not synced to the minions yet? If so, there was   salt '*' saltutil.sync_all I think (the all is wrong, I know .sync_pillar but there was one that syncs the modules)
14:44 Salty-salter Hey, I get an error "public ip not detected" when using aws autoscale. I am using the public address and they exist, does anyone know this error?
14:44 metalseargolid joined #salt
14:45 bluenemo Salty-salter, try ##aws ;)
14:45 Salty-salter using salt with autoscale
14:45 bmac2 joined #salt
14:45 bluenemo ah ok sry
14:45 Salty-salter getting this error from salt
14:45 Fiber^ joined #salt
14:45 Ron1 Thank you bluenemo. I just clone the module to my computer and try to run "salt -G 'os:ubuntu' state.apply /srv/formulas/nagios-formula/nagios/nsca/client"
14:45 josue1 joined #salt
14:46 Brew joined #salt
14:46 Ron1 I don't know if I am using it right
14:47 bluenemo I rarely use state.apply but looks right for me. If you have custom py magic (modules), this py magic needs to be present on the minion. If not, things should work
14:48 UForgotten joined #salt
14:48 akhter_1 joined #salt
14:50 Ron1 Maybe I don't understand something. I just need to install nagios client on minion
14:51 Ron1 I clone the project from formulla
14:51 Ron1 and run the specified
14:51 Ron1 Is it right? the steps?
14:52 bluenemo Ron1, sounds ok, can you pastebin all output you get?
14:53 Ron1 yes
14:57 akhter joined #salt
14:58 Salty-salter Does someone know what does "'public ip not detected" error mean on the salt log? im trying to use aws autoscaling with salt and I get this on the salt-master. I am using public ips and it does add the keys but I can't run commands
15:00 metalseargolid joined #salt
15:00 aharvey joined #salt
15:06 rdas joined #salt
15:07 Ron1 I have a problem with salt-master
15:07 Ron1 I try to reboot the master
15:07 mrwboilers I just upgraded a minion to 2015.8.8. I use a multi master set up. When I restarted the minion, it gave me a warning telling me that the "Key master with value ['master1', 'master2', 'master3'] has an invalid type of list, a str is required for this value"
15:07 mrwboilers I never saw this warning on 2015.8.3. Has something changed? So far, it still seems to work despite the warning.
15:08 mrwboilers I've only upgraded 1 master and 1 minion at this point.
15:08 punkoivan joined #salt
15:09 mrwboilers I'm hesitant to continue to upgrade other masters and minions without knowing what the deal is with this warning.
15:10 Ron1 blienemo:  No matching sls found for '/srv/formulas/nagios-formula/nagios/nsca/client' in env 'base'
15:10 punkoivan joined #salt
15:11 punkoivan joined #salt
15:12 punkoivan joined #salt
15:12 beardedeagle joined #salt
15:13 punkoivan joined #salt
15:14 peterdemion joined #salt
15:14 punkoivan joined #salt
15:15 punkoivan joined #salt
15:16 Ron1 bluenemo : No matching sls found for '/srv/formulas/nagios-formula/nagios/nsca/client' in env 'base'
15:19 AndreasLutro mrwboilers: https://github.com/saltstack/salt/issues/32044
15:19 saltstackbot [#32044]title: Multiple masters throwing warnings? "Key master with value [...] has an invalid type of list, a str is required for this value" | ### Description of Issue/Question...
15:20 mrwboilers AndreasLutro: Thanks. That's definitely what I'm seeing.
15:20 bluenemo Ron1, then there is something wrong with the paths you defined as file_roots in masters config. Check that setting and use salt 'minion' cp.list_master to debug the files / formulas the minion can se
15:20 bluenemo see
15:22 flowstate joined #salt
15:23 whytewolf Ron1: what is the command you are running?
15:24 loacker joined #salt
15:24 dendazen joined #salt
15:25 SheetiS joined #salt
15:26 Ron1 salt -G 'os:ubuntu' state.apply /srv/formulas/nagios-formula/nagios/nsca/client
15:26 whytewolf yeah thats not going to work
15:26 Ron1 ?
15:27 whytewolf in your /etc/salt/master file you should have a setting called file_roots
15:27 whytewolf add - /srv/formulas/nagios-formula to it
15:27 whytewolf then call salt -G ps:ubuntu' state.apply nagios.nsca.client
15:28 Ron1 ok I will try
15:28 Ron1 thank you very much
15:29 whytewolf whoops that should be -G 'os:ubuntu' like you already do have
15:29 whytewolf you will need to restart the salt-master when you add that line
15:30 hightekvagabond joined #salt
15:31 peterdemion Hi there, I want to use deploy cloud nodes to Google Compute Engine using Google Deployment Manager (https://cloud.google.com/deployment-manager/overview) but salt-cloud provides only basic GCE functions, like create node, create network, etc. How can I extend salt to use Deployment Manager API?
15:31 Ron1 great
15:31 Ron1 thank you very much
15:31 Salty-salter some1 have expirenece with salt autoscaling with AWS?
15:31 Ron1 How can I use it?
15:33 whytewolf Ron1: what do you mean how do you use it?
15:33 amcorreia joined #salt
15:34 Ron1 how can I use the module
15:34 bmac2 joined #salt
15:35 spuder joined #salt
15:35 whytewolf `salt -G 'os:ubuntu' state.apply nagios.nsca.client` should run the states included with the formula in the directory [file_roots]/nagios/nsca/client/init.sls
15:36 metalseargolid joined #salt
15:37 heaje joined #salt
15:37 whytewolf oh sorry just looked at the formula that would be [file_roots]/nagios/nsca/client.sls
15:43 digitalhero joined #salt
15:43 akhter joined #salt
15:43 digitalhero joined #salt
15:44 loacker joined #salt
15:44 ageorgop joined #salt
15:50 fracklen joined #salt
15:51 digitalhero joined #salt
15:52 Salty-salter Salt-cloud won't install the salt-minion after connecting to the minion machine using aws-autoscale, anyone can help with that?
15:55 fracklen joined #salt
15:57 pcn joined #salt
16:00 Ron1 thank you whytewolf
16:00 DammitJim joined #salt
16:03 wendall911 joined #salt
16:04 flowstate I need a bit of advice: I'm moving from a masterless system to one with a master
16:04 flowstate and in the configuration for my minion
16:04 flowstate I need to install oracle jdk 8 from s3
16:04 flowstate I'm not sure how to put that into a sate
16:04 flowstate state*
16:04 flowstate oh wait.
16:05 flowstate managed file, sourced from s3. rpm install from file, ... but then there's alternatives to set
16:05 Tanta put tarball on S3, use archive.extracted
16:06 flowstate oh, interesting, I have an rpm at the moment, didn't know about archive state
16:06 Tanta I prefer to manage the JDK outside of package management under /opt/jdk, but you might find better use for RPM
16:07 flowstate well, it could definitely be the right way to go with salt, so I'll do a bit more digging
16:07 flowstate thanks, sir!
16:07 akhter_1 joined #salt
16:07 Tanta the nice thing about archive.extracted is you can use S3 directly as a source, along with source_hash
16:07 flowstate oh, nice
16:07 Tanta https://docs.saltstack.com/en/latest/ref/states/all/salt.states.archive.html examples
16:08 brianfeister joined #salt
16:10 BogdanR Hello
16:11 tercenya joined #salt
16:12 BogdanR I would like to extend this (https://raw.githubusercontent.com/bogdanr/php-formula/master/php/map.jinja) map.jinja so that I could specify different package names if I will say that I want version 7 of PHP.
16:12 BogdanR How would I be able to accomplish that.
16:13 edrocks joined #salt
16:14 evle2 joined #salt
16:17 digitalh_ joined #salt
16:17 Ron1 How can I uninstall a package from the minion?
16:17 cheus joined #salt
16:18 Ron1 I did salt -G ps:ubuntu' state.apply nagios.nsca.client
16:18 Ron1 and want to remove nagios.nsca.client
16:20 AndreasLutro Ron1: salt doesn't have a "revert" action. check if there's a state file you can use to remove the packages/files
16:20 AndreasLutro if not, you'll have to do it yourself
16:21 Ron1 I see thank you
16:21 M0ntez joined #salt
16:26 M0ntez Hello, is it normal to have these numbers on the master with 80 minions #netstat -anto |grep :4505 |wc -l >> output =78 #netstat -anto |grep :4506 |wc -l >> output =2039
16:26 akhter joined #salt
16:28 grumm_servire joined #salt
16:29 DammitJim so as I understand it, I can define a yaml file with information
16:29 DammitJim then just call that information from a pillar and pass it to a state?
16:33 amcorreia joined #salt
16:35 digitalhero joined #salt
16:36 M0ntez Is This normal ?? On the master... on port 4505 i have 78 connections, and on  port 4506 i have 2839 connections
16:37 jfroot joined #salt
16:38 jfroot is paid support still based on node count?
16:38 jfroot In this day, I cannot believe Salt doesn’t have pricing on their web page. I despise having to talk to a sales-droid to get pricing. </rant>
16:42 mr_chris joined #salt
16:42 zer0def joined #salt
16:43 mr_chris Does anyone have insight on why salt-cloud is not deploying minions in 2015.8.8?
16:43 mr_chris I've been debugging it. I seen the pem files in /tmp but deploy.sh never gets there and so it never gets executed.
16:44 s_kunk joined #salt
16:44 jeffspeff joined #salt
16:45 mavhq joined #salt
16:46 ronnix joined #salt
16:47 M0ntez @jfrnot, i was given an estimate for mon-fri 6am-6pm for USD13000 a year up to 500 minions
16:51 akhter joined #salt
16:52 fracklen joined #salt
16:52 M0ntez has anyone run into SaltReqTimeoutError: Waited 60 seconds when doing salt-call on minion. have over 100 minions (2015.5.3) and only few of them have this problem. Others would hang for 15-20 seconds on the Reauth step
16:55 UForgotten joined #salt
16:58 hightekvagabond joined #salt
17:02 polyidus joined #salt
17:05 doompatrol joined #salt
17:06 akhter joined #salt
17:08 doompatrol trying to figure out if this is correct {% if salt['pillar.get']('dp:function:front') and salt['pillar.get']('dp:status:dev') %} or something like {% if salt['pillar.get']('dp:function') == 'front' and ...
17:09 * doompatrol re-reads docs
17:11 forrest joined #salt
17:12 aw110f joined #salt
17:13 hightekvagabond joined #salt
17:14 mavhq joined #salt
17:15 jfindlay jfroot: pricing is a function of node count
17:16 jfroot jfindlay: totally understand that.. just would be nice if they had a calculator online etc.
17:17 drawsmcgraw jfroot: I fully agree with you. However, just about every 'enterprise' or 'professional' service I've seen is "call us for an estimate".
17:17 drawsmcgraw That's not in defense of Saltstack. Only an observation.
17:17 drawsmcgraw That being said, remember, "Everything is negotiable".
17:17 jfroot drawsmcgraw: for sure.. we work in Pharma and as soon as companies hear that it seems our price magically goes up 20%
17:18 drawsmcgraw mr_chris: A colleague of mine has the same issue. Upgraded to 2015.8.8 and he says salt-cloud won't deploy minions.
17:18 drawsmcgraw My machine (Ubuntu 14.04) works just fine. He may be on a RHEL-family machine fwiw to you.
17:18 drawsmcgraw jfroot: yep...
17:22 edrocks joined #salt
17:23 jfindlay thus helping to reinforce the overpricing of prescriptions :-)
17:24 drawsmcgraw jfindlay: Tip of the iceberg... :)
17:25 nyx_ joined #salt
17:26 polyidus joined #salt
17:28 brianfeister joined #salt
17:37 SheetiS joined #salt
17:37 SheetiS1 joined #salt
17:43 bmac2 joined #salt
17:43 Lionel_Debroux_ joined #salt
17:47 fracklen joined #salt
17:49 doompatrol hrm nope
17:49 * doompatrol ponders
17:51 digitalhero joined #salt
17:52 heaje joined #salt
17:52 flowstate joined #salt
17:52 flowstate okay, super confused. I'm trying to connect my minions to s3, but I'm getting a 'No route to host' error
17:52 whytewolf doompatrol: I think you might be looking for {% if ('front' in salt.pillar.get('p:function')) and ('dev' in salt.pillar.get('dp:status')) %}
17:53 flowstate however, if I go  on the minion directly, I can hit s3 no problem
17:53 doompatrol whytewolf: whoa, cool. ill give that a shot and see how it works out. thanks!
17:54 anmol joined #salt
17:55 cyteen joined #salt
17:56 onlyanegg joined #salt
17:57 sagerdearia joined #salt
17:58 AndreasLutro flowstate: connect how?
17:58 flowstate salt myminion s3.get
17:59 flowstate output http://pastebin.com/9KUAV5mR
18:00 StolenToast can anyone explain the difference between nagios.ser and nagios.server.dynamic in the formula?
18:00 StolenToast *nagios.server
18:00 flowstate and I've set the pillars correctly, such that 'salt '*' pillar.items' returns the s3.key and s3.secret
18:00 digitalhero joined #salt
18:00 flowstate sry, s3.key and s3.keyid
18:00 doompatrol whytewolf: perfect ty, it works great!
18:02 flowstate just to give context, in case there's a better way:
18:03 flowstate I've got a java 8 rpm sitting in s3, which I need to install on my minion (grab from s3, rpm -ivh, add to alternatives)
18:03 flowstate and I'm giving myself a timebox of an hour to try and figure this out, else I'm just going to write a bootstrapping bash scrip
18:03 flowstate script*
18:04 flowstate I'd rather not, but I can't really afford to dump too much time into this one dependency
18:07 rmnuvg joined #salt
18:08 doompatrol use aptly, create a repo and pull from repo
18:08 fracklen joined #salt
18:08 doompatrol wait sorry
18:08 doompatrol pfft its rpm
18:08 * doompatrol goes back to rock...
18:11 flowstate yeah, I wish it wasn't
18:12 flowstate I argued hard for using debian / ubuntu server instead of Amazon Linux
18:12 flowstate but I lost that fight
18:13 whytewolf ugh Amazon Linux. the not quite redhat redhat cloud distro
18:13 Tanta CentOS is the cadillac of Linux
18:13 flowstate yep
18:13 flowstate also means that I have to write my local stuff in vagrant against centOS 7
18:13 flowstate then test further changes in my dev VPC
18:13 flowstate which is awful
18:13 AndreasLutro odd, don't know what would cause that, but "no route to host" indicates that the salt module is using a different hostname to connect to s3 than aws cli or whatever else you're using
18:13 abednarik joined #salt
18:13 flowstate hmm, k Andreas, I'll look into it further
18:14 flowstate maybe using boto from a python shell would surface the problem
18:14 Tanta put 's3.service_url: s3.amazonaws.com' in your /etc/salt/minion
18:14 flowstate I have that in my pillars, think I should also put it in my minion config?
18:15 flowstate I'll try that, good idea
18:15 jfindlay flowstate: I'm not sure about that: it doesn't look like salt.utils.aws uses boto
18:15 flowstate oh
18:15 flowstate welp
18:15 flowstate haha
18:16 flowstate hmm, maybe I can just leverage our artifactory box and get yum setup to pull from there
18:16 jfindlay you might be able to hack something using `salt.utils.aws.creds()` raw
18:17 flowstate k, I'll look into it
18:18 flowstate thanks guys!
18:18 flowstate (and possibly ladies)
18:18 jfindlay sure, sorry it hasn't been working for you
18:18 jfindlay always frustrating :)
18:18 flowstate indeed, but it happens
18:18 flowstate really, we shouldn't be storing dependencies in s3
18:19 flowstate I'm going to be setting up nexus or a new artifactory for exactly this purpose
18:19 flowstate it should be as simple as a repo definition and pkg.installed
18:19 flowstate so I refuse to blame salt here
18:21 Tanta I like to use tarballs with S3, it's simple with IAM profiles attached to instances
18:21 Tanta no extra configuration necessary if you delegate permissions using IAM
18:21 DammitJim can I use import tags in a pillar file?
18:22 DammitJim import_yaml
18:22 flowstate Tanta: I agree, but I'm testing my stuff in Vagrant right now, so no IAM profiles atm
18:25 hoonetorg how to check if a variable contains a string in a salt module?import salt.ext.six as six   and    isinstance(<var> six.string_types):
18:26 hoonetorg ???
18:26 akhter joined #salt
18:26 andrew_v joined #salt
18:26 hoonetorg taken from salt.utils
18:26 DammitJim is there a way to have a jinja template "look up" information about a variable from a yaml file?
18:27 mavhq joined #salt
18:27 Fabbe_ joined #salt
18:27 DammitJim I am defining connection pools in a yaml file, but I don't know how to reference that data (if I should do it in my pillar or in the jinja template_)
18:27 teatime if you put it in pillar, it's available from jinja (after refreshing pillar data).
18:28 jfindlay hoonetorg: `if isintance(var, six.string_types) and 'my string' in var`
18:28 DammitJim teatime, I am trying to avoid repeating information in my pillar
18:28 DammitJim like right now for each connection pool, I'm saying: url, database, server, username,
18:28 DammitJim I'd like to in the pillar just say the name of the connection
18:29 DammitJim but define the name of the connection somewhere else (then I'm not repeating those 4 lines over and over for the different servers
18:29 polyidus joined #salt
18:29 DammitJim but how do I call that definition of a connection pool?
18:29 DammitJim do I put it in a yaml file?
18:29 teatime is the name enough info to deduce the rest?
18:29 tvinson DammitJim: there's load_yaml and import_yaml
18:29 teatime or are the rest constant for all the different connections?
18:29 DammitJim teatime, it should be
18:30 DammitJim teatime, no, they are different
18:30 DammitJim I've been looking at import_yaml... that's why I was asking if I do that in the pillar or the jinja template
18:30 teatime you could use an ext_pillar, either to read a YAML file and inject that + computed data into pillar, or to read pillar data defined in FS and augment it w/ computed data.
18:31 DammitJim am I making sense or am I sounding borderline crazy?
18:31 teatime it makes sense.
18:31 DammitJim teatime, ext_pillar I read about, but couldn't see any examples
18:31 DammitJim hold on, let me see...
18:31 teatime DammitJim: ext_pillar is very easy, also most of the existing ext_pillar's defined in the salt repo make good examples, like file_tree.py
18:31 DammitJim but at the end of the day, ext_pillar has to be parsed in the pillar, right? or can I pass that "object" or connection information to the jinja template?
18:32 hoonetorg jfindlay: thx
18:32 hoonetorg jfindlay: is it correct to use the "salt.ext.six as six"?
18:33 teatime it's def. a common desire to want to massage pillar data w/ python code before consuming it via Jinja templates.  the best way to do that is probably to generate it originally via ext_pillar, I think.  but using an ext_pillar just to massage, or using py renderer, are other options.
18:34 teatime DammitJim: ext_pillar is an an alternate means of getting pillar data into the system.  later that data would be consumed by your states / templated files / whatever.
18:35 DammitJim so, in my jinja template, I would do a switch statement of some sort?
18:35 DammitJim so, if my jinja template gets pillar data saying that I need information for jim_cp to create the connection pool
18:35 DammitJim how do I grab the info from the external pillar?
18:36 DammitJim where I have defined: jim_cp, joe_cp, tea_cp, etc?
18:36 teatime all pillar sources (files and all configured ext_pillars) get merged together
18:36 murrdoc joined #salt
18:36 ryn joined #salt
18:37 DammitJim right, so all the connection pool data would be available to the minion
18:37 teatime DammitJim: do you have any (pseudo)code or anything I could look at, so I can give you an example that more directly relates to your situation / use case?
18:37 DammitJim but if I only want to use certain pieces that match what I have defined in my pillar, how would I do that?
18:37 DammitJim or is there a better way to deal with this?
18:37 DammitJim yes, sir
18:37 DammitJim pastie, right?
18:37 teatime sure
18:39 ryn when i write a salt state, is there any way to give it a version so that a test environment can run a newer state than say a production server?
18:40 mr_chris drawsmcgraw, Should I bother submitting a but report against this version or is it fixed in later versions. I'm not seeing anything about it in the github issues.
18:40 flowstate joined #salt
18:42 drawsmcgraw mr_chris: I'd submit an issue. 2015.8.8 is a fairly recent (the latest?) version.
18:42 mr_chris drawsmcgraw, Crazy to think that made it to release.
18:42 mr_chris I'm guessing testing methods are still lacking.
18:42 DammitJim http://paste.debian.net/420647/
18:42 digitalhero joined #salt
18:42 DammitJim teatime, let me know if this is confusing
18:42 DammitJim this is what I have right now
18:43 DammitJim I'd like to just be able to say in my pillar NSEMDLoad
18:43 DammitJim but define NSEMDLoad somewhere else
18:44 ajw0100 joined #salt
18:44 jfindlay hoonetorg: that is how I would do it
18:45 jfindlay and also yes, you should use the six library at salt.ext.six within the salt codebase
18:46 teatime DammitJim: one thing to be aware of, targeting based on grain data ("if (grains['id'] == 'mark101t')") is insecure because minions set their own grains, so if one gets compromised the attacker can get any of the configurations for your other hosts.
18:46 hoonetorg jfindlay: thx
18:46 DammitJim thanks teatime
18:46 teatime DammitJim: give me a bit to figure it out.
18:46 DammitJim I'm making a note to change that
18:46 DammitJim thanks sir!
18:50 chums joined #salt
18:51 DammitJim teatime, I think I figured it out
18:51 DammitJim in my pillar, I need to use a dynamic pillar.get'var'
18:51 andrew_v_ joined #salt
18:52 DammitJim since the pillar information is available through ext_pillar
18:52 DammitJim right?
18:53 teatime DammitJim: here's one easy way to organize your pillar files that I think gives you what you want?  and also targets based on minion_id instead of grains: http://paste.debian.net/420650/
18:54 MindDrive "'foo' __virtual__ returned False" ('foo' is just a placeholder for many things here) - this seems to be the bane of my existence right now.  Is there a way to get more information as to exactly what is failing?  This is a really vague message and in the past I've found out it can mean different things, but tracking down exactly what it is have proved painful for me.
18:54 teatime MindDrive: look at the code.  it's usually a python dependency you need to install.
18:54 DammitJim thanks teatime, I thought about that. I would need to create 50 different pillar files, I guess with each definition in each of them instead of 1 pillar file. I could see that work
18:54 teatime DammitJim: would they duplicate data between them?
18:54 DammitJim no
18:55 teatime then that seems reasonable.
18:55 chums I have a question for all of you saltstack gurus. Lets say I have a pillar file that has an group of elements with the beginning element of testinghost and a child element name email and I have changed the hostname of a minion to testinghost. Is there a way in a template to use a grain like this {{salt['grains.get']('host')['email']}} to get that email variable?
18:55 DammitJim I should have given you the rest of the pillar information. There is also a section for Memory and ports
18:55 DammitJim sorry, I should have been true to my question
18:56 DammitJim do you think the pillar.get would work dynamycally?
18:56 DammitJim like if I said: pillar.get('{{ NSEMDLoad }}', {} )
18:56 DammitJim or something like that?
18:56 sc250024 joined #salt
18:56 teatime no.
18:57 DammitJim dammit
18:57 MindDrive teatime: In the most recent case, it's a Salt Python module I wrote and is installed on all our servers for deployment purposes, and has been randomly not working (causing deployment failures) on various machines.  Restarting the Salt minion on the affected hosts doesn't always resolve it.
18:57 teatime I don't understand how that would help, either.
18:57 DammitJim your suggestion will mean I have to strip out other configuration information that goes in the template and somehow add it from somewhere else
18:57 teatime does this data already exist in some other format, and you want to avoid translating it to pillar files?
18:57 DammitJim let me give you the full pillar file example
18:57 teatime ok
18:58 teatime MindDrive: __virtual__ is easy to find and usually only a couple of lines.
18:58 sc250024 Anyone up for a question about `salt-cloud` and EC2 ?
18:58 DammitJim http://paste.debian.net/420672/
18:59 DammitJim brb
18:59 hightekvagabond joined #salt
19:00 sc250024 In `subnetid` section of `cloud.profiles`, if I specify multiple subnet ids, will salt-cloud randomly select one when provisioning?
19:00 sc250024 Is specifying multiple subnet ids even possible?
19:00 mr_chris drawsmcgraw, Was your colleague working with Linode, or was it a different cloud provider?
19:00 drawsmcgraw mr_chris:  I believe it was Digital Ocean
19:02 teatime DammitJim: this is all of it?
19:03 mr_chris So it may not be specific to the provider, then.
19:03 rubenb Hi, I'm trying to manage my users with pillars, how can I determine if a variable in jinja is a str or a list?
19:03 flowstate fyi: the s3 module is broken
19:03 MindDrive teatime: Okay, now I'm thoroughly confused.  For let's say my given example, are you saying 'foo.py' would have '__virtual__' defined in it somewhere, or are you referring to the Salt code itself?
19:03 flowstate so ... don't use it
19:03 DammitJim joined #salt
19:04 DammitJim sorry teatime I locked myself out of irc
19:04 writtenoff joined #salt
19:05 amcorreia joined #salt
19:06 mr_chris rubenb, While this does not answer your question, I've done a lot of work in this area and came up with https://github.com/saltstack-formulas/reverse-users-formula. It may save you some time.
19:07 mr_chris It allows you to represent the users in a pillar based fashion as such. https://github.com/saltstack-formulas/reverse-users-formula/blob/master/pillar.example
19:09 rubenb mr_chris: Thanks, will look into this. Also using plain python in states looks promising.
19:09 GreatSnoopy joined #salt
19:10 teatime DammitJim: give me a bit, I am havign problems w/ my IRC host also.
19:10 teatime MindDrive: ^^
19:11 MindDrive teatime: No worries, I'll keep an eye out.
19:12 fracklen joined #salt
19:12 mr_chris rubenb, It's much more flexible like that. The reason I created that was to be able to represent it as "as user has these credentials on these servers" rather than "server1 has usera, userb. server2 has usera, userb" which becomes much more redundant.
19:12 mr_chris It also uses compound matchers to specify which user gets applied to where.
19:13 DammitJim no problem. Thanks!
19:14 fracklen joined #salt
19:20 teatime ok, that seems to be over now.
19:20 DammitJim good :)
19:21 teatime MindDrive: it's either in your module's code, or if it's imported from something else, then there.  most likely.  might help if you provide the complete traceback/error.
19:21 StolenToast if I'm using jinja and I merge a dictionary with one that doesn't exist (is not in the pillar file) then will it create that dictionary?
19:21 teatime DammitJim: so, this last paste from you, is still probably not all of it, right?  :)
19:21 flowstate anyone have experience with cmd.run getting stuck while executing correct bash code?
19:22 flowstate mine is freezing on 'ssh-agent /bin/bash'
19:22 drawsmcgraw Anyone have any favorite tricks for sorting the response from minions?
19:22 StolenToast what do you want it to do?
19:22 flowstate despite manually typing that command in the same cwd as the same user returns immediately
19:22 DammitJim it is for a server
19:22 drawsmcgraw i.e. if I run a command on a bunch of minions, can Salt wait until all are done, then sort the responses by minion name?
19:23 MindDrive teatime: It's not in my module, that I've already confirmed, no clue where it would be called from and there is no traceback/error, the "__virtual__ returned False" is it, nothing else.
19:23 DammitJim so, the state file goes over this pillar file and creates an instance of tomcat for each defined port number (i.e. 8452, then 8453)
19:23 MindDrive I'm trying to find a way to get more debugging, but so far not been lucky.
19:23 StolenToast flowstate: that command starts a new interactive shell
19:23 flowstate haha
19:23 teatime MindDrive: stop master and minion, start them both with the options for stay-in-foreground and loglevel DEBUG ?
19:23 StolenToast that's probably why it doesn't return anything
19:23 flowstate welp
19:24 flowstate I really hate not knowing linux
19:24 DammitJim teatime, not the shut, http or https port, but the port followed by the colon
19:24 StolenToast I'm not actually sure what that command would do
19:24 DammitJim make sense?
19:24 teatime yes...
19:24 flowstate it starts the ssh-agent, Toast
19:24 DammitJim it's actually pretty cool how it does that, but I'm creating a server that has 10 instances with different connection pools and it's too much
19:24 flowstate so that I can then ssh-add
19:25 StolenToast flowstate: try "eval `ss-gent`"
19:25 StolenToast that one shouldn't freeze
19:25 StolenToast *ssh-agent
19:25 teatime DammitJim: I'm just trying to understand what parts are unique / would have to be manually specified, and what parts are common or able to be derived from the minimal-manual-configuration.
19:25 StolenToast executes the ssh-agent code in the current shell instead of a new one
19:26 mrwboilers Looks like issue 32044 (https://github.com/saltstack/salt/issues/32044) was just closed less than 30 minutes ago. I don't know what the process is from here. When will this fix be distributed?
19:26 saltstackbot [#32044]title: Multiple masters throwing warnings? "Key master with value [...] has an invalid type of list, a str is required for this value" | ### Description of Issue/Question...
19:27 mrwboilers Meaning, when will it make its way into the RPMs on repo.saltstack.com? Will it be days, weeks, or months?
19:27 teatime flowstate: you *could* start ssh-agent via salt cmd.run, but you would need to do it a little differently, and it seems much more likely that you don't want to do it that way.
19:27 MindDrive teatime: The dev environment (where this issue is mostly occurring) already has the log level set to DEBUG, and I haven't seen anything particularly useful in either the master or minion logs, but I'll keep digging.
19:30 polyidus joined #salt
19:31 flowstate teatime: yeah, I'd rather not, and given that my masters are going to be living in ec2, I'm probably worrying about this for no reason, but still
19:31 DammitJim joined #salt
19:32 rburkholder joined #salt
19:32 flowstate I'm probably just going to set up the bash profile for root to have this sort of thing taken care of
19:32 mr_chris Is it possible to override salt-clouds default behavior of what it runs for deploy.sh in favor of something else?
19:34 digitalhero joined #salt
19:34 teatime flowstate: maybe a local ssh-agent + ProxyCommand (or agent forwarding) can get you want you want easier.
19:34 flowstate so the context for this is that I'm syncing my master file roots with git manually, via a job called git-sync
19:34 flowstate and since I'm testing locally on vagrant, my master machine is going up and down relatively frequently
19:35 flowstate such that trying to run the sync job, and having it be stopped because I forgot to start ssh-agent and add the key was becoming a pain point
19:35 teatime you'd still need to enter the passphrase?  and if you don't have a passphrase, then no need to use ssh-agent?
19:36 teatime DammitJim: I'm still trying to grok.  can you show me in pseudo-pillar format what you'd ideally have to specify for a single host's configuration?
19:36 pid1 joined #salt
19:37 flowstate teatime: that's my point, I kinda went down the rabbit hole on something that's not really going to save me any time
19:37 flowstate it's only going to happen on my masters
19:38 StolenToast it'd probably be more worth your time to learn about gitfs
19:38 flowstate and I can just use a bash profile on those boxes which ensures that the key is added. It doesn't have a passphrase, but I set it up via git that way because that's how Bitbucket (ugh.) wants to authenticate
19:38 flowstate everything I read about gitfs said that there were so many gotchas that manual syncing was likely more dependable
19:38 DammitJim sure
19:38 flowstate obviously, that could be misinformation
19:38 StolenToast I haven't looked too hard
19:39 flowstate same
19:39 StolenToast but I think there is a philisophical disconnect there where you are trying to automagically authenticate with a password
19:39 teatime flowstate: if you don't have a passphrase, you don't need to run ssh-agent
19:39 StolenToast passwords are inherently interactive
19:39 StolenToast that's what I was getting at, you can just use passless keys
19:39 flowstate oh
19:40 StolenToast they can be owned by a restricted user for security
19:40 teatime if it's in the default location, ssh will just pick it up
19:40 flowstate similar to an identity file specification when ssh'ing
19:40 teatime if not, there's an option you can pass
19:40 StolenToast yeah it's the same thing
19:40 flowstate derp
19:40 StolenToast id_rsa/id_dsa
19:40 StolenToast keypairs, you can name them anything you want
19:40 andrew_v joined #salt
19:41 flowstate yeah, mine are named differently, but I can just use a global git config if it's passless
19:41 flowstate sigh, I knew that
19:41 flowstate thanks!
19:41 teatime if you can't pass options to ssh, but something is still calling ssh, you can specify it in ~/.ssh/config
19:41 StolenToast I think in an average production environment this effect would be achieved with a shared network location
19:42 teatime plaintext ssh keys are against my religion :)
19:42 DammitJim teatime, something like this: http://paste.debian.net/420752/
19:43 teatime DammitJim: gotcha.
19:43 DammitJim something along those lines
19:43 StolenToast btw, passless keys have to be non-group accessible
19:43 StolenToast or else they will fail to load
19:44 DammitJim and then in another file say: portal: server, url, username then loadSFA: server, url, username
19:44 DammitJim define them in another file
19:44 akhter_1 joined #salt
19:44 digitalhero joined #salt
19:44 DammitJim or even on the same pillar somehow
19:44 StolenToast and what I mean is that it can't be group-readable or writable
19:45 StolenToast set it to 600  think
19:45 flowstate thanks teatime, StolenToast
19:45 flowstate got it working a bit more sensibly now
19:45 StolenToast cool
19:47 andrew_v joined #salt
19:48 nZac joined #salt
19:48 akhter joined #salt
19:52 akhter joined #salt
19:55 StolenToast this nagios formula is annoying, it lists "nagios3" everywhere but is clearly designed with tnagios 4 features in mind
19:55 mr_chris drawsmcgraw, Bug report made. https://github.com/saltstack/salt/issues/32183
19:55 saltstackbot [#32183]title: Salt Cloud 2015.8.8 not installing salt minions on new nodes | ### Description of Issue/Question...
19:56 StolenToast yeah cuz they expect more back
19:56 StolenToast woops wrong window
19:56 DammitJim teatime, are you gone?
19:57 quix joined #salt
19:58 akhter joined #salt
19:58 cliluw joined #salt
19:58 teatime DammitJim: no
19:58 Tanta most of the formulas are garbage
19:58 teatime DammitJim: just experimenting on your thing :)
19:58 DammitJim oh wow
19:59 DammitJim I wish I could just pass an "object" from pillar to the jinja template
19:59 teatime DammitJim: I've been bored to tears, I welcome the interesting problem
19:59 teatime DammitJim: you can. ?
19:59 DammitJim man, you must have no kids LOL
20:00 teatime lol, def. no kids.
20:00 DammitJim can you? I mean, the portal definition is kinda like an object
20:00 DammitJim lol
20:01 DammitJim how are you testing this?
20:01 teatime I was just checking if certain things were valid to do in jinja.
20:01 DammitJim ah
20:02 pcdummy joined #salt
20:02 winsalt joined #salt
20:02 teatime ok, now let me throw together the example files
20:02 M0ntez on 78 minions, Is This normal ?? On the master... on port 4505 i have 78 connections, and on  port 4506 i have 2839 connections
20:03 winsalt does anyone know if you can have a whitelist for which modules salt loads up?
20:03 morissette joined #salt
20:05 DammitJim nice!
20:05 teatime DammitJim: the last think you pasted, this is your config for 1 minion?
20:05 DammitJim correcto
20:09 Disorganized_ joined #salt
20:10 iggy M0ntez: does 2839 match the number of minion processes spread across all the minions?
20:11 StolenToast 36-some minion services per host?
20:12 iggy sounds legit
20:13 M0ntez @ iggy : just checking on one minion and there only one process for salt-minion,
20:13 heaje joined #salt
20:16 M0ntez salt '*' cmd.run 'ps aux |grep salt-minion', gave me 3 processes '/usr/bin/python /usr/bin/salt-minion' per minion
20:16 iggy are they all listening?
20:16 whytewolf M0ntez: are all those connections ESTABLISHED? or are they in different states?
20:16 iggy ^ that's what I meant
20:17 iggy if they are in WAIT* mode or something, they can be ignored
20:17 teatime DammitJim: sorry, still here :)
20:17 DammitJim yes, sir
20:17 teatime few more min
20:18 DammitJim ok
20:18 M0ntez looking at the master with netstat -anto they are in ESTABLISHED off (0.00/0/0)
20:18 M0ntez looking at the master with netstat -anto |grep :4506 they are in ESTABLISHED off (0.00/0/0)
20:21 mr_chris I printed the output of "salt.utils.cloud.bootstrap(vm_, __opts__)" from the linode cloud python file. http://dpaste.com/2BV1RC2
20:21 M0ntez @ iggy: this is my minin configuration master: <master IP adress> master_alive_interval: 3600 pidfile: /run/salt-minion.pid cache_jobs: True autoload_dynamic_modules: False open_mode: True state_verbose: False state_output: terse log_file: /var/log/salt/minion recon_default: 1000 recon_max: 59000 recon_randomize: True acceptance_wait_time: 5 random_reauth_delay: 60
20:21 mr_chris 'script': ''   Empty? Is that right?
20:29 akhter joined #salt
20:33 akhter joined #salt
20:34 racooper joined #salt
20:39 UtahDave joined #salt
20:39 teatime ok, yawn.  DammitJim done.  this will probably not be non-obvious/impressive enough to be worth the wait, lol.
20:39 teatime DammitJim: so, you can do some kinds of dynamic-ness, similar to what you asked about earlier.  I think something like this could work, although have not tested thoroughly:  http://paste.debian.net/420876/
20:40 teatime DammitJim: I do know that at least this works:  {{ pillar['dir'][fn] }}
20:40 teatime DammitJim: so perhaps you can manage it all via pillar files and jinja after-all.  if not, back to ext_pillar().
20:41 tampakrap joined #salt
20:42 numkem joined #salt
20:44 DammitJim ok
20:44 DammitJim sorry about that
20:46 DammitJim teatime, where do you reference tomcat_apps ?
20:47 teatime where I wrote all_apps instead by mistake :)
20:47 DammitJim oh
20:48 teatime you'll also need to target tomcat.all_apps to '*'
20:48 DammitJim yeah
20:48 DammitJim so, is pget, pillar.get?
20:48 DammitJim and what does apps.append do?
20:48 teatime yeah, defined right above there.
20:49 teatime apps.append is untested, but hopefully would add the tomcat.all_apps.loadDL_INFO object (for example) to the list apps
20:49 teatime let me fix a couple of errors, to clarify
20:49 DammitJim and that would pass all the info to the template?
20:49 DammitJim cool!
20:50 mr_chris drawsmcgraw, I got around my problem.
20:50 mr_chris "salt-cloud --update-bootstrap"
20:50 mr_chris Now it works.
20:52 rem5 joined #salt
20:52 fracklen joined #salt
20:53 teatime http://paste.debian.net/420887/
20:54 teatime DammitJim: I think so.  you'd have to map the variable names back to what you used in the template or vice versa.  and you should probably start by testing the while do/append thing first before wsting much time.
20:54 teryx510 joined #salt
20:54 iggy mr_chris: what version? that should have been fixed
20:55 mr_chris iggy, Updated from 2015.8.7 to 2015.8.8 on CentOS 7 using the official Salt repo.
20:55 mr_chris iggy, Bug report. https://github.com/saltstack/salt/issues/32183
20:55 saltstackbot [#32183]title: Salt Cloud 2015.8.8 not installing salt minions on new nodes | ### Description of Issue/Question...
20:56 GreatSnoopy joined #salt
20:56 iggy oh nice, so they backported that bug to 2015.8 from 2016.3
20:56 mr_chris :D
20:59 DammitJim roger that
20:59 DammitJim I"ll have to chew on this tonight
20:59 DammitJim thanks for your help. I know there is a way
20:59 beardedeagle this is going to sound stupid, but can you jinja in cloud files? (eg cloud.profiles.d files)
21:02 teryx510 joined #salt
21:03 teryx510 left #salt
21:03 tampakrap joined #salt
21:03 tampakrap joined #salt
21:03 DammitJim have a good one teatime ... I'll be on tomorrow morning
21:04 beardedeagle I assume the answer is yes
21:05 mr_chris iggy, I reopened the issue. Then I saw your post. Should I have left it closed?
21:05 UtahDave beardedeagle: actually, you can't yet
21:06 beardedeagle bummer
21:06 beardedeagle though I see a yet
21:06 UtahDave if you do a file.managed on your conf files, then you can. But not a run time. I think there's an open issue on that.
21:10 Muchoz joined #salt
21:11 beardedeagle oh yeah, I move cloud configs over to syndics and edit them their, but at runtime on the master of masters would be awesome. thanks for the answer.
21:11 beardedeagle there*, even
21:16 nyx_ joined #salt
21:19 hightekvagabond joined #salt
21:21 ahammond How do I conditionally upgrade a package? I'd like something like cmd.wait for pkg.latest
21:23 heaje joined #salt
21:24 flowstate erm, anyone here have any experience debugging jinja?
21:24 ahammond flowstate: just ask.
21:24 flowstate I'd like to render one of my states so I can verify that the jinja is resolving how I'd like, but I'm not sure how
21:24 hemebond flowstate: It'
21:24 flowstate I tried salt.renderers.jinja.render, which is from the docs, but it said it wasn't available
21:25 hemebond You could try just importing Jinja into an interactive Python session and render the template there. That's usually what I do.
21:25 flowstate ah, okay
21:27 mpanetta try state.show_sls flowstate
21:27 mpanetta It will render it and then display the rendered state
21:27 flowstate oh wow
21:27 flowstate that's exactly what I wanted
21:28 flowstate I should have looked at the state docs rather than the jinja oens
21:28 flowstate cheers!
21:28 mpanetta https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.state.html#salt.modules.state.show_sls
21:28 mpanetta flowstate: ^
21:28 mpanetta You are welcome :)
21:29 heaje joined #salt
21:30 rem5 joined #salt
21:30 rem5 joined #salt
21:31 flowstate awesome! I knew I must have had something wrong.
21:31 flowstate I've got a state: http://pastebin.com/2PTuJSeV
21:31 flowstate in which I'm setting the context of my managed file to have 'command'
21:31 flowstate so, according to show_sls, command is set correctly
21:32 flowstate but it's not being set inside context
21:32 mpanetta I've never used command like that before
21:32 onlyanegg joined #salt
21:33 flowstate well, in this case, command is just the variable name I'm passing to my file
21:33 flowstate I wonder if it's a reserved word
21:33 flowstate maybe I should rename it
21:33 mpanetta um you should probably use contents?
21:33 SubOracle joined #salt
21:33 mpanetta instead of context
21:34 flowstate I can't use contents, because I have a source file
21:34 mpanetta flowstate: Try contents instead of context
21:34 mpanetta Oh
21:34 mpanetta hrm
21:34 flowstate I'm just trying to pass in extra context to it so that in the file itself, I can just say {{ command }}
21:34 mpanetta OIC
21:34 flowstate (this could be all wrong-headed, dunno)
21:36 mpanetta flowstate: Try indenting command 2 more spaces
21:36 mpanetta It may be an indention issue
21:36 flowstate ahh, k
21:36 mpanetta indentation...
21:36 flowstate nope, that breaks it
21:36 mpanetta doh
21:36 flowstate ahh, the joys of YAML
21:37 flowstate I wonder if it's hating me because I did the multiline thing
21:38 mpanetta flowstate: maybe indent command and the lines under it by 2 spaces...
21:38 mpanetta Nah that looks right to me
21:38 mpanetta I'm wondering if it isn't seeing command under context
21:38 flowstate YESSS
21:38 mpanetta and instead it sees it next to context
21:38 flowstate nooooice
21:38 flowstate totally worked
21:38 mpanetta That fixed it?
21:39 flowstate yep!
21:39 mpanetta cool :)
21:39 flowstate tyvm!
21:39 mpanetta no problem :)
21:40 UtahDave joined #salt
21:41 SubOracle joined #salt
21:44 invalidexception joined #salt
21:53 hightekvagabond joined #salt
21:54 rem5 joined #salt
21:55 digitalhero joined #salt
21:56 nZac joined #salt
22:00 silicon_id joined #salt
22:01 silicon_id has anyone used the salt-cloud -S option? If so, what is the syntax? I've tried lots of different options, but so far get no results
22:02 onlyanegg joined #salt
22:03 UtahDave silicon_id: https://docs.saltstack.com/en/latest/topics/cloud/releases/0.8.2.html
22:04 UtahDave add an example like that to your /etc/salt/cloud file, but only listing the items you care about.
22:04 rem5 joined #salt
22:06 silicon_id So I can't just do 'salt-cloud -S private_ips' or some such...?
22:06 UtahDave correct
22:07 UtahDave you're limited to a predefined list you create.  I don't see why we couldn't add the ability to take a cli argument though.
22:07 silicon_id or if I add that to /etc/salt/cloud that's what will get returned... but can't do select-query with args?
22:07 silicon_id cli args would be a really nice feature
22:07 UtahDave correct
22:08 silicon_id Thanks a bunch, was pulling out what little hair I had left... :)
22:08 UtahDave :) you're welcome!   Feel free to open an issue on github requesting that feature.  I'd like to see that get in.
22:10 silicon_id awesome, thanks!
22:16 quasiben joined #salt
22:17 quasiben I'm following the instructions here: https://docs.saltstack.com/en/latest/topics/tutorials/multimaster_pki.html I'm a bit confused what do do the the pub files on a minion when I have multiple masters
22:18 spuder joined #salt
22:20 akhter joined #salt
22:20 UtahDave quasiben: You just need to make sure the minion's pub files are copied to the correct directory on each of the masters.
22:20 UtahDave something like   /etc/salt/pki/master/minions   (double check that path)
22:21 quasiben My understanding is that the minion looks for pki/minion/master_sign.pub
22:21 quasiben but I will have two of those files (from salt master 1 and salt master 2), correct ?
22:23 quasiben or should I just have one set of pem/pub files from one master and copy those to the other master ?
22:23 UtahDave I'm reading that particular tutorial, but yes, generally your masters will all share the same pem/pub files.
22:27 digitalhero joined #salt
22:29 om joined #salt
22:36 amcorreia joined #salt
22:39 djgerm joined #salt
22:39 djgerm What happens if you define a VM in a cloud map, vmotion the VM, then attempt to run a provision with the map again. I'm hoping it has the smarts to check the whole cluster and not just the initial defined host…. what are the work arounds for this if it's an issue?
22:40 akhter joined #salt
22:40 zenlot6 joined #salt
22:42 chums is there a way to get the value of one variable and use it get another variable?
22:42 nyx_ joined #salt
22:43 kliquori joined #salt
22:43 cilkay joined #salt
22:43 spuder_ joined #salt
22:45 chums Something like this... value['other_variable']
22:45 chums in a template
22:45 cilkay Hello. I'm running a masterless minion. I'd like to be able to provide progress messages on a web page as the various states are executed when I run "salt-call --local state.highstate". Any suggestions on how I can do that?
22:47 cilkay Are messages still put in the ZeroMQ message queue even if there is no master listening?
22:47 drawsmcgraw neat. Thanks mr_chris
22:53 devops joined #salt
22:55 hightekvagabond joined #salt
22:56 mpanetta cilkay: I don't think so.  I don't think it even has a queue with no master.
22:57 nZac joined #salt
22:57 mpanetta I know that it does not use ZMq for sure.  I believe there is an open issue for adding it to masterless so that you can still have event listeners even on masterless.
22:58 mpanetta (this would apply equally well to raet too I believe)
23:02 TheBigNoob joined #salt
23:03 linjan joined #salt
23:05 quasiben Thanks @UtahDave
23:07 cilkay mpanetta: So far, I've been stymied by every attempt at this. Is there any joy to be had here? https://docs.saltstack.com/en/latest/topics/event/index.html#firing-events-from-python
23:08 cilkay I don't really understand what that is doing.
23:08 akhter joined #salt
23:08 mpanetta cilkay: I don't think any of that works when you are masterless
23:09 subsignal joined #salt
23:09 TheBigNoob Have a question about using the extend function for reusing salt states, in this case cloning node version manager to multiple locations, but whenever I call high state it seems to only clone to the last inherited value through extend, is this by design, or is there something I can do so that it'll clone to each directory that i've extended to?
23:10 cilkay mpanetta: OK, I guess I'll have to resort to a hack where I "touch someFile" and then use inotify to monitor for a change in someFile. That is the reverse of what I'm doing now to trigger highstate from my web application.
23:11 TheBigNoob I've posted a gist with my example here, the end result is that it only clones to nvm:dir/platform
23:11 TheBigNoob https://gist.github.com/RyanShelf/8bb7efe70e75706a3bed
23:11 mpanetta cilkay: https://github.com/saltstack/salt/issues/15265
23:11 saltstackbot [#15265]title: Bring reactor system to minions | Right now reactors are a master-only feature, but it would be really nice to be able to react locally to events, especially if not using a master. For instance, it would be really awesome to react to udev events or to etcd events.
23:11 cilkay Yes, it would be "nice". :)
23:13 mpanetta cilkay: Looks like it is in the bleeding edge
23:13 mpanetta Maybe that means it will get in next release?
23:14 ajw0100 joined #salt
23:16 rem5_ joined #salt
23:17 hightekvagabond joined #salt
23:32 brianfeister joined #salt
23:35 kliquori joined #salt
23:36 abednarik joined #salt
23:43 aharvey joined #salt
23:43 mosu_ joined #salt
23:48 rem5 joined #salt
23:48 abednarik joined #salt
23:55 pppingme joined #salt
23:55 digitalhero joined #salt

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