Installs pmm-server on Ubuntu 16.04 (Xenial)
This role requires Ansible 2.4 or higher.
- pip
- docker
chrissam.pmm-server
- name: run the main role
hosts: all
roles:
- role: entercloudsuite.pmm-server
pmm_server_ENABLE_SSL: false
pmm_client_PROTECTED: true
pmm_server_version: 1.11.0
pmm_server_username: pmm-administrator
pmm_server_password: verys3cre3t
pmm_client_http_port: 80
pmm_client_https_port: 443
Tests are performed using Molecule.
Install Molecule or use docker-compose run --rm molecule
to run a local Docker container, based on the enterclousuite/molecule project, from where you can use molecule
.
- Run
molecule create
to start the target Docker container on your local engine. - Use
molecule login
to log in to the running container. - Edit the role files.
- Add other required roles (external) in the molecule/default/requirements.yml file.
- Edit the molecule/default/playbook.yml.
- Define infra tests under the molecule/default/tests folder using the goos verifier.
- When ready, use
molecule converge
to run the Ansible Playbook andmolecule verify
to execute the test suite.
Note that the converge process starts performing a syntax check of the role.
Destroy the Docker container with the commandmolecule destroy
.
To run all the steps with just one command, run molecule test
.
In order to run the role targeting a VM, use the playbook_deploy.yml file for example with the following command: ansible-playbook ansible-pmm-server/molecule/default/playbook_deploy.yml -i VM_IP_OR_FQDN, -u ubuntu --private-key private.pem
.
MIT