[00:21:02] mutante: \m/ Phab update [07:08:15] Volan.s: google search cache cleared yesterday so it wasn't too bad [08:20:49] RhinosF1: ack, thx for checking [08:34:14] Anyone around can merge https://gerrit.wikimedia.org/r/c/operations/puppet/+/861805 ? I'm not in front of a laptop, but would be nice to stop the spam, it only affects cloud [08:34:37] dcaro: looking [08:35:00] merging [08:35:09] Thanks! [08:35:26] dcaro: puppet-merge completed [08:35:31] np [09:04:19] Np [15:47:48] A puppet/erb question: I have a set of template-baed config files, each of which includes an identical snippet. Is there a way for me to make a sub-template for that snippet and then have that shared sub-template included in each of my (eight!) configs? [15:48:59] I could load the text into a variable in the manifest and pass it in but then I have to change all eight manifests that produce the eight configs :) [15:56:18] andrewbogott: https://puppet.com/docs/puppet/5.5/lang_template_erb.html#calling-puppet-functions-from-templates < The first example likely does what you want [15:56:41] nice! thank you, will try [15:56:42] Other way to do it is with concat fragments [15:56:48] But it can get cumbersome [15:57:10] (and is a different pattern than template-in-template) [15:58:56] for this at least template-in-template should work [15:59:15] It'll insert some extra SPDX-License-Identifiers in the middle but I can live with that [16:05:14] claime: it works! https://puppet-compiler.wmflabs.org/output/861890/38484/cloudcontrol1005.wikimedia.org/index.html [16:05:16] thanks again [16:11:59] andrewbogott: you can probably filter out comments with a bit of ruby if you don't want the headers [16:12:33] yeah. It also seems to not want to do @substitution in the template name [16:15:22] You can probably get around that with generating the template name first and putting it in a variable, then using scope.call_function, but it starts getting hacky [16:16:41] #{@version} works. So much escaping! [16:17:16] Inline ruby joys [18:45:32] sukhe: thank you, I hope it also feels snappier [21:35:38] please hold any netbox edit or run of the decommission/reimage cookbook for the next ~15 minutes, I have to restore a netbox backup (see -dcops for context) [21:46:27] ok you can now resume normal work, thanks