Skip to content

Commit

Permalink
Merge pull request openstack-k8s-operators#722 from yadneshk/telemetr…
Browse files Browse the repository at this point in the history
…y_adoption

Add telemetry adoption tasks
  • Loading branch information
openshift-merge-bot[bot] authored Aug 12, 2024
2 parents 64b79fe + 8118790 commit 81f7a2f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/edpm_telemetry/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ edpm_telemetry_tls_certs_enabled: "{{ edpm_tls_certs_enabled | default(False) }}
edpm_telemetry_image_download_delay: 5
# number of retries for download tasks
edpm_telemetry_image_download_retries: 5
# list of tripleo telemetry services to stop during EDPM adoption
edpm_telemetry_old_tripleo_compute_sevices:
- tripleo_ceilometer_agent_compute.service
- tripleo_ceilometer_agent_ipmi.service
4 changes: 4 additions & 0 deletions roles/edpm_telemetry/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@ argument_specs:
type: "str"
required: true
description: "The path in the compute node where the cacerts are stored"
edpm_telemetry_old_tripleo_compute_sevices:
type: list
required: true
description: List of ceilometer agents to be stopped during EDPM adoption
10 changes: 10 additions & 0 deletions roles/edpm_telemetry/tasks/adoption.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Stop and disable ceilometer agent services
tags:
- adoption
- telemetry
ansible.builtin.include_role:
role: osp.edpm.edpm_tripleo_cleanup
vars:
edpm_old_tripleo_services: "{{ edpm_telemetry_old_tripleo_compute_sevices }}"
when: edpm_telemetry_old_tripleo_compute_sevices | default([]) | length > 0
2 changes: 2 additions & 0 deletions roles/edpm_telemetry/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations
# under the License.

- name: Adoption telemetry from tripleo
ansible.builtin.include_tasks: adoption.yml

- name: Configure telemetry metrics
ansible.builtin.import_tasks: configure.yml
Expand Down

0 comments on commit 81f7a2f

Please sign in to comment.