commit 571e48caeab86905396b83c897dec7501c226150 Author: Emilien Macchi Date: Tue Jun 16 13:43:37 2020 -0400 Add tripleo_states to default callback whitelist tripleo_states will be a useful callback to print out informations about a deployment state (e.g. if a node failed but was ignored because of max_failed_percentage). Change-Id: Ia53a5fb554e231d8ea16639efe3c394d0811556c (cherry picked from commit 7e7c3c23dd2199efe69b8da1fa376813821d4c51) diff --git a/tripleoclient/constants.py b/tripleoclient/constants.py index d1b009e..5f5c47d 100644 --- a/tripleoclient/constants.py +++ b/tripleoclient/constants.py @@ -43,7 +43,7 @@ OVERCLOUD_NETWORKS_FILE = "network_data.yaml" STANDALONE_NETWORKS_FILE = "/dev/null" UNDERCLOUD_NETWORKS_FILE = "network_data_undercloud.yaml" ANSIBLE_HOSTS_FILENAME = "hosts.yaml" -ANSIBLE_CWL = "tripleo_dense,tripleo_profile_tasks" +ANSIBLE_CWL = "tripleo_dense,tripleo_profile_tasks,tripleo_states" # The name of the file which holds the plan environment contents PLAN_ENVIRONMENT = 'plan-environment.yaml' diff --git a/tripleoclient/utils.py b/tripleoclient/utils.py index ea6ef41..dc6e85b 100644 --- a/tripleoclient/utils.py +++ b/tripleoclient/utils.py @@ -276,7 +276,8 @@ def run_ansible_playbook(playbook, inventory, workdir, playbook_dir=None, :param callback_whitelist: Comma separated list of callback plugins. Defaults to - "tripleo_dense,tripleo_profile_tasks". + "tripleo_dense,tripleo_profile_tasks, + tripleo_states". Custom output_callback is also whitelisted. :type callback_whitelist: String