Skip to content

Commit 8e0c0c8

Browse files
authored
trying to fix some messed up vars (#1171)
* trying to fix some messed up vars * typo, for #1170 * new file: changelogs/fragments/workflow_jt_vars.yml
1 parent e3ab922 commit 8e0c0c8

File tree

6 files changed

+21
-15
lines changed

6 files changed

+21
-15
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
bugfixes:
3+
- changing `workflow_job_templates_secure_logging` to fit standard `controller_configuration_workflow_job_templates_secure_logging`
4+
- fixing `workflow_job_templates_async_delay` to what it was supposed to be `controller_configuration_workflow_async_delay`
5+
- fixing `workflow_job_templates_async_retries` to what it was supposed to be controller_configuration_workflow_async_retries`
6+
...

roles/controller_workflow_job_templates/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ Enabling this will enforce configuration without specifying every option in the
4343
The following Variables compliment each other.
4444
If Both variables are not set, secure logging defaults to false.
4545
The role defaults to false as normally the add Workflow Job Templates task does not include sensitive information.
46-
workflow_job_templates_secure_logging defaults to the value of aap_configuration_secure_logging if it is not explicitly called. This allows for secure logging to be toggled for the entire suite of genie roles with a single variable, or for the user to selectively use it.
46+
controller_configuration_workflow_job_templates_secure_logging defaults to the value of aap_configuration_secure_logging if it is not explicitly called. This allows for secure logging to be toggled for the entire suite of genie roles with a single variable, or for the user to selectively use it.
4747

4848
|Variable Name|Default Value|Required|Description|
4949
|:---:|:---:|:---:|:---:|
50-
|`workflow_job_templates_secure_logging`|`false`|no|Whether or not to include the sensitive Workflow Job Templates role tasks in the log. Set this value to `true` if you will be providing your sensitive values from elsewhere.|
50+
|`controller_configuration_workflow_job_templates_secure_logging`|`false`|no|Whether or not to include the sensitive Workflow Job Templates role tasks in the log. Set this value to `true` if you will be providing your sensitive values from elsewhere.|
5151
|`aap_configuration_secure_logging`|`false`|no|This variable enables secure logging as well, but is shared across multiple roles, see above.|
5252

5353
### Asynchronous Retry Variables

roles/controller_workflow_job_templates/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# list of dicts describing Controller workflow templates
33
controller_workflows: []
4-
workflow_job_templates_secure_logging: "{{ aap_configuration_secure_logging | default('false') }}"
4+
controller_configuration_workflow_job_templates_secure_logging: "{{ aap_configuration_secure_logging | default('false') }}"
55
controller_configuration_workflow_async_retries: "{{ aap_configuration_async_retries | default(30) }}"
66
controller_configuration_workflow_async_delay: "{{ aap_configuration_async_delay | default(1) }}"
77
controller_configuration_workflow_loop_delay: "{{ aap_configuration_loop_delay | default(0) }}"

roles/controller_workflow_job_templates/tasks/add_workflows_schema.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
- name: add_workflows_schema | Manage Controller Workflow Nodes Block
33
vars:
44
ansible_async_dir: "{{ aap_configuration_async_dir }}"
5-
no_log: "{{ workflow_job_templates_secure_logging }}"
5+
no_log: "{{ controller_configuration_workflow_job_templates_secure_logging }}"
66
block:
77
# Creating Workflow Node
88
- name: add_workflows_schema | Create the Workflow Nodes
@@ -65,9 +65,9 @@
6565
loop_control:
6666
loop_var: __workflows_node_async_results_item
6767
vars:
68-
cas_secure_logging: "{{ workflow_job_templates_secure_logging }}"
69-
cas_async_delay: "{{ workflow_job_templates_async_delay }}"
70-
cas_async_retries: "{{ workflow_job_templates_async_retries }}"
68+
cas_secure_logging: "{{ controller_configuration_workflow_job_templates_secure_logging }}"
69+
cas_async_delay: "{{ controller_configuration_workflow_async_delay }}"
70+
cas_async_retries: "{{ controller_configuration_workflow_async_retries }}"
7171
cas_job_async_results_item: "{{ __workflows_node_async_results_item }}"
7272
cas_error_list_var_name: "controller_workflows_errors"
7373

@@ -120,9 +120,9 @@
120120
loop_control:
121121
loop_var: __workflows_link_async_results_item
122122
vars:
123-
cas_secure_logging: "{{ workflow_job_templates_secure_logging }}"
124-
cas_async_delay: "{{ workflow_job_templates_async_delay }}"
125-
cas_async_retries: "{{ workflow_job_templates_async_retries }}"
123+
cas_secure_logging: "{{ controller_configuration_workflow_job_templates_secure_logging }}"
124+
cas_async_delay: "{{ controller_configuration_workflow_async_delay }}"
125+
cas_async_retries: "{{ controller_configuration_workflow_async_retries }}"
126126
cas_job_async_results_item: "{{ __workflows_link_async_results_item }}"
127127
cas_error_list_var_name: "controller_workflows_errors"
128128

roles/controller_workflow_job_templates/tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
- name: Manage Controller Workflows Block
33
vars:
44
ansible_async_dir: "{{ aap_configuration_async_dir }}"
5-
no_log: "{{ workflow_job_templates_secure_logging }}"
5+
no_log: "{{ controller_configuration_workflow_job_templates_secure_logging }}"
66
block:
77
# Create links between workflow node
88
- name: Loop over nodes in schema to add to workflow templates
@@ -83,9 +83,9 @@
8383
loop_var: __workflows_job_async_results_item
8484
label: "{{ __operation.verb }} Workflow {{ __workflows_job_async_results_item.__workflow_loop_item.name }} | Wait for finish the workflow {{ __operation.action }}"
8585
vars:
86-
cas_secure_logging: "{{ workflow_job_templates_secure_logging }}"
87-
cas_async_delay: "{{ workflow_job_templates_async_delay }}"
88-
cas_async_retries: "{{ workflow_job_templates_async_retries }}"
86+
cas_secure_logging: "{{ controller_configuration_workflow_job_templates_secure_logging }}"
87+
cas_async_delay: "{{ controller_configuration_workflow_job_templates_async_delay }}"
88+
cas_async_retries: "{{ controller_configuration_workflow_job_templates_async_retries }}"
8989
cas_job_async_results_item: "{{ __workflows_job_async_results_item }}"
9090
cas_error_list_var_name: "controller_workflows_errors"
9191
__operation: "{{ operation_translate[__workflows_job_async_results_item.__workflow_loop_item.state | default(platform_state) | default('present')] }}"

tests/configure_controller_export_model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
hosts: localhost
44
connection: local
55
vars:
6-
workflow_job_templates_secure_logging: false
6+
controller_configuration_workflow_job_templates_secure_logging: false
77
aap_validate_certs: false
88
# Define following vars here, or in configs/controller_auth.yml
99
# aap_hostname: controller.example.com

0 commit comments

Comments
 (0)