Module - paunch

This module provides for the following ansible plugin:

  • paunch

Module Documentation

Start or stop containers with Paunch

Options

config

JSON file or directory of JSON files containing configuration data

config_id

ID to assign to containers

action

The desired action to apply for the container.

config_overrides

Dictionary to override containers configs

container_cli

The container CLI.

container_log_stdout_path

Absolute path to a directory where container stdout will be stored.

healthcheck_disabled

Whether or not we disable the Containers Healthchecks

managed_by

Name of the tool managing the containers. Only containers labelled with this will be modified

debug

Whether or not we enable Debug

log_file

Absolute path for the paunch log file.

cleanup

Whether or not we cleanup containers not in config. Useful only for apply action.

container_name

If given just run paunch for the specified container.

Authors

OpenStack TripleO Contributors

Example Tasks

- name: Start containers for step 1
  paunch:
    config: /var/lib/tripleo-config/hashed-container-startup-config-step_1.json
    config_overrides:
      haproxy:
        image: docker.io/tripleomaster/centos-binary-haproxy:current-tripleo-hotfix
    config_id: tripleo_step1
    cleanup: false
    action: apply
# Paunch cleanup example
- name: Cleanup containers for step 1 and step 2
  paunch:
    config_id:
    - tripleo_step1
    - tripleo_step2
    action: cleanup