Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2018-04-10

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

All times shown according to UTC.

Time Nick Message
00:00 onslack joined #salt
00:04 shanth i got the syslog logging to work thanks a ton whytewolf
00:19 _xor joined #salt
00:32 aviau joined #salt
00:44 tiwula joined #salt
00:56 XenophonF is it possible to import everything from another .jinja file?
00:56 XenophonF I have a lib.jinja file and managing the import statements is getting to be ridiculous.
00:56 hemebond Like `import *`?
00:56 XenophonF exactly like that
00:57 XenophonF can I just do `{% import 'lib.jinja' %}`?
00:57 XenophonF I suppose I should try that
01:04 justanotheruser joined #salt
01:07 onlyanegg joined #salt
01:09 ddg joined #salt
01:12 onlyanegg joined #salt
01:31 justanotheruser joined #salt
01:40 MTecknology XenophonF: it pretty well follows expected python syntax
01:40 MTecknology from foo import bar
01:40 onlyanegg joined #salt
01:40 MTecknology It sounds like you're massively over-complicating whatever solution it is you're coming up with.
01:56 ilbot3 joined #salt
01:56 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2017.7.5, 2018.3.0 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic, and https://saltstackcommunity.herokuapp.com (for slack) <+> We are volunteers and may not have immediate answers
02:03 johnkeates joined #salt
02:09 Deadhand joined #salt
02:10 zerocoolback joined #salt
02:10 ecdhe joined #salt
02:11 cyp3d joined #salt
02:13 tacoboy joined #salt
02:14 btorch joined #salt
02:17 ipsecguy joined #salt
02:42 zerocoolback joined #salt
03:01 onlyanegg joined #salt
03:09 XenophonF nah I just have a lot of macros
03:10 XenophonF dynamically generated config files
03:16 onlyanegg joined #salt
03:20 indistylo joined #salt
03:48 lompik joined #salt
04:21 MTecknology XenophonF: those statements do nothing to make me believe my statement any less ;)
04:26 mrBen2k2k2k joined #salt
04:37 indistylo joined #salt
04:38 sauvin joined #salt
04:46 exarkun joined #salt
05:05 Hybrid joined #salt
05:10 cewood joined #salt
05:27 Linuturk joined #salt
05:27 Linuturk joined #salt
05:34 zerocoolback joined #salt
05:47 zerocoolback joined #salt
05:57 nku joined #salt
06:20 aldevar joined #salt
06:49 inetpro joined #salt
06:53 honestly joined #salt
06:54 marwel joined #salt
07:01 aruns joined #salt
07:11 marwel joined #salt
07:14 Ricardo1000 joined #salt
07:14 Hybrid joined #salt
07:20 tyx joined #salt
07:24 Pjusur joined #salt
07:40 Deadhand joined #salt
07:43 CrummyGummy joined #salt
07:51 hoonetorg joined #salt
07:52 briner joined #salt
07:53 jrenner joined #salt
07:58 LevitusCommander joined #salt
08:04 Pjusur joined #salt
08:06 exarkun joined #salt
08:26 jesusaur joined #salt
08:36 Mattch joined #salt
08:41 gmoro joined #salt
08:46 gmoro joined #salt
08:47 cyp3d joined #salt
08:58 viq I'm looking through https://github.com/saltstack/salt/blob/e974cf385d3ac0b86959a0eca88d96c9e3527ec3/salt/modules/consul.py and I don't see anywhere to put cert and key that I need to authenticate to consul, how should I go about it?
09:01 armyriad joined #salt
09:02 mikecmpbll joined #salt
09:18 Elsmorian joined #salt
09:24 DanyC joined #salt
09:26 CrummyGummy joined #salt
09:30 DanyC joined #salt
09:35 mikecmpbll joined #salt
09:46 exarkun joined #salt
09:58 sjorge joined #salt
10:05 lukecarrier joined #salt
10:11 orichards joined #salt
10:14 Tenyun[m] joined #salt
10:15 jesusaur joined #salt
10:33 nbari joined #salt
10:34 Elsmoria_ joined #salt
10:55 briner joined #salt
11:03 mikecmpbll joined #salt
11:13 Elsmorian joined #salt
11:34 Cadmus joined #salt
11:43 jhauser joined #salt
11:44 XenophonF MTecknology: I'm all about the code reuse, baby!
11:44 XenophonF and writing YAML-to-XML serializers in Jinja, apparently :/
11:45 XenophonF https://github.com/irtnog/shibboleth-formula/blob/master/shibboleth/sp/lib.jinja
11:46 XenophonF recursive Jinja macros FTW!
11:52 dendazen joined #salt
12:00 briner_ joined #salt
12:28 englishm_work joined #salt
12:44 fernie joined #salt
13:02 jhauser joined #salt
13:05 gh34 joined #salt
13:06 exarkun joined #salt
13:11 LevitusCommander joined #salt
13:28 briner joined #salt
13:29 racooper joined #salt
13:33 edrocks joined #salt
13:46 bbhoss joined #salt
13:47 briner joined #salt
13:49 simonmcc joined #salt
13:51 Deadhand joined #salt
13:52 MTecknology XenophonF: except I look at something like that as an extreme loss to automation in general.
13:54 MTecknology (and to sanity in particular)
13:56 ecdhe joined #salt
14:01 AstraLuma joined #salt
14:01 mikecmpbll joined #salt
14:08 cgiroua joined #salt
14:10 copelco__ joined #salt
14:10 aviau joined #salt
14:12 doriftoshoes____ joined #salt
14:14 Deadhand joined #salt
14:15 futuredale joined #salt
14:16 whiteinge joined #salt
14:17 dragon788 joined #salt
14:18 phtes joined #salt
14:20 Gareth joined #salt
14:20 Ryan_Lane joined #salt
14:26 carlwgeorge joined #salt
14:36 aerbax joined #salt
14:43 mianosm joined #salt
14:45 om2 joined #salt
14:45 briner joined #salt
14:47 exarkun joined #salt
15:04 noobiedubie joined #salt
15:15 sreddy joined #salt
15:17 tiwula joined #salt
15:20 jamtoast joined #salt
15:21 sreddy joined #salt
15:36 ekkelett joined #salt
15:40 briner joined #salt
15:49 dezertol joined #salt
15:59 noobiedubie did the syntax to use sls_id in a reactor change in 2018.3.0?
15:59 noobiedubie the following is now erroring out saying that I'm only passing in one argument and the function takes 2
15:59 noobiedubie https://paste.debian.net/hidden/454996bd
16:01 noobiedubie /\//
16:02 mikecmpbll joined #salt
16:04 dimeshake joined #salt
16:09 Edgan XenophonF: Anything that complex, which tends to be nginx or apache, I draw the line and say just hand code a configuration per circumstance. Converting X -> Y -> - is just silliness
16:09 noobiedubie joined #salt
16:14 MTecknology nginx is complex?
16:14 Edgan MTecknology: The billion options for things like SSL you can write into a nginx.conf, yes
16:15 sjorge joined #salt
16:15 carmony joined #salt
16:15 MTecknology I always thought nginx was one of the easiest packages to deal with
16:16 whytewolf noobiedubie: i can't believe that worked. you are passing in what is supposed to be id_ in the mods
16:16 MTecknology I suppose it's different if you want to use pillars and formulas for everything..
16:17 noobiedubie how should I pass it in whytewolf
16:18 Edgan MTecknology: It is taking it further and converting every option in shibboleth to a jinja variable
16:18 whytewolf noobiedubie: https://gist.github.com/whytewolf/a725af02aa0200c7a6096ed9e3dcd070
16:19 briner joined #salt
16:19 whytewolf noobiedubie: just follow the notation of the actual function https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.state.html#salt.modules.state.sls_id
16:22 ecdhe joined #salt
16:22 Edgan XenophonF: yes, you can import one into another. I break all macros into their own files
16:22 MTecknology Edgan: I think we both agree about that shibboleth thing.
16:22 Edgan XenophonF: As seen here, https://cygnusx-1.org/formula.txt
16:23 eekrano joined #salt
16:23 noobiedubie ok I gotcha thanks that makes more sense thank you
16:25 Edgan MTecknology: I agree his stuff looks overally complicated, but part of the reason I go a like road with map.jinjas is to add features I think should be built into salt. Though you could say why don't I make a PR to just add them.
16:25 MTecknology heh.. a missing feature is what got me to learn python and learn how to do PR's and all that other fun stuff
16:27 DanyC joined #salt
16:27 exarkun joined #salt
16:28 Edgan MTecknology: Salt really needs a built-in defaults with layered overrides built in, and do it securely. My boss added hiera from Puppet via a ext_pillar project to get the layered overrides, but it completely ignores the concept of the top.sls, and gives everything to all systems in that env.
16:29 Edgan MTecknology: One of the things I like with my jinja method is often the layer combinations are unique to that application, and I can customize them.
16:30 Edgan MTecknology: Sometimes things are by region, sometimes per env, sometimes per region and env.
16:30 MTecknology I use something similar to your map.jinja for $client, except that it's called defaults.py. I have pillar set up to provide overrides to those defaults. The first set of pillar is dc-based overrides, then cluster-based, and if ever I need, it's easy to add more.
16:31 Edgan MTecknology: Sounds a lot a like.
16:31 MTecknology The only pillar assigned to nodes is overrides from defaults. Then I import defaults, merged w/ pillar, and done. I have a dict with everything I expect to be there.
16:31 MTecknology sounds a lot like formulas, eh?
16:31 Edgan MTecknology: But do you have to say pillar['foo'] everywhere, or is it foo as a jinja variable?
16:31 MTecknology except not messy and shoving *EVERYTHING* into pillar for the sake of being able to import something I didn't write myself.
16:32 Edgan MTecknology: Pillars are only overrides and secrets
16:32 Edgan MTecknology: Everything else goes in map.jinja as defaults
16:33 Edgan I really like the jinja merges of pillars, because otherwise your pillar variable names turn into pillar['foo'][region][env]['config]['dir']. Too long.
16:37 MTecknology The stuff I build ends up looking more like this- http://dpaste.com/0XSFJQD
16:38 Edgan MTecknology: So using python instead of jinja. What is the main advantage?
16:38 MTecknology it's just a file extension
16:38 Edgan MTecknology: actually, looks like it is jinja and you call it .py
16:38 Edgan MTecknology: But why
16:38 MTecknology syntax highlighting
16:38 Edgan MTecknology: What editor?
16:38 MTecknology vim
16:39 Edgan MTecknology: Can't you teach it about .jinja?
16:39 Edgan MTecknology: You are also likely to confuse anyone in onboarding, especially if you aren't around to explain it later.
16:39 MTecknology I could, but .py have me exactly what I wanted except for :set tabstop=2
16:40 MTecknology gave* me
16:40 Edgan MTecknology: Doesn't vim allow comments to teach it things like tabstop=2?
16:41 MTecknology It does, I don't like setting things like that in files. It feels tacky, even moreso than using a false extension for the sake of having all my vim magic.
16:41 Edgan yeah, I agree
16:41 Edgan Depending on the file, like a jinja template, it might also mess with your output
16:42 Edgan I need to get back into the habit of using Atom. With my plugin configuration in Atom I end up outputing higher quality Salt code than with vim.
16:43 MTecknology Lies! vim > * !!
16:43 DanyC joined #salt
16:43 Edgan MTecknology: I am speaking for myself.
16:43 Miuku When a text editor takes more memory than my vserver has, there's something wrong :P
16:43 MTecknology but this isn't an opinion, it's extremely well-known fact! :D
16:44 Edgan Miuku: You could use Sublime, but then you have to pay for it or get nagged forever.
16:45 MTecknology atom actually does look like a decent editor if you're willing to tolerate a gui, but I'm not. I need my terminal.
16:45 Miuku Edgan: Oh I'm much worse than that, although I have SE3 installed.
16:45 Edgan Miuku: SE3?
16:45 Miuku Edgan: Sublime.
16:45 Miuku Edgan: I use the beta one, although I use something far, far more sinister.
16:46 Miuku Edgan: I'll get flamed and crucified if I tell you what :P
16:47 Edgan MTecknology: The GUI allows a few things that a terminal does not, and I found even the things vim can do, Atom does better. I still use vim on servers though, and lately I have fallen back to vim out out decades of habit.
16:47 MTecknology Edgan: the point I was trying to make about the states, though, is that it's stupidly simple, to the point that I (wrongly) assumed my coworkers would be able to look at it and say ... I know what's going on here!
16:47 viq As for atom, I like my editor to take less than half a gig of RAM :P
16:48 MTecknology is it that heavy?
16:48 viq electron, need I say more?
16:48 whytewolf ... MTecknology I have jinja highlighting, yaml highlighting and 2 space indentation. and get to keep the .sls in vim ...
16:49 MTecknology ... it's just a file extension!!
16:49 * MTecknology screams something about bikes
16:49 Edgan MTecknology: I do find your paste pretty simple, but then I know jinja well now.
16:49 Edgan viq: My laptop has 32gb, and Chrome and Chromium take more. Along with Slack and Whatsapp.
16:50 whytewolf yeah, but the syntax for jinja is slightly [not far but slightly] different then python. so i would rather my python be .py and my jinja/sls files be .jinja and .sls
16:50 viq Edgan: my laptop doesn't, I actually had to push to get 16 in my work one
16:50 MTecknology I'm sure I'll change it at some point
16:50 alfie left #salt
16:50 viq anyway, time to run
16:50 Edgan viq: Give me free Sublime, and make it as good as Atom on the bells and whistles, and I will switch in a heartbeat. :)
16:51 viq Edgan: spacevim.org + neovim here, so eh :P
16:51 Miuku Edgan: Modern software memory usage is pretty loonie tunes all in all. When I was young.. *waves cane*
16:51 Edgan viq: I have used vim for decades, I would not say it is as good as Sublime or Atom when it comes to all the bells and whistles.
16:52 Edgan Miuku: yeah, no one needs more than 640kb :)
16:52 Edgan Miuku: My first computer was an Apple II plus
16:52 MTecknology we really went way off topic, eh?
16:52 whytewolf are we ever really on topic
16:52 Miuku Somehow it always does.
16:52 MTecknology Yes! .. usually :)
16:53 Edgan Where are the on topic police? They must be slacking. I think we could go back to on topic if anyone had any questions.
16:53 MTecknology I'll keep it going and share my .vimrc!  https://gist.github.com/MTecknology/087e6dd038cd2812a71738292ae40ec4
16:54 Edgan Atom packages.json, https://gist.github.com/edgan/bffb45205f1c8b7feb80f86658abc872
16:54 Miuku Edgan: That being said, my first machine was a shoebox C64, I was a tiny toddler :P
16:54 whytewolf I really need to refactr my vimrc https://github.com/whytewolf/dotfiles/blob/master/vim/vimrc
16:55 MTecknology fish shell?
16:55 MTecknology I didn't think anyone actually used that
16:55 whytewolf i don't use it anymore cause it's lack of posix complience drove me up a wall
16:55 whytewolf a friend of mine loves it
16:56 DanyC joined #salt
16:56 Edgan zsh for me, for the awesome auto completion
16:56 whytewolf yeah, that is my current shell ... zsh with oh-my-zsh
16:57 Edgan nod
16:57 MTecknology I *hated* zsh
16:57 Edgan MTecknology: It has it's rough edges, but I tolerate them for the completion
16:58 Edgan MTecknology: Bash has mostly caught up, but the completion last I saw was still inferior.
16:58 whytewolf i tolerat them cause my powerline prompt in zsh is so much nicer then what i had in bash
16:58 MTecknology Any time I boot up a systemrescuecd, the first thing I change is to start bash, then disable cursor blink
16:58 MTecknology The zsh auto-complete is one of the things that drove me nuts
16:58 Edgan MTecknology: Why?!?
16:59 whytewolf MTecknology: you remind me of an old man with a cane. waving kids off his virtual lawn. :P
16:59 Edgan MTecknology: You have to turn it on. It isn't on by default.
16:59 MTecknology There better not be any kids on my dang vlawn!!
16:59 Edgan MTecknology: But if you don't like it, you don't have much cause to use it
16:59 MTecknology Edgan: it was on in sysrescue
17:00 MTecknology I hit tab twice.. I wanted to see a list, not launch into some interactive mess that requires I use arrow keys.
17:01 MTecknology It's probably unsurprising that my WM/DE of choice is openbox, w/ the slim login manager. :P
17:02 briner joined #salt
17:05 Edgan MTecknology: Not sure what configuration of zsh you used. I just tested it I typed ssh salt<tab><tab> and got a list just like you described.
17:06 whytewolf MTecknology: actually that is surprising. i would have guessed i3
17:07 MTecknology lol
17:07 Pomidora Gonna ask something that can be interpreted as off-topic, but i wanna go here since #redis will give me a biased answer
17:07 Pomidora Is HA redis shitty?
17:07 MTecknology Edgan: I suppose I could give it a try again sometime with a more default setup
17:08 btorch left #salt
17:08 whytewolf MTecknology: yeah i think the bad taste you got was from a setup that was tweeked to a users preference.
17:09 MTecknology I'll find out!
17:09 Edgan MTecknology: https://pastebin.com/6pjM6Wmf   It even knows the env is the unique part, even though it is in the middle, and asks you to fill it
17:09 whytewolf Pomidora: actually personally i have never used redis HA. although i had a friend that has set it up for his logstash setup. never heard the end of how much hell he went through for that.
17:10 Edgan Pomidora: The first version, yes
17:10 Pomidora whytewolf: redis is failing with 10 processes writing to it
17:10 Edgan Pomidora: sentinel is shitty
17:10 Pomidora Edgan: that's what i've been told
17:10 Edgan Pomidora: The new clustering mode is saner
17:11 Edgan Pomidora: sentinel is fail over and the clients have to support it to be notified when the master changes
17:11 Edgan Pomidora: The new clustering mode is more what you would expect
17:12 Pomidora Edgan: Oh I see
17:15 Edgan Pomidora: sentinel is also an external watchdog service. So yet another thing to setup in Salt.
17:18 DanyC_ joined #salt
17:19 lordcirth_work I am running Nextcloud that uses a Redis cache; I'm not using it for file locking as they recommend because then the 3 nextcloud nodes would have a single point of failure, and clustering isn't worth it.
17:21 Edgan lordcirth_work: Redis gets abused for all kinds of things by devs.
17:21 lordcirth_work Well, if you're running a single node anyway, I don't see a big problem
17:21 lordcirth_work With flushing set to 0, anyway
17:22 lordcirth_work But currently Nextcloud HA is something you have to do yourself, the application doesn't know about it.  That's in progress, though.
17:22 Edgan lordcirth_work: The problem is they expect it to be persistent too.
17:23 lordcirth_work Well, to be fair NC defaults to using the SQL DB, which is safe.  If and when I manage to get enough users on it to stress anything, I'll worry about it.
17:26 * MTecknology needs to figure out how to write user states for salt.
17:26 Miuku "Want to become a cloud superhero?
17:26 MTecknology I want to use the existing AD infrastructure, but $client says no.. all user accounts must be local users.
17:27 Miuku I swear, the more I read social media and Linkedin, the more I advocate for global genocided :p
17:27 Miuku -d.
17:28 Edgan MTecknology: I can show you a good way, but I can give you a good argument against doing it in salt.
17:30 MTecknology I don't wanna do it in salt! :(
17:30 Edgan MTecknology: It isn't about the creation. It is about the deletion, and being sure a user got deleted on down systems at the time you added a user to the deletion list. So you end up having to keep the deletion list forever, or know how long any system can be offline.
17:30 Edgan MTecknology: And proper deletion is complicated and slow. I have seen trying to delete 300 users take 2/3 of the run time.
17:31 MTecknology That was the exact argument I made, actually.
17:31 Edgan MTecknology: I prefer LDAP, with caching, and auto home_dir creation.
17:32 MTecknology We have something like ten users in the "fired" list currently, and those users still exist on at least 20% of our systems, despite my attempt to clean them manually.
17:32 Edgan MTecknology: A shitty alternative would be one user that everyone logs in as, which side steps the user creation and deletion, but that has a long list of down sides. Yet it is a common pattern. :(
17:32 Edgan MTecknology: Why are 20% of your systems not running Salt right? or is it new?
17:33 alfie joined #salt
17:39 edrocks joined #salt
17:46 lordcirth_work Why are my file.managed diffs backwards?
17:46 lordcirth_work At first I thought it was my PR, but it's in 2018.
17:47 lordcirth_work It's only backwards when using test=True
17:50 Edgan lordcirth_work: Sounds fun :)
17:55 johnkeates joined #salt
17:58 ymasson joined #salt
18:06 MTecknology Edgan: it's just an estimate on the 80/20 rule. I have no idea how many systems still have legacy users. Part of the reason is that salt highstates don't work and often break more than they fix, and another part is that states are almost never run on systems. Most systems are modified, and then something in the state might be tweaked, but it's rarely ever applied.
18:08 Edgan MTecknology: Sounds like you aren't using the run salt all the time model. You would probably be better off with salt-ssh then.
18:08 Bearzilla joined #salt
18:08 MTecknology that would just break things further..
18:09 MTecknology It's an utter chaotic pile of broken crap
18:09 esteban joined #salt
18:09 MTecknology I've been rolling new systems with new states on ubuntu 18.04, doing everything from scratch. I'm trying to come up with the cleanest thing I possibly can within the confines of $client demands so we can roll a whole new set of systems where highstates actually do run regularly.
18:10 Edgan MTecknology: Are you switching to the run all the time model with 18.04 systems?
18:10 MTecknology what does "all the time" mean?
18:11 MTecknology I want to trigger a highstate on git pushes as well as a daily execution.
18:14 Edgan MTecknology: Generally ever half hour, but git pushes works too
18:14 noobiedubie MTecknology: I use git hooks that send salt events and use reactors to push out whole states to individual sls_is's
18:14 Edgan MTecknology: https://pastebin.com/j32GrCrp  Here is a way to manage users with pillars and a macro.
18:17 Edgan MTecknology: sample pillar, https://pastebin.com/rgEaNtGQ
18:17 MTecknology noobiedubie: I use that, except the reactor sets a timer in sdb so I can do lots of pushes and it'll keep waiting until no push for X minutes, the highstate everything.
18:18 Edgan MTecknology: Care to share your code for that? :)
18:21 ecdhe joined #salt
18:26 esteban joined #salt
18:29 noobiedubie so if enabled is False you do user.absent if I'm reading that right?
18:29 noobiedubie i do something similar though am missing a way to remove old users and this may work perfectly
18:30 MTecknology Edgan: sure.. gimme a minute to see if it's in my demo
18:38 lukecarrier joined #salt
18:40 Edgan noobiedubie: I have another state for absenting a user. You just built a list, but yes, you can disable a user with False
18:46 MTecknology Edgan: honestly, it's kinda stupidly simple. I have a git hook that runs a wrapper script which runs salt-call event.fire_master. A reactor sets the sdb value. Then there's a cron that runs every minute (because the scheduler kept breaking) and drops the value by one. If X, then run.
18:46 MTecknology https://gist.github.com/MTecknology/8e97064bd641da071113dd8081af4c2d
18:47 MTecknology https://github.com/MTecknology/saltstack-demo/blob/master/data/usr/local/sbin/global_highstate && https://github.com/MTecknology/saltstack-demo/blob/master/states/_reactor/minion_request.sls && https://github.com/MTecknology/saltstack-demo/blob/master/states/_orchestrate/global_highstate.sls
18:47 Edgan MTecknology: git hook, git server side?
18:47 MTecknology yup
18:47 Edgan MTecknology: Sadly, no go with GitHub. :(
18:47 MTecknology sure it is
18:48 Edgan MTecknology: You can do web hooks, but then you have to publicly expose something
18:48 MTecknology lemme show that off too
18:50 MTecknology I don't really need to show it... I have an api server that receives things like github push notifications, and then that api server runs a very similar wrapper script, except it's only allowed to target a certain subset of systems (dictated by the wrapper)
18:51 Edgan MTecknology: So a custom api server for github pushes, that then runs a script that hits the salt api to trigger a run?
18:52 MTecknology it uses salt events, without the api, but ya
18:52 MTecknology I use that api server for a lot more than just that one thing, though.
18:54 MTecknology eventually, it's also what I'll use to trigger my "I died" routines. My lawyer needs to contact a buddy of mine to get a yubikey to unlock a password and feed it into that site. The plan is for it to pass a translated version of that password to salt, which will then check the password and schedule a termination of all my services and migrate my website to github pages and update dns
18:54 MTecknology and all sorts of junk.
18:54 MTecknology but that's a very distant goal of mine
18:55 Edgan haha, sounds crazy
18:56 MTecknology would you expect any less from me? :)
19:03 om2 joined #salt
19:07 schemanic joined #salt
19:07 coredumb I don't even have a lawyer :O
19:10 schemanic Hello, I'm getting a rendering error mentioning a 'found unexpected ':'; line whatever. I'm having a tough time figuring out how to troubleshoot it
19:11 MTecknology coredumb: I don't, yet... but I /really/ need one. I have a particular guy's card, but he's more along the lines of "better call saul"
19:11 dkehn_ left #salt
19:12 MTecknology schemanic: It'll usually tell you what line/file...
19:12 coredumb :)
19:13 whytewolf sometimes you might have to check the line before or the line after.
19:14 schemanic yeah, MTecknology, it seems to be spitting out the entire map of one file. I can't tell which colon is the problem
19:14 whytewolf schemanic: get the whole error. and look for the arrow.
19:14 whytewolf <======================
19:15 MTecknology or stick the whole thing on dpaste so we can see
19:15 schemanic https://ghostbin.com/paste/akjmd
19:15 schemanic I know. Thats my prblem
19:16 ecdhe joined #salt
19:16 schemanic the arrow is pointing to the line where the whole map is printed
19:16 MTecknology ... holy frick balls
19:18 MTecknology as painful as that is to look at, it seems correctly formatted to me.
19:18 schemanic as far as I can tell the only thing that looks wonky with syntax highlighting is the part where I've defined java_opts
19:18 schemanic yeah... I'm super confused. Everything seemed to run perfectly before I upgraded
19:18 whytewolf how are you dumping that in?
19:19 MTecknology looks like the json filter
19:19 MTecknology .keys() -> [u'native_pkg', 'expires_when', u'main_config_template', 'authbind', u'java_opts', u'main_config', 'catalina_pid', u'connectors', u'service', u'pkg', 'jvm_tmp', 'catalina_home', 'logfile_compress', u'ver', 'manager', u'with_haveged', u'group', 'catalina_tmpdir', 'logfile_days', 'jsp_compiler', u'haveged_enabled', u'sites', 'catalina_base', u'service_enabled', u'conf_dir',
19:19 whytewolf it has unicode items in it. json filter would strip those
19:19 MTecknology 'context', u'limit', 'security', u'java_home', u'manager_pkg', u'resources', u'user']
19:20 MTecknology ah, I didn't know that
19:21 schemanic whytewolf, the formula just dumps the whole rendered dictionary into a file.managed as a context variable
19:21 MTecknology obviously, but how?
19:21 whytewolf schemanic: soooo {{crapdump}}
19:21 cyteen joined #salt
19:21 MTecknology schemanic: show us the state
19:22 schemanic sure
19:22 Hybrid joined #salt
19:22 whytewolf {{crapdump|json}}
19:22 MTecknology formulas... and grumbles
19:26 Nebraskka joined #salt
19:27 schemanic https://ghostbin.com/paste/akjmd
19:27 schemanic I gave you everything, my pillar, the template, the state, and the console output
19:29 DanyC joined #salt
19:29 briner joined #salt
19:29 stewgoin joined #salt
19:30 MTecknology couldn't you use a pastebin service that shows line numbers? :(
19:31 MTecknology and ya... which state is this?
19:31 schemanic tomcat.config
19:31 noobiedubie pastebin gross...
19:31 MTecknology I see no tomcat.config state
19:32 MTecknology The closest I see is the render error at the bottom
19:32 schemanic There are line numbers
19:32 schemanic ,,
19:32 schemanic ...
19:32 MTecknology probably a javascript-only thing
19:32 schemanic https://ghostbin.com/paste/akjmd
19:32 schemanic do you see the banner that says 'state'
19:33 schemanic that is the state in question
19:33 MTecknology I see many states underneath of that
19:33 schemanic tomcat_conf
19:33 MTecknology aight...
19:33 MTecknology so then do the thing whytewolf said
19:33 MTecknology I'm done looking at this clusterfuck
19:34 schemanic I will try that
19:34 MTecknology stop using such a crappy pastebin service
19:34 schemanic every damn channel yells at me about the pastebin service I use, and I try a new one every damn time
19:35 noobiedubie lol ^
19:35 schemanic can't use pastebin because its' not a sane paste service'
19:35 noobiedubie and you'll never make anyone happy
19:35 noobiedubie it's not
19:35 MTecknology dpaste.com, gist.github, paste.debian.net, ....
19:35 schemanic sure, but 'sane' is an undefined term
19:35 schemanic hang on before I run out my welcome I'll try the json thing
19:35 noobiedubie as in do you go insane using it...check
19:36 MTecknology I can define sane!
19:36 noobiedubie i'm jk everyone's got their own preference it's silly
19:36 MTecknology Give me basic functionality without requiring a giant mess of javascript
19:37 MTecknology line numbers, syntax highlighting, paste/view/raw, bonus: support for files
19:37 noobiedubie lucky for you that's what I like...
19:38 schemanic People's chief complaint seems to be that pastebin is to 'busy', so I went for somehting that seemed minimal
19:39 MTecknology pastebin.com is regularly hated for being driven entirely by ads, with users as an afterthought
19:40 noobiedubie and the fricken javascript
19:40 schemanic Ok, can anyone explain why my object is in unicode, as whytewolf said?
19:40 schemanic like, is that a function of how I'm saving my pillar files or what?
19:40 MTecknology 19:22 <@whytewolf> {{crapdump|json}}
19:40 schemanic No, I understood that MTecknology
19:40 schemanic I did that, but that doesn't explain why it happened
19:40 MTecknology yes?
19:41 schemanic I did what whytewolf said. It seems to work. Now I want to know what causes the object to be in unicode like that
19:41 MTecknology you haven't really worked with python, have you?
19:42 noobiedubie it's a python encoding thing
19:42 MTecknology u'foo' isn't python?
19:42 schemanic I have yes. I understand that this notation tends to appear when working working with JSON in python. I'm confused because this has never happened before and I don't know what caused it. I didn't change my configuration
19:43 sjorge joined #salt
19:45 MTecknology noobiedubie: heh.. I read that as "it's not"
19:45 noobiedubie probably further changes in the update to move towards python3 and keep compat
19:45 noobiedubie lol
19:46 noobiedubie if behavior did indeed change
19:46 schemanic noobiedubie, what does that mean, and how do I work with it? it can't be that I'm just supposed to use the |json filter for every pillar
19:46 MTecknology ya
19:48 noobiedubie not necessarily all of them but you might have to change your existing states in some instances to include it as this is probably not going anywhere anytime soon and is going to be norm for a while
19:50 DanyC_ joined #salt
19:53 schemanic I see. It's broken, so we have to go break all of our code until it's unbroken
19:55 schemanic that was not quite fair. I am still irritated
19:55 edrocks joined #salt
19:59 aldevar1 joined #salt
20:14 Hybrid1 joined #salt
20:18 kavakava joined #salt
20:21 ecdhe schemanic: I appreciate quality efforts, but I do wish that bug-fixes were released faster than feature releases
20:21 briner joined #salt
20:28 schemanic hey ecdhe thanks. MTecknology, noobiedubie thank you for your assistance.
20:29 Trauma joined #salt
20:34 onlyanegg joined #salt
20:37 nku joined #salt
20:38 mikecmpbll joined #salt
20:39 noobiedubie joined #salt
20:55 noobiedubie joined #salt
21:06 cyteen joined #salt
21:18 Trauma joined #salt
21:22 cewood joined #salt
21:24 mchlumsky joined #salt
21:29 nafg joined #salt
21:34 MTecknology call for speakers already, eh?
21:37 cewood joined #salt
21:40 coredumb MTecknology: you should go describe the lawyer setup :D
21:41 MTecknology My plan was to finish off my "perfect automation" and have an amazing demo and just all sorts of sexy magic.
21:44 orichards joined #salt
21:46 MTecknology dear $deity... Why the crap is the salt master storing a plain-text version of every password that every system uses in the entire network inside each minions' copy of data.p?
21:47 MTecknology I know the answer to that, but I'm whining anyway.
21:52 MTecknology coredumb: Whenever I finish building it, I plan to document it as a github project. If you're interested, I can try to remember to ping me every year or so. ;)
22:02 sreddy joined #salt
22:05 cewood joined #salt
22:05 MTecknology Edgan: Wanna see the top part of a really super amazing set of ntp states?  http://dpaste.com/2AM2QBS
22:06 briner joined #salt
22:26 jab416171 joined #salt
22:39 esteban joined #salt
22:45 greatgatsby joined #salt
22:58 greatgatsby Hello.  Does anyone have any suggestions for troubleshooting multi-master with redis cache?  This is the config I'm using:  https://paste.debian.net/1019652/  From both the master and the minion I can use python and the redis module to interact with the redis db.  However, after I accept the minion key and do a test.ping, I just get a connection timeout.  I'm also getting debug errors about "Failed to allocate a jid. The requested returner
22:58 greatgatsby 'redis' could not be loaded."  There doesn't seem to be anything being written to the redis server either.  Any suggestions are much appreciated.
22:59 greatgatsby this is salt 2018.3.0 on both master and minion
23:17 Hybrid joined #salt
23:26 Bryson joined #salt
23:29 notCalle joined #salt
23:39 cewood joined #salt
23:49 justanotheruser joined #salt

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