Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ data/backups/
data/form_backups/
data/forms_backups/
data/forms_staging/
data/uploads/
# the files uploaded with the forms (its folder kept, for the jobs' mount)
data/uploads/*
!data/uploads/.gitkeep
# the libraries the pip install playbook adds (its folder kept, for the jobs' mount)
data/python/*
!data/python/.gitkeep
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ host. With Podman, set `RTE_ENGINE=podman` and `ENGINE_SOCKET` to Podman's socke
`/run/user/<uid>/podman/podman.sock` rootless, with `RTE_USER=0`).

`data/seed.yaml` registers it as the default runner on every start, so it is read-only under Connections > Runners.
Ansible settings, roles and collections under `data/ansible/`, the SSH key and the libraries the pip install playbook adds
are mounted into every job (`RTE_JOB_MOUNTS`), not the app. When your playbooks need more, build an image FROM
`ansibleforms-rte-core` or `ansibleforms-rte-full` and set it as `RTE_IMAGE`: [ansibleforms/rte](https://github.com/ansibleforms/rte/tree/main/examples) shows how.
Ansible settings, roles and collections under `data/ansible/`, the SSH key, the libraries the pip install playbook adds,
and the vars files and uploads (read-only, at their paths in the app) are mounted into every job (`RTE_JOB_MOUNTS`), not
the app. When your playbooks need more, build an image FROM `ansibleforms-rte-core` or `ansibleforms-rte-full` and set it as `RTE_IMAGE`: [ansibleforms/rte](https://github.com/ansibleforms/rte/tree/main/examples) shows how.

## Several nodes

Expand Down
Empty file added data/uploads/.gitkeep
Empty file.
Empty file added data/vars/.gitkeep
Empty file.
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ services:
- RTE_ENGINE_SOCKET=/run/engine.sock
- RTE_IMAGE=ghcr.io/ansibleforms/ansibleforms-rte-full:7
# What every job gets from ./data, as the playbooks had it in the RTE before : the ansible.cfg,
# roles and collections, the SSH key and the git settings, and the libraries the
# ansibleforms_pip_install playbook installs (PYTHONPATH)
- RTE_JOB_MOUNTS=/app/dist/persistent/ansible/ansible.cfg:/etc/ansible/ansible.cfg,/app/dist/persistent/ansible/roles:/etc/ansible/roles,/app/dist/persistent/ansible/collections:/etc/ansible/collections,/app/dist/persistent/ssh:/home/node/.ssh:rw,/app/dist/persistent/git/.gitconfig:/home/node/.gitconfig,/app/dist/persistent/python:/app/dist/persistent/python:rw
# roles and collections, the SSH key and the git settings, the libraries the
# ansibleforms_pip_install playbook installs (PYTHONPATH), and the vars files and uploads
# (read-only, at their paths in the app)
- RTE_JOB_MOUNTS=/app/dist/persistent/ansible/ansible.cfg:/etc/ansible/ansible.cfg,/app/dist/persistent/ansible/roles:/etc/ansible/roles,/app/dist/persistent/ansible/collections:/etc/ansible/collections,/app/dist/persistent/ssh:/home/node/.ssh:rw,/app/dist/persistent/git/.gitconfig:/home/node/.gitconfig,/app/dist/persistent/python:/app/dist/persistent/python:rw,/app/dist/persistent/vars:/app/dist/persistent/vars,/app/dist/persistent/uploads:/app/dist/persistent/uploads
- PYTHONPATH=/app/dist/persistent/python/lib
volumes:
# The app's folders : playbooks, repositories, uploads, the SSH key, the ansible settings
Expand Down