Skip to content

Commit d274115

Browse files
authored
Merge pull request #196 from RS-PYTHON/allow-recent-ansible
Allow latest version of Ansible
2 parents 8fc2b89 + d78c37d commit d274115

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/test-deployment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
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
@@ -84,7 +84,7 @@ jobs:
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

roles/app-installer/tasks/install_app.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,23 @@
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

0 commit comments

Comments
 (0)