You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

The `ansible repository
<>`_ is run from the
`/srv/checkout` directory of the `` virtual
machine as follows:
.. code::
ansible-playbook --private-key infrastructure_key \
--user debian \
-i inventory \
The ansible inventory is created by the
``molecule/infrastructure/create.yml`` playbook and stored in the
``hosts.yml`` file every time the ``molecule create`` command runs.
The inventory is read from the ``hosts-base.yml`` file, the IP address of each
host is added and the result is written into ``hosts.yml``.
The `/srv/checkout` directory is a clone of the `ansible repository
<>`_ and can be updated with:
.. code::
git fetch ; git rebase
Testing a production upgrade
Testing strategy to verify we can go from nothing to the most recent
version and also upgrade from the currently used version to the most
recent version. Assuming we always tag the repository before applying
it to the production.
Using an empty tenant:
* git checkout previous-version-tag
* molecule verify # nothing -> previous-version-tag
* git checkout master # version under test
* molecule verify # previous-version-tag -> master
* molecule tests # nothing -> master