Skip to content

Commit c9dfa85

Browse files
committed
Detaching project and svm based ansible automations from automated control
We will be moving these to an engineer instructed build rather than having these functions fire automatically
1 parent f24717f commit c9dfa85

1 file changed

Lines changed: 0 additions & 59 deletions

File tree

charts/site-workflows/templates/sensor-keystone-oslo-event.yaml

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -100,30 +100,6 @@ spec:
100100
project_id_without_dashes = {{ printf "{{workflow.parameters.project_id}}" | quote }}
101101
print(str(uuid.UUID(project_id_without_dashes)))
102102
103-
- - name: ansible-create-project
104-
when: {{ printf "'{{steps.oslo-events.outputs.parameters.svm_state}}' == 'created'" | quote }}
105-
templateRef:
106-
name: ansible-workflow-template
107-
template: ansible-run
108-
arguments:
109-
parameters:
110-
- name: playbook
111-
value: storage_on_create_project.yml
112-
- name: extra_vars
113-
value: {{ printf "project_id={{steps.convert-project-id.outputs.result}}" | quote }}
114-
115-
- - name: ansible-create-svm
116-
when: {{ printf "'{{steps.oslo-events.outputs.parameters.svm_state}}' == 'created'" | quote }}
117-
templateRef:
118-
name: ansible-workflow-template
119-
template: ansible-run
120-
arguments:
121-
parameters:
122-
- name: playbook
123-
value: storage_on_svm_create.yml
124-
- name: extra_vars
125-
value: {{ printf "svm_name=os-{{workflow.parameters.project_id}} project_id={{steps.convert-project-id.outputs.result}}" | quote }}
126-
127103
- - name: netapp-configure-net
128104
when: {{ printf "'{{steps.oslo-events.outputs.parameters.svm_state}}' == 'created'" | quote }}
129105
templateRef:
@@ -134,39 +110,4 @@ spec:
134110
- name: project_id
135111
value: {{ printf "{{workflow.parameters.project_id}}" | quote }}
136112

137-
- - name: ansible-remove-svm
138-
when: {{ printf "'{{steps.oslo-events.outputs.parameters.svm_state}}' == 'removed'" | quote }}
139-
templateRef:
140-
name: ansible-workflow-template
141-
template: ansible-run
142-
arguments:
143-
parameters:
144-
- name: playbook
145-
value: storage_on_svm_delete.yml
146-
- name: extra_vars
147-
value: {{ printf "svm_name=os-{{workflow.parameters.project_id}} project_id={{steps.convert-project-id.outputs.result}}" | quote }}
148-
149-
- - name: ansible-remove-project-svm
150-
when: {{ printf "'{{steps.oslo-events.outputs.parameters.svm_state}}' == 'removed'" | quote }}
151-
templateRef:
152-
name: ansible-workflow-template
153-
template: ansible-run
154-
arguments:
155-
parameters:
156-
- name: playbook
157-
value: storage_on_project_delete.yml
158-
- name: extra_vars
159-
value: {{ printf "project_id={{steps.convert-project-id.outputs.result}} dry_run=false" | quote }}
160-
161-
- - name: ansible-remove-project
162-
when: {{ printf "'{{workflow.parameters.event_type}}' == 'identity.project.deleted'" | quote }}
163-
templateRef:
164-
name: ansible-workflow-template
165-
template: ansible-run
166-
arguments:
167-
parameters:
168-
- name: playbook
169-
value: storage_on_project_delete.yml
170-
- name: extra_vars
171-
value: {{ printf "project_id={{steps.convert-project-id.outputs.result}} dry_run=false delete_tenant=true" | quote }}
172113
{{- end }}

0 commit comments

Comments
 (0)