Role - tripleo-nova-image-cache

Role Documentation

Welcome to the “tripleo_nova_image_cache” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “tripleo_nova_image_cache” role.

# All variables intended for modification should place placed in this file.

# All variables within this role should have a prefix of "tripleo_nova_image_cache"
tripleo_nova_image_cache_debug: '{{ (ansible_verbosity | int) >= 2 | bool }}'
tripleo_nova_image_cache_images: []
tripleo_nova_image_cache_use_proxy: false
tripleo_nova_image_cache_proxy_hostname: '{{ ansible_play_batch[0] }}'
tripleo_nova_image_cache_proxy_network: internal_api
tripleo_nova_image_cache_ignore_proxy_error: false
tripleo_nova_image_cache_proxy_concurrency: 1

Role Variables: main.yml

# While options found within the vars/ path can be overridden using extra
# vars, items within this path are considered part of the role and not
# intended to be modified.

# All variables within this role should have a prefix of "tripleo_nova_image_cache"
#
tripleo_nova_image_cache_proxy_source_ip: "{{ hostvars[tripleo_nova_image_cache_proxy_hostname][tripleo_nova_image_cache_proxy_network\
  \ ~ '_ip'] }}"
tripleo_nova_image_cache_is_proxy_host: '{{ tripleo_nova_image_cache_proxy_hostname
  == inventory_hostname }}'

Molecule Scenarios

Molecule is being used to test the “tripleo_nova_image_cache” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.

Scenario: default

Driver: podman
Molecule Inventory
hosts:
  all:
    hosts:
      ubi8:
        ansible_python_interpreter: /usr/bin/python3
Example default playbook
- name: Converge
  hosts: all
  roles:
  - role: tripleo_nova_image_cache