tripleo-operator-ansible/roles/tripleo_container_image_pre...
Cédric Jeanneret 7ae7c668ed Ensure we export result only if we have an stdout
I841743fb6c2c24e4a3d86598f99322022b27804d introduced a sort of "dry-run"
capability to the operators, but it didn't take care of the possible
exposure of the shell stdout in a fact. Thus, if you enabled the
generate_scripts_only feature, your ansible run would fail on the
exposure, since the variable it refers to will not exist.

Change-Id: I07225e6b82199cf15860e55db6995c994da65931
2020-05-15 15:43:20 +02:00
..
defaults Add --enable-registry-login support 2020-04-22 08:23:58 -06:00
meta Rename roles to use underscore 2020-01-21 10:12:00 -07:00
molecule/default Add --enable-registry-login support 2020-04-22 08:23:58 -06:00
tasks Ensure we export result only if we have an stdout 2020-05-15 15:43:20 +02:00
tests Fixed flake8 excludes and new-lines 2020-01-27 19:10:31 +00:00
README.md Add --enable-registry-login support 2020-04-22 08:23:58 -06:00

README.md

tripleo_container_image_prepare_default

A role to generate the default container image prepare information.

Requirements

None.

Role Variables

  • tripleo_container_image_prepare_default_debug: (Boolean) Flag to print out the push command. Default: False
  • tripleo_container_image_prepare_default_enable_registry_login: (Boolean) Flag to enable registry login on nodes if credentials are provided. Default: false
  • tripleo_container_image_prepare_default_home_dir: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}"
  • tripleo_container_image_prepare_default_local_push_destination: (Boolean) Include a push_Destination to trigger upload to a local registry on the undercloud. Default: false
  • tripleo_container_image_prepare_default_output_env_file: (String) File to write environment file containing default ContainerImagePrepare value. When not set, tripleo_container_image_prepare_default_output will contain yaml defining ContainerImagePrepare. Default is not set.

Output Variables

  • tripleo_container_image_prepare_default_output: (String) YAML defining a default ContainerImagePrepare value.
  • tripleo_container_image_prepare_default_result: Ansible execution results

Dependencies

None.

Example Playbook

Example container prepare default execution playbook

- hosts: undercloud
  gather_facts: true
  tasks:
    - name: Generate default ContainerImagePrepare
      import_role:
        name: tripleo_container_image_prepare_default
      vars:
        tripleo_container_image_prepare_output_env_file: /home/stack/container-image-prepare.yaml

License

Apache-2.0