File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,24 @@ cifmw_kustomize_deploy_nmstate_dest_file: >-
108108 ] | path_join
109109 }}
110110
111+ # openstack init resource
112+ cifmw_kustomize_deploy_openstack_source_files : >-
113+ {{
114+ [
115+ cifmw_kustomize_deploy_architecture_repo_dest_dir,
116+ cifmw_kustomize_deploy_architecture_examples_common_path,
117+ 'openstack'
118+ ] | path_join
119+ }}
120+
121+ cifmw_kustomize_deploy_openstack_dest_file : >-
122+ {{
123+ [
124+ cifmw_kustomize_deploy_kustomizations_dest_dir,
125+ 'openstack.yaml'
126+ ] | path_join
127+ }}
128+
111129# controlsplane resources
112130
113131cifmw_kustomize_deploy_nncp_source_files : >-
Original file line number Diff line number Diff line change 319319 status : " True"
320320 wait_timeout : 300
321321
322+ - name : Generate OpenStack initialization kustomization file
323+ ansible.builtin.copy :
324+ content : >-
325+ {{
326+ lookup(
327+ 'kubernetes.core.kustomize',
328+ dir=cifmw_kustomize_deploy_openstack_source_files
329+ )
330+ }}
331+ dest : " {{ cifmw_kustomize_deploy_openstack_dest_file }}"
332+ mode : " 0644"
333+
334+ - name : Openstack initialization resources
335+ when : not cifmw_kustomize_deploy_generate_crs_only
336+ block :
337+ - name : Apply the kustomized OpenStack initialization CRs
338+ kubernetes.core.k8s :
339+ kubeconfig : " {{ cifmw_openshift_kubeconfig }}"
340+ api_key : " {{ cifmw_openshift_token | default(omit) }}"
341+ context : " {{ cifmw_openshift_context | default(omit) }}"
342+ state : present
343+ wait : true
344+ src : " {{ cifmw_kustomize_deploy_openstack_dest_file }}"
345+ check_mode : >-
346+ {{
347+ cifmw_kustomize_deploy_check_mode |
348+ default(false, true)
349+ }}
350+
322351 - name : Wait until OpenStack operators are deployed and ready
323352 when : not cifmw_kustomize_deploy_generate_crs_only
324353 kubernetes.core.k8s_info :
You can’t perform that action at this time.
0 commit comments