Page MenuHomePhabricator

stewards machines: Store a list of stewards with various details
Open, Needs TriagePublic

Description

Somewhere on the stewards* machines, we need to store a list of stewards with various details (preferably, as a yaml file). This is an example of an entry:

- sul_username: Martin Urbanec
  email_address: martin.urbanec@wikimedia.cz
  roles:
  - steward

For a full list, see stewards1001:/home/urbanecm/config/users.yaml for the current version.

Considering this list will contain email addresses, it should be private. Not sure how exactly to maintain it though: a local-only repo that is somehow synced with both of the machines? a private repo from GitLab? something else?

Event Timeline

Change #1016441 had a related patch set uploaded (by Dzahn; author: Dzahn):

[operations/puppet@production] stewards: puppetize steward-onboarder config file and paths

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

A local git repo that we rsync between machines sounds reasonable to me for this case.

Change #1016441 merged by Dzahn:

[operations/puppet@production] stewards: add config and export dirs, steward onboarder config

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

[urbanecm@stewards1001 ~]$ cat /etc/steward-onboarder/steward-onboarder.yaml 
# SPDX-License-Identifier: Apache-2.0
config_paths:
  roles: /srv/repos/onboarding-system/config/roles.yaml
  users: /srv/repos/users-db/users.yaml

export_base_dir: /srv/exports
[urbanecm@stewards1001 ~]$

Config file now exists within the system. /srv/repos/users-db now needs to be created (likely as a local-only git repo, but a different solution would work for me as well).

Running onboarder with the new config works (read as "without setting STEWARD_ONBOARDER_CONFIG), except it generates empty exports, as /srv/repos/users-db/users.yaml does not contain any users so far.

Change #1022170 had a related patch set uploaded (by Dzahn; author: Dzahn):

[operations/puppet@production] stewards: create a local git repo for user db data

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

Change #1022170 merged by Dzahn:

[operations/puppet@production] stewards: create a local git repo for user db data

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