Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-01-12

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

All times shown according to UTC.

Time Nick Message
00:00 ipmb clever! "echo service salt-minion restart | at now + 1 minute"
00:00 whytewolf ShanDj: yeap, I would put the -l debug between salt-call and state.apply. but it should work that way also
00:00 whytewolf personal preference is all
00:02 ShanDj http://paste.debian.net/908341/
00:03 whytewolf wtf
00:03 whytewolf Could not find file from saltenv 'base', 'salt://top/top.sls'
00:04 ShanDj hmmm
00:04 UtahDave left #salt
00:04 ShanDj im not sure where that additional thing is coming from one second
00:04 druonysus joined #salt
00:05 ShanDj thats an old
00:05 ShanDj config...
00:05 ShanDj i can show you my gitfs remotes config..
00:05 ShanDj one second
00:05 onlyanegg joined #salt
00:06 ShanDj http://paste.debian.net/908342/
00:06 ShanDj its almost like the minion has it cached somehow....
00:06 sp0097 left #salt
00:07 ShanDj because #    - mountpoint: salt://top was uncommented out previously
00:08 whytewolf do you have any settings like default_top in your miion config?
00:08 ShanDj one sec
00:08 PatrolDoom ShanDj: saltutil.clear_cache (minions do cache stuff)
00:08 * PatrolDoom goes back into hiding
00:08 sarlalian joined #salt
00:09 ShanDj ok i think i found the culprit
00:09 ShanDj cat state_top.conf state_top: top/top.sls
00:09 ShanDj thats in master.d
00:09 ShanDj damn
00:09 ShanDj egg on face
00:10 abednarik joined #salt
00:10 * PatrolDoom makes ommlette
00:10 whytewolf actually that was an interesting rabbit hole
00:10 ShanDj i dont know how y'all remain as patient as you do! but much appreciated. thanks a ton
00:11 XenophonF whytewolf is the best
00:11 whytewolf i did tech support for 3 years in my early days in tech. made a rock out of me :P
00:12 PatrolDoom bah turned me into dust
00:12 whytewolf well you can only explain what a coma is to so many people
00:12 PatrolDoom heh
00:12 falstaff_ There was an article by one of the Lyft ops people in 2014 I read comparing ansible to salt, and one of the things the guy said was that the Salt community was nicer
00:13 falstaff_ How long have you folks been in here :p
00:13 whytewolf me? since about 2012, but i didn't really start helping out till about 2013/2014
00:20 ShanDj man..its working!
00:20 ShanDj im in tears....
00:20 ShanDj almost
00:20 ShanDj have a good evening!
00:20 whytewolf you as well
00:21 XenophonF i've been here since around late 2014
00:21 XenophonF the community is fantastic
00:22 whytewolf falstaff_: lyft ops? most likely that was writen by Ryan Lane then.
00:23 toastedpenguin joined #salt
00:25 whytewolf and yeah the community is one of the reason i have stayed around salt for so long. so many OSS projects comunities can be rather elitiest
00:28 falstaff_ Yeah, that was the article
00:29 falstaff_ http://ryandlane.com/blog/2014/08/04/moving-away-from-puppet-saltstack-or-ansible/
00:29 mavhq joined #salt
00:38 pipps joined #salt
00:38 orichards joined #salt
00:39 Edgan falstaff_: I have used Puppet heavily. Ansible and Chef, some. I currently use Saltstack now. Puppet is incomplete, Ansible is incomplete without Tower(one day open source), Chef is the closest competitor(many complaints but the biggest are Ruby is not a good choice for configuration management tools and not a fan of omnibus). Not to say that Saltstack doesn't have it's issues.
00:39 hemebond 4,120 issues in fact :-D
00:40 Edgan hemebond: Saltstack needs to get way better at closing tickets. I see issues forever left open after it is obviously closed all the time.
00:41 hemebond There are a lot of old tickets that could be closed off.
00:41 Edgan hemebond: But there are also lots of bugs
00:42 Edgan hemebond: Read one today that said "I want this feature to work like X." So it got changed to X. But now I want the old behavior, Y. So I filed a new issue asking for both.
00:42 hemebond LOL
00:42 hemebond That's terrible.
00:42 XenophonF there are a bunch of people who use the github issues log like tech support, too
00:42 XenophonF which isn't really appropriate
00:42 onlyanegg joined #salt
00:42 XenophonF that's what irc or the mailing list or paid support is for
00:43 pipps joined #salt
00:43 hemebond 1,873 bugs
00:43 sarlalian joined #salt
00:43 Edgan XenophonF: mailing lists are dying, and even irc seems to be slowly dying. It is more about web forums and in some cases Slack these days.
00:43 XenophonF yeah i know :(
00:43 ninjada joined #salt
00:43 XenophonF i'm not happy about it
00:43 hemebond IRC seems to be as popular as ever.
00:44 hemebond I definitely prefer IRC over forums for support.
00:44 XenophonF same
00:44 Edgan hemebond: look at how many are in #kubernetes in IRC and then look in Slack
00:44 whytewolf as someone who remebers IRC in the 90's it is no where near where it once was
00:44 hemebond But the community has to be big enough to be able to support people round the clock on IRC.
00:44 Edgan There are also so many people here that lurk, and nothing else. Even I do that in most channels.
00:44 PatrolDoom slack isn't meant to be used for community support channels, per slack themselves
00:45 PatrolDoom but ppl still do it :\
00:45 Edgan PatrolDoom: Exactly :)
00:45 XenophonF ok i think i'm ready to migrate my salt master to a new server
00:46 Edgan PatrolDoom: If they really wanted to kill it, they wouldn't provide free service.
00:46 XenophonF it's been a while since i last bootstrapped a master so i'm hoping my scripts still work :)
00:46 Edgan XenophonF: I have a way to use salt-ssh to bootstrap salt-master
00:46 bowhunter joined #salt
00:46 XenophonF cool!
00:47 Edgan XenophonF: I bootstrap dns, artifactory, and salt-master. Then I can do everything else via salt-master.
00:47 PatrolDoom Edgan: ah see thats the magic, give something ppl want for free, wait until it doesn't work then BOOM paid version
00:47 XenophonF artifactory sounds familiar - what is it?
00:47 XenophonF vagrant? test-kitchen?
00:48 Edgan XenophonF: artifactory is a commerical package/artifact repo management package
00:48 pipps joined #salt
00:49 Edgan XenophonF: I use it to host our apt repositories and reverse proxy third party repositories
00:49 Edgan XenophonF: I use vagrant for VPN bubbles needed for different AWS accounts.
00:50 Edgan XenophonF: I need to get started with test-kitchen, but use salt-ssh to test new salt code against AWS instances.
00:50 XenophonF ah
00:50 XenophonF neat
00:51 Edgan XenophonF: I also have my own python script for easily making AWS instances with salt-api/key integration.
00:52 cyteen joined #salt
00:55 XenophonF my approach to salt master disaster recovery has been to keep states in github and pillars in codecommit, with a shell script to re-deploy the master (an EC2 instance at work and a physical server at home)
00:56 XenophonF the only gaps are my salt master's gpg keys and the list of registered minions
00:57 hemebond Why would use you Consul over grains?
00:58 Edgan hemebond: Consul lets you do dynamic dns. It is closer to a faster/more dynamic salt mine.
00:58 Edgan hemebond: It also has health checks to control the dynamic dns.
00:58 hemebond So Consul itself can push the data?
00:59 netcho joined #salt
00:59 Edgan hemebond: The setup I saw used dnsmasq to split a host's dns between consul for the consul domain and normal dns servers
01:01 jas02 joined #salt
01:06 sh123124213 joined #salt
01:08 Jimlad joined #salt
01:09 woodtablet left #salt
01:10 mavhq joined #salt
01:10 LostSoul joined #salt
01:11 amontalban joined #salt
01:11 amontalban joined #salt
01:11 ssplatt joined #salt
01:11 mosen joined #salt
01:31 hemebond Hmm. Reading over some tutorials I might stick to Salt Mine.
01:39 hemebond Wait... I suppose having the data in Pillars would be nice.
01:39 orichards joined #salt
01:39 hemebond Oh, I already do that with Mine.
01:40 johnkeates joined #salt
01:49 netcho joined #salt
01:52 Praematura joined #salt
02:00 bltmiller joined #salt
02:01 sp0097 joined #salt
02:02 jas02 joined #salt
02:05 mavhq joined #salt
02:08 rml_ joined #salt
02:08 eprice joined #salt
02:29 amontalban joined #salt
02:29 amontalban joined #salt
02:34 DammitJim joined #salt
02:40 sebastian-w joined #salt
02:41 orichards joined #salt
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.4, 2016.11.1 <+> 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
02:48 catpiggest joined #salt
02:49 pipps joined #salt
02:49 mpanetta joined #salt
02:50 netcho joined #salt
03:24 keldwud joined #salt
03:26 onlyanegg joined #salt
03:35 cyborg-one joined #salt
03:37 keldwud joined #salt
03:39 orichards joined #salt
03:41 keldwud joined #salt
03:43 onlyanegg joined #salt
03:45 mavhq joined #salt
03:50 citaret joined #salt
03:54 ponyofdeath joined #salt
03:55 citaret left #salt
03:55 citaret joined #salt
03:56 citaret Some of the agents trigger alarm with 'Zabbix agent on xxx is unreachable for 15 minutes', however, the vps works well, how can i solve the problem? any idea?
03:56 hemebond Wrong channel.
03:57 citaret sorry
03:59 hemebond No problem ????
04:13 raspado joined #salt
04:13 amontalban joined #salt
04:13 amontalban joined #salt
04:22 justanotheruser joined #salt
04:31 st8less joined #salt
04:32 jas02 joined #salt
04:40 DEger joined #salt
04:45 hemebond I really _hate_ the job function names.
04:49 spuder joined #salt
04:51 netcho joined #salt
04:52 spuder_ joined #salt
04:56 spuder joined #salt
05:03 raspado joined #salt
05:05 ninjada joined #salt
05:08 spuder joined #salt
05:11 spuder joined #salt
05:15 j4son joined #salt
05:17 mpanetta joined #salt
05:21 canaar joined #salt
05:26 ravi___ joined #salt
05:33 ninjada joined #salt
05:41 orichards joined #salt
05:44 borgstrom joined #salt
05:49 netcho joined #salt
05:51 mikea joined #salt
05:53 mikea anyone got a suggestion for a pycharm plugin for *.sls files that matches yaml and jinja syntax?
05:58 qchillz joined #salt
06:03 jas02 joined #salt
06:03 _JZ_ joined #salt
06:08 onlyanegg joined #salt
06:12 eprice joined #salt
06:12 mavhq joined #salt
06:16 amontalban joined #salt
06:19 J0hnSteel joined #salt
06:20 jas02 joined #salt
06:24 MTecknology I'm doing something dumb here, would love someone checking over it for me, https://gist.github.com/MTecknology/53852f3516f6d420fcba67cbaab64ee4 , I get Rendering SLS 'base:sys.files.openvpn' failed: Jinja variable 'str object' has no attribute 'name'
06:25 param joined #salt
06:28 MTecknology ah, I see what I did wrong
06:38 felskrone joined #salt
06:41 orichards joined #salt
06:41 ivanjaros joined #salt
06:43 jas02 joined #salt
06:43 mikea MTecknology, for in a dict iterates the keys not the actual dict objects
06:44 jas02 joined #salt
06:45 jas02 joined #salt
06:47 MTecknology Isn't -l trace supposed to spit out rendered sls files?
06:48 MTecknology ah, nevermind, that's apparently only if everything renders
06:50 mavhq joined #salt
06:53 PatrolDoom joined #salt
06:54 PatrolDoom joined #salt
06:56 MTecknology mikea: 1) Thanks! 2) Any thoughts on this one? https://gist.github.com/MTecknology/53852f3516f6d420fcba67cbaab64ee4  When I look at -l trace, I see "#client" show up in the output, but {% if files_client %} down lower doesn't seem to be true
06:58 MTecknology ah, crap.. this one is because jinja uses true/false instead of True/False
06:59 MTecknology that was a problem, but apparently not the only one
07:03 sh123124213 joined #salt
07:09 candyman88 joined #salt
07:14 bocaneri joined #salt
07:14 rem5 joined #salt
07:17 mavhq joined #salt
07:21 jaybocc2 joined #salt
07:23 bocaneri joined #salt
07:25 netcho joined #salt
07:25 netcho joined #salt
07:31 citaret joined #salt
07:31 Mandorath joined #salt
07:34 impi joined #salt
07:40 orichards joined #salt
07:43 mavhq joined #salt
07:44 inad922 joined #salt
07:57 netcho joined #salt
08:00 orichards joined #salt
08:03 netcho is github down for u guys?
08:03 hemebond Yes
08:03 netcho it broke in the middle of my push :)
08:04 hemebond Ah! I blame you.
08:04 netcho cursed ;)
08:04 ninjada joined #salt
08:04 hemebond Emailing them now with your IRC handle.
08:04 netcho :)
08:05 IdidNotBrokeGitH :P
08:05 hemebond All logged. Can't hide from me.
08:06 * IdidNotBrokeGitH is sendis huge amount of DDOS to hemebond's logs
08:11 moeyebus9 joined #salt
08:17 dkrae joined #salt
08:22 JohnnyRun joined #salt
08:28 orichards joined #salt
08:29 dariusjs joined #salt
08:31 heyimawesome joined #salt
08:35 jaybocc2 joined #salt
08:45 jaybocc2 joined #salt
08:46 DanyC joined #salt
08:49 _KaszpiR_ joined #salt
08:54 jaybocc2 joined #salt
08:54 dariusjs joined #salt
08:56 Dr_Jazz joined #salt
09:04 keimlink joined #salt
09:09 teclator joined #salt
09:09 CEH joined #salt
09:10 heyimawesome joined #salt
09:11 DanyC joined #salt
09:15 eprice joined #salt
09:15 dariusjs joined #salt
09:16 DanyC joined #salt
09:19 amontalban joined #salt
09:21 kbaikov joined #salt
09:28 colttt joined #salt
09:30 s_kunk joined #salt
09:32 mikecmpbll joined #salt
09:35 hemebond Does anyone use grains.items in their mine_functions?
09:40 stiefkind left #salt
09:41 netcho joined #salt
09:41 inad922 joined #salt
09:44 inad922 joined #salt
09:49 mavhq joined #salt
09:49 sfxandy joined #salt
09:54 darioleidi joined #salt
09:56 darioleidi joined #salt
10:06 inad922 joined #salt
10:06 toanju joined #salt
10:06 darioleidi joined #salt
10:06 daxroc hemebond sure what's up
10:07 hemebond Just curious how well it scaled and if there were any problems doing it.
10:07 hemebond If you had a tonne of minions I wonder how much it would tax the master collecting that much data.
10:08 hemebond But since I seem to be after grains it seems odd to create a function for each grain I want.
10:08 daxroc As far as I understand the mine doesn't scale too well - I could be wrong tho
10:08 jalaziz joined #salt
10:09 daxroc hemebond: you would need to show and example - I'm only new so I can only provide very little feedback
10:09 hemebond An example of what?
10:09 daxroc Your mine_functions:
10:10 daxroc where are you defining them?
10:10 hemebond I use pillars to define them.
10:10 hemebond Two of them are just getting the os and kernel grains; each one a separate mine_function.
10:10 K1412 joined #salt
10:11 daxroc I don't think they need to be separate. You can tag multiple grains in one grains.item
10:12 hemebond Probably. I wonder if even that's better than just grains.items
10:12 daxroc It depends the mine has a cache so you can avoid hitting each minion
10:13 hemebond That's true.
10:13 hemebond I wonder if the minions send their grains to the master already.
10:14 hemebond So they can be used, e.g., for pillars and top targeting.
10:18 mavhq joined #salt
10:18 colttt joined #salt
10:19 amontalban joined #salt
10:19 amontalban joined #salt
10:31 dariusjs joined #salt
10:36 inad922 joined #salt
10:43 darioleidi joined #salt
10:46 JohnnyRun joined #salt
10:47 ninjada joined #salt
10:49 sfxandy joined #salt
10:52 bookwar joined #salt
11:06 jaybocc2 joined #salt
11:08 sh123124213 joined #salt
11:08 Trauma joined #salt
11:14 Trauma joined #salt
11:22 ronnix joined #salt
11:23 jaybocc2 joined #salt
11:23 tmrtn[m] left #salt
11:23 M-liberdiko left #salt
11:23 Mads[m] left #salt
11:23 dnull[m] left #salt
11:24 M-MadsRC left #salt
11:27 legreffier joined #salt
11:27 netcho joined #salt
11:28 ronnix joined #salt
11:31 bookwar joined #salt
11:34 HRH_H_Crab hi all
11:34 HRH_H_Crab i think im running in to this problem: https://github.com/saltstack/salt/issues/38521
11:34 saltstackbot [#38521][OPEN] State cloud.present on AWS: TypeError: 'NoneType' object is not iterable | Description of Issue/Question...
11:35 abednarik joined #salt
11:35 sh123124213 joined #salt
11:36 HRH_H_Crab i guess (as this is open) it hasn't been fixed yet, and i should either wait, or revert to an earlier version
11:36 sh123124213 joined #salt
11:42 NV joined #salt
11:45 hemebond If you're using AWS, I wouldn't use 2016.11
11:45 dariusjs joined #salt
11:46 jas02 joined #salt
11:46 sh123124213 joined #salt
11:49 ninjada joined #salt
11:49 netcho joined #salt
11:53 jas02 joined #salt
11:58 lasseknudsen joined #salt
12:03 lasseknudsen2 joined #salt
12:05 Trauma joined #salt
12:11 JohnnyRun joined #salt
12:16 saltnewbie_ joined #salt
12:16 eprice joined #salt
12:17 saltnewbie_ Hello - trying to get /etc/hosts file updated with ip and hostname. I'm using host.present, and specify ip and then names as fqdn and hostname. But I want FQDN to come first - any way to do this?
12:21 amontalban joined #salt
12:24 dariusjs joined #salt
12:25 jas02 joined #salt
12:25 johnkeates joined #salt
12:29 mikecmpbll joined #salt
12:30 _Cyclone_ joined #salt
12:30 HRH_H_Crab hemebond: thanks for advice.
12:30 HRH_H_Crab downgrading a version made things a lot happier.
12:31 mikecmpbll joined #salt
12:33 mikecmpbll joined #salt
12:33 stooj joined #salt
12:36 netcho joined #salt
12:39 amontalban joined #salt
12:41 saltnewbie saltnewbie_ : can you paste the state
12:45 Trauma joined #salt
12:45 CEH joined #salt
12:45 jaybocc2 joined #salt
12:45 saltnewbie_ Here you go http://paste2.org/FcWdbUZ5
12:50 ninjada joined #salt
12:50 Trauma joined #salt
12:50 daxroc On the master how do I get the eth0 ip address ? grains.item ?
12:51 _Cyclone_ joined #salt
12:51 amontalban joined #salt
12:51 amontalban joined #salt
12:52 daxroc *network.interface_ip eth0
12:57 babilen daxroc: Haven't been through this yesterday?
12:57 babilen *we
12:59 K1412 Hello everyone, I have a little question that look maybe stupid but I don't really understand how I must use the pillar.example in a formula (example for php-formula). Is there an example how we can use it ?
13:00 jaybocc2 joined #salt
13:01 rylnd joined #salt
13:02 stooj joined #salt
13:04 ronnix joined #salt
13:05 onlyaneg1 joined #salt
13:05 saltnewbie saltnewbie_ : try this https://github.com/saltstack/salt/issues/29592
13:05 saltstackbot [#29592][OPEN] host.present may break /etc/hosts file format | Dear all,...
13:06 numkem joined #salt
13:08 babilen K1412: Which setting would you like to set?
13:11 saltnewbie_ saltstackbot - is there a recommended way to update /etc/hosts with salt?
13:11 Trauma joined #salt
13:11 saltnewbie join http://webchat.freenode.net/?channels=salt&amp;uio=Mj10cnVlJjk9dHJ1ZSYxMD10cnVl83
13:11 babilen saltnewbie_: It's a "bot"
13:12 babilen saltnewbie: This is #salt
13:12 babilen saltnewbie, saltnewbie_: I am curious: Why don't you talk face to face? :)
13:12 saltnewbie yep, will explain him in #29592
13:13 saltnewbie_ we fell out earlier :)
13:13 saltnewbie :) (:
13:14 orichard_ joined #salt
13:14 Trauma joined #salt
13:16 mikecmpb_ joined #salt
13:18 laidback joined #salt
13:22 abednarik joined #salt
13:23 K1412 babilen: I would only configure pools of php-fpm (example modifiy the listen to listen 127.0.0.1)
13:25 laidback hello, does anybody know if its possible to extend a state for e.g. usercreation, which has an ID with a variable? Something like 'base-user' --> extend base user to some special user with specific home etc.
13:30 XenophonF laidback:
13:30 XenophonF laidback: there are a couple of ways you can approach this
13:31 XenophonF you could transform your state into a template (formula)
13:31 XenophonF alternatively, you can extend the state using 'extend'
13:32 laidback exactly that one.
13:32 XenophonF https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
13:32 XenophonF https://docs.saltstack.com/en/latest/ref/states/extend.html
13:32 XenophonF i recommend using formulas for this
13:34 XenophonF extend mutates things non-locally, which while useful can be very confusing for you in the future
13:34 XenophonF here's are two state formulas that use both
13:34 XenophonF https://github.com/irtnog/shibboleth-formula
13:34 XenophonF https://github.com/irtnog/tomcat-formula
13:35 XenophonF my tomcat-formula includes a SLS named tomcat.shibboleth-idp that uses extend to mutate states inside the shibboleth.idp SLS
13:35 XenophonF think of it as the glue that binds the two formulas together
13:36 XenophonF to my mind that's the only acceptable use case for extend
13:36 laidback many thanks, i need to go through that, but i think it might be what i am looking for.
13:37 XenophonF if you want to customize states in an SLS based on external input, say a user that needs their home dir to be one thing on one minion and something different on another, then i think a template is the better choice
13:38 babilen K1412: So https://github.com/saltstack-formulas/php-formula/blob/master/pillar.example#L53 ?
13:39 laidback so having e.g. an user formula with an user.present state with an ID with a variable for mass creation of users is per definition not extenable, right?
13:40 JohnnyRun joined #salt
13:40 XenophonF sorry i'm not following you
13:40 XenophonF can you post an example of what you mean? gist or ix.io or something?
13:41 XenophonF (i'm using https://github.com/saltstack-formulas/users-formula for all my local account creation needs, btw)
13:41 K1412 babilen: Yes it's that but I not find how I must use it. I must write it directly in my top.sls or I must load the pilar.example file with a precise syntax maybe (I'm totaly new with salt so I missed surely something that is logical)
13:41 XenophonF you can extend any state as long as you know the state ID
13:44 dariusjs joined #salt
13:45 laidback https://gist.github.com/laidback/1331532e5fb94ae7de2a21574a01e9ab
13:46 daxroc babilen no was using the salt cli to find a particular set of nodes
13:52 rem5 joined #salt
13:53 Tanta joined #salt
13:53 laidback ok, got the mechanics. The problem is that you cannot pass pillar data like params to states/formulas and instead configure the state behaviour thorough passed data https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#configuring-formula-using-pillar
13:55 laidback every few months i find myself trying to 'program' salt instead of declaring the state.
13:55 Trauma joined #salt
13:57 moeyebus9_ joined #salt
13:58 Trauma joined #salt
14:00 XenophonF i kind of see where you're going with this
14:01 XenophonF i take a somewhat different approach
14:01 XenophonF https://github.com/irtnog/salt-pillar-example/blob/master/salt/example/com/init.sls
14:02 XenophonF er i mean
14:02 XenophonF https://github.com/irtnog/salt-pillar-example/blob/master/salt/example/com/init.sls#L18
14:03 XenophonF hm, that's not as good as one of my private pillars
14:03 XenophonF let me clean that up and post it for you to see
14:03 amontalban joined #salt
14:03 amontalban joined #salt
14:05 babilen K1412: Pillars are data that are targeted to minions. These data can be used in states, but are independent from it.
14:06 babilen I'd recommend to work through https://docs.saltstack.com/en/getstarted/config/index.html in order to play with pillars and states a little
14:06 lasseknudsen joined #salt
14:07 Trauma joined #salt
14:07 babilen daxroc: You were using the CLI to find a particular set of nodes? How does that relate to your question "On the master how do I get the eth0 ip address ? grains.item ?" ?
14:07 CEH joined #salt
14:10 babilen Which IP address do you refer to here? That of a minion or the master itself? Why is it important that it's the address on eth0 ?
14:12 brousch__ joined #salt
14:14 beardedeagle joined #salt
14:14 djgerm joined #salt
14:16 onlyanegg joined #salt
14:20 K1412 babilen: normaly I can use the pillar.example directly withtout modifying it if load it in my top.sls ?
14:21 XenophonF laidback: in case you grep the logs later, here's how i handle user account creation in Pillar - https://github.com/irtnog/salt-pillar-example/blob/master/defaults/accounts.sls
14:24 ronnix joined #salt
14:32 babilen K1412: No, not at all
14:33 babilen pillar.example files typically document the entirety of options you might want to set and might even document options that can't be set at the same time
14:33 Trauma joined #salt
14:33 babilen A lot of them also document the default values that would be used if you don't set anything at all. I would recommend to only include exactly the bits that you know you need and nothing else
14:34 mpanetta joined #salt
14:34 K1412 babilen: ok I will try and come back if I cannot make it work. Thank for your time
14:38 Brew joined #salt
14:39 amontalban joined #salt
14:39 amontalban joined #salt
14:40 dariusjs joined #salt
14:42 mavhq joined #salt
14:47 candyman88 joined #salt
14:47 racooper joined #salt
14:49 ssplatt joined #salt
14:51 netcho joined #salt
14:51 ninjada joined #salt
14:52 cyteen joined #salt
14:54 Shirkdog joined #salt
14:54 Shirkdog joined #salt
14:54 DammitJim joined #salt
14:55 austin_ joined #salt
15:02 mikecmpbll joined #salt
15:07 mpanetta joined #salt
15:17 amontalb1n joined #salt
15:21 eprice joined #salt
15:21 t0m0 joined #salt
15:25 yuhl_ joined #salt
15:28 Sketch hmm, is there a way to specify what salt version gets installed by salt-cloud?
15:28 Sketch my master is 2016.3.4, but new cloud minions are getting 2016.11.1
15:32 _JZ_ joined #salt
15:35 ronnix joined #salt
15:37 seanz joined #salt
15:38 alvinstarr joined #salt
15:39 pcdummy Sketch: think salt-cloud uses salt-bootstrap which you can specify the version for.
15:39 beardedeagle you define it in your profiles
15:46 dmouts joined #salt
15:47 Sketch aha, just script_args: git v2016.3 ?
15:48 Sketch i don't suppose i can use jinja in cloud profiles ;)
15:48 Sketch {% set salt_version = ...
15:49 Sketch i guess i should set it in cloud rather than individual profiles
15:50 spuder joined #salt
15:54 Sketch hmm, this seems to be way more verbose and slow than however it installs by default
15:55 DEger joined #salt
15:58 Sketch and eventually fails entirely. "script_args: stable 2016.3" is better
15:59 keltim joined #salt
16:03 dariusjs joined #salt
16:06 adminxor joined #salt
16:08 adminxor Hi folks, can some point me to the code or tell me how salt master saves public keys of minions? does it do a reverse DNS lookup of the minion's IP and saves the public key with the name obtained from the lookup? or is it something else?
16:14 Kelsar adminxor: the client sents the key on connect
16:15 Kelsar the minion i mean
16:15 yuhl__ joined #salt
16:15 adminxor Kelsar: right, but I am specifically interested on the way master saves the key to a file, how does it determine the name of the file?
16:16 whytewolf by minion id
16:16 adminxor and the minion id is included in the public key?
16:16 tiwula joined #salt
16:17 yuhl_ joined #salt
16:18 Reverend would you guys say it's relatively safe to do: `salt \* cmd.run "rm -f /etc/salt/minion_id; systemctl restart salt-minion"` ?
16:19 Reverend all my minion ID's are fucked because of precooked images, I need a fix for all the boxes we -currently- have
16:24 Mattch joined #salt
16:26 sarcasticadmin joined #salt
16:26 onlyanegg joined #salt
16:27 cscf Anyone using network.routes? On my ubuntu 16.04 server it seems to be creating malformed output with each argument on it's own line
16:29 cscf Reverend, I think you'd want to rm pki as well, since otherwise the master will see the same key as a different minion and complain.  But I don't know if it's safe.  test it on a dev box.
16:29 sp0097 joined #salt
16:32 winsalt why cant file state stuff use a local file as a source?
16:33 Mattch joined #salt
16:36 babilen winsalt: What would that achieve?
16:37 abednarik joined #salt
16:37 ssplatt adminxor: i don’t believe the minion id is included in the key in any way. it is possible to use the same key for different minion-id’s
16:37 winsalt states operate locally, so why does it care?  cant python read a filepath?
16:37 daxroc this is aweful but ... set myfiledata = salt['cmd.run']('cat /my/localfile')
16:38 adminxor ssplatt: how is /etc/salt/minion_id generated? I want to see the python code that does it, if possible
16:39 ssplatt generally by hostname
16:39 ssplatt but you can always overwrite it
16:39 ssplatt salt-bootstrap lets you include a minion-id as a variable too.  so does salt-cloud iirc
16:40 ssplatt you can do so with vagrant-salt and kitchen-salt too
16:40 mpanetta joined #salt
16:40 renaissancedev joined #salt
16:40 ssplatt …change the minion id after the machine is up, i mean
16:41 ssplatt but you can see in vagrant that the default minion id will be ‘debian’ or whatever your image’s hostname is by default.
16:41 Reverend cscf: i'll test it on a box I can kill and see what happens :)
16:42 renaissancedev I've got an orchestrate state that I want to run via the scheduler in the salt master process, but it appears to be having some issues. Unfortunately, the documentation of how to view or debug schedules on the master is lacking. Are there any commands to run to see what the status of the master schedule is?
16:45 lws joined #salt
16:45 cyteen joined #salt
16:46 ronnix joined #salt
16:47 adminxor ssplatt: thanks a bunch
16:49 bowhunter joined #salt
16:51 funabashi joined #salt
16:52 ninjada joined #salt
16:53 glenn joined #salt
16:54 glenn Is there any documentation for writing your own Beacons?
16:55 ssplatt is the beacons section in the docs not giving you what you need
16:55 teclator joined #salt
16:56 glenn I guess it's a bit sparse on the writing a custom beacon.
16:58 heaje Is it bad that when I see the word "beacon" I instantly want bacon?
16:58 om2 joined #salt
16:58 whytewolf only if you don't have bacon near by
16:59 heaje too true.  Maybe the Salt dev who came up with the "beacon" term was eating breakfast at the time.
16:59 tapoxi how do virtual packages work in salt? for example, pkg, does it attempt loading everything and calling _virtual_?
17:00 tapoxi sorry virtual modules
17:01 spuder joined #salt
17:07 ssplatt tapoxi: i’d imaging when you call the pkg state it then looks at what OS and distribution it is on and uses the proper module accordingly.
17:07 Sarph joined #salt
17:07 ssplatt i haven’t looked at the actual code tho
17:07 Rev_sleeps joined #salt
17:08 ssplatt but i could see there being an “issue” if you are on debian, for example, and have both yum and apt installed. not sure if it would see “debian” and choose “apt” but i’d like to think it would
17:09 ashmckenzie joined #salt
17:09 ronnix joined #salt
17:09 nixjdm joined #salt
17:10 Ahlee joined #salt
17:10 raspado joined #salt
17:11 aberdine joined #salt
17:11 v0rtex joined #salt
17:15 pipps joined #salt
17:17 renaissancedev ssplatt: You can also set a minion config of `providers` to override auto-detection for things like service provider (e.g. Upstart, Systemd, etc.)
17:18 whytewolf ssplatt: most of the virtual packages have checks for operating system.
17:20 Sarphram joined #salt
17:23 impi joined #salt
17:24 woodtablet joined #salt
17:25 Sarph joined #salt
17:32 vickistan joined #salt
17:32 whytewolf tapoxi: iirc it tries to at least be smart and try loading a module named <virtual>.py first. they loads modules in order till it finds one that matches __virtual__ and saves that in the dict used for that module type.
17:33 whytewolf can be overridden
17:35 SaucyElf joined #salt
17:41 pipps joined #salt
17:41 beardedeagle Has anyone encounterd issues with `SaltReqTimeoutError, retrying` when Connecting to socket: /var/run/salt/master/master_event_pub.ipc
17:42 beardedeagle I can't run any commands because of this
17:42 beardedeagle 2016.3.4
17:44 Rev_sleeps why is git latest the -only- state that uses "require:" instead of requires >_<
17:49 iggy what states use requires?
17:49 wybczu joined #salt
17:49 toastedpenguin joined #salt
17:50 pipps joined #salt
17:51 toastedpenguin anyone tackled using salt to stripe windows drives, assign drive letter and name at boot?
17:53 anotherzero joined #salt
17:54 ninjada joined #salt
17:56 Praematura joined #salt
17:57 nidr0x joined #salt
18:00 abednarik joined #salt
18:03 _Cyclone_ joined #salt
18:03 cyborg-one joined #salt
18:08 cprior joined #salt
18:10 moeyebus9 joined #salt
18:11 beardedeagle I tried upping my worker threads, but that did nothing
18:13 amcorreia joined #salt
18:13 netcho joined #salt
18:14 hackel joined #salt
18:17 Trauma joined #salt
18:17 scoates joined #salt
18:18 whytewolf Reverend: um, no state uses requires. https://docs.saltstack.com/en/latest/ref/states/requisites.html#require
18:21 voldz1tic3n joined #salt
18:22 onlyanegg joined #salt
18:24 eprice joined #salt
18:24 morissette joined #salt
18:24 Nahual joined #salt
18:25 anotherzero joined #salt
18:27 edrocks joined #salt
18:31 Heartsbane joined #salt
18:31 Heartsbane joined #salt
18:32 netcho joined #salt
18:32 cyteen joined #salt
18:47 edrocks joined #salt
18:50 sarlalian joined #salt
18:51 Edgan joined #salt
18:54 ninjada joined #salt
18:55 druonysus joined #salt
18:55 druonysus joined #salt
19:01 pipps joined #salt
19:04 bowhunter joined #salt
19:05 alvinstarr joined #salt
19:05 ivanjaros joined #salt
19:07 Reverend whytewolf: apparently mine do. :S this is disconcerting
19:07 Reverend haha
19:07 Reverend I -may- have to grep for that.
19:09 sebastian-w joined #salt
19:11 aagbds joined #salt
19:18 mikecmpbll joined #salt
19:19 abednarik joined #salt
19:23 morissette joined #salt
19:24 moooooo joined #salt
19:27 moeyebus9 joined #salt
19:31 moooooo hey , after upgrading to 2016.11.1 i'm noticing a couple of issues (around 50 minions). 1) Highstate timeouts: Salt request timed out. The master is not responding. If this error persists after verifying the master is up, worker_threads may need to be increased. (Worker threads are at 50)  and 2) Timeouts on small config files:      Comment: Unable to manage file: Message timed out
19:33 pipps joined #salt
19:34 orichards joined #salt
19:34 vodik with the x509 stuff, am i missing something, but is there an easy way of generating a pem file that has the key/crt together?
19:35 gimpy2938 left #salt
19:36 toanju joined #salt
19:39 wybczu hey, I'm curious how do you do salt-masters monitoring - is anyone collecting some metrics, e.g. number of executed/succeeded/failed jobs?
19:39 djgerm +1 to that @wybczu. There's folk who track the returns
19:40 djgerm but I've not seen a great (read idiot friendly) set of steps for that
19:40 Tanta built self-reporting jobs
19:40 Tanta use a common interchange format liek json
19:40 Tanta then you can do whatever you like
19:40 orichards joined #salt
19:42 Reverend wybczu: there's a nice datadog implimentation for salt - adds checkpoints to your monitoring dash when you push new changes.
19:42 Reverend means when someone pushes some dodgy shit you can see where and when it affected shit
19:43 wybczu thx!
19:43 djgerm wowa?! there is?
19:43 wybczu I was also thinking about parsing the salt event stream
19:43 wybczu and create metrics based on that
19:43 Reverend djgerm: As far as I've seen, yes. Either that or someone wrote one as an addon using the datadog custom datastreams.
19:44 s_kunk joined #salt
19:44 Reverend let me find it for you
19:44 Reverend hang on
19:44 vodik i've been meaning to write one for influx. emit an event that grafana can plot
19:44 vodik there already is an influxdb returner, so maybe its already there
19:44 ssplatt joined #salt
19:45 djgerm @Reverend I will be so VERY stoked to see this. I've only see http://docs.datadoghq.com/libraries/#community-integration-saltstack
19:46 Reverend I was looking at it for datadog, as we're (almost) ready to make a switch from NR to them. That was one of my requirements. I should really use my bookmarks some more :(
19:46 Reverend if there isn't one and I'm now talking out of my ass, I'll have to write one and send it your way as a peace offering :P haha
19:47 djgerm I'll pay in tasty beverages and worship at your feet
19:48 Reverend the datadog api isn't that bad you know... I'd be really up for making one if I can't find this shit.
19:51 Reverend djgerm: I can't find it :( I'll look for it again in the morning (trying to finish some OT here so I can go home). But as I said, if not, I'll have another look at there API and write some reactors for tagging boxes in datadog with apply events.
19:53 Illusioneer joined #salt
19:53 djgerm Well, you'd be a hero in the community!
19:54 voldz1tic3n joined #salt
19:54 djgerm (more so than you are today)
19:55 Reverend djgerm: which is not at all... so that  wouldn't be difficult ;)
19:55 ninjada joined #salt
19:56 moeyebus9_ joined #salt
19:57 Reverend back on topic though, wybczu: depending on what monitoring solutions you uise, I'd look at something like graphite to log some metrics on salt. Tbh, If I were you, I'd want to write some custom events to push into that. I doubt there are any solutions out there at the minute other than things like the one I mentioned.
19:57 moeyebus9__ joined #salt
19:57 Reverend there's not really that muchto monitor other than when it applies states, and to what.
19:57 Reverend hence why, as djgerm made quite clear, tracking those events in DG would be superbly handy
19:59 djgerm yeah, automatic annotations on my datadog telemetry for states would be "totes legit" or whatever the kids say
20:00 Reverend haha
20:00 Reverend it rather would.
20:00 Reverend djgerm: as far as I know, git integration does, so the API -must- be capable of it
20:00 aagbds joined #salt
20:03 _KaszpiR_ joined #salt
20:03 jalaziz joined #salt
20:05 moeyebus9__ joined #salt
20:06 bob_twinkles joined #salt
20:08 moooooo hey , after upgrading to 2016.11.1 i'm noticing a couple of issues (around 50 minions). 1) Highstate timeouts: Salt request timed out. The master is not responding. If this error persists after verifying the master is up, worker_threads may need to be increased. (Worker threads are at 50)  and 2) Timeouts on small config files:      Comment: Unable to manage file: Message timed out. Anyone know where to
20:08 moooooo start debugging this? Could it be my hiera pillar got too big?
20:09 moooooo the newer version seems to use a ton more CPU
20:14 pipps joined #salt
20:20 orianbsilva joined #salt
20:20 edrocks joined #salt
20:22 orichards joined #salt
20:26 Reverend what a fucking morogon
20:27 Reverend wow
20:27 Reverend im so tired i cant even spell moron
20:27 Reverend how ironic
20:27 orichards joined #salt
20:27 Reverend I have been staring at this site for like an hour trying to work out why I keep hitting the default Nginx listener, turns out the domain is missing a section... and I completely overlooked it for like 20 minutes at least.
20:28 orichards joined #salt
20:31 orichards joined #salt
20:32 hasues joined #salt
20:33 hasues left #salt
20:33 hasues joined #salt
20:34 hasues When using the portage_config component of Salt for Gentoo, how would one specify performing a one shot (-1) to emerge of a package?
20:34 writtenoff joined #salt
20:44 Reverend nothing in salt annoys me more than seeing "Could not found the following X"
20:48 netcho joined #salt
20:49 DammitJim found?
20:49 DammitJim wth?
20:49 Reverend yeah i know
20:49 Reverend i tried looking for it in the repo so I could submit a PR for that shit ... but I think it's one of the imported libraries
20:50 Reverend also - anyone seen this error before?               TypeError: 'NoneType' object has no attribute '__getitem__'
20:50 Reverend makes me sad. it's got no actual traceback to show me what's causing it. i'll pastebin ya
20:50 Reverend https://hastebin.com/odobixokox.sql
20:51 hemebond Reverend: Tail /var/log/salt/minion to get more info.
20:51 Reverend you fucking hero
20:51 Reverend thanks hemebond
20:51 hemebond ????
20:52 Reverend https://hastebin.com/liyojobido.sql
20:52 rem5 joined #salt
20:52 Reverend -__-
20:53 Vaelatern I'm having an odd issue getting service.running to work properly in my module
20:53 Reverend hit me with a pastie Vaelatern :)
20:53 Vaelatern I have no idea where in the code this is triggered
20:53 Vaelatern This is for the runit module.
20:53 Vaelatern service.enabled works but leaves the service not running.
20:54 Reverend service.running?
20:54 Reverend https://docs.saltstack.com/en/latest/ref/states/all/salt.states.service.html#salt.states.service.running
20:54 Vaelatern service.running: [ enabled: true ]; never passes (works on reboot) and same the other way.
20:54 Reverend there's an option in tthere to enable it too :)
20:54 jaybocc2 joined #salt
20:54 Vaelatern Yes
20:54 Reverend can you try running a service.running and let me know what it says in the error?
20:54 Vaelatern Except it doesn't work for the runit module, which I want to fix because I thought it was working before I PRed it
20:54 scoates joined #salt
20:54 Vaelatern Sure, give me a mintue.
20:55 Reverend paste that shit, and I'll have a gander.
20:55 Reverend :)
20:55 Vaelatern by which I mean a vagrant destroy and vagrant up >.>
20:55 Reverend LOl
20:55 Reverend i'll go for a smoke
20:55 Reverend hit me with a pastebin when you're done and I'll be back in 5
20:56 ninjada joined #salt
20:58 Vaelatern https://gist.github.com/c1bc3ef531331641fcbdab14917769b1 Reverend
20:59 orichards joined #salt
20:59 Vaelatern I don't see where in the code that module would be called anyway
21:01 alvinstarr joined #salt
21:01 rem5 joined #salt
21:01 Reverend thanks Vaelatern - give me a second
21:01 Reverend okay - that means that the service failed to tart.
21:01 Reverend start*
21:02 Reverend it -did- try
21:02 Reverend get the name of your service and try starting it manually with a cmd.run "systemctl start <name>" or something
21:02 Vaelatern Yes it does, except that it takes extra steps to stop a service from running after enabling it
21:02 Vaelatern It works perfectly.
21:02 Vaelatern This is runit, where the way you enable services: ln -s /etc/sv/<name> /var/service/
21:03 Vaelatern That also starts them
21:03 Vaelatern To stop it: sv stop <name>
21:03 XenophonF Dear formula authors, the "root" group does not exist on all versions of Unix.
21:03 Reverend XenophonF: isn't that the point of a formula ? ;)
21:03 * XenophonF has lived long enough to watch Linux turn into Solaris.
21:03 Reverend v
21:03 Reverend Vaelatern: can you cat out the error / journal logs then
21:04 hasues Same.
21:04 Reverend it's not a problem with your sls, it's a problem with your service not starting :P
21:04 Vaelatern You are right. It's a problem with the module.
21:04 Vaelatern The service is not at fault.
21:04 Reverend can you start the service manually?
21:05 Reverend I'd be quite surprised if you could... :S
21:05 Vaelatern sudo sv start at
21:05 Vaelatern ok: run: at: (pid 1122) 0s
21:05 Reverend according to the docs, you'll need "provider: runit" in your sls. is that there?
21:06 Vaelatern It's a void system, and service.enabled works, so I'm thinking it would be.
21:06 Reverend try adding your provider in there and see if that works. just remember to stop the service before you do it otherwise it will pass regardless
21:06 jalaziz joined #salt
21:06 Reverend can you paste your SLS so I can see it?
21:07 hemebond Reverend: That's the entire minion log?
21:07 Reverend oh sorry - you did :)
21:07 Reverend hemebond: yes
21:07 Reverend >_<
21:08 Reverend Vaelatern: https://hastebin.com/omuhosagek.css
21:08 Vaelatern The fact that it does create the symlink /var/service/at means the correct code is being called
21:08 hemebond Reverend: salt-call -l debug state.apply
21:08 hemebond On the minion
21:08 hemebond But yeah, pretty crap that it's trimmed the exception.
21:08 Reverend could you pretty please just add it and see if it works? I mean, I'm looking at the docs and it says to use provider... https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.runit.html
21:08 hemebond Or maybe it hasn't and that's all it has.
21:09 Reverend hemebond: yeah - I'll try. gimme a sec.
21:10 Vaelatern I have removed the package, added the provider, and am re-running
21:10 Reverend lol. yeah that traceback is the same hemebond - i guess I'll just start chopping away at my sls until it fixes it.
21:10 Reverend template sorry
21:10 Vaelatern Comment: The named service at is not available
21:10 Vaelatern I'm thinking that the module is definitely making assumptions it can't
21:10 hemebond Well, you know that it's a {}.get() request of some sort :-)
21:10 Reverend haha
21:11 Reverend how helpful >_<
21:11 emattiza joined #salt
21:11 hemebond Oh wait...
21:11 Reverend oh wait
21:11 Reverend waiting
21:11 Vaelatern Ah!
21:11 Vaelatern I found the bug
21:11 Reverend what was it?
21:11 emattiza joined #salt
21:11 hemebond Could the {}.get() actually be return _get_jinja_error_slug(tb_data)[1]
21:11 hemebond In which case it's a problem in the templates.py file.
21:12 hemebond Not your template.
21:12 Vaelatern Line 597 of salt/modules/runit.py
21:12 Vaelatern That variable is never set.
21:12 Vaelatern Is it?
21:12 Reverend what...
21:12 Reverend really?
21:12 Vaelatern I've got the blame on that file :P
21:12 Reverend I'd expect git to be exploding right now if that's the case :P
21:12 Vaelatern Eh, it's passed in though
21:13 Reverend via?
21:13 Vaelatern def enable(name, start=False, **kwargs):
21:13 Vaelatern waiiiiiiiit
21:13 Reverend hemebond: I guess so, i mean it's defeinitely the template.py that's causing a problem. but there must be something my template taht's making it derp
21:13 Reverend and i need this ready for tomorrow morning
21:13 Reverend -_-
21:15 hemebond Haha. It looks like it's failing when trying to find the line of your template that contains an error :-D
21:15 orichards joined #salt
21:16 Reverend hemebond - the get is actualyl a pretty good hint. it means it's probably a salt['pillar.get'] or grains.et
21:16 Reverend and the NoneType would probabyl tell mne that it's ran the get and it's not returned SHITE
21:16 hemebond Actually I think the get is just the [1] index reference.
21:17 Reverend suck it
21:17 Reverend ugh
21:17 Reverend this is horrible. I'll copypasta to notepad++ and chop some bits out and see whut breaks
21:19 Vaelatern So runit doesn't have the notion of running without enabling
21:20 Reverend hemebond: looks like it's the {% set client =  salt['grains.get']("ec2_tags:Client") %}
21:20 hemebond Oh, does that work for grains?
21:21 Reverend okay maybe not. i just took out the grains.get and it still borked. assigned them manually
21:21 jalaziz joined #salt
21:22 hemebond I wonder if that line is returning nothing and then you're trying to reference it later.
21:23 Vaelatern Reverend: Very few people (relatively) use Void. Fewer use salt and Void.
21:24 Reverend ever thought that there might be a reason for that? :P
21:24 Reverend hemebond: htat's what im thinking chap
21:25 Vaelatern I'm working on using salt and void, but I wish I'd run more extensive tests before pring the support
21:26 eprice joined #salt
21:26 pipps joined #salt
21:27 hax404 joined #salt
21:28 Reverend Vaelatern: as ever - I'm wondering, why void?
21:28 Reverend why not centos, or debian, or even ubuntu?
21:28 Vaelatern Extremely simple from a user management perspective
21:28 Vaelatern Very few system resources to have a base system
21:29 Reverend hemebond: getting somewhere here. I'll let you know ;)
21:29 Vaelatern Extremely Extremely simple when possible.
21:29 Vaelatern Libressl for an ssl library by default, and actually the only option.
21:29 Vaelatern Compiled for armv6, armv7, aarch64, x86_64, i686, and musl libc for most of those (except i686 for $reasons)
21:30 Vaelatern A focus on simplicity, yet rolling release.
21:30 Vaelatern It's fun to use.
21:30 netcho_ joined #salt
21:30 Reverend hemebond: looks like it's my pillar.get's that are brekin in
21:31 Vaelatern Oh, and it's all shell scripts. Especially our init and service manager.
21:31 Vaelatern Simple shell scripts :)
21:31 pcdummy runit :)
21:31 pcdummy no Systemd and libreSSL sounds good
21:31 pcdummy But having a own package manager, hmm...
21:31 Reverend oh fuck off
21:31 Reverend seriously?
21:32 Reverend hemebond - it was a stray "continue"
21:32 Vaelatern runit is excellent. Create a single symlink and your service is enabled and running and managed
21:32 Vaelatern pcdummy: Our package manager is pretty good, actually.
21:32 Reverend but... systemd is basically the standard.
21:32 ninjada joined #salt
21:32 Reverend >_<
21:32 Reverend i dunno man
21:33 Reverend like, I get it. it sounds like good fun..
21:33 Vaelatern We have patches for gnome to make it not depend on systemd.
21:33 Vaelatern It's the standard but doesn't work on muslc, so it had to go (so we could support both glibc and muslc)
21:34 Reverend hemebond: all done ;D for future reference: this error was beacuse I'd left a {% continue %} in something that wasn't a for loop. https://hastebin.com/odobixokox.sql
21:34 Reverend hemebond: thanks for the help again, you legend :)
21:34 Reverend im going to bed.
21:34 Reverend PEACE OUT.
21:34 Reverend cahynge of plan - going to fix one more thing
21:35 Vaelatern :D
21:36 Reverend change of plan again - I already know what the problem is. I'll fix it in the morning because I don't want to sit here and watch and rsync for an hour,.
21:36 Reverend have a FABULOUS day/night ladies and gents
21:45 falstaff_ joined #salt
21:47 falstaff_ Since a lot of application servers start and take over a terminal session to log, is it acceptable to do something like `start foo-app.js > /var/log/foo-app.log &`, or what?
21:47 falstaff_ If they don't return, the salt-master doesn't hear back
21:48 pcn falstaff_: are you aware of 12 factor apps?
21:48 ninjada joined #salt
21:48 falstaff_ Good point :p
21:48 sh123124213 joined #salt
21:49 sh123124213 joined #salt
21:49 whytewolf falstaff_: if you have to do something like that... toss it into nohop. other wise once salt has moved on. poof. terminal ends.
21:49 lws joined #salt
21:50 whytewolf s/nohop/nohup
21:51 falstaff_ Strangely, the state I ran that ended in an `npm start` seems to have never returned at all
21:51 falstaff_ I'm surprised the master didn't timeout
22:02 raspado_ joined #salt
22:04 abednarik joined #salt
22:05 voldz1tic3n joined #salt
22:06 ninjada joined #salt
22:06 invalidexception joined #salt
22:06 ninjada joined #salt
22:09 orichards joined #salt
22:14 bowhunter joined #salt
22:22 falstaff_ joined #salt
22:24 snarfy^ joined #salt
22:26 oeuftete joined #salt
22:29 anotherzero joined #salt
22:32 rem5 joined #salt
22:34 snarfy^ greetings. I'm trying to iterate over a nodegroup using {% for manager in salt['saltutil.runner']('cache.grains', tgt='manager', expr_form='nodegroup') %}
22:35 snarfy^ but I think there is a bug preventing me from doing so https://github.com/saltstack/salt/issues/38216
22:35 saltstackbot [#38216][OPEN] salt-run: can't get cache.grains | ```...
22:35 snarfy^ is there a workaround for what i want to do?
22:35 snarfy^ I can target those nodegroups from the command line
22:38 vodik x509 stuff have a way to control the permissions on the resulting cert? i want to give write access to a particular user
22:39 vodik write? i mean read...
22:39 vodik wow
22:39 hemebond TIL: About cache.grains :-D
22:43 snarfy^ easier to downgrade my salt master or find a workaround...
22:46 orichards joined #salt
22:46 djgerm joined #salt
22:50 cyteen joined #salt
22:59 ponyofdeath hi, how do i do a quick check if a var is defined in jinja {% if user_data.shadow %} but shadow is not defined
23:00 hemebond {% if 'shadow' in 'user_data' %}
23:01 ponyofdeath honestly: thx, is there a one way check to do if user_data.shado == 'blah'
23:01 abednarik joined #salt
23:01 ponyofdeath hemebond: and be false if shado is not defined
23:02 hemebond {% if 'shadow' in user_data and user_data.shadow == 'blah' %}
23:02 ponyofdeath ahh ok yeah what i was doing just wonderin if there was some other more elegant solution
23:02 hemebond Not that I know of.
23:03 hemebond I thought Jinja failed quietly but it doesn't (in Salt)
23:04 snarfy^ looks like cache.grains doesn't work for some time now
23:05 hemebond Seems to be working for me in 2016.3.4
23:05 snarfy^ oh? hrm i tried 2015.8.5 and got the same result
23:05 hemebond I just switched my pillar template over to it.
23:06 honestly {% if user_data.get('shadow') == 'blah' %}
23:06 snarfy^ it doesn't require pillar_opts to be on does it
23:06 snarfy^ i'm trying it from the master
23:06 hemebond Hmm. I think I have pillar_opts turned on. Let me try without that.
23:06 hemebond Oh, my pillar_opts is already False.
23:08 snarfy^ hrm. i dont think its that tho. that should only be to sue sls files on minions
23:08 snarfy^ lemme try your version
23:08 hemebond pillar_opts is so you can see master configuration in your minion pillar data
23:08 hemebond (from memory)
23:09 snarfy^ right - but it should be necessary to do salt-runs from the master is what i'm sayin :)
23:09 snarfy^ er shouldn't
23:09 hemebond Correct.
23:09 hemebond {%- set cached_grains = salt.saltutil.runner('cache.grains', tgt='*') %}
23:16 tercenya_ joined #salt
23:17 snarfy^ oh yeah
23:17 snarfy^ worked with salt-master 2016.3.4
23:18 snarfy^ just not 2015.8.5 or 2016.11.1
23:18 * snarfy^ sighs
23:23 hemebond LOL
23:23 hemebond That's unfortunate.
23:24 snarfy^ yeah... I've seriously had some serious problems with carbon. there was also a regression in the version option for pkg.installed
23:25 snarfy^ i'm seeing how hard it is to downgrade the master
23:28 eprice joined #salt
23:29 pcn should be able to do it in a virtualenv
23:29 hemebond I think I use PIP to install my master.
23:29 snarfy^ yeah but i also have a few dozen minions that are 2016.11.x
23:29 snarfy^ it's not the installing it's the coordination
23:30 hemebond Ah
23:38 sh123124213 joined #salt
23:41 Illusioneer joined #salt
23:42 DEger joined #salt
23:43 Illusioneer joined #salt
23:50 lws joined #salt
23:50 netcho_ joined #salt
23:54 dkrae joined #salt
23:54 Edgan snarfy^: 2016.11.1 got rid of all my previous patches that I needed for older releases, but then I found a new patch I needed :\
23:54 DEger joined #salt
23:58 voldz1tic3n joined #salt

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