|
62 | 62 | target: |
63 | 63 | kind: OpenStackControlPlane |
64 | 64 |
|
65 | | - # This probably won't actually work, since there's no telemetry object yet at this point. |
66 | | - # The kustomization needs to be done post_deploy |
67 | | - # - name: Copy telemetry kustomization |
68 | | - # ansible.builtin.copy: |
69 | | - # dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane/90-kustomize-telemetry-cloudkitty.yaml" |
70 | | - # content: |- |
71 | | - # apiVersion: kustomize.config.k8s.io/v1beta1 |
72 | | - # kind: Kustomization |
73 | | - # namespace: openstack |
74 | | - # patches: |
75 | | - # - patch: |- |
76 | | - # apiVersion: core.openstack.org/v1beta1 |
77 | | - # kind: Telemetry |
78 | | - # metadata: |
79 | | - # name: telemetry-ck |
80 | | - # spec: |
81 | | - # cloudkitty: |
82 | | - # enabled: true |
83 | | - # secret: osp-secret |
84 | | - # passwordSelector: |
85 | | - # aodhService: AodhPassword |
86 | | - # ceilometerService: CeilometerPassword |
87 | | - # cloudKittyService: CloudKittyPassword |
88 | | - # # WORKAROUND |
89 | | - # # Need to set the images, since the defaulting is not working at the moment. |
90 | | - # # The container image is not being set, so the dbsync is failing. |
91 | | - # # The defaulting will not be done in the webhook until CK is added to the openstack-operator. |
92 | | - # # If I change the name of the CK, I can just configure using the CK CRD. |
93 | | - # # If I don't change the name, and disable it in telemetry, then the telemetry-operator will delete the telemetry telemetry. |
94 | | - # cloudKittyAPI: |
95 | | - # # containerImage: "{{ cloudkitty_api_image }}" |
96 | | - # containerImage: "quay.io/efoley/cloudkitty-api@sha256:baf3f44225be4ac55eef6e45ab4095a8284fc186da5916408dbf95767a1eb5e9" |
97 | | - # cloudKittyProc: |
98 | | - # # containerImage: "{{ cloudkitty_proc_image }}" |
99 | | - # containerImage: "quay.io/efoley/cloudkitty-processor@sha256:4ddd2f824b17c0c2fb39363369a16af49cb2d95c07916f52e2c509ceca677de9" |
100 | | - # target: |
101 | | - # kind: Telemetry |
102 | | - # |
| 65 | + - name: Create the CloudKitty kustomization from a template |
| 66 | + ansible.builtin.template: |
| 67 | + src: "kustomize-controlplane-cloudkitty.yaml.j2" |
| 68 | + # dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane/90-kustomize-controlplane-cloudkitty.yaml" |
| 69 | + dest: "{{ logs_dir }}/90-kustomize-controlplane-cloudkitty.yaml" |
| 70 | + |
| 71 | + - name: Compare the templated and copied files |
| 72 | + ansible.builtin.command: |
| 73 | + cmd: | |
| 74 | + diff -s {{ logs_dir }}/90-kustomize-controlplane-cloudkitty.yaml {{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane/90-kustomize-controlplane-cloudkitty.yaml |
| 75 | + register: output |
| 76 | + - debug: var=output.stdout |
0 commit comments