osp.edpm.container_config_hash module – Generate config hashes for container startup configs¶
New in osp.edpm 2.9
Synopsis¶
Compute SHA-256 hashes from container config volume mounts. When called with ‘quadlet_staging_dir’ and ‘containers’, reads Volume= lines from each staged Quadlet .container file, computes the hash, and writes it into the ‘config_hash’ comment placeholder (Quadlet path). When called without parameters, scans container startup configs and updates them in place (container_manage path).
Requirements¶
The below requirements are needed on the host that executes this module.
None
Parameters¶
Parameter |
Comments |
|---|---|
Ansible check mode is enabled Choices:
|
|
Config volume prefix Default: |
|
List of container names to process in the staging directory. Each name maps to a staged file named edpm_<name>.container. Default: |
|
Path to the directory containing staged Quadlet .container files. Used together with ‘containers’ to compute and inject config hashes. Default: |
Examples¶
- name: Update config hashes for container startup configs
container_config_hash:
- name: Inject config hashes into staged Quadlet files
container_config_hash:
quadlet_staging_dir: /var/lib/edpm-config/quadlet-rendered
containers:
- ovn_controller