tripleo-operator-ansible/roles/tripleo_overcloud_node_provide
Alex Schultz d2b23da366 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
2020-04-15 16:25:27 -06:00
..
defaults Add ability to write scripts 2020-04-15 16:25:27 -06:00
meta Add overcloud node provide role 2020-03-17 10:40:37 -06:00
molecule/default Add overcloud node provide role 2020-03-17 10:40:37 -06:00
tasks Add overcloud node provide role 2020-03-17 10:40:37 -06:00
tests Add overcloud node provide role 2020-03-17 10:40:37 -06:00
README.md Add overcloud node provide role 2020-03-17 10:40:37 -06:00

README.md

tripleo_overcloud_node_provide

A role to set nodes in a manageable state to available.

Requirements

Requires the username and password found in the ~/stackrc file on the undercloud.

Role Variables

  • tripleo_overcloud_node_provide_all_manageable: (Boolean) Provide all nodes in manageable state. REQUIRED if UUIDs are not passed. Default: False
  • tripleo_overcloud_node_provide_debug: (Boolean) Flag to print out the delete command. Default: False
  • tripleo_overcloud_node_provide_home_dir: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}"
  • tripleo_overcloud_node_provide_log_combine: (Boolean) Flag to enable captching stderr with stdout. Default: true
  • tripleo_overcloud_node_provide_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_node_provide_log: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_node_provide_home_dir }}/overcloud_node_provide.log"
  • tripleo_overcloud_node_provide_node_uuids: (List) List of UUIDs to provide. REQUIRED if '--all-manageable' is not passed. Default []
  • tripleo_overcloud_node_provide_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_provide_rc_file.
  • tripleo_overcloud_node_provide_poll: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10
  • tripleo_overcloud_node_provide_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_node_provide_timeout: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600

Output Variables

  • tripleo_overcloud_node_provide_output: (String) The command standard output.
  • tripleo_overcloud_node_provide_result: Ansible shell execution results

Dependencies

None.

Example Playbook

Example overcloud node provide playbook

- hosts: undercloud
  gather_facts: true
  tasks:
    - name: Set overcloud nodes to available (provide nodes)
      import_role:
        name: tripleo_overcloud_node_provide
      vars:
        tripleo_overcloud_node_provide_node_uuids:
          - 4ca0448a-3892-4fc8-aea1-1834ac3c0caa

License

Apache-2.0