Role - tripleo-container-image-prepare

Role Documentation

Welcome to the “tripleo-container-image-prepare” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “tripleo-container-image-prepare” role.

tripleo_container_image_prepare_content: {}
tripleo_container_image_prepare_debug: false
tripleo_container_image_prepare_log_file: /var/log/tripleo-container-image-prepare.log
tripleo_container_image_prepare_roles: []

Molecule Scenarios

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

Scenario: build

Driver: docker
Example build playbook
- hosts: all
  name: Converge
  roles:
  - role: tripleo-container-image-prepare
    tripleo_container_image_prepare_content:
      parameter_defaults:
        AdditionalArchitectures: []
        ContainerImagePrepare:
        - modify_append_tag: -updated-TEST
          modify_only_with_labels:
          - kolla_version
          modify_role: tripleo-modify-image
          modify_vars:
            tasks_from: yum_update.yml
            update_repo: gating-repo,delorean-current,quickstart-centos-ceph-nautilus
            yum_repos_dir_path: /etc/yum.repos.d
          push_destination: '{{ hostvars[''registry''][''ansible_default_ipv4''][''address'']
            }}:5000'
          set:
            ceph_alertmanager_image: alertmanager
            ceph_alertmanager_namespace: docker.io/prom
            ceph_alertmanager_tag: latest
            ceph_grafana_image: grafana
            ceph_grafana_namespace: docker.io/grafana
            ceph_grafana_tag: latest
            ceph_image: daemon
            ceph_namespace: docker.io/ceph
            ceph_node_exporter_image: node-exporter
            ceph_node_exporter_namespace: docker.io/prom
            ceph_node_exporter_tag: latest
            ceph_prometheus_image: prometheus
            ceph_prometheus_namespace: docker.io/prom
            ceph_prometheus_tag: latest
            ceph_tag: v4.0.0-stable-4.0-nautilus-centos-7-x86_64
            name_prefix: centos-binary-
            name_suffix: ''
            namespace: docker.io/tripleomaster
            neutron_driver: ovn
            tag: master
          tag_from_label: null
        ContainerImageRegistryCredentials: {}
        DockerInsecureRegistryAddress:
        - '{{ hostvars[''registry''][''ansible_default_ipv4''][''address''] }}:5000'
        DockerRegistryMirror: https://registry-1.docker.io/
        NeutronMechanismDrivers:
        - ovn
        StandaloneCount: 1
        StandaloneServices:
        - OS::TripleO::Services::CACerts
    tripleo_container_image_prepare_debug: true
    tripleo_container_image_prepare_roles:
    - CountDefault: 1
      External:
        subnet: external_subnet
      InternalApi:
        subnet: internal_api_subnet
      ServicesDefault:
      - OS::TripleO::Services::CACerts
      Storage:
        subnet: storage_subnet
      StorageMgmt:
        subnet: storage_mgmt_subnet
      Tenant:
        subnet: tenant_subnet
      description: Testing
      disable_constraints: true
      name: Standalone
      networks: null
      tags:
      - primary
      - controller
      - standalone
    when:
    - inventory_hostname != "registry"
  serial: 1

Scenario: default

Driver: docker
Example default playbook
- hosts: all
  name: Converge
  roles:
  - role: tripleo-container-image-prepare