Module - container_puppet_config

This module provides for the following ansible plugin:

  • container_puppet_config

Module Documentation

Generate puppet containers configs

Options

no_archive

Disables config-data archiving

check_mode

Ansible check mode is enabled

config_vol_prefix

Config volume prefix

debug

Enable debug

net_host

Using host network

puppet_config

Path to the puppet configs

short_hostname

Short hostname

step

Step number

update_config_hash_only

When set to True, the module will only inspect for new config hashes in config_vol_prefix and make sure the container-startup-configs are updated with these hashes. This is useful to execute before we manage the startup containers, so they will be restarted if needed (e.g. new config has been applied, container needs restart).

Authors

Emilien Macchi (@EmilienM)

Example Tasks

- name: Generate puppet container config for step 1
  container_puppet_config:
    step: 1
    puppet-config: /var/lib/container-puppet/container-puppet.json
    short_hostname: '{{ ansible_hostname }}'
    update_config_hash_only: false
- name: Update config hashes for container startup configs
  container_puppet_config:
    update_config_hash_only: true