[09:29:16] can any helpful puppet people tell me how db1132 (which has `role(mariadb::misc)` in `site.pp`) somehow has the `mariadb::misc::phabricator` role applied in prod? [09:31:00] kormat: mmm I see [09:31:01] node 'db1132.eqiad.wmnet' { class { '::role::mariadb::misc::phabricator': [09:33:45] elukey: where do you see that? [09:34:19] kormat: site.pp, line 638, should be updated in theory [09:34:34] did you merge something minute ago that I might have missed? [09:34:54] ohh god. no, sorry. [09:35:05] i made a local edit by mistake, and then didn't notice [09:35:18] ahhhhh okok that explains it [09:35:31] i.. uh... *scrambles for distraction* [09:36:11] tada: https://usercontent.irccloud-cdn.com/file/YN0Woe4D/20200820_212536.jpg [09:37:00] :D [09:46:32] jbond42: is there any way to get pcc to run against 2 different roles at once? [09:46:45] i attempted `Hosts: O:mariadb::misc or O:mariadb::misc::phabricator` [09:46:53] which resulted in zero hosts [09:47:55] kormat:not really, you can try and use a profile which is in both roles i.e. P:something [09:48:21] but normally i just use a host list or regex at that point [09:48:31] mm, ok. i guess i'll just do 2 runs [09:56:37] <_joe_> kormat: is that one of your cats? [09:56:52] <_joe_> they're too cute [09:57:13] she is, yep :) [09:57:46] <_joe_> I have a soft spot for calico cats [09:58:02] i approve :) [10:41:42] My calico is short haired, yours is so fluffy! [10:43:31] apergos: _super_ fluffy and soft. she's a menace [10:43:52] mine's a menace too. little predators! [10:43:57] :D [13:32:28] cdanis: i wrote something kinda terrible in bash, so i feel i should show you: https://phabricator.wikimedia.org/P12403 [13:33:27] oh this isn't that bad [13:34:27] yeah it has those cool ascii 10 characters that cdanis never uses in his scripts [13:34:36] -1 needs awk [13:34:51] rzl: haha [13:34:58] rzl: one of my more embarrassing mistakes was not adding emojis to emojifs's logging output from the start [13:35:18] cdanis: it's pretty bad because it's not guaranteed to actually work [13:35:46] because the heartbeat doesn't always appear in the log? or something else [13:36:07] it has an implicit assumption that the relevant line appears 3 lines before the REPLACE.*heartbeat line [13:36:19] this appears to be true most of the time, but not all of it [13:36:24] sometimes it's maybe 8 lines before [13:36:36] ahh [13:36:38] <_joe_> kormat: oh my [13:36:49] awk could probably do this [13:37:03] <_joe_> you lost me at [13:37:05] <_joe_> read file pos < <(ssh "$host" "sudo mysql -BN -e 'show master status'") [13:37:11] _joe_: :D [13:37:17] what's wrong with that [13:38:19] also kormat if you're going to write ${foo:?} a bunch you might as well just set -u [13:38:48] yeah true [13:39:17] <_joe_> set -u is a root of evil [13:39:27] (I think set -eu; set -o pipefail are good choices for almost all scripts tbh) [13:39:41] <_joe_> cdanis: nothing, it just shows the world you too, once upon a time, were a perl programmer [13:40:10] <_joe_> I disagree on -u, it makes using -z useless in tests [13:40:11] _joe_: i have never been a perl programmer :P [13:40:54] <_joe_> kormat: you mean you never wrote witty perl one-liners, and felt pleased with how compact they were? [13:40:59] correct. [13:41:22] <_joe_> we need to re-think our hiring loops. [13:41:33] we were all perl programmers once, in the same way we were all australopithecus [13:41:39] _joe_: it's a bit late. a friend of mine starts here on monday :) [13:41:59] <_joe_> rzl: thanks for making my point better than I could. [13:43:07] <_joe_> cdanis: I also have conflicting feelings regarding writing "clean" bash [13:43:23] <_joe_> on one hand, I love if I can read a bash script and understand what's happening [13:43:37] <_joe_> on the other, if cleanliness is really needed, then don't use bash. [13:43:49] <_joe_> use csh! [13:44:32] I'll have you know that Perl was one of my first languages and that writing a Perl one-liner got me hired here :P [13:44:55] <_joe_> i wasn't doubting your past cdanis [13:47:24] it wasn't even an especially clever one-liner :( [13:51:44] <_joe_> clever one liners always take time [14:23:35] _joe_: indeed. they take time from everyone who has to read them. [17:27:58] cdanis: https://twitter.com/matthew_d_green/status/1299032008593682432 [17:28:27] so like discord? [17:28:36] Discord is limiting in this respect lmata [17:28:45] they monetize custom emoji [17:28:52] they know the market [17:29:30] heh [17:32:53] I actually know the restrictions well and can walk through them if you're interested, but I'm going to assume not :) [17:56:20] the discord restrictions? [17:56:55] yeah [17:57:09] you underestimate my thirst for trivia and nuance 😉 [17:57:18] I figured ;) [17:57:34] please shed light on this matter at your discretion [17:58:14] each 'server' (called guild in the API; from a user's perspective it's like a Slack instance or an IRC server) can host N emotes and N animated emotes, where N depends on how much the server has been 'boosted' (basically crowdfunding) [17:58:27] any user can use any of the non-animated emotes within that server [17:58:52] users who have paid for 'nitro' can use animated emotes, and can use emotes from any server across all other server* (assuming that server allows 'foreign' emotes) [17:59:15] paying for 'nitro' also allows you to 'boost' a small number of servers [17:59:35] (that also comes with other benefits, like increased bitrate for streaming video, and I forget what else) [18:02:46] awesome [20:28:21] mutante: hiya, yt? [20:33:29] or anybody I guess [20:33:39] i'm trying to help razzi make his first gerrit patch to admin data.yaml [20:33:47] we need to look up the uid he got from wikitech [20:33:49] * razzi waves [20:33:54] admin module docs say [20:33:58] # ldaplist -l passwd someuser [20:33:59] but [20:34:05] If you are still relying on ldaplist and not using ldapsearch, [20:34:05] please comment on https://phabricator.wikimedia.org/T114063. [20:34:05] The search returned an error. [20:34:16] I always look here https://ldap.toolforge.org/user/razzi [20:34:18] trying ldapsearch, but i can't seem to find his account. [20:34:29] ah! [20:34:30] User ID: 26051 [20:34:33] cool [20:34:42] so that should be the shell account uid in data.yaml? [20:34:44] the LDAP docs in wikitech are not great, and a few differnt pages say conflicting things [20:35:03] yeah [20:35:06] ottomata: I do this: [mwmaint1002:~] $ /usr/bin/ldapsearch -x "uid=razzi*" [20:35:32] ah ha thanks, that worked too! [20:35:36] yes, should be the UID [20:36:00] razzi: , when you make your patch to data.yaml in gerrit, can you also include a change to update the modules/admin/README file [20:36:06] to the command mutante just put? [20:36:14] Cool yeah [20:36:18] replace [20:36:18] ldaplist -l passwd someuser with what he said [20:36:25] great stuff [20:36:30] ottomata: I also do stuff like: ✔️ cdanis@mwmaint1002.eqiad.wmnet ~ 🕟🍵 ldapsearch -x mail='rabuissa*' [20:37:06] great [20:37:10] ty