File tree Expand file tree Collapse file tree 2 files changed +23
-11
lines changed
workflows/openstack/sensors Expand file tree Collapse file tree 2 files changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -106,16 +106,20 @@ spec:
106
106
args :
107
107
- " storage_on_server_create.yml"
108
108
- --extra-vars
109
- - " project_id={{steps.convert-project-id.outputs.result}} device_id={{workflow.parameters.device_id}} env=dev "
109
+ - " project_id={{steps.convert-project-id.outputs.result}} device_id={{workflow.parameters.device_id}}"
110
110
- " -i"
111
- - " inventory/uc-dev /01-nautobot.yaml"
111
+ - " inventory/in-cluster /01-nautobot.yaml"
112
112
- " -vvv"
113
113
env :
114
114
- name : NAUTOBOT_TOKEN
115
115
valueFrom :
116
116
secretKeyRef :
117
117
key : token
118
118
name : nautobot-token
119
+ envFrom :
120
+ - configMapRef :
121
+ name : cluster-metadata
122
+ optional : false
119
123
- - name : ansible-storage-update
120
124
when : " \" {{steps.oslo-events.outputs.parameters.storage}}\" == wanted"
121
125
inline :
@@ -125,11 +129,15 @@ spec:
125
129
args :
126
130
- " storage_update_switches.yml"
127
131
- " -i"
128
- - " inventory/uc-dev /01-nautobot.yaml"
132
+ - " inventory/in-cluster /01-nautobot.yaml"
129
133
- " -vvv"
130
134
env :
131
135
- name : NAUTOBOT_TOKEN
132
136
valueFrom :
133
137
secretKeyRef :
134
138
key : token
135
139
name : nautobot-token
140
+ envFrom :
141
+ - configMapRef :
142
+ name : cluster-metadata
143
+ optional : false
Original file line number Diff line number Diff line change @@ -104,18 +104,20 @@ spec:
104
104
args :
105
105
- " storage_on_create_project.yml"
106
106
- --extra-vars
107
- - " project_id={{steps.convert-project-id.outputs.result}} env=dev "
107
+ - " project_id={{steps.convert-project-id.outputs.result}}"
108
108
- " -i"
109
- - " inventory/uc-dev /01-nautobot.yaml"
109
+ - " inventory/in-cluster /01-nautobot.yaml"
110
110
- " -vvv"
111
- # TODO: this shouldn't be hardcodod to dev, but will work since
112
- # it really talks to https://nautobot-default.svc
113
111
env :
114
112
- name : NAUTOBOT_TOKEN
115
113
valueFrom :
116
114
secretKeyRef :
117
115
key : token
118
116
name : nautobot-token
117
+ envFrom :
118
+ - configMapRef :
119
+ name : cluster-metadata
120
+ optional : false
119
121
- - name : ansible-create-svm
120
122
when : " {{steps.oslo-events.outputs.parameters.svm_created}} == True"
121
123
inline :
@@ -125,18 +127,20 @@ spec:
125
127
args :
126
128
- " storage_on_svm_create.yml"
127
129
- --extra-vars
128
- - " svm_name=os-{{workflow.parameters.project_id}} project_id={{steps.convert-project-id.outputs.result}} env=dev "
130
+ - " svm_name=os-{{workflow.parameters.project_id}} project_id={{steps.convert-project-id.outputs.result}}"
129
131
- " -i"
130
- - " inventory/uc-dev /01-nautobot.yaml"
132
+ - " inventory/in-cluster /01-nautobot.yaml"
131
133
- " -vvv"
132
- # TODO: this shouldn't be hardcodod to dev, but will work since
133
- # it really talks to https://nautobot-default.svc
134
134
env :
135
135
- name : NAUTOBOT_TOKEN
136
136
valueFrom :
137
137
secretKeyRef :
138
138
key : token
139
139
name : nautobot-token
140
+ envFrom :
141
+ - configMapRef :
142
+ name : cluster-metadata
143
+ optional : false
140
144
- - name : netapp-configure-net
141
145
when : " {{steps.oslo-events.outputs.parameters.svm_created}} == True"
142
146
templateRef :
You can’t perform that action at this time.
0 commit comments