Skip to content

configure-projects: move to subdir; add argparse, logging, and sample config

Brennen Bearnes requested to merge work/brennen/configure-projects into main

This moves configure-projects into a subdirectory, then adds a config file option and a verbosity flag:

--config [file] --verbose

Used argparse instead of click; seemed simpler in this case.

Also strips out a dependency on the token helper in gitlab_settings.

This is necessary plumbing for the timer to run this on the GitLab production box (instead of Tyler's laptop), defined here:

https://gerrit.wikimedia.org/r/c/operations/puppet/+/1035820

(I still need to figure out a handful of things on that one.)

Reviewers: @thcipriani @bd808

Bug: T355097

Edited by Brennen Bearnes

Merge request reports