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: I82f4945bf1178fad1ff511c994518008f308d12e
(cherry picked from commit c1dad1ced1
)
This commit is contained in:
parent
325743eb8c
commit
2c79a6ba0a
|
@ -69,7 +69,8 @@ def write_default_ansible_cfg(work_dir,
|
||||||
'{}/callback_plugins'.format(
|
'{}/callback_plugins'.format(
|
||||||
constants.DEFAULT_VALIDATIONS_BASEDIR,
|
constants.DEFAULT_VALIDATIONS_BASEDIR,
|
||||||
constants.DEFAULT_VALIDATIONS_LEGACY_BASEDIR))
|
constants.DEFAULT_VALIDATIONS_LEGACY_BASEDIR))
|
||||||
callbacks_whitelist = ','.join(['tripleo', 'profile_tasks'])
|
callbacks_whitelist = ','.join(['tripleo', 'profile_tasks',
|
||||||
|
'tripleo_states'])
|
||||||
action_plugins_path = (
|
action_plugins_path = (
|
||||||
'~/.ansible/plugins/action:'
|
'~/.ansible/plugins/action:'
|
||||||
'/usr/share/ansible/plugins/action:'
|
'/usr/share/ansible/plugins/action:'
|
||||||
|
@ -619,7 +620,8 @@ class AnsiblePlaybookAction(base.TripleOAction):
|
||||||
env_variables.update({
|
env_variables.update({
|
||||||
# the whitelist could be collected from multiple
|
# the whitelist could be collected from multiple
|
||||||
# arguments if we find a use case for it
|
# arguments if we find a use case for it
|
||||||
'ANSIBLE_CALLBACK_WHITELIST': 'tripleo,profile_tasks',
|
'ANSIBLE_CALLBACK_WHITELIST':
|
||||||
|
'tripleo,profile_tasks,tripleo_states',
|
||||||
'ANSIBLE_STDOUT_CALLBACK': 'tripleo',
|
'ANSIBLE_STDOUT_CALLBACK': 'tripleo',
|
||||||
'PROFILE_TASKS_TASK_OUTPUT_LIMIT':
|
'PROFILE_TASKS_TASK_OUTPUT_LIMIT':
|
||||||
six.text_type(self.profile_tasks_limit),
|
six.text_type(self.profile_tasks_limit),
|
||||||
|
|
|
@ -113,7 +113,8 @@ class AnsiblePlaybookActionTest(base.TestCase):
|
||||||
'HOME': action.work_dir,
|
'HOME': action.work_dir,
|
||||||
'ANSIBLE_LOCAL_TEMP': action.work_dir,
|
'ANSIBLE_LOCAL_TEMP': action.work_dir,
|
||||||
'ANSIBLE_CONFIG': ansible_config_path,
|
'ANSIBLE_CONFIG': ansible_config_path,
|
||||||
'ANSIBLE_CALLBACK_WHITELIST': 'tripleo,profile_tasks',
|
'ANSIBLE_CALLBACK_WHITELIST':
|
||||||
|
'tripleo,profile_tasks,tripleo_states',
|
||||||
'ANSIBLE_STDOUT_CALLBACK': 'tripleo',
|
'ANSIBLE_STDOUT_CALLBACK': 'tripleo',
|
||||||
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '20',
|
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '20',
|
||||||
}
|
}
|
||||||
|
@ -153,7 +154,8 @@ class AnsiblePlaybookActionTest(base.TestCase):
|
||||||
'HOME': action.work_dir,
|
'HOME': action.work_dir,
|
||||||
'ANSIBLE_LOCAL_TEMP': action.work_dir,
|
'ANSIBLE_LOCAL_TEMP': action.work_dir,
|
||||||
'ANSIBLE_CONFIG': ansible_config_path,
|
'ANSIBLE_CONFIG': ansible_config_path,
|
||||||
'ANSIBLE_CALLBACK_WHITELIST': 'tripleo,profile_tasks',
|
'ANSIBLE_CALLBACK_WHITELIST':
|
||||||
|
'tripleo,profile_tasks,tripleo_states',
|
||||||
'ANSIBLE_STDOUT_CALLBACK': 'tripleo',
|
'ANSIBLE_STDOUT_CALLBACK': 'tripleo',
|
||||||
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '20',
|
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '20',
|
||||||
}
|
}
|
||||||
|
@ -193,7 +195,8 @@ class AnsiblePlaybookActionTest(base.TestCase):
|
||||||
'HOME': action.work_dir,
|
'HOME': action.work_dir,
|
||||||
'ANSIBLE_LOCAL_TEMP': action.work_dir,
|
'ANSIBLE_LOCAL_TEMP': action.work_dir,
|
||||||
'ANSIBLE_CONFIG': ansible_config_path,
|
'ANSIBLE_CONFIG': ansible_config_path,
|
||||||
'ANSIBLE_CALLBACK_WHITELIST': 'tripleo,profile_tasks',
|
'ANSIBLE_CALLBACK_WHITELIST':
|
||||||
|
'tripleo,profile_tasks,tripleo_states',
|
||||||
'ANSIBLE_STDOUT_CALLBACK': 'tripleo',
|
'ANSIBLE_STDOUT_CALLBACK': 'tripleo',
|
||||||
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '20',
|
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '20',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue