Update Admin role on Drupal
In order to apply propagate this change to existing websites (https://gitlab.cern.ch/paas-tools/okd4-install/-/merge_requests/1550) we need to run an operation over all websites.
Note: We can't just delete and recreate since users have already added their own e-groups to the current Administrator role
Procedure for changing 1 site:
-
- first add drupal-supporters using https://gitlab.cern.ch/drupal/paas/drupal-operations/-/blob/master/scripts/removeGroupFromDrupalAdmins.sh?ref_type=heads
-
- after remove drupal-admins, web-team-developers using https://gitlab.cern.ch/drupal/paas/drupal-operations/-/blob/master/scripts/addGroupToDrupalAdmins.sh?ref_type=heads
Steps:
- Validate scripts work for 1 website in staging
- Adapt scripts as needed to apply in batch to all websites (1 line oc command seems to suffice to run scripts for all projects)
- Run in all staging cluster and validate everything works as expected
- Document procedure so we can run in production