A saltstack formula handling installation of saem_ref.
Installs the saemref package from logilab repositories and create an instance.
Manage instance configuration files.
Install and manage supervisor configuration for the saemref installation.
The script run-test.py can help to develop and test the formula using docker and testinfra.
The command ./run-test.py dev centos6
will build image from
test/centos6.Dockerfile
and span a shell in a new container with mounted
volumes from the host (so you can develop formula on the host and test it in
the container with salt-call
).
The command ./run-test.py dev centos6 --salt
is the same as above but will
provision the container (eg. calling salt-call state.highstate
)
The command ./run-test.py test centos6
built a provisioned image
(highstate) and run testinfra tests on it.
Note that you can add any parameters that testinfra (pytest) accept, for
instance ./run-test.py test centos6 -k idempotence --pdb
.