File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
roles/app-installer/tasks Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 4949 conda create -y -n rspy python=3.11
5050
5151 # Install Ansible, Terraform, Openstackclient
52- conda run -n rspy conda install -y -c conda-forge " ansible<12" terraform python-openstackclient passlib boto3 kubernetes-helm kubernetes-client python-kubernetes
52+ conda run -n rspy conda install -y -c conda-forge ansible terraform python-openstackclient passlib boto3 kubernetes-helm kubernetes-client python-kubernetes
5353
5454 conda run -n rspy ansible-galaxy collection install openstack.cloud amazon.aws kubernetes.core community.general
5555
8484 sed -i 's!cinder.csi.openstack.org!k8s.io/minikube-hostpath!g' apps/00-storage-class/sc-retain.yaml
8585 sed -i 's!instances: 3!instances: 1!g' apps/03-cloudnative-pg/cluster.yaml
8686 sed -i -e 's!https://iam.{{ platform_domain_name }}!http://keycloak-service.iam.svc.cluster.local:8080!g' -e 's!insecure_oidc_skip_issuer_verification="false"!insecure_oidc_skip_issuer_verification="true"!g' apps/oauth2-proxy/values.yaml
87-
87+
8888 # Minio for cloudnative pg
8989 sed -i -e 's!{{ s3.access_key }}!access_key!' -e 's!{{ s3.secret_key }}!secret_key!' apps/03-cloudnative-pg/secrets.yaml
9090 sed -i -e 's!{{ postgresql.bucket }}!bucket!' -e 's!{{ s3.endpoint }}!http://minio.minio.svc.cluster.local:9000!' apps/03-cloudnative-pg/objectstore.yaml
Original file line number Diff line number Diff line change 140140 daemonsets : {"resources": []}
141141 delegate_to : bastion
142142
143- - name : " {{ package_name }} - {{ app_name }} | Extract deployed resources"
143+ - name : " {{ package_name }} - {{ app_name }} | Cleanup deployed resources YAML "
144144 set_fact :
145145 # cleanup the yaml to fix invalid CRD definitions before parsing
146- resources : >-
146+ cleaned_resources_yaml : >-
147147 {{
148- result.stdout
148+ ( result.stdout | default(''))
149149 | regex_replace('(?m)^([ ]*)- =$' , '\1- "="')
150150 | regex_replace('(?m)^([ ]*)- =~$', '\1- "=~"')
151- | from_yaml_all
152- | list
151+ }}
152+ delegate_to : bastion
153+
154+ - name : " {{ package_name }} - {{ app_name }} | Extract deployed resources"
155+ set_fact :
156+ resources : >-
157+ {{
158+ [] if (cleaned_resources_yaml | default('') | trim) == ''
159+ else (cleaned_resources_yaml | from_yaml_all | list)
153160 }}
154161 delegate_to : bastion
155162
You can’t perform that action at this time.
0 commit comments