Skip to content

Commit 4dee708

Browse files
Survey options updated (#133)
* update docs and add options for alias survey in workflows * change changelog fragment location * update lint * update * update * update * update * update * update * rollback debug * update to user * update grammer * update docs
1 parent 1f93dab commit 4dee708

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

changelogs/fragments/survey_spec.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
minor_changes:
3+
- updated documentation on surveys for workflows and job templates
4+
- added alias option for survey to survey_spec in workflows.

roles/job_templates/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ tower_configuration_job_templates_secure_logging defaults to the value of tower_
6565
|`ask_credential_on_launch`|""|no|bool|Prompt user for credential on launch.|
6666
|`survey_enabled`|""|no|bool|Enable a survey on the job template.|
6767
|`survey_spec`|""|no|dict|JSON/YAML dict formatted survey definition.|
68+
|`survey`|""|no|dict|JSON/YAML dict formatted survey definition. Alias of survey_spec|
6869
|`become_enabled`|""|no|bool|Activate privilege escalation.|
6970
|`allow_simultaneous`|""|no|bool|Allow simultaneous runs of the job template.|
7071
|`timeout`|""|no|int|Maximum time in seconds to wait for a job to finish (server-side).|

roles/workflow_job_templates/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ workflow_job_templates_secure_logging defaults to the value of tower_genie_secur
5252
|`state`|`present`|no|str|Desired state of the resource.|
5353
|`survey_enabled`|""|no|bool|Enable a survey on the job template.|
5454
|`survey_spec`|""|no|dict|JSON/YAML dict formatted survey definition.|
55+
|`survey`|""|no|dict|JSON/YAML dict formatted survey definition. Alias of survey_spec|
5556
|`webhook_service`|""|no|str|Service that webhook requests will be accepted from (github, gitlab)|
5657
|`webhook_credential`|""|no|str|Personal Access Token for posting back the status to the service API|
5758

roles/workflow_job_templates/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
webhook_service: "{{ workflow_loop_var.webhook_service | default(omit) }}"
2121
webhook_credential: "{{ workflow_loop_var.webhook_credential.name | default(workflow_loop_var.webhook_credential | default(omit)) }}"
2222
survey_enabled: "{{ workflow_loop_var.survey_enabled | default('false') }}"
23-
survey: "{{ workflow_loop_var.related.survey_spec | default( workflow_loop_var.survey_spec | default(omit)) }}"
23+
survey: "{{ workflow_loop_var.related.survey_spec | default( workflow_loop_var.survey_spec | default( workflow_loop_var.survey | default(omit))) }}"
2424
state: "{{ workflow_loop_var.state | default(tower_state | default('present')) }}"
2525
notification_templates_started: "{{ workflow_loop_var.notification_templates_started | default(workflow_loop_var.related.notification_templates_started | default([]) | map(attribute='name') | list ) }}"
2626
notification_templates_success: "{{ workflow_loop_var.notification_templates_success | default(workflow_loop_var.related.notification_templates_success | default([]) | map(attribute='name') | list ) }}"

0 commit comments

Comments
 (0)