From 89823c69650ab061ca22dbcf1b9ff08d8fe08570 Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Mon, 7 Aug 2023 14:02:10 +0200 Subject: [PATCH] rename domon to mms --- README.md | 8 ++++---- playbooks/check_https.yml | 12 ++++++------ playbooks/check_json_azure_restapi.yml | 2 +- .../check_json_azure_restapi_resourcehealth.yml | 4 ++-- playbooks/{domon_standard.yml => mms_standard.yml} | 8 ++++---- playbooks/template_empty_host.yml | 2 +- tests/integration/targets/icinga/runme.sh | 2 +- 7 files changed, 19 insertions(+), 19 deletions(-) rename playbooks/{domon_standard.yml => mms_standard.yml} (83%) diff --git a/README.md b/README.md index d9c449b..59c6530 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Check out the 'Documentation' part for this collection [here](https://github.com | playbook| description |------------|----------------------------------------------------------------------- -| domon_standard.yml | create a timeperiod and service template to use for other checks +| mms_standard.yml | create a timeperiod and service template to use for other checks | azure_oauth_token.yml | get azure oauth token to use in other checks | check_gitlab_scheduler.yml | check gitlab scheduled pipelines | check_https.yml | check https reachability and certificates @@ -69,8 +69,8 @@ Check out the 'Documentation' part for this collection [here](https://github.com You can use these playbooks in your playbook like this: ``` -- name: Import domon standard playbook to create services that other checks depend on - import-playbook: t_systems_mms.ansible_collection_icinga.domon_standard +- name: Import mms standard playbook to create services that other checks depend on + import-playbook: t_systems_mms.ansible_collection_icinga.mms_standard - name: Import playbook to create azure oauth token check import-playbook: t_systems_mms.ansible_collection_icinga.check_azure_oauth_token @@ -85,7 +85,7 @@ You can use these playbooks in your playbook like this: Or call them from the command line: ``` -ansible-playbook t_systems_mms.ansible_collection_icinga.domon_standard +ansible-playbook t_systems_mms.ansible_collection_icinga.mms_standard ansible-playbook t_systems_mms.ansible_collection_icinga.check_azure_oauth_token ansible-playbook t_systems_mms.ansible_collection_icinga.check_gitlab_scheduler ansible-playbook t_systems_mms.ansible_collection_icinga.check_https diff --git a/playbooks/check_https.yml b/playbooks/check_https.yml index 3c52227..005a6c2 100644 --- a/playbooks/check_https.yml +++ b/playbooks/check_https.yml @@ -8,12 +8,12 @@ url_username: "{{ icinga_user }}" url_password: "{{ icinga_pass }}" tasks: - - name: Create service template for domon-https + - name: Create service template for mms-https telekom_mms.icinga_director.icinga_service_template: state: present - object_name: domon-https + object_name: mms-https imports: - - domon-standard-service + - mms-standard-service check_command: http check_interval: 300 vars: @@ -24,10 +24,10 @@ http_ssl: true http_timeout: 30 - - name: Create service template for domon-https + - name: Create service template for mms-https telekom_mms.icinga_director.icinga_service_template: state: present - object_name: domon-https-certificate + object_name: mms-https-certificate imports: - - domon-https + - mms-https check_timeout: 60 diff --git a/playbooks/check_json_azure_restapi.yml b/playbooks/check_json_azure_restapi.yml index f9fb467..8b9cfce 100644 --- a/playbooks/check_json_azure_restapi.yml +++ b/playbooks/check_json_azure_restapi.yml @@ -1,5 +1,5 @@ --- -- name: Create service template for domon-standard-service and azure REST-API +- name: Create service template for mms-standard-service and azure REST-API hosts: localhost gather_facts: false module_defaults: diff --git a/playbooks/check_json_azure_restapi_resourcehealth.yml b/playbooks/check_json_azure_restapi_resourcehealth.yml index 2ed7e47..7751272 100644 --- a/playbooks/check_json_azure_restapi_resourcehealth.yml +++ b/playbooks/check_json_azure_restapi_resourcehealth.yml @@ -11,9 +11,9 @@ - name: Create service template for azure REST-API ResourceHealth telekom_mms.icinga_director.icinga_service_template: state: present - object_name: domon-json-azure_restapi_resourcehealth + object_name: mms-json-azure_restapi_resourcehealth imports: - - domon-standard-service + - mms-standard-service check_command: check_json_azure_restapi check_interval: 5m vars: diff --git a/playbooks/domon_standard.yml b/playbooks/mms_standard.yml similarity index 83% rename from playbooks/domon_standard.yml rename to playbooks/mms_standard.yml index eacc434..8906cbc 100644 --- a/playbooks/domon_standard.yml +++ b/playbooks/mms_standard.yml @@ -1,4 +1,4 @@ -- name: Create domon-standards +- name: Create mms-standards hosts: localhost gather_facts: false module_defaults: @@ -7,7 +7,7 @@ url_username: "{{ icinga_user }}" url_password: "{{ icinga_pass }}" tasks: - - name: Create timeperiod for domon-standard-service + - name: Create timeperiod for mms-standard-service telekom_mms.icinga_director.icinga_timeperiod: state: present object_name: 24/7 @@ -20,10 +20,10 @@ saturday: "00:00-24:00" sunday: "00:00-24:00" - - name: Create service template for domon-standard-service + - name: Create service template for mms-standard-service telekom_mms.icinga_director.icinga_service_template: state: present - object_name: domon-standard-service + object_name: mms-standard-service max_check_attempts: "3" check_period: "24/7" check_interval: "2m" diff --git a/playbooks/template_empty_host.yml b/playbooks/template_empty_host.yml index dff00fc..c78168f 100644 --- a/playbooks/template_empty_host.yml +++ b/playbooks/template_empty_host.yml @@ -11,5 +11,5 @@ - name: Create a host in icinga telekom_mms.icinga_director.icinga_host_template: state: present - object_name: domon-template-empty-host + object_name: mms-template-empty-host check_command: dummy diff --git a/tests/integration/targets/icinga/runme.sh b/tests/integration/targets/icinga/runme.sh index 9e6040e..a07051c 100755 --- a/tests/integration/targets/icinga/runme.sh +++ b/tests/integration/targets/icinga/runme.sh @@ -2,7 +2,7 @@ set -eux -ansible-playbook t_systems_mms.ansible_collection_icinga.domon_standard -e "@../../integration_config.yml" "$@" +ansible-playbook t_systems_mms.ansible_collection_icinga.mms_standard -e "@../../integration_config.yml" "$@" ansible-playbook t_systems_mms.ansible_collection_icinga.check_azure_oauth_token -e "@../../integration_config.yml" "$@" ansible-playbook t_systems_mms.ansible_collection_icinga.check_gitlab_scheduler -e "@../../integration_config.yml" "$@" ansible-playbook t_systems_mms.ansible_collection_icinga.check_https -e "@../../integration_config.yml" "$@"