Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Configure machine classes for MySQL DB Admin #11359

Merged
merged 4 commits into from
Dec 15, 2021
Merged

Configure machine classes for MySQL DB Admin #11359

merged 4 commits into from
Dec 15, 2021

Conversation

ollietreend
Copy link
Contributor

This PR configures puppet for the new DB Admin MySQL instances. There is one commit for each app.

Trello ticket

Note: for now, the app Contacts Admin has been excluded from this PR because it needs renaming in the existing Puppet config.

🤖 Created with a bash script

The config files were created by a bash script to avoid human error. It's a bit hacky and brittle, but it gets the job done.

The bash script is available here: https://gist.github.com/ollietreend/6416b063cd8d33a0732bcf745aa77566

Run it yourself

The script makes the following assumptions about your environment:

  • The govuk-puppet repo is accessible at ~/govuk/govuk-puppet
  • The repo is already on a branch and ready for commits to be added (one per app)
  • You have GNU Sed installed and available as gsed

Execute it by running:

$ ./create-mysql-db-admin.sh "whitehall" "Whitehall"
$ ./create-mysql-db-admin.sh "signon" "Signon"
$ ./create-mysql-db-admin.sh "search_admin" "Search Admin"
$ ./create-mysql-db-admin.sh "release" "Release"

This creates a dedicated database admin machine for Whitehall, following the Account API convention devised in #11342.

This is in order to facilitate the implementation of [RFC-143][], which concludes that every GOV.UK relational database should have its own RDS instance.

Trello: https://trello.com/c/HjK4AbUS/49-configure-puppet-for-new-db-admin-mysql-instances

[RFC-143]: https://github.com/alphagov/govuk-rfcs/blob/main/rfc-143-split-database-instances.md
This creates a dedicated database admin machine for Signon, following the Account API convention devised in #11342.

This is in order to facilitate the implementation of [RFC-143][], which concludes that every GOV.UK relational database should have its own RDS instance.

Trello: https://trello.com/c/HjK4AbUS/49-configure-puppet-for-new-db-admin-mysql-instances

[RFC-143]: https://github.com/alphagov/govuk-rfcs/blob/main/rfc-143-split-database-instances.md
This creates a dedicated database admin machine for Search Admin, following the Account API convention devised in #11342.

This is in order to facilitate the implementation of [RFC-143][], which concludes that every GOV.UK relational database should have its own RDS instance.

Trello: https://trello.com/c/HjK4AbUS/49-configure-puppet-for-new-db-admin-mysql-instances

[RFC-143]: https://github.com/alphagov/govuk-rfcs/blob/main/rfc-143-split-database-instances.md
This creates a dedicated database admin machine for Release, following the Account API convention devised in #11342.

This is in order to facilitate the implementation of [RFC-143][], which concludes that every GOV.UK relational database should have its own RDS instance.

Trello: https://trello.com/c/HjK4AbUS/49-configure-puppet-for-new-db-admin-mysql-instances

[RFC-143]: https://github.com/alphagov/govuk-rfcs/blob/main/rfc-143-split-database-instances.md
Copy link
Contributor

@ChrisBAshton ChrisBAshton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work 👏

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants