theforeman / foreman-quadlet

0 stars 4 forks source link

Quadlet Testing

This repository is testing a deployment of Foreman and Katello using Podman quadlet's and Ansible.

Deployment

This setup uses Vagrant to create a basic VM for running the deployment on:

vagrant up quadlet
ansible-playbook playbooks/setup.yaml
ansible-playbook playbooks/deploy.yaml

Testing

To run tests:

Ensure you have a deployment

vagrant up quadlet
ansible-playbook playbooks/setup.yaml
ansible-playbook playbooks/deploy.yaml

Now run the tests:

./run_tests

Service Configuration

Configuration files for services are stored as podman secrets and mounted into the container at the expected locations. These configuration files can be listed:

podman secret ls

To view an individual configuration file:

podman secret inspect --showsecret --format "{{.SecretData}}" <secret-name>

Naming Convention

Each secret, whether a configuration file or value shall following the following conventions:

Naming:

* Config files: <role_namespace>-<filename>-<extension>
* Strings: <role_namespace>-<descriptive_name>

Naming when additional application context is required that does not match the role_namespace:

* Config files: <role_namespace>-<app>-<filename>-<extension>
* Strings: <role_namespace>-<app>-<descriptive_name>

Each shall contain labels that provide additional metadata:

* Config Files
    - filename: <name of file>.<extension>
    - app: <name of application that uses the configuration file>
* Strings:
    - app: <name of application that uses the string>

TODOs: