This is an internal documentation. There is a good chance you’re looking for something else. See Disclaimer.
Remove Tocco Installation / WordPress Instance / Customer
Remove Tocco (OpenShift Project, S3 Bucket, Database, Etc.)
Schedule downtime on https://monitoring.vshn.net.
(Removing monitoring can take up to 30 minutes and we don’t want alerts to be sent out during this time.)
Add
state: absentto all Tocco installations to be removed:# ... abc: # ... installations: abc: state: absent # <-- remove this installation db_server: db1.tocco.cust.vshn.net abctest: state: absent # <-- remove this installation db_server: db1.tocco.cust.vshn.net # ...
Remove installation(s)
There are two options available:
Remove installation but leave DBs and S3 bucket intact:
cd ${GIT_ROOT}/tocco ansible-playbook playbook.yml -l abc,abctestRemove everything, including DBs and S3 bucket:
cd ${GIT_ROOT}/tocco ansible-playbook playbook.yml -t all,force-irrevocable-removal -l abc,abctest
Note about S3 buckets:
An S3 bucket may be used by multiple installations and it won’t be removed unless all remaining users (i.e. installations) are marked with
state: absent.Tip
Do a dry run using
--checkif you want to know what would be removed without actually removing anything.
Remove WordPress (Server Configuration, DB, WordPress, etc.)
Add
wordpress_state: absentto all WordPress instances to be removed:# ... abc: # ... installations: abc: wordpress: abc: wordpress_state: absent # <-- remove this WordPress instance other: wordpress_state: absent # <-- remove this WordPress instance wordpress_server: wp1.example.net # ...
Remove WordPress instances(s)
There are two options available:
Remove Configuration leaving DBs, WordPress and WordPress data intact:
cd ${GIT_ROOT}/wordpress ansible-playbook playbook.yml -l wp_abc,wp_abctestRemove everything, including DBs, WordPress and WordPress data:
cd ${GIT_ROOT}/wordpress ansible-playbook playbook.yml -t all,force-irrevocable-removal -l wp_abc,wp_abctest
Tip
Do a dry run using
--checkif you want to know what would be removed without actually removing anything.
Remove Tocco Installation and WordPress Instances from Inventory
Remove installation(s) / instance(s) / customer from config.yml and commit the change.
Remove DNS Entry
Go to https://cockpit.nine.ch and remove the DNS record for ${installation}.tocco.ch and any other records associated with the installation.
Username/Password in secrets2.yml.
Update information in BO
Set the installation status to “Veraltet”
Set the customer module that is linked to the installation to “Gelöscht” if all associated installations are obsolete.
Use filter “Aktive Kundenmodule ohne aktive Installation”.
Remove Customer Module from Nice2 Repo
Delete the customer’s module from the Nice2 Git repository if there are no other installations that require it.
Remove
include 'customer:${CUSTOMER}'from settings.gradle.Remove directory customer/${CUSTOMER}/.