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.)

  1. 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.)

  2. Add state: absent to 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
    # ...
    
  3. Remove installation(s)

    There are two options available:

    1. Remove installation but leave DBs and S3 bucket intact:

      cd ${GIT_ROOT}/tocco
      ansible-playbook playbook.yml -l abc,abctest
    2. Remove 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 --check if you want to know what would be removed without actually removing anything.

Remove WordPress (Server Configuration, DB, WordPress, etc.)

  1. Add wordpress_state: absent to 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
    
    # ...
    
  2. Remove WordPress instances(s)

    There are two options available:

    1. Remove Configuration leaving DBs, WordPress and WordPress data intact:

      cd ${GIT_ROOT}/wordpress
      ansible-playbook playbook.yml -l wp_abc,wp_abctest
    2. Remove 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 --check if 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.

  1. Remove include 'customer:${CUSTOMER}' from settings.gradle.

  2. Remove directory customer/${CUSTOMER}/.