I'd like to open a discussion here about a recent task I am working on.
Regarding on puppetize T183983 I don't really know which way to take.
What we need:
- a systemd service
- a patched "binary" (in this case a perl file tbh. , not binary) pt-kill-wmf
- config file for that service.
I created a Debian package for that and tried to find the way how it should be solved (where to build the .deb package, where to put the package for access it from puppet, etc.) But after talking with Joe, I learned that the .deb package is might be not the best way - because there are a few files only to manage.
However after talking with Jaime it seems it would be good, because we don't only have to do this regarding to pt-kill but we also will have to do the same with pt-heartbeat.
We even talked about that maybe it wouldn't be a bad idea to create a wmf-percona-toolkit package which can contain all the patched files (if ever) and systemd files (if ever) etc.
Both ways has pros and cons, but I'd prefer .deb package, it would be really clean, install the package, and generate the config from a template, but I can see if Percona eventually will patch the pt-kill tool, then the package become obsolete. (Not if the pt-heartbeat will be included).
So, where to go? They say 'In Rome do as the Romans do' so I am really curious what the Romans say here.