Page MenuHomePhabricator

clean up centralauth dump script
Closed, DeclinedPublic

Description

The current central auth dump script uses eval plus a bunch of greps in order to get config opts and db host/user/password information. This is horrid. Replace those bits with callouts to MW for db info and some tiny ptyong script to return the configfile settings we want.

Event Timeline

ArielGlenn moved this task from Backlog to Active on the Dumps-Generation board.

https://github.com/wikimedia/operations-puppet/blob/production/modules/snapshot/templates/cron/dumpcentralauth.sh.erb

That's the script as it currently stands. People copy from it to make their own cron jobs. Ewww.

Change 301712 had a related patch set uploaded (by ArielGlenn):
tiny script that retrieves config values from dump config files

https://gerrit.wikimedia.org/r/301712

Change 301712 merged by ArielGlenn:
tiny script that retrieves config values from dump config files

https://gerrit.wikimedia.org/r/301712

Change 301670 merged by jenkins-bot:
provide the equivalent of getSlaveServer.php for centralauth

https://gerrit.wikimedia.org/r/301670

Might decline this (after having written it) because we may phase these out completely, see T153633

ArielGlenn closed this task as Declined.Jan 30 2017, 11:05 AM

Having seen no takers on "Stop the presses, I use these dumps!" after I asked around, have turned them off and declining my own ticket.