C3InfoDesk Deployment
WIP
- Finish the roles for deploying the c3InfoDesk Printer.
- Create molecule tests for the roles.
- Set ansible-lint for the roles.
-
Add molecule tests to CI-CD
- CI-CD tests can't run molecule tests on this server because DIND (docker in docker) is not setted to be used :(
What is this?
This is a repo for deploying the the printer system used at the c3infodesk for printing EXTREMILY NECESSARY documents.
Dependencies
To have ansible installed at your system.
Roles
Here are the used roles:
The roles are setted as git submodules.
For adding this roles to this repository, you need to start/init the submodules. You can do it by runnig this command:
git submodule update --init
How to use this
-
- Clone this repo.
-
- Init the submodules
-
- Edit the files.
- Set your remote_user configuration at the ansible.cfg file.
- Set your inventories/host_vars/<TARGET_NAME> file.
-
- Run the playbooks
- Example for deploying the containers at the target:
ansible-playbook -i inventories/hosts playbooks/examples/example_05_docker_containers.yml -
- Change the default environment variables setted from the docker-compose.yml file to your needs and recreate the containers. You might need to login at the target for doing it so.
Local testing
At the moment, the only tests setted CI-CD are.
-
ansible-playbook syntax-check
ansible-playbook --syntax-check -i <YOUR_INVENTORY> <YOUR_PLAYBOOK_NAME> -
ansible-lint
ansible-lint <YOUR_PLAYBOOK_NAME>
License
MIT / BSD