role_podman/README.md

90 lines
2.5 KiB
Markdown
Raw Normal View History

2023-12-21 16:30:57 +00:00
# role_podman
2023-12-21 15:36:50 +00:00
2024-10-22 09:14:15 +00:00
Install podman and manage pods and containers.
## Pre-requisite
The podman user (`podman_user`) must be created before executing this role.
2023-12-21 16:30:57 +00:00
## Variables
2024-10-22 09:14:15 +00:00
### podman_packages
List of packages to install in order to use podman.
<span style="text-decoration: underline">Default value:</span> `["catatonit", "dbus-user-session", "passt", "podman", "podman-docker", "uidmap", "systemd-container"]`
### podman_fix_pasta
On bookworm, we need to fix pasta to use podman ([see here](https://github.com/containers/buildah/issues/5440#issuecomment-2028911573)).
<span style="text-decoration: underline">Default value:</span> `false`
### podman_user
Users with container configuration.
<span style="text-decoration: underline">Default value:</span> `podman`
2024-04-18 19:26:32 +00:00
### podman_configure_rsyslog
2024-10-22 09:14:15 +00:00
Status of messages from the *podman* binary and from binaries in containers if they're equalto the container name.
2024-04-18 19:26:32 +00:00
2024-10-22 09:14:15 +00:00
<span style="text-decoration: underline">Default value:</span> `true`
2024-04-18 19:26:32 +00:00
2024-10-22 09:14:15 +00:00
### podman_ssh_host
2023-12-21 16:30:57 +00:00
2024-10-22 09:14:15 +00:00
Host to be tested for instance availability.
2023-12-21 16:30:57 +00:00
2024-10-22 09:14:15 +00:00
<span style="text-decoration: underline">Default value:</span> `{{ inventory_hostname }}`
2024-02-08 16:05:45 +00:00
2024-10-22 09:14:15 +00:00
### podman_ssh_port
2024-02-08 16:05:45 +00:00
2024-10-22 09:14:15 +00:00
Port to be tested for instance availability.
2024-02-08 16:05:45 +00:00
2024-10-22 09:14:15 +00:00
<span style="text-decoration: underline">Default value:</span> `22`
2024-02-08 16:05:45 +00:00
2024-10-22 09:14:15 +00:00
### podman_auto_update
Status of the automatic container update service.
<span style="text-decoration: underline">Default value:</span> `true`
### podman_pods
List of dictionnaries to define pods ([see ansible documentation](https://docs.ansible.com/ansible/latest/collections/containers/podman/podman_pod_module.html)).
<span style="text-decoration: underline">Default value:</span> none
### podman_containers
2024-02-08 16:05:45 +00:00
2024-10-22 09:14:15 +00:00
List of dictionnaries to define containers ([see ansible documentation](https://docs.ansible.com/ansible/latest/collections/containers/podman/podman_container_module.html#ansible-collections-containers-podman-podman-container-module)).
<span style="text-decoration: underline">Default value:</span> none
## Extras
It's possible to use this role with the alvistack repository by setting the variables to the following values:
```yaml
# BEGIN role_podman
podman_packages:
- catatonit
- dbus-user-session
- containernetworking-dnsname
- containernetworking-plugins
- containernetworking-podman-machine
- passt
- podman
- podman-aardvark-dns
- podman-docker
- podman-gvproxy
- podman-netavark
- python3-podman-compose
- uidmap
- systemd-container
podman_fix_pasta: true
# END role_podman
2024-02-08 16:05:45 +00:00
```