|
| 1 | +--- |
| 2 | +- name: "Deploy telemetry in a job with ceph" |
| 3 | + hosts: "{{ cifmw_target_hook_host | default('localhost') }}" |
| 4 | + gather_facts: false |
| 5 | + environment: |
| 6 | + KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}" |
| 7 | + PATH: "{{ cifmw_path }}" |
| 8 | + tasks: |
| 9 | + - name: Deploy logging dependencies |
| 10 | + ansible.builtin.import_role: |
| 11 | + name: deploy-logging-dependencies |
| 12 | + - name: Copy controlplane kustomization |
| 13 | + ansible.builtin.copy: |
| 14 | + dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane/90-kustomize-controlplane-telemetry.yaml" |
| 15 | + content: |- |
| 16 | + apiVersion: kustomize.config.k8s.io/v1beta1 |
| 17 | + kind: Kustomization |
| 18 | + namespace: openstack |
| 19 | + patches: |
| 20 | + - patch: |- |
| 21 | + apiVersion: core.openstack.org/v1beta1 |
| 22 | + kind: OpenStackControlPlane |
| 23 | + metadata: |
| 24 | + name: unused |
| 25 | + spec: |
| 26 | + swift: # required for smoketests to pass |
| 27 | + enabled: true |
| 28 | + heat: # required for autoscaling |
| 29 | + enabled: true |
| 30 | + telemetry: # enable all telemetry controlplane services |
| 31 | + enabled: true |
| 32 | + template: |
| 33 | + metricStorage: |
| 34 | + enabled: true |
| 35 | + monitoringStack: |
| 36 | + alertingEnabled: false |
| 37 | + autoscaling: |
| 38 | + enabled: true |
| 39 | + logging: |
| 40 | + enabled: true |
| 41 | + ceilometer: |
| 42 | + enabled: true |
| 43 | + mysqldExporterEnabled: true |
| 44 | + target: |
| 45 | + kind: OpenStackControlPlane |
| 46 | + - patch: |- |
| 47 | + apiVersion: core.openstack.org/v1beta1 |
| 48 | + kind: OpenStackControlPlane |
| 49 | + metadata: |
| 50 | + name: unused |
| 51 | + spec: |
| 52 | + telemetry: |
| 53 | + template: |
| 54 | + metricStorage: |
| 55 | + dashboardsEnabled: true |
| 56 | + target: |
| 57 | + kind: OpenStackControlPlane |
| 58 | +
|
| 59 | + # Deploy telemetry services and all their prerequisities on the dataplane |
| 60 | + - name: Copy dataplane nodeset kustomization |
| 61 | + ansible.builtin.copy: |
| 62 | + dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/dataplane/60-kustomize-dataplane-telemetry-service.yaml" |
| 63 | + content: |- |
| 64 | + apiVersion: kustomize.config.k8s.io/v1beta1 |
| 65 | + kind: Kustomization |
| 66 | + resources: |
| 67 | + namespace: {{ cifmw_install_yamls_defaults['NAMESPACE'] }} |
| 68 | + patches: |
| 69 | + - target: |
| 70 | + kind: OpenStackDataPlaneNodeSet |
| 71 | + name: .* |
| 72 | + patch: |- |
| 73 | + - op: add |
| 74 | + path: /spec/services/- |
| 75 | + value: install-certs |
| 76 | + - op: add |
| 77 | + path: /spec/services/- |
| 78 | + value: ovn |
| 79 | + - op: add |
| 80 | + path: /spec/services/- |
| 81 | + value: libvirt |
| 82 | + - op: add |
| 83 | + path: /spec/services/- |
| 84 | + value: telemetry |
| 85 | + - op: add |
| 86 | + path: /spec/services/- |
| 87 | + value: telemetry-power-monitoring |
| 88 | + - op: add |
| 89 | + path: /spec/services/- |
| 90 | + value: logging |
0 commit comments