Skip to content
Snippets Groups Projects
Commit 35234488 authored by fejao's avatar fejao
Browse files

Updating test files

parent 96615508
No related branches found
No related tags found
2 merge requests!31Adding role oh my bash submodule,!30Adding role oh my bash submodule
Pipeline #37883 passed
......@@ -17,33 +17,48 @@
- [x] [oh_my_bash](https://git.cccv.de/fejao/c3infodesk-deployment/-/commit/6bf23eb4335ad92ba42b9d1872abf497aed735cc)
- [x] 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 at this server :(
## 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](https://docs.ansible.com/ansible/latest/installation_guide/installation_distros.html) installed at your system.
## Roles
Here are the used roles:
- [dependencies](roles/dependencies/README.md)
- [clone_repositories](roles/clone_repositories/README.md)
- [docker_images](roles/docker_images/README.md)
- [docker_containers](roles/docker_containers/README.md)
- [dependencies(role)](https://git.cccv.de/fejao/c3infodesk-deployment-role-dependencies)
- [clone_repositories](https://git.cccv.de/fejao/c3infodesk-deployment-role-clone-repositories)
- [docker_images](https://git.cccv.de/fejao/c3infodesk-deployment-role-docker-images)
- [docker_containers](https://git.cccv.de/fejao/c3infodesk-deployment-role-docker-containers)
- [oh_my_bash](https://git.cccv.de/fejao/c3infodesk-deployment-role-oh-my-bash)
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:
```bash
git submodules update --init
```
## How to use this
- 1. Clone this repo.
- 2. Edit the files.
- 2. Init the submodules
- 3. Edit the files.
- Set your **remote_user** configuration at the **ansible.cfg** file.
- Set your **inventories/host_vars/<TARGET_NAME>** file.
- 3. Run the playbooks
- 4. Run the playbooks
- Example for deploying the containers at the target:
```bash
ansible-playbook -i inventories/hosts playbooks/examples/example_05_docker_containers.yml
```
- 4. Change the default environment variables setted from the [docker-compose.yml](https://git.cccv.de/fejao/c3infodesk-printer/-/blob/main/docker/docker-compose.yml) file to your needs and recreate the containers. You might need to login at the **target** for doing it so.
- 5. Change the default environment variables setted from the [docker-compose.yml](https://git.cccv.de/fejao/c3infodesk-printer/-/blob/main/docker/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.
......@@ -62,10 +77,7 @@ At the moment, the only tests setted CI-CD are.
MIT / BSD
## Author Information
![fejao logo](files/from_authors/fejao_logo_circle.png "fejao") [https://chaos.social/@fejao](https://chaos.social/@fejao)
## Author Information
[https://chaos.social/@fejao](https://chaos.social/@fejao)
......@@ -5,4 +5,5 @@
hosts:
- example_servers_group
roles:
# - roles/oh_my_bash
- roles/c3infodesk-deployment-role-oh-my-bash
......@@ -5,4 +5,5 @@
hosts:
- example_servers_group
roles:
- roles/test
# - roles/test
- roles/c3infodesk-deployment-role-test
......@@ -5,4 +5,5 @@
hosts:
- example_servers_group
roles:
- roles/dependencies
# - roles/dependencies
- roles/c3infodesk-deployment-role-dependencies
......@@ -5,4 +5,5 @@
hosts:
- example_servers_group
roles:
- roles/clone_repositories
# - roles/clone_repositories
- roles/c3infodesk-deployment-role-clone-repositories
......@@ -5,4 +5,5 @@
hosts:
- example_servers_group
roles:
- roles/docker_images
# - roles/docker_images
- roles/c3infodesk-deployment-role-docker-images
......@@ -4,7 +4,8 @@
hosts:
- example_servers_group
roles:
- role: roles/docker_containers
# - role: roles/docker_containers
- role: roles/c3infodesk-deployment-role-docker-containers
vars:
c3infodesk_printer_host_cups_disable: true
c3infodesk_printer_host_cups_mask: true
......
......@@ -5,4 +5,5 @@
hosts:
- example_servers_group
roles:
- roles/oh_my_bash
# - roles/oh_my_bash
- roles/c3infodesk-deployment-role-oh-my-bash
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment