Add ability to write scripts

Add the ability to write out the command being exected to a script for
the roles that aren't single action list/show/remove/etc as they would
not be something to rerun and are really for ansible-only control.

Change-Id: I11ad3c12de21fe0522d13f966783cb413b661646
This commit is contained in:
Alex Schultz 2020-03-30 16:04:32 -06:00
parent 9172f3e6c8
commit d2b23da366
159 changed files with 705 additions and 174 deletions

View File

@ -13,8 +13,10 @@ Role Variables
* `tripleo_config_generate_ansible_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false
* `tripleo_config_generate_ansible_deployment_user`: (String) Deployment user to use. Default: "{{ ansible_user }}"
* `tripleo_config_generate_ansible_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_config_generate_ansible_home_dir`: (String) Directory to run the command in. This is the default location for the output if `tripleo_config_generate_ansible_output_dir` is not specified.. Default: "{{ ansible_env.HOME }}"
* `tripleo_config_generate_ansible_os_cloud`: (String) OS_CLOUD value to use when running the command. If tripleo_os_cloud is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_config_generate_ansible_rc_file`.
* `tripleo_config_generate_ansible_output_dir`: (String) Directory to output ansible.cfg and ansible.log files. Default: "{{ ansible_env.HOME }}"
* `tripleo_config_generate_ansible_output_dir`: (String) Directory to output ansible.cfg and ansible.log files.
* `tripleo_config_generate_ansible_rc_file`: (String) Path to the credential file to use. If tripleo_rc_file is defined, it will be the default. Default: "{{ ansible_env.HOME }}/overcloudrc"
Output Variables

View File

@ -4,5 +4,7 @@ openstack_bin: openstack
tripleo_config_generate_ansible_debug: false
tripleo_config_generate_ansible_deployment_user: "{{ ansible_user }}"
tripleo_config_generate_ansible_os_cloud: "{{ tripleo_os_cloud | default('') }}"
tripleo_config_generate_ansible_output_dir: "{{ ansible_env.HOME }}"
tripleo_config_generate_ansible_output_dir:
tripleo_config_generate_ansible_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/overcloudrc') }}"
tripleo_config_generate_ansible_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_config_generate_ansible_home_dir: "{{ ansible_env.HOME }}"

View File

@ -21,9 +21,17 @@
debug:
var: _generate_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_config_generate_home_dir }}/tripleo_config_generate_ansible.sh"
shell_command: "{{ _generate_cmd }}"
shell_environment: "{{ _generate_env }}"
when: tripleo_config_generate_ansible_generate_scripts|bool
- name: tripleo config generate ansible
shell: "{{ _generate_cmd }}" # noqa 305
args:
chdir: "{{ tripleo_config_generate_ansible_home_dir }}"
warn: false
environment: "{{ _generate_env }}"
register: tripleo_config_generate_ansible_result

View File

@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
collections:
- tripleo.operator
tasks:
- name: "Include tripleo_container_image_delete"

View File

@ -13,6 +13,7 @@ provisioner:
scenario:
name: default
test_sequence:
- prepare
- syntax
- converge
- verify

View File

@ -0,0 +1,8 @@
---
- name: Prepare
hosts: all
tasks:
- name: Include molecule prep
include_role:
name: test_molecule_prep

View File

@ -9,18 +9,24 @@
{{ tripleo_container_image_delete_registry_url | ternary('--registry-url $TRIPLEO_IMAGE_DELETE_REGISTRY_URL', '') }}
{{ tripleo_container_image_delete_yes | ternary('--yes', '') }}
{{ tripleo_container_image_delete_image }}
_delete_env:
TRIPLEO_IMAGE_DELETE_USERNAME: "{{ tripleo_container_image_delete_username | default('') | quote }}"
TRIPLEO_IMAGE_DELETE_PASSWORD: "{{ tripleo_container_image_delete_password | default('') | quote }}"
TRIPLEO_IMAGE_DELETE_REGISTRY_URL: "{{ tripleo_container_image_delete_registry_url | default('') }}"
- name: Show the container image delete command
debug:
var: _delete_cmd
- name: Show debug information
when: tripleo_container_image_delete_debug|bool
block:
- name: Show the container image delete command
debug:
var: _delete_cmd
- name: Show the container image delete environment
debug:
var: _delete_env
- name: Container image delete
shell: "{{ _delete_cmd }}" # noqa 305
environment:
TRIPLEO_IMAGE_DELETE_USERNAME: "{{ tripleo_container_image_delete_username | default('') | quote }}"
TRIPLEO_IMAGE_DELETE_PASSWORD: "{{ tripleo_container_image_delete_password | default('') | quote }}"
TRIPLEO_IMAGE_DELETE_REGISTRY_URL: "{{ tripleo_container_image_delete_registry_url | default('') }}"
environment: "{{ _delete_env }}"
become: "{{ tripleo_container_image_delete_become }}"
register: tripleo_container_image_delete_result
changed_when: true

View File

@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
collections:
- tripleo.operator
tasks:
- name: "Include tripleo_container_image_list"

View File

@ -13,6 +13,7 @@ provisioner:
scenario:
name: default
test_sequence:
- prepare
- syntax
- converge
- verify

View File

@ -0,0 +1,8 @@
---
- name: Prepare
hosts: all
tasks:
- name: Include molecule prep
include_role:
name: test_molecule_prep

View File

@ -8,19 +8,25 @@
{{ tripleo_container_image_list_password | ternary('--password "$TRIPLEO_IMAGE_LIST_PASSWORD"', '') }}
{{ tripleo_container_image_list_registry_url | ternary('--registry-url $TRIPLEO_IMAGE_LIST_REGISTRY_URL', '') }}
{{ tripleo_container_image_list_format | ternary('-f $TRIPLEO_IMAGE_LIST_FORMAT', '') }}
_list_env:
TRIPLEO_IMAGE_LIST_USERNAME: "{{ tripleo_container_image_list_username | default('') | quote }}"
TRIPLEO_IMAGE_LIST_PASSWORD: "{{ tripleo_container_image_list_password | default('') | quote }}"
TRIPLEO_IMAGE_LIST_REGISTRY_URL: "{{ tripleo_container_image_list_registry_url | default('') }}"
TRIPLEO_IMAGE_LIST_FORMAT: "{{ tripleo_container_image_list_format | default('') }}"
- name: Show the container image list command
debug:
var: _list_cmd
- name: Show debug information
when: tripleo_container_image_list_debug|bool
block:
- name: Show the container image list command
debug:
var: _list_cmd
- name: Show the container image list environment
debug:
var: _list_env
- name: Container image list
shell: "{{ _list_cmd }}" # noqa 305
environment:
TRIPLEO_IMAGE_LIST_USERNAME: "{{ tripleo_container_image_list_username | default('') | quote }}"
TRIPLEO_IMAGE_LIST_PASSWORD: "{{ tripleo_container_image_list_password | default('') | quote }}"
TRIPLEO_IMAGE_LIST_REGISTRY_URL: "{{ tripleo_container_image_list_registry_url | default('') }}"
TRIPLEO_IMAGE_LIST_FORMAT: "{{ tripleo_container_image_list_format | default('') }}"
environment: "{{ _list_env }}"
register: tripleo_container_image_list_result
changed_when: false

View File

@ -17,6 +17,7 @@ Role Variables
* `tripleo_container_image_prepare_dry_run`: (Boolean) Perform a dry run upload which will not perform any push, pull or modify operations. The environment file will still be populaged. Default: false
* `tripleo_container_image_prepare_environment_files`: (List) List of environment files. Default: []
* `tripleo_container_image_prepare_environment_directory`: (List) Directories containing environment files. Should not be used if `tripleo_container_image_prepare_environment_files` is defined. Default: []
* `tripleo_container_image_prepare_home_dir`: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}"
* `tripleo_container_image_prepare_output_env_file`: (String) File to write heat environment file which specifies all image parameters. Default is not set.
* `tripleo_container_image_prepare_output_roles_file`: (String) Roles file path on the remote system. Default is not set.
* `tripleo_container_image_prepare_timeout`: (Number) Amount of time to wait for the command to conplete. Default: 1800

View File

@ -12,6 +12,7 @@ Role Variables
--------------
* `tripleo_container_image_prepare_default_debug`: (Boolean) Flag to print out the push command. 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.

View File

@ -2,5 +2,7 @@
# defaults file for tripleo_container_image_prepare_default
openstack_bin: openstack
tripleo_container_image_prepare_default_debug: false
tripleo_container_image_prepare_default_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_container_image_prepare_default_home_dir: "{{ ansible_env.HOME }}"
tripleo_container_image_prepare_default_local_push_destination: false
tripleo_container_image_prepare_default_output_env_file:

View File

@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
collections:
- tripleo.operator
tasks:
- name: "Include tripleo_container_image_push"

View File

@ -13,6 +13,7 @@ provisioner:
scenario:
name: default
test_sequence:
- prepare
- syntax
- converge
- verify

View File

@ -0,0 +1,8 @@
---
- name: Prepare
hosts: all
tasks:
- name: Include molecule prep
include_role:
name: test_molecule_prep

View File

@ -13,19 +13,25 @@
{{ tripleo_container_image_push_multi_arch | ternary('--multi-arch', '') }}
{{ tripleo_container_image_push_cleanup | ternary('--cleanup', '') }}
{{ tripleo_container_image_push_image }}
_push_env:
TRIPLEO_IMAGE_PUSH_APPEND_TAG: "{{ tripleo_container_image_push_append_tag | default('') }}"
TRIPLEO_IMAGE_PUSH_USERNAME: "{{ tripleo_container_image_push_username | default('') | quote }}"
TRIPLEO_IMAGE_PUSH_PASSWORD: "{{ tripleo_container_image_push_password | default('') | quote }}"
TRIPLEO_IMAGE_PUSH_REGISTRY_URL: "{{ tripleo_container_image_push_registry_url | default('') }}"
- name: Show the container image push command
debug:
var: _push_cmd
- name: Show debug information
when: tripleo_container_image_push_debug|bool
block:
- name: Show the container image push command
debug:
var: _push_cmd
- name: Show the container image push environment
debug:
var: _push_env
- name: Container image push
shell: "{{ _push_cmd }}" # noqa 305
environment:
TRIPLEO_IMAGE_PUSH_APPEND_TAG: "{{ tripleo_container_image_push_append_tag | default('') }}"
TRIPLEO_IMAGE_PUSH_USERNAME: "{{ tripleo_container_image_push_username | default('') | quote }}"
TRIPLEO_IMAGE_PUSH_PASSWORD: "{{ tripleo_container_image_push_password | default('') | quote }}"
TRIPLEO_IMAGE_PUSH_REGISTRY_URL: "{{ tripleo_container_image_push_registry_url | default('') }}"
environment: "{{ _push_env }}"
async: "{{ tripleo_container_image_push_timeout }}"
poll: 1
become: "{{ tripleo_container_image_push_become }}"

View File

@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
collections:
- tripleo.operator
tasks:
- name: "Include tripleo_container_image_show"

View File

@ -13,6 +13,7 @@ provisioner:
scenario:
name: default
test_sequence:
- prepare
- syntax
- converge
- verify

View File

@ -0,0 +1,8 @@
---
- name: Prepare
hosts: all
tasks:
- name: Include molecule prep
include_role:
name: test_molecule_prep

View File

@ -8,18 +8,24 @@
{{ tripleo_container_image_show_password | ternary('--password "$TRIPLEO_IMAGE_SHOW_PASSWORD"', '') }}
{{ tripleo_container_image_show_format | ternary('-f $TRIPLEO_IMAGE_SHOW_FORMAT', '') }}
{{ tripleo_container_image_show_image }}
_show_env:
TRIPLEO_IMAGE_SHOW_USERNAME: "{{ tripleo_container_image_show_username | default('') | quote }}"
TRIPLEO_IMAGE_SHOW_PASSWORD: "{{ tripleo_container_image_show_password | default('') | quote }}"
TRIPLEO_IMAGE_SHOW_FORMAT: "{{ tripleo_container_image_show_format | default('') }}"
- name: Show the container image show command
debug:
var: _show_cmd
- name: Show debug information
when: tripleo_container_image_show_debug|bool
block:
- name: Show the container image show command
debug:
var: _show_cmd
- name: Show the container image show environment
debug:
var: _show_env
- name: Container image show
shell: "{{ _show_cmd }}" # noqa 305
environment:
TRIPLEO_IMAGE_SHOW_USERNAME: "{{ tripleo_container_image_show_username | default('') | quote }}"
TRIPLEO_IMAGE_SHOW_PASSWORD: "{{ tripleo_container_image_show_password | default('') | quote }}"
TRIPLEO_IMAGE_SHOW_FORMAT: "{{ tripleo_container_image_show_format | default('') }}"
environment: "{{ _show_env }}"
register: tripleo_container_image_show_result
changed_when: false

View File

@ -15,6 +15,7 @@ Role Variables
* `tripleo_deploy_cleanup`: (Boolean) Cleanup temporary files after execution. Default: false
* `tripleo_deploy_control_virtual_ip`: (String) Control plain VIP address.
* `tripleo_deploy_debug`: (Boolean) Flag to print out the command that is run. Default: false
* `tripleo_deploy_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_deploy_deployment_python_interpreter`: (String) Path to a python interpreter for the deployment actions.
* `tripleo_deploy_deployment_user`: (String) User who is executing the tripleo deployment via sudo. Defaults: "{{ ansible_env.USER }}"
* `tripleo_deploy_environment_files`: (List) A list of environment file paths for the deployment.

View File

@ -29,11 +29,11 @@ tripleo_deploy_override_ansible_cfg:
tripleo_deploy_plan_environment_file:
tripleo_deploy_poll: 10
tripleo_deploy_public_virtual_ip:
tripleo_deploy_roles_file: "{{ tripleo_deploy_templates }}/roles/Standalone.yaml"
tripleo_deploy_stack: standalone
tripleo_deploy_standalone: true
tripleo_deploy_standalone_role: Standalone
tripleo_deploy_templates: /usr/share/openstack-tripleo-heat-templates
tripleo_deploy_roles_file: "{{ tripleo_deploy_templates }}/roles/Standalone.yaml"
tripleo_deploy_timeout: 5700
tripleo_deploy_timeout_arg: 90
tripleo_deploy_upgrade: false

View File

@ -76,7 +76,7 @@
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_deploy_home_dir }}/standalone_deploy.sh"
dest: "{{ tripleo_deploy_home_dir }}/tripleo_deploy.sh"
shell_command: "{{ _deploy_cmd }}"
shell_environment: "{{ _deploy_env }}"
when: tripleo_deploy_generate_scripts|bool

View File

@ -12,8 +12,10 @@ Role Variables
--------------
* `tripleo_overcloud_admin_authorize_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false
* `tripleo_overcloud_admin_authorize_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_admin_authorize_home_dir`: (String) Location to execute the command in. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_admin_authorize_os_cloud`: (String) OS_CLOUD value to use when running the command. If tripleo_os_cloud is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_admin_authorize_rc_file`.
* `tripleo_overcloud_admin_authorize_output_dir`: (String) Directory to output ansible.cfg and ansible.log files. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_admin_authorize_output_dir`: (String) Directory to output ansible.cfg and ansible.log files. If not specified, will output to the `tripleo_overcloud_admin_authorize_home_dir`.
* `tripleo_overcloud_admin_authorize_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10
* `tripleo_overcloud_admin_authorize_rc_file`: (String) Path to the credential file to use. If tripleo_rc_file is defined, it will be the default. Default: "{{ ansible_env.HOME }}/overcloudrc"
* `tripleo_overcloud_admin_authorize_ssh_enable_timeout`: (Integer) Timeout for the ssh enable process to finish (Train version only)

View File

@ -2,8 +2,10 @@
# defaults file for tripleo_overcloud_admin_authorize
openstack_bin: openstack
tripleo_overcloud_admin_authorize_debug: false
tripleo_overcloud_admin_authorize_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_admin_authorize_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_admin_authorize_os_cloud: "{{ tripleo_os_cloud | default('') }}"
tripleo_overcloud_admin_authorize_output_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_admin_authorize_output_dir:
tripleo_overcloud_admin_authorize_poll: 10
tripleo_overcloud_admin_authorize_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/overcloudrc') }}"
tripleo_overcloud_admin_authorize_ssh_enable_timeout:

View File

@ -31,9 +31,18 @@
debug:
var: _authorize_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_admin_authorize_home_dir }}/tripleo_overcloud_admin_authorize.sh"
shell_command: "{{ _authorize_cmd }}"
shell_environment: "{{ _authorize_env }}"
when: tripleo_overcloud_admin_authorize_generate_scripts|bool
- name: overcloud admin authorize
shell: "{{ _authorize_cmd }}" # noqa 305
args:
executable: /bin/bash
chdir: "{{ tripleo_overcloud_admin_authorize_home_dir }}"
warn: false
environment: "{{ _authorize_env }}"
async: "{{ tripleo_overcloud_admin_authorize_timeout }}"

View File

@ -15,6 +15,7 @@ Role Variables
* `tripleo_overcloud_cell_export_control_plane_stack`: (String) Name of the main Heat stack to export information from.
* `tripleo_overcloud_cell_export_debug`: (Boolean) Flag to print out the delete command. Default: False
* `tripleo_overcloud_cell_export_force_overwrite`: (Boolean) Flag to overwrite the output file. Default: false
* `tripleo_overcloud_cell_export_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_cell_export_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_cell_export_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true
* `tripleo_overcloud_cell_export_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true

View File

@ -1,10 +1,11 @@
---
# defaults file for tripleo_overcloud_cell_export
---
openstack_bin: openstack
tripleo_overcloud_cell_export_cell_stack:
tripleo_overcloud_cell_export_control_plane_stack:
tripleo_overcloud_cell_export_debug: false
tripleo_overcloud_cell_export_force_overwrite: false
tripleo_overcloud_cell_export_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_cell_export_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_cell_export_log: "{{ tripleo_overcloud_cell_export_home_dir }}/overcloud_cell_export.log"
tripleo_overcloud_cell_export_log_combine: true

View File

@ -35,6 +35,13 @@
debug:
var: _export_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_cell_export_home_dir }}/tripleo_overcloud_cell_export.sh"
shell_command: "{{ _export_cmd }}"
shell_environment: "{{ _export_env }}"
when: tripleo_overcloud_cell_export_generate_scripts|bool
- name: Run overcloud cell export
shell: "{{ _export_cmd }}" # noqa 305
environment: "{{ _export_env }}"

View File

@ -14,6 +14,7 @@ Role Variables
* `tripleo_overcloud_config_download_config_dir`: (String) Directory where the files will be downloaded to
* `tripleo_overcloud_config_download_config_type`: (String) Type of object config to extract from the deployment
* `tripleo_overcloud_config_download_debug`: (Boolean) Flag to print out the delete command. Default: False
* `tripleo_overcloud_config_download_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_config_download_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_config_download_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true
* `tripleo_overcloud_config_download_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true

View File

@ -1,9 +1,10 @@
---
# defaults file for tripleo_overcloud_config_download
---
openstack_bin: openstack
tripleo_overcloud_config_download_config_dir:
tripleo_overcloud_config_download_config_type:
tripleo_overcloud_config_download_debug: false
tripleo_overcloud_config_download_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_config_download_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_config_download_log: "{{ tripleo_overcloud_config_download_home_dir }}/overcloud_config_download.log"
tripleo_overcloud_config_download_log_combine: true

View File

@ -34,6 +34,13 @@
debug:
var: _download_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_config_download_home_dir }}/tripleo_overcloud_config_download.sh"
shell_command: "{{ _download_cmd }}"
shell_environment: "{{ _download_env }}"
when: tripleo_overcloud_config_download_generate_scripts|bool
- name: Run overcloud config download
shell: "{{ _download_cmd }}" # noqa 305
environment: "{{ _download_env }}"

View File

@ -13,6 +13,7 @@ Role Variables
* `tripleo_overcloud_container_image_build_config_files`: (List) YAML COnfig file(s) specifyign the image to build. Default: []
* `tripleo_overcloud_container_image_build_debug`: (Boolean) Flag to print out the delete command. Default: False
* `tripleo_overcloud_container_image_build_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_container_image_build_excludes`: (List) Name of containers to exclude from the build. Default: []
* `tripleo_overcloud_container_image_build_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_container_image_build_kolla_config_file`: (String) Path to Kolla config file.

View File

@ -1,9 +1,10 @@
---
# defaults file for tripleo_overcloud_container_image_build
---
openstack_bin: openstack
tripleo_overcloud_container_image_build_config_files: []
tripleo_overcloud_container_image_build_debug: false
tripleo_overcloud_container_image_build_excludes: []
tripleo_overcloud_container_image_build_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_container_image_build_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_container_image_build_kolla_config_file:
tripleo_overcloud_container_image_build_list_dependencies: false

View File

@ -31,6 +31,13 @@
debug:
var: _build_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_container_image_build_home_dir }}/tripleo_overcloud_container_image_build.sh"
shell_command: "{{ _build_cmd }}"
shell_environment: "{{ _build_env }}"
when: tripleo_overcloud_container_image_build_generate_scripts|bool
- name: Run container image build
shell: "{{ _build_cmd }}" # noqa 305
environment: "{{ _build_env }}"

View File

@ -18,6 +18,7 @@ Role Variables
* `tripleo_overcloud_container_image_prepare_environment_directory`: (String) Path to a directory containing the environment files specifying which services are containerized.
* `tripleo_overcloud_container_image_prepare_environment_files`: (List) List of environment files specifying which services are containerized. Default: []
* `tripleo_overcloud_container_image_prepare_excludes`: (List) List of patterns to match the imagename against to exclude from the output. Default: []
* `tripleo_overcloud_container_image_prepare_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_container_image_prepare_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_container_image_prepare_includes`: (List) List of patterns to match the imagename against to include in the output. Default: []
* `tripleo_overcloud_container_image_prepare_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true

View File

@ -1,10 +1,11 @@
---
# defaults file for tripleo_overcloud_container_image_prepare
---
openstack_bin: openstack
tripleo_overcloud_container_image_prepare_debug: false
tripleo_overcloud_container_image_prepare_environment_directory:
tripleo_overcloud_container_image_prepare_environment_files: []
tripleo_overcloud_container_image_prepare_excludes: []
tripleo_overcloud_container_image_prepare_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_container_image_prepare_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_container_image_prepare_includes: []
tripleo_overcloud_container_image_prepare_log: "{{ tripleo_overcloud_container_image_prepare_home_dir }}/overcloud_container_image_prepare.log"

View File

@ -55,6 +55,13 @@
debug:
var: _prepare_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_container_image_prepare_home_dir }}/tripleo_overcloud_container_image_prepare.sh"
shell_command: "{{ _prepare_cmd }}"
shell_environment: "{{ _prepare_env }}"
when: tripleo_overcloud_container_image_prepare_generate_scripts|bool
- name: Run overcloud container image prepare
shell: "{{ _prepare_cmd }}" # noqa 305
environment: "{{ _prepare_env }}"

View File

@ -15,6 +15,7 @@ Role Variables
--------------
* `tripleo_overcloud_container_image_tag_discover_debug`: (Boolean) Flag to print out the delete command. Default: False
* `tripleo_overcloud_container_image_tag_discover_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_container_image_tag_discover_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_container_image_tag_discover_image`: (String) REQUIRED. Fully qualified name of the image to discover the tag.
* `tripleo_overcloud_container_image_tag_discover_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true

View File

@ -1,7 +1,8 @@
---
# defaults file for tripleo_overcloud_container_image_tag_discover
---
openstack_bin: openstack
tripleo_overcloud_container_image_tag_discover_debug: false
tripleo_overcloud_container_image_tag_discover_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_container_image_tag_discover_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_container_image_tag_discover_image:
tripleo_overcloud_container_image_tag_discover_log: "{{ tripleo_overcloud_container_image_tag_discover_home_dir }}/overcloud_container_image_tag_discover.log"

View File

@ -28,6 +28,13 @@
debug:
var: _discover_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_container_image_tag_discover_home_dir }}/tripleo_overcloud_container_image_tag_discover.sh"
shell_command: "{{ _discover_cmd }}"
shell_environment: "{{ _discover_env }}"
when: tripleo_overcloud_container_image_tag_discover_generate_scripts|bool
- name: Run overcloud image tag discover
shell: "{{ _discover_cmd }}" # noqa 305
environment: "{{ _discover_env }}"

View File

@ -17,6 +17,7 @@ Role Variables
* `tripleo_overcloud_container_image_upload_cleanup`: (String) Cleanup behaviour for local images
* `tripleo_overcloud_container_image_upload_config_files`: (List) REQUIRED. YAML config files specifying images. Default: []
* `tripleo_overcloud_container_image_upload_debug`: (Boolean) Flag to print out the delete command. Default: False
* `tripleo_overcloud_container_image_upload_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_container_image_upload_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_container_image_upload_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true
* `tripleo_overcloud_container_image_upload_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true

View File

@ -1,9 +1,10 @@
---
# defaults file for tripleo_overcloud_container_image_upload
---
openstack_bin: openstack
tripleo_overcloud_container_image_upload_cleanup:
tripleo_overcloud_container_image_upload_config_files: []
tripleo_overcloud_container_image_upload_debug: false
tripleo_overcloud_container_image_upload_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_container_image_upload_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_container_image_upload_log: "{{ tripleo_overcloud_container_image_upload_home_dir }}/overcloud_container_image_upload.log"
tripleo_overcloud_container_image_upload_log_combine: true

View File

@ -27,6 +27,13 @@
debug:
var: _upload_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_container_image_upload_home_dir }}/tripleo_overcloud_container_image_upload.sh"
shell_command: "{{ _upload_cmd }}"
shell_environment: "{{ _upload_env }}"
when: tripleo_overcloud_container_image_upload_generate_scripts|bool
- name: Run overcloud container image upload
shell: "{{ _upload_cmd }}" # noqa 305
environment: "{{ _upload_env }}"

View File

@ -12,6 +12,7 @@ Role Variables
--------------
* `tripleo_overcloud_credentials_debug`: (Boolean) Flag to print out the delete command. Default: False
* `tripleo_overcloud_credentials_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_credentials_directory`: (String) The directory to create the rc files in. Defaults to current working directory which will be `tripleo_overcloud_credentials_home_dir`.
* `tripleo_overcloud_credentials_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_credentials_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true

View File

@ -1,8 +1,9 @@
---
# defaults file for tripleo_overcloud_credentials
---
openstack_bin: openstack
tripleo_overcloud_credentials_debug: false
tripleo_overcloud_credentials_directory:
tripleo_overcloud_credentials_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_credentials_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_credentials_log: "{{ tripleo_overcloud_credentials_home_dir }}/overcloud_credentials.log"
tripleo_overcloud_credentials_log_combine: true

View File

@ -29,6 +29,13 @@
debug:
var: _creds_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_credentials_home_dir }}/tripleo_overcloud_credentials.sh"
shell_command: "{{ _creds_cmd }}"
shell_environment: "{{ _creds_env }}"
when: tripleo_overcloud_credentials_generate_scripts|bool
- name: CHANGEME
shell: "{{ _creds_cmd }}" # noqa 305
environment: "{{ _creds_env }}"

View File

@ -12,6 +12,7 @@ Role Variables
--------------
* `tripleo_overcloud_delete_debug`: (Boolean) Flag to print out the delete command. Default: False
* `tripleo_overcloud_delete_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_delete_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_delete_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true
* `tripleo_overcloud_delete_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true

View File

@ -1,7 +1,8 @@
---
# defaults file for tripleo_overcloud_delete
---
openstack_bin: openstack
tripleo_overcloud_delete_debug: false
tripleo_overcloud_delete_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_delete_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_delete_log: "{{ tripleo_overcloud_delete_home_dir }}/overcloud_delete.log"
tripleo_overcloud_delete_log_combine: true

View File

@ -29,6 +29,13 @@
debug:
var: _delete_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_delete_home_dir }}/tripleo_overcloud_delete.sh"
shell_command: "{{ _delete_cmd }}"
shell_environment: "{{ _delete_env }}"
when: tripleo_overcloud_delete_generate_scripts|bool
- name: openstack overcloud delete
shell: "{{ _delete_cmd }}" # noqa 305
environment: "{{ _delete_env }}"

View File

@ -1,5 +1,5 @@
---
# defaults file for tripleo_overcloud_deploy
---
openstack_bin: openstack
tripleo_overcloud_deploy_answers_file:
tripleo_overcloud_deploy_baremetal_deployment:

View File

@ -14,6 +14,8 @@ Role Variables
* `tripleo_overcloud_export_config_download_dir`: (String) Directory for config-download export data.
* `tripleo_overcloud_export_debug`: (Boolean) Flag to print out the command that is run. Default: False
* `tripleo_overcloud_export_force_overwrite`: (Boolean) Overwrite the output file if it exists. Default: false
* `tripleo_overcloud_export_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_export_home_dir`: (String) Location to runt he command in. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_export_no_password_excludes`: (Boolean) Do not exclude certain passwords from the export. Default: false
* `tripleo_overcloud_export_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_export_rc_file`.
* `tripleo_overcloud_export_output_file`: (String) Name of the output file for the stack data export.

View File

@ -1,11 +1,13 @@
---
# defaults file for tripleo_overcloud_export
---
openstack_bin: openstack
tripleo_overcloud_export_config_download_dir:
tripleo_overcloud_export_debug: false
tripleo_overcloud_export_force_overwrite: false
tripleo_overcloud_export_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_export_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_export_no_password_excludes: false
tripleo_overcloud_export_os_cloud: "{{ tripleo_os_cloud | default('') }}"
tripleo_overcloud_export_output_file:
tripleo_overcloud_export_stack: overcloud
tripleo_overcloud_export_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}"
tripleo_overcloud_export_stack: overcloud

View File

@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
collections:
- tripleo.operator
tasks:
- name: "Include tripleo_overcloud_export"

View File

@ -13,6 +13,7 @@ provisioner:
scenario:
name: default
test_sequence:
- prepare
- syntax
- converge
- verify

View File

@ -0,0 +1,8 @@
---
- name: Prepare
hosts: all
tasks:
- name: Include molecule prep
include_role:
name: test_molecule_prep

View File

@ -24,9 +24,20 @@
debug:
var: _export_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_export_home_dir }}/tripleo_overcloud_export.sh"
shell_command: "{{ _export_cmd }}"
shell_environment: "{{ _export_env }}"
when: tripleo_overcloud_export_generate_scripts|bool
- name: Overcloud export
shell: "{{ _export_cmd }}" # noqa 305
environment: "{{ _export_env }}"
args:
executable: /bin/bash
chdir: "{{ tripleo_overcloud_export_home_dir }}"
warn: false
register: tripleo_overcloud_export_result
changed_when: false

View File

@ -13,6 +13,7 @@ Role Variables
* `tripleo_overcloud_external_update_run_debug`: (Boolean) Flag to print out the command that is run. Default: false
* `tripleo_overcloud_external_update_run_extra_vars`: (List) List of key=value or yaml/json file ansible refernce. Default: []
* `tripleo_overcloud_external_update_run_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_external_update_run_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_external_update_run_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true
* `tripleo_overcloud_external_update_run_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true

View File

@ -1,8 +1,9 @@
---
# defaults file for tripleo_overcloud_external_update_run
---
openstack_bin: openstack
tripleo_overcloud_external_update_run_debug: false
tripleo_overcloud_external_update_run_extra_vars: []
tripleo_overcloud_external_update_run_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_external_update_run_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_external_update_run_log: "{{ tripleo_overcloud_external_update_run_home_dir }}/overcloud_external_update_run.log"
tripleo_overcloud_external_update_run_log_combine: true

View File

@ -37,6 +37,13 @@
debug:
var: _update_run_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_external_update_run_home_dir }}/tripleo_overcloud_external_update_run.sh"
shell_command: "{{ _update_run_cmd }}"
shell_environment: "{{ _update_run_env }}"
when: tripleo_overcloud_external_update_run_generate_scripts|bool
- name: Overcloud external-update run
shell: "{{ _update_run_cmd }}" # noqa 305
environment: "{{ _update_run_env }}"

View File

@ -13,6 +13,7 @@ Role Variables
* `tripleo_overcloud_external_upgrade_run_debug`: (Boolean) Flag to print out the command that is run. Default: false
* `tripleo_overcloud_external_upgrade_run_extra_vars`: (List) List of key=value or yaml/json file ansible refernce. Default: []
* `tripleo_overcloud_external_upgrade_run_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_external_upgrade_run_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_external_upgrade_run_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true
* `tripleo_overcloud_external_upgrade_run_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true

View File

@ -1,8 +1,9 @@
---
# defaults file for tripleo_overcloud_external_upgrade_run
---
openstack_bin: openstack
tripleo_overcloud_external_upgrade_run_debug: false
tripleo_overcloud_external_upgrade_run_extra_vars: []
tripleo_overcloud_external_upgrade_run_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_external_upgrade_run_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_external_upgrade_run_log: "{{ tripleo_overcloud_external_upgrade_run_home_dir }}/overcloud_external_upgrade_run.log"
tripleo_overcloud_external_upgrade_run_log_combine: true

View File

@ -37,6 +37,13 @@
debug:
var: _upgrade_run_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_external_upgrade_run_home_dir }}/tripleo_overcloud_external_upgrade_run.sh"
shell_command: "{{ _upgrade_run_cmd }}"
shell_environment: "{{ _upgrade_run_env }}"
when: tripleo_overcloud_external_upgrade_run_generate_scripts|bool
- name: Overcloud external-upgrade run
shell: "{{ _upgrade_run_cmd }}" # noqa 305
environment: "{{ _upgrade_run_env }}"

View File

@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
collections:
- tripleo.operator
tasks:
- name: "Include tripleo_overcloud_failures"

View File

@ -13,6 +13,7 @@ provisioner:
scenario:
name: default
test_sequence:
- prepare
- syntax
- converge
- verify

View File

@ -0,0 +1,8 @@
---
- name: Prepare
hosts: all
tasks:
- name: Include molecule prep
include_role:
name: test_molecule_prep

View File

@ -23,6 +23,9 @@
- name: Overcloud failures
shell: "{{ _failures_cmd }}" # noqa 305
environment: "{{ _failures_env }}"
args:
executable: /bin/bash
warn: false
register: tripleo_overcloud_failures_result
changed_when: false

View File

@ -11,10 +11,11 @@ None.
Role Variables
--------------
* `tripleo_overcloud_ffwd_upgrade_converge_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_upgrade_ffwd_converge_answers_file`: (String) File path to a deployment answers file.
* `tripleo_overcloud_upgrade_ffwd_converge_baremetal_deployment`: (String) File path to a baremetal deployment configuration.
* `tripleo_overcloud_upgrade_ffwd_converge_config_download`: (Boolean) Flag to add --config-download option. This is the default as of Rocky and enabling this should have no effect. Default: false
* `tripleo_overcloud_upgrade_ffwd_converge_config_download_timeout`: (Integer) Timeout in minutes for the config-download steps.
* `tripleo_overcloud_upgrade_ffwd_converge_config_download`: (Boolean) Flag to add --config-download option. This is the default as of Rocky and enabling this should have no effect. Default: false
* `tripleo_overcloud_upgrade_ffwd_converge_debug`: (Boolean) Flag to print out the command that is run. Default: false
* `tripleo_overcloud_upgrade_ffwd_converge_deployed_server`: (Boolean) Flag to use pre-provisioned nodes. Default: false
* `tripleo_overcloud_upgrade_ffwd_converge_disable_password_generation`: (Boolean) Flag to disable password generation. Default: false
@ -26,9 +27,9 @@ Role Variables
* `tripleo_overcloud_upgrade_ffwd_converge_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_upgrade_ffwd_converge_inflight_validations`: (Boolean) Flag to enable inflight validations. Default: false
* `tripleo_overcloud_upgrade_ffwd_converge_libvirt_type`: (String) Libvirt domain time. Setting `NovaComputeLibvirtType` in an environment file is prefered over this option.
* `tripleo_overcloud_upgrade_ffwd_converge_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_upgrade_ffwd_converge_home_dir }}/overcloud_upgrade_ffwd_converge.log"
* `tripleo_overcloud_upgrade_ffwd_converge_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true
* `tripleo_overcloud_upgrade_ffwd_converge_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true
* `tripleo_overcloud_upgrade_ffwd_converge_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_upgrade_ffwd_converge_home_dir }}/overcloud_upgrade_ffwd_converge.log"
* `tripleo_overcloud_upgrade_ffwd_converge_networks_file`: (String) File path to a networks file for the deployment.
* `tripleo_overcloud_upgrade_ffwd_converge_no_cleanup`: (Boolean) String to enable no cleanup. Default: false
* `tripleo_overcloud_upgrade_ffwd_converge_no_config_download`: (Boolean) String to disable the config download software configuration. Default: false

View File

@ -1,5 +1,5 @@
---
# defaults file for tripleo_overcloud_ffwd_upgrade_converge
---
openstack_bin: openstack
tripleo_overcloud_ffwd_upgrade_converge_answers_file:
tripleo_overcloud_ffwd_upgrade_converge_baremetal_deployment:
@ -13,6 +13,7 @@ tripleo_overcloud_ffwd_upgrade_converge_dry_run: false
tripleo_overcloud_ffwd_upgrade_converge_environment_dirs: []
tripleo_overcloud_ffwd_upgrade_converge_environment_files: []
tripleo_overcloud_ffwd_upgrade_converge_force_postconfig: false
tripleo_overcloud_ffwd_upgrade_converge_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_ffwd_upgrade_converge_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_ffwd_upgrade_converge_inflight_validations: false
tripleo_overcloud_ffwd_upgrade_converge_libvirt_type:

View File

@ -82,6 +82,13 @@
debug:
var: _upgrade_converge_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_ffwd_upgrade_converge_home_dir }}/tripleo_overcloud_ffwd_upgrade_converge.sh"
shell_command: "{{ _upgrade_converage_cmd }}"
shell_environment: "{{ _upgrade_converage_env }}"
when: tripleo_overcloud_ffwd_upgrade_converge_generate_scripts|bool
- name: overcloud ffwd-upgrade converge
shell: "{{ _upgrade_converge_cmd }}" # noqa 305
environment: "{{ _upgrade_converge_env }}"

View File

@ -16,6 +16,7 @@ Role Variables
* `tripleo_overcloud_ffwd_upgrade_prepare_config_download`: (Boolean) Flag to add --config-download option. This is the default as of Rocky and enabling this should have no effect. Default: false
* `tripleo_overcloud_ffwd_upgrade_prepare_config_download_timeout`: (Integer) Timeout in minutes for the config-download steps.
* `tripleo_overcloud_ffwd_upgrade_prepare_debug`: (Boolean) Flag to print out the command that is run. Default: false
* `tripleo_overcloud_ffwd_upgrade_prepare_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_ffwd_upgrade_prepare_deployed_server`: (Boolean) Flag to use pre-provisioned nodes. Default: false
* `tripleo_overcloud_ffwd_upgrade_prepare_disable_password_generation`: (Boolean) Flag to disable password generation. Default: false
* `tripleo_overcloud_ffwd_upgrade_prepare_disable_validations`: (Boolean) Flag to disable validations. Default: false

View File

@ -1,5 +1,5 @@
---
# defaults file for tripleo_overcloud_ffwd_upgrade_prepare
---
openstack_bin: openstack
tripleo_overcloud_ffwd_upgrade_prepare_answers_file:
tripleo_overcloud_ffwd_upgrade_prepare_baremetal_deployment:
@ -13,6 +13,7 @@ tripleo_overcloud_ffwd_upgrade_prepare_dry_run: false
tripleo_overcloud_ffwd_upgrade_prepare_environment_dirs: []
tripleo_overcloud_ffwd_upgrade_prepare_environment_files: []
tripleo_overcloud_ffwd_upgrade_prepare_force_postconfig: false
tripleo_overcloud_ffwd_upgrade_prepare_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_ffwd_upgrade_prepare_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_ffwd_upgrade_prepare_inflight_validations: false
tripleo_overcloud_ffwd_upgrade_prepare_libvirt_type:

View File

@ -82,6 +82,13 @@
debug:
var: _upgrade_prepare_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_ffwd_upgrade_prepare_home_dir }}/tripleo_overcloud_ffwd_upgrade_prepare.sh"
shell_command: "{{ _upgrade_prepare_cmd }}"
shell_environment: "{{ _upgrade_prepare_env }}"
when: tripleo_overcloud_ffwd_upgrade_prepare_generate_scripts|bool
- name: overcloud ffwd-upgrade prepare
shell: "{{ _upgrade_prepare_cmd }}" # noqa 305
environment: "{{ _upgrade_prepare_env }}"

View File

@ -12,6 +12,7 @@ Role Variables
--------------
* `tripleo_overcloud_ffwd_upgrade_run_debug`: (Boolean) Flag to print out the command that is run. Default: false
* `tripleo_overcloud_ffwd_upgrade_run_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_ffwd_upgrade_run_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_ffwd_upgrade_run_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true
* `tripleo_overcloud_ffwd_upgrade_run_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true

View File

@ -1,7 +1,8 @@
---
# defaults file for tripleo_overcloud_ffwd_upgrade_run
---
openstack_bin: openstack
tripleo_overcloud_ffwd_upgrade_run_debug: false
tripleo_overcloud_ffwd_upgrade_run_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_ffwd_upgrade_run_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_ffwd_upgrade_run_log: "{{ tripleo_overcloud_ffwd_upgrade_run_home_dir }}/overcloud_ffwd_upgrade_run.log"
tripleo_overcloud_ffwd_upgrade_run_log_combine: true

View File

@ -33,6 +33,13 @@
debug:
var: _run_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_ffwd_upgrade_run_home_dir }}/tripleo_overcloud_ffwd_upgrade_run.sh"
shell_command: "{{ _run_cmd }}"
shell_environment: "{{ _run_env }}"
when: tripleo_overcloud_ffwd_upgrade_run_generate_scripts|bool
- name: overcloud ffwd-upgrade run
shell: "{{ _run_cmd }}" # noqa 305
environment: "{{ _run_env }}"

View File

@ -15,6 +15,7 @@ Role Variables
* `tripleo_overcloud_generate_fencing_debug`: (Boolean) Flag to print out the delete command. Default: False
* `tripleo_overcloud_generate_fencing_delay`: (Integer) Number of seconds to wait before fencing is started.
* `tripleo_overcloud_generate_fencing_environment_file`: (String) REQUIRED. Path to the environment file.
* `tripleo_overcloud_generate_fencing_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_generate_fencing_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_generate_fencing_ipmi_cipher`: (String) Cipher squit to use (same as ipmitool -C)
* `tripleo_overcloud_generate_fencing_ipmi_lanplus`: (Boolean) Use lanplus. Option deprecated because it's the default. Default: false

View File

@ -1,10 +1,11 @@
---
# defaults file for tripleo_overcloud_generate_fencing
---
openstack_bin: openstack
tripleo_overcloud_generate_fencing_action:
tripleo_overcloud_generate_fencing_debug: false
tripleo_overcloud_generate_fencing_delay:
tripleo_overcloud_generate_fencing_environment_file:
tripleo_overcloud_generate_fencing_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_generate_fencing_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_generate_fencing_ipmi_cipher:
tripleo_overcloud_generate_fencing_ipmi_lanplus: false

View File

@ -39,6 +39,13 @@
debug:
var: _fencing_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_generate_fencing_home_dir }}/tripleo_overcloud_generate_fencing.sh"
shell_command: "{{ _fencing_cmd }}"
shell_environment: "{{ _fencing_env }}"
when: tripleo_overcloud_generate_fencing_generate_scripts|bool
- name: overcloud generate fencing
shell: "{{ _fencing_cmd }}" # noqa 305
environment: "{{ _fencing_env }}"

View File

@ -16,16 +16,17 @@ Role Variables
* `tripleo_overcloud_image_build_dib_local_image`: (String) String containing the path to a local image to use when building.
* `tripleo_overcloud_image_build_dib_yum_repo_conf`: (String) String containing the path to the yum files for the image building process. Default: "/etc/yum.repos.d/*"
* `tripleo_overcloud_image_build_extra_env_vars`: (Dictionary) Dictionary containing extra environment variables to be set for the build. Default: {}
* `tripleo_overcloud_image_build_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_image_build_home_dir`: (String) Path that the command should be executed in. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_image_build_image_names`: (List) List of image names to build.
* `tripleo_overcloud_image_build_log_combine`: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true
* `tripleo_overcloud_image_build_log_output`: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true
* `tripleo_overcloud_image_build_image_names`: (List) List of image names to build.
* `tripleo_overcloud_image_build_log`: (String) Install log file path. Default: "{{ tripleo_overcloud_image_build_home_dir }}/overcloud_image_build.log"
* `tripleo_overcloud_image_build_no_skip`: (Boolean) Flag to skipp build if cached image exists. Default: False
* `tripleo_overcloud_image_build_output_directory`: (String) Path to the output directory for the images.
* `tripleo_overcloud_image_build_stable_release`: (String) String containing the name of teh stable branch being built.
* `tripleo_overcloud_image_build_poll`: (Integer) Number of seconds to wait between checks to see if the build command has completed. This should be set to a value greater or equal to 1. Default: 10
* `tripleo_overcloud_image_build_stable_release`: (String) String containing the name of teh stable branch being built.
* `tripleo_overcloud_image_build_timeout`: (Integer) Amount of time to wait for the command to conplete. Default: 1800
* `tripleo_overcloud_image_build_log`: (String) Install log file path. Default: "{{ tripleo_overcloud_image_build_home_dir }}/overcloud_image_build.log"
Output Variables
----------------

View File

@ -1,13 +1,15 @@
---
# defaults file for tripleo_overcloud_image_build
---
openstack_bin: openstack
tripleo_overcloud_image_build_config_files: []
tripleo_overcloud_image_build_debug: false
tripleo_overcloud_image_build_dib_local_image:
tripleo_overcloud_image_build_dib_yum_repo_conf: "/etc/yum.repos.d/*"
tripleo_overcloud_image_build_extra_env_vars: {}
tripleo_overcloud_image_build_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_image_build_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_image_build_image_names: []
tripleo_overcloud_image_build_log: "{{ tripleo_overcloud_image_build_home_dir }}/overcloud_image_build.log"
tripleo_overcloud_image_build_log_combine: true
tripleo_overcloud_image_build_log_output: true
tripleo_overcloud_image_build_no_skip: false
@ -15,4 +17,3 @@ tripleo_overcloud_image_build_output_directory:
tripleo_overcloud_image_build_poll: 10
tripleo_overcloud_image_build_stable_branch:
tripleo_overcloud_image_build_timeout: 1800
tripleo_overcloud_image_build_log: "{{ tripleo_overcloud_image_build_home_dir }}/overcloud_image_build.log"

View File

@ -35,6 +35,13 @@
debug:
var: _build_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_image_build_home_dir }}/tripleo_overcloud_image_build.sh"
shell_command: "{{ _build_cmd }}"
shell_environment: "{{ _build_env }}"
when: tripleo_overcloud_image_build_generate_scripts|bool
- name: Preserve existing log file if exists
timestamp_file:
path: "{{ tripleo_overcloud_image_build_log }}"

View File

@ -13,20 +13,21 @@ Role Variables
* `tripleo_overcloud_image_upload_architecture`: (String) Architecture type for the images being uploaded.
* `tripleo_overcloud_image_upload_debug`: (Boolean) Flag to print out the command that is run. Default: False
* `tripleo_overcloud_image_upload_http_boot`: (String) Root directory for the ironic-pytho-agent-image
* `tripleo_overcloud_image_upload_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_image_upload_home_dir`: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_image_upload_http_boot`: (String) Root directory for the ironic-pytho-agent-image
* `tripleo_overcloud_image_upload_image_path`: (String) Path to directory overcloud images. By default the command will use the images in `tripleo_overcloud_image_upload_home_dir` if this is not specified.
* `tripleo_overcloud_image_upload_image_type`: (String) If specified, restrict the image type to upload. Should be one of {os,ironic-python-agent}
* `tripleo_overcloud_image_upload_ironic_python_agent_name`: (String) OpenStack ironic-python-agent image filename
* `tripleo_overcloud_image_upload_log_combine`: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true
* `tripleo_overcloud_image_upload_log_output`: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true
* `tripleo_overcloud_image_upload_log`: (String) Install log file path. Default: "{{ tripleo_overcloud_image_upload_home_dir }}/overcloud_image_upload.log"
* `tripleo_overcloud_image_upload_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_image_upload_rc_file`.
* `tripleo_overcloud_image_upload_os_image_name`: (String) OpenStack disk image filename
* `tripleo_overcloud_image_upload_platform`: (String) Platform type for the images being uploaded.
* `tripleo_overcloud_image_upload_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc"
* `tripleo_overcloud_image_upload_update_existing`: (Boolean) Update the images if they already exist. Default: false
* `tripleo_overcloud_image_upload_whole_disk`: (Boolean) Overcloud iamge bneing uploaded is considered a whole disk image. Default: false
* `tripleo_overcloud_image_upload_log`: (String) Install log file path. Default: "{{ tripleo_overcloud_image_upload_home_dir }}/overcloud_image_upload.log"
NOTE: Please note that this command should be run against the undercloud so the
OS_CLOUD or rc file variables should be set to use the 'undercloud' when

View File

@ -1,23 +1,24 @@
---
# defaults file for tripleo_overcloud_image_upload
---
openstack_bin: openstack
tripleo_overcloud_image_upload_architecture:
tripleo_overcloud_image_upload_debug: false
tripleo_overcloud_image_upload_http_boot:
tripleo_overcloud_image_upload_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_image_upload_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_image_upload_http_boot:
tripleo_overcloud_image_upload_image_path:
tripleo_overcloud_image_upload_image_type:
tripleo_overcloud_image_upload_ironic_python_agent_name:
tripleo_overcloud_image_upload_local: false
tripleo_overcloud_image_upload_local_path:
tripleo_overcloud_image_upload_log: "{{ tripleo_overcloud_image_upload_home_dir }}/overcloud_image_upload.log"
tripleo_overcloud_image_upload_log_combine: false
tripleo_overcloud_image_upload_log_output: true
tripleo_overcloud_image_upload_os_cloud: "{{ tripleo_os_cloud | default('') }}"
tripleo_overcloud_image_upload_os_image_name:
tripleo_overcloud_image_upload_poll: 10
tripleo_overcloud_image_upload_platform:
tripleo_overcloud_image_upload_poll: 10
tripleo_overcloud_image_upload_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}"
tripleo_overcloud_image_upload_timeout: 600
tripleo_overcloud_image_upload_update_existing: false
tripleo_overcloud_image_upload_whole_disk: false
tripleo_overcloud_image_upload_local: false
tripleo_overcloud_image_upload_local_path:
tripleo_overcloud_image_upload_log: "{{ tripleo_overcloud_image_upload_home_dir }}/overcloud_image_upload.log"

View File

@ -18,30 +18,44 @@
{{ tripleo_overcloud_image_upload_local_path | ternary('--local-path $UPLOAD_LOCAL_PATH', '') }}
{{ tripleo_overcloud_image_upload_log_output | ternary((">$UPLOAD_LOG"), '') }}
{{ tripleo_overcloud_image_upload_log_combine | ternary("2>&1", '') }}
_image_upload_env:
OS_CLOUD: "{{ tripleo_overcloud_image_upload_os_cloud }}"
UPLOAD_IMAGE_PATH: "{{ tripleo_overcloud_image_upload_image_path }}"
UPLOAD_OS_IMAGE_NAME: "{{ tripleo_overcloud_image_upload_os_image_name }}"
UPLOAD_IPA_NAME: "{{ tripleo_overcloud_image_upload_ironic_python_agent_name }}"
UPLOAD_HTTP_BOOT: "{{ tripleo_overcloud_image_upload_http_boot }}"
UPLOAD_ARCHITECTURE: "{{ tripleo_overcloud_image_upload_architecture }}"
UPLOAD_PLATFORM: "{{ tripleo_overcloud_image_upload_platform }}"
UPLOAD_IMAGE_TYPE: "{{ tripleo_overcloud_image_upload_image_type }}"
UPLOAD_LOG: "{{ tripleo_overcloud_image_upload_log }}"
UPLOAD_LOCAL_PATH: "{{ tripleo_overcloud_image_upload_local_path }}"
- name: Preserve existing log file if exists
timestamp_file:
path: "{{ tripleo_overcloud_image_upload_log }}"
when: tripleo_overcloud_image_upload_log_output|bool
- name: Show the overcloud image_upload command
debug:
var: _image_upload_cmd
- name: Show debug information
when: tripleo_overcloud_image_upload_debug|bool
block:
- name: Show the overcloud image upload command
debug:
var: _deploy_cmd
- name: Show the overcloud image upload environment
debug:
var: _deploy_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_image_upload_home_dir }}/tripleo_overcloud_image_upload.sh"
shell_command: "{{ _image_upload_cmd }}"
shell_environment: "{{ _image_upload_env }}"
when: tripleo_overcloud_image_upload_generate_scripts|bool
- name: Overcloud image upload
shell: "{{ _image_upload_cmd }}" # noqa 305
environment:
OS_CLOUD: "{{ tripleo_overcloud_image_upload_os_cloud }}"
UPLOAD_IMAGE_PATH: "{{ tripleo_overcloud_image_upload_image_path }}"
UPLOAD_OS_IMAGE_NAME: "{{ tripleo_overcloud_image_upload_os_image_name }}"
UPLOAD_IPA_NAME: "{{ tripleo_overcloud_image_upload_ironic_python_agent_name }}"
UPLOAD_HTTP_BOOT: "{{ tripleo_overcloud_image_upload_http_boot }}"
UPLOAD_ARCHITECTURE: "{{ tripleo_overcloud_image_upload_architecture }}"
UPLOAD_PLATFORM: "{{ tripleo_overcloud_image_upload_platform }}"
UPLOAD_IMAGE_TYPE: "{{ tripleo_overcloud_image_upload_image_type }}"
UPLOAD_LOG: "{{ tripleo_overcloud_image_upload_log }}"
UPLOAD_LOCAL_PATH: "{{ tripleo_overcloud_image_upload_local_path }}"
environment: "{{ _image_upload_env }}"
args:
chdir: "{{ tripleo_overcloud_image_upload_home_dir }}"
warn: false

View File

@ -13,6 +13,7 @@ Role Variables
* `tripleo_overcloud_netenv_validate_debug`: (Boolean) Flag to print out the delete command. Default: False
* `tripleo_overcloud_netenv_validate_file`: (String) REQUIRED. Path to the network environment file
* `tripleo_overcloud_netenv_validate_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined.
* `tripleo_overcloud_netenv_validate_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_netenv_validate_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true
* `tripleo_overcloud_netenv_validate_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true

View File

@ -1,11 +1,12 @@
---
# defaults file for tripleo_overcloud_netenv_validate
---
openstack_bin: openstack
tripleo_overcloud_netenv_validate_debug: false
tripleo_overcloud_netenv_validate_file:
tripleo_overcloud_netenv_validate_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_netenv_validate_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_netenv_validate_log: "{{ tripleo_overcloud_netenv_validate_home_dir }}/overcloud_netenv_validate.log"
tripleo_overcloud_netenv_validate_log_combine: true
tripleo_overcloud_netenv_validate_log_output: true
tripleo_overcloud_netenv_validate_log: "{{ tripleo_overcloud_netenv_validate_home_dir }}/overcloud_netenv_validate.log"
tripleo_overcloud_netenv_validate_poll: 10
tripleo_overcloud_netenv_validate_timeout: 3600

View File

@ -26,6 +26,13 @@
debug:
var: _validate_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_netenv_validate_home_dir }}/tripleo_overcloud_netenv_validate.sh"
shell_command: "{{ _validate_cmd }}"
shell_environment: "{{ _validate_env }}"
when: tripleo_overcloud_netenv_validate_generate_scripts|bool
- name: Run overcloud netenv validate
shell: "{{ _validate_cmd }}" # noqa 305
environment: "{{ _validate_env }}"

View File

@ -11,9 +11,10 @@ None.
Role Variables
--------------
* `tripleo_overcloud_node_bios_configure_node_uuids`: Baremetal Node UUIDs for the node(s) to configure BIOS.
* `tripleo_overcloud_node_bios_configure_all_manageable`: Configure BIOS for all nodes currently in 'manageable' state.
* `tripleo_overcloud_node_bios_configure_configuration`: BIOS configuration (YAML/JSON string or file name).
* `tripleo_overcloud_node_bios_configure_home_dir`: (String) Location to run the command in. Default: "{{ ansible_env.HOME }}"
* `tripleo_overcloud_node_bios_configure_node_uuids`: Baremetal Node UUIDs for the node(s) to configure BIOS.
* `tripleo_overcloud_node_bios_configure_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_bios_configure_rc_file`.
* `tripleo_overcloud_node_bios_configure_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc"

View File

@ -1,9 +1,11 @@
---
# defaults file for tripleo_overcloud_node_bios_configure
---
openstack_bin: openstack
tripleo_overcloud_node_bios_configure_debug: false
tripleo_overcloud_node_bios_configure_node_uuids: []
tripleo_overcloud_node_bios_configure_all_manageable: false
tripleo_overcloud_node_bios_configure_configuration:
tripleo_overcloud_node_bios_configure_debug: false
tripleo_overcloud_node_bios_configure_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_node_bios_configure_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_node_bios_configure_node_uuids: []
tripleo_overcloud_node_bios_configure_os_cloud: "{{ tripleo_os_cloud | default('') }}"
tripleo_overcloud_node_bios_configure_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}"

View File

@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
collections:
- tripleo.operator
tasks:
- name: "Include tripleo_overcloud_node_bios_configure"

View File

@ -23,9 +23,20 @@
debug:
var: _bios_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_node_bios_configure_home_dir }}/tripleo_overcloud_node_bios_configure.sh"
shell_command: "{{ _bios_cmd }}"
shell_environment: "{{ _bios_env }}"
when: tripleo_overcloud_node_bios_configure_generate_scripts|bool
- name: Configure node bios
shell: "{{ _bios_cmd }}" # noqa 305
environment: "{{ _bios_env }}"
args:
executable: /bin/bash
chdir: "{{ tripleo_overcloud_node_bios_configure_home_dir }}"
warn: false
register: tripleo_overcloud_node_bios_configure_result
changed_when: true

View File

@ -11,8 +11,8 @@ None.
Role Variables
--------------
* `tripleo_overcloud_node_bios_reset_node_uuids`: Baremetal Node UUIDs for the node(s) to reset BIOS.
* `tripleo_overcloud_node_bios_reset_all_manageable`: Reset BIOS on all nodes currently in 'manageable' state.
* `tripleo_overcloud_node_bios_reset_node_uuids`: Baremetal Node UUIDs for the node(s) to reset BIOS.
* `tripleo_overcloud_node_bios_reset_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_bios_reset_rc_file`.
* `tripleo_overcloud_node_bios_reset_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc"

View File

@ -1,8 +1,8 @@
---
# defaults file for tripleo_overcloud_node_bios_reset
---
openstack_bin: openstack
tripleo_overcloud_node_bios_reset_all_manageable: false
tripleo_overcloud_node_bios_reset_debug: false
tripleo_overcloud_node_bios_reset_node_uuids: []
tripleo_overcloud_node_bios_reset_all_manageable: false
tripleo_overcloud_node_bios_reset_os_cloud: "{{ tripleo_os_cloud | default('') }}"
tripleo_overcloud_node_bios_reset_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}"

View File

@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
collections:
- tripleo.operator
tasks:
- name: "Include tripleo_overcloud_node_bios_reset"

View File

@ -11,10 +11,10 @@ None.
Role Variables
--------------
* `tripleo_overcloud_node_clean_node_uuids`: Baremetal Node UUIDs for the node(s) to be cleaned
* `tripleo_overcloud_node_clean_all_manageable`: Clean all nodes currently in 'manageable' state
* `tripleo_overcloud_node_clean_provide`: Provide (make available) the nodes once cleaned.
* `tripleo_overcloud_node_clean_node_uuids`: Baremetal Node UUIDs for the node(s) to be cleaned
* `tripleo_overcloud_node_clean_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_clean_rc_file`.
* `tripleo_overcloud_node_clean_provide`: Provide (make available) the nodes once cleaned.
* `tripleo_overcloud_node_clean_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc"
NOTE: Please note that this command should be run against the undercloud so the

View File

@ -1,9 +1,9 @@
---
# defaults file for tripleo_overcloud_node_clean
---
openstack_bin: openstack
tripleo_overcloud_node_clean_all_manageable: false
tripleo_overcloud_node_clean_debug: false
tripleo_overcloud_node_clean_node_uuids: []
tripleo_overcloud_node_clean_all_manageable: false
tripleo_overcloud_node_clean_provide: false
tripleo_overcloud_node_clean_os_cloud: "{{ tripleo_os_cloud | default('') }}"
tripleo_overcloud_node_clean_provide: false
tripleo_overcloud_node_clean_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}"

View File

@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
collections:
- tripleo.operator
tasks:
- name: "Include tripleo_overcloud_node_clean"

Some files were not shown because too many files have changed in this diff Show More