From cc49b1f4959f0cd06830add95cb29068cecaf74f Mon Sep 17 00:00:00 2001 From: Robin Gierse Date: Mon, 30 Sep 2024 09:37:11 +0200 Subject: [PATCH] Switch CCE to CME. --- .github/workflows/ans-int-test-activation.yaml | 6 +++--- .github/workflows/ans-int-test-bakery.yaml | 6 +++--- .../workflows/ans-int-test-contact_group.yaml | 6 +++--- .github/workflows/ans-int-test-discovery.yaml | 6 +++--- .github/workflows/ans-int-test-downtime.yaml | 6 +++--- .github/workflows/ans-int-test-folder.yaml | 6 +++--- .github/workflows/ans-int-test-host.yaml | 6 +++--- .github/workflows/ans-int-test-host_group.yaml | 6 +++--- .github/workflows/ans-int-test-lkp-bakery.yaml | 6 +++--- .github/workflows/ans-int-test-lkp-folder.yaml | 6 +++--- .../workflows/ans-int-test-lkp-folders.yaml | 6 +++--- .github/workflows/ans-int-test-lkp-host.yaml | 6 +++--- .github/workflows/ans-int-test-lkp-hosts.yaml | 6 +++--- .github/workflows/ans-int-test-lkp-rules.yaml | 6 +++--- .../workflows/ans-int-test-lkp-rulesets.yaml | 6 +++--- .../workflows/ans-int-test-lkp-version.yaml | 6 +++--- .github/workflows/ans-int-test-password.yaml | 6 +++--- .github/workflows/ans-int-test-rule.yaml | 6 +++--- .../workflows/ans-int-test-service_group.yaml | 6 +++--- .github/workflows/ans-int-test-tag_group.yaml | 6 +++--- .github/workflows/ans-int-test-timeperiod.yaml | 6 +++--- .github/workflows/ans-int-test-user.yaml | 6 +++--- .../targets/activation/tasks/test.yml | 10 ++++++++++ .../targets/activation/vars/main.yml | 6 +++--- .../integration/targets/bakery/tasks/test.yml | 10 ++++++++++ tests/integration/targets/bakery/vars/main.yml | 18 +++++++++--------- .../targets/contact_group/vars/main.yml | 4 ---- .../targets/discovery/tasks/test.yml | 10 ++++++++++ .../targets/discovery/vars/main.yml | 6 +++--- .../targets/downtime/tasks/test.yml | 10 ++++++++++ .../integration/targets/downtime/vars/main.yml | 6 +++--- .../integration/targets/folder/tasks/test.yml | 11 +++++++++++ tests/integration/targets/folder/vars/main.yml | 6 +++--- tests/integration/targets/host/tasks/test.yml | 10 ++++++++++ tests/integration/targets/host/vars/main.yml | 6 +++--- .../targets/host_group/vars/main.yml | 4 ---- .../targets/lookup_bakery/tasks/test.yml | 10 ++++++++++ .../targets/lookup_bakery/vars/main.yml | 18 +++++++++--------- .../targets/lookup_folder/tasks/test.yml | 10 ++++++++++ .../targets/lookup_folder/vars/main.yml | 6 +++--- .../targets/lookup_folders/tasks/test.yml | 10 ++++++++++ .../targets/lookup_folders/vars/main.yml | 6 +++--- .../targets/lookup_host/tasks/test.yml | 10 ++++++++++ .../targets/lookup_host/vars/main.yml | 6 +++--- .../targets/lookup_hosts/tasks/test.yml | 10 ++++++++++ .../targets/lookup_hosts/vars/main.yml | 6 +++--- .../targets/lookup_rules/tasks/test.yml | 10 ++++++++++ .../targets/lookup_rules/vars/main.yml | 6 +++--- .../targets/lookup_rulesets/tasks/test.yml | 10 ++++++++++ .../targets/lookup_rulesets/vars/main.yml | 6 +++--- .../targets/lookup_version/tasks/test.yml | 10 ++++++++++ .../targets/lookup_version/vars/main.yml | 6 +++--- .../integration/targets/password/vars/main.yml | 4 ---- tests/integration/targets/rule/tasks/test.yml | 10 ++++++++++ tests/integration/targets/rule/vars/main.yml | 6 +++--- .../targets/service_group/vars/main.yml | 4 ---- .../targets/tag_group/vars/main.yml | 4 ---- .../targets/timeperiod/tasks/test.yml | 10 ++++++++++ .../targets/timeperiod/vars/main.yml | 6 +++--- tests/integration/targets/user/vars/main.yml | 4 ---- 60 files changed, 287 insertions(+), 150 deletions(-) diff --git a/.github/workflows/ans-int-test-activation.yaml b/.github/workflows/ans-int-test-activation.yaml index efad83a73..edc09f2aa 100644 --- a/.github/workflows/ans-int-test-activation.yaml +++ b/.github/workflows/ans-int-test-activation.yaml @@ -83,12 +83,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-bakery.yaml b/.github/workflows/ans-int-test-bakery.yaml index 6bfc24895..b4b30d38d 100644 --- a/.github/workflows/ans-int-test-bakery.yaml +++ b/.github/workflows/ans-int-test-bakery.yaml @@ -75,12 +75,12 @@ jobs: env: CMK_SITE_ID: "old_cce" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-contact_group.yaml b/.github/workflows/ans-int-test-contact_group.yaml index b290fa1d7..7aaf18082 100644 --- a/.github/workflows/ans-int-test-contact_group.yaml +++ b/.github/workflows/ans-int-test-contact_group.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-discovery.yaml b/.github/workflows/ans-int-test-discovery.yaml index 7855a25d5..ad52bef6b 100644 --- a/.github/workflows/ans-int-test-discovery.yaml +++ b/.github/workflows/ans-int-test-discovery.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-downtime.yaml b/.github/workflows/ans-int-test-downtime.yaml index 86611b6ac..f27ebea77 100644 --- a/.github/workflows/ans-int-test-downtime.yaml +++ b/.github/workflows/ans-int-test-downtime.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-folder.yaml b/.github/workflows/ans-int-test-folder.yaml index a7daecde1..384ebab44 100644 --- a/.github/workflows/ans-int-test-folder.yaml +++ b/.github/workflows/ans-int-test-folder.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-host.yaml b/.github/workflows/ans-int-test-host.yaml index 95817745b..98095325d 100644 --- a/.github/workflows/ans-int-test-host.yaml +++ b/.github/workflows/ans-int-test-host.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-host_group.yaml b/.github/workflows/ans-int-test-host_group.yaml index 327215fe5..938d3f51c 100644 --- a/.github/workflows/ans-int-test-host_group.yaml +++ b/.github/workflows/ans-int-test-host_group.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-lkp-bakery.yaml b/.github/workflows/ans-int-test-lkp-bakery.yaml index 237f46499..1e60aa2c9 100644 --- a/.github/workflows/ans-int-test-lkp-bakery.yaml +++ b/.github/workflows/ans-int-test-lkp-bakery.yaml @@ -75,12 +75,12 @@ jobs: env: CMK_SITE_ID: "old_cce" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-lkp-folder.yaml b/.github/workflows/ans-int-test-lkp-folder.yaml index 57cbec0be..d2f979231 100644 --- a/.github/workflows/ans-int-test-lkp-folder.yaml +++ b/.github/workflows/ans-int-test-lkp-folder.yaml @@ -80,12 +80,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-lkp-folders.yaml b/.github/workflows/ans-int-test-lkp-folders.yaml index 72237578d..e37aa2199 100644 --- a/.github/workflows/ans-int-test-lkp-folders.yaml +++ b/.github/workflows/ans-int-test-lkp-folders.yaml @@ -80,12 +80,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-lkp-host.yaml b/.github/workflows/ans-int-test-lkp-host.yaml index 38bd59b24..5aebe70c0 100644 --- a/.github/workflows/ans-int-test-lkp-host.yaml +++ b/.github/workflows/ans-int-test-lkp-host.yaml @@ -80,12 +80,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-lkp-hosts.yaml b/.github/workflows/ans-int-test-lkp-hosts.yaml index 19bc6937e..2a2ea6a4c 100644 --- a/.github/workflows/ans-int-test-lkp-hosts.yaml +++ b/.github/workflows/ans-int-test-lkp-hosts.yaml @@ -80,12 +80,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-lkp-rules.yaml b/.github/workflows/ans-int-test-lkp-rules.yaml index 3f3b8d5ff..ece7f895e 100644 --- a/.github/workflows/ans-int-test-lkp-rules.yaml +++ b/.github/workflows/ans-int-test-lkp-rules.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-lkp-rulesets.yaml b/.github/workflows/ans-int-test-lkp-rulesets.yaml index fcc60dd49..c661f4f1b 100644 --- a/.github/workflows/ans-int-test-lkp-rulesets.yaml +++ b/.github/workflows/ans-int-test-lkp-rulesets.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-lkp-version.yaml b/.github/workflows/ans-int-test-lkp-version.yaml index a2a36512b..d394e0d3a 100644 --- a/.github/workflows/ans-int-test-lkp-version.yaml +++ b/.github/workflows/ans-int-test-lkp-version.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-password.yaml b/.github/workflows/ans-int-test-password.yaml index 866ed9131..3f8f92b80 100644 --- a/.github/workflows/ans-int-test-password.yaml +++ b/.github/workflows/ans-int-test-password.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-rule.yaml b/.github/workflows/ans-int-test-rule.yaml index 1156573cb..dadf24da3 100644 --- a/.github/workflows/ans-int-test-rule.yaml +++ b/.github/workflows/ans-int-test-rule.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-service_group.yaml b/.github/workflows/ans-int-test-service_group.yaml index 208e5e168..04cd3e2c1 100644 --- a/.github/workflows/ans-int-test-service_group.yaml +++ b/.github/workflows/ans-int-test-service_group.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-tag_group.yaml b/.github/workflows/ans-int-test-tag_group.yaml index 4a82d3a2a..7b95ab7e1 100644 --- a/.github/workflows/ans-int-test-tag_group.yaml +++ b/.github/workflows/ans-int-test-tag_group.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-timeperiod.yaml b/.github/workflows/ans-int-test-timeperiod.yaml index 816b1de94..dbd29e33f 100644 --- a/.github/workflows/ans-int-test-timeperiod.yaml +++ b/.github/workflows/ans-int-test-timeperiod.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/.github/workflows/ans-int-test-user.yaml b/.github/workflows/ans-int-test-user.yaml index 6f7719cc5..d1133e16b 100644 --- a/.github/workflows/ans-int-test-user.yaml +++ b/.github/workflows/ans-int-test-user.yaml @@ -82,12 +82,12 @@ jobs: env: CMK_SITE_ID: "stable_cre" CMK_PASSWORD: "Sup3rSec4et!" - stable_cce: + stable_cme: image: checkmk/check-mk-managed:2.3.0p17 ports: - - 5223:5000 + - 5323:5000 env: - CMK_SITE_ID: "stable_cce" + CMK_SITE_ID: "stable_cme" CMK_PASSWORD: "Sup3rSec4et!" steps: diff --git a/tests/integration/targets/activation/tasks/test.yml b/tests/integration/targets/activation/tasks/test.yml index 012774c34..de3ad665b 100644 --- a/tests/integration/targets/activation/tasks/test.yml +++ b/tests/integration/targets/activation/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Activate without changes." activation: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/activation/vars/main.yml b/tests/integration/targets/activation/vars/main.yml index 38dd96f4e..6eace3ce9 100644 --- a/tests/integration/targets/activation/vars/main.yml +++ b/tests/integration/targets/activation/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/bakery/tasks/test.yml b/tests/integration/targets/bakery/tasks/test.yml index 61c2506de..d2103b1fd 100644 --- a/tests/integration/targets/bakery/tasks/test.yml +++ b/tests/integration/targets/bakery/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create hosts." host: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/bakery/vars/main.yml b/tests/integration/targets/bakery/vars/main.yml index 04aef207f..2bfaba608 100644 --- a/tests/integration/targets/bakery/vars/main.yml +++ b/tests/integration/targets/bakery/vars/main.yml @@ -1,17 +1,17 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.2.0p34" - edition: "cce" - site: "old_cce" - port: "5222" + edition: "cme" + site: "old_cme" + port: "5322" - version: "2.1.0p47" - edition: "cce" - site: "ancient_cce" - port: "5221" + edition: "cme" + site: "ancient_cme" + port: "5321" signature_key_id: 1 signature_key_passphrase: "{{ checkmk_var_automation_secret }}" diff --git a/tests/integration/targets/contact_group/vars/main.yml b/tests/integration/targets/contact_group/vars/main.yml index d8321a18d..c9f6c0fbc 100644 --- a/tests/integration/targets/contact_group/vars/main.yml +++ b/tests/integration/targets/contact_group/vars/main.yml @@ -4,10 +4,6 @@ test_sites: edition: "cme" site: "stable_cme" port: "5323" - - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/discovery/tasks/test.yml b/tests/integration/targets/discovery/tasks/test.yml index bd68d0639..addfa7134 100644 --- a/tests/integration/targets/discovery/tasks/test.yml +++ b/tests/integration/targets/discovery/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create hosts." host: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/discovery/vars/main.yml b/tests/integration/targets/discovery/vars/main.yml index 2a8d5a924..d8b4d49a9 100644 --- a/tests/integration/targets/discovery/vars/main.yml +++ b/tests/integration/targets/discovery/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/downtime/tasks/test.yml b/tests/integration/targets/downtime/tasks/test.yml index 4d23579db..2d3220309 100644 --- a/tests/integration/targets/downtime/tasks/test.yml +++ b/tests/integration/targets/downtime/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create hosts." host: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/downtime/vars/main.yml b/tests/integration/targets/downtime/vars/main.yml index 38dd96f4e..6eace3ce9 100644 --- a/tests/integration/targets/downtime/vars/main.yml +++ b/tests/integration/targets/downtime/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/folder/tasks/test.yml b/tests/integration/targets/folder/tasks/test.yml index b425d7f01..c05cdd304 100644 --- a/tests/integration/targets/folder/tasks/test.yml +++ b/tests/integration/targets/folder/tasks/test.yml @@ -2,6 +2,17 @@ # Take this from playbooks/test-full.yml to ensure full coverage! # Be sure to remove header! +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create folders." folder: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/folder/vars/main.yml b/tests/integration/targets/folder/vars/main.yml index 7fe62fe9f..206c5122f 100644 --- a/tests/integration/targets/folder/vars/main.yml +++ b/tests/integration/targets/folder/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/host/tasks/test.yml b/tests/integration/targets/host/tasks/test.yml index 789ef60db..66e25d52a 100644 --- a/tests/integration/targets/host/tasks/test.yml +++ b/tests/integration/targets/host/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create folders." folder: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/host/vars/main.yml b/tests/integration/targets/host/vars/main.yml index 377f747e7..4a39b1aae 100644 --- a/tests/integration/targets/host/vars/main.yml +++ b/tests/integration/targets/host/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/host_group/vars/main.yml b/tests/integration/targets/host_group/vars/main.yml index 233ed7926..910478839 100644 --- a/tests/integration/targets/host_group/vars/main.yml +++ b/tests/integration/targets/host_group/vars/main.yml @@ -4,10 +4,6 @@ test_sites: edition: "cme" site: "stable_cme" port: "5323" - - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/lookup_bakery/tasks/test.yml b/tests/integration/targets/lookup_bakery/tasks/test.yml index a24572023..eaa880ce1 100644 --- a/tests/integration/targets/lookup_bakery/tasks/test.yml +++ b/tests/integration/targets/lookup_bakery/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Get Checkmk bakery status." ansible.builtin.debug: msg: "Bakery status is {{ bakery }}" diff --git a/tests/integration/targets/lookup_bakery/vars/main.yml b/tests/integration/targets/lookup_bakery/vars/main.yml index e56f818d1..563dab50a 100644 --- a/tests/integration/targets/lookup_bakery/vars/main.yml +++ b/tests/integration/targets/lookup_bakery/vars/main.yml @@ -1,14 +1,14 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.2.0p34" - edition: "cce" - site: "old_cce" - port: "5222" + edition: "cme" + site: "old_cme" + port: "5322" - version: "2.1.0p47" - edition: "cce" - site: "ancient_cce" - port: "5221" + edition: "cme" + site: "ancient_cme" + port: "5321" diff --git a/tests/integration/targets/lookup_folder/tasks/test.yml b/tests/integration/targets/lookup_folder/tasks/test.yml index d1cd63470..ee722722f 100644 --- a/tests/integration/targets/lookup_folder/tasks/test.yml +++ b/tests/integration/targets/lookup_folder/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create folder." folder: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/lookup_folder/vars/main.yml b/tests/integration/targets/lookup_folder/vars/main.yml index 6447e057b..178f5dc00 100644 --- a/tests/integration/targets/lookup_folder/vars/main.yml +++ b/tests/integration/targets/lookup_folder/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/lookup_folders/tasks/test.yml b/tests/integration/targets/lookup_folders/tasks/test.yml index f7109c8bc..d676d2b28 100644 --- a/tests/integration/targets/lookup_folders/tasks/test.yml +++ b/tests/integration/targets/lookup_folders/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create folder." folder: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/lookup_folders/vars/main.yml b/tests/integration/targets/lookup_folders/vars/main.yml index e1fb81651..f0351a5eb 100644 --- a/tests/integration/targets/lookup_folders/vars/main.yml +++ b/tests/integration/targets/lookup_folders/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/lookup_host/tasks/test.yml b/tests/integration/targets/lookup_host/tasks/test.yml index c5f98fb5f..9be4759e8 100644 --- a/tests/integration/targets/lookup_host/tasks/test.yml +++ b/tests/integration/targets/lookup_host/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create host." host: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/lookup_host/vars/main.yml b/tests/integration/targets/lookup_host/vars/main.yml index 275c8b35d..5badd7114 100644 --- a/tests/integration/targets/lookup_host/vars/main.yml +++ b/tests/integration/targets/lookup_host/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/lookup_hosts/tasks/test.yml b/tests/integration/targets/lookup_hosts/tasks/test.yml index 8642c7ad3..8b48f2bc4 100644 --- a/tests/integration/targets/lookup_hosts/tasks/test.yml +++ b/tests/integration/targets/lookup_hosts/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create host." host: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/lookup_hosts/vars/main.yml b/tests/integration/targets/lookup_hosts/vars/main.yml index f0a2f79dd..417903166 100644 --- a/tests/integration/targets/lookup_hosts/vars/main.yml +++ b/tests/integration/targets/lookup_hosts/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/lookup_rules/tasks/test.yml b/tests/integration/targets/lookup_rules/tasks/test.yml index 3baedaff3..d7cda023e 100644 --- a/tests/integration/targets/lookup_rules/tasks/test.yml +++ b/tests/integration/targets/lookup_rules/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create rules." rule: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/lookup_rules/vars/main.yml b/tests/integration/targets/lookup_rules/vars/main.yml index 10cda34f6..e5b4850e8 100644 --- a/tests/integration/targets/lookup_rules/vars/main.yml +++ b/tests/integration/targets/lookup_rules/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/lookup_rulesets/tasks/test.yml b/tests/integration/targets/lookup_rulesets/tasks/test.yml index 4055ea615..1cadaaf7e 100644 --- a/tests/integration/targets/lookup_rulesets/tasks/test.yml +++ b/tests/integration/targets/lookup_rulesets/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create rules." rule: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/lookup_rulesets/vars/main.yml b/tests/integration/targets/lookup_rulesets/vars/main.yml index 20986d4f8..93585cfbe 100644 --- a/tests/integration/targets/lookup_rulesets/vars/main.yml +++ b/tests/integration/targets/lookup_rulesets/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/lookup_version/tasks/test.yml b/tests/integration/targets/lookup_version/tasks/test.yml index 49dfb9ae7..45893e523 100644 --- a/tests/integration/targets/lookup_version/tasks/test.yml +++ b/tests/integration/targets/lookup_version/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Get Checkmk version." ansible.builtin.debug: msg: "Version is {{ version }}" diff --git a/tests/integration/targets/lookup_version/vars/main.yml b/tests/integration/targets/lookup_version/vars/main.yml index 7b1d89ddb..c6e8f059f 100644 --- a/tests/integration/targets/lookup_version/vars/main.yml +++ b/tests/integration/targets/lookup_version/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/password/vars/main.yml b/tests/integration/targets/password/vars/main.yml index 63d57efb4..2460b16e6 100644 --- a/tests/integration/targets/password/vars/main.yml +++ b/tests/integration/targets/password/vars/main.yml @@ -4,10 +4,6 @@ test_sites: edition: "cme" site: "stable_cme" port: "5323" - - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/rule/tasks/test.yml b/tests/integration/targets/rule/tasks/test.yml index 7e50b4759..299f43732 100644 --- a/tests/integration/targets/rule/tasks/test.yml +++ b/tests/integration/targets/rule/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "Include Checkmk version specific Variables." ansible.builtin.include_vars: "{{ outer_item.version | regex_search('^[0-9]+[.][0-9]+[.][0-9]+') }}.yml" diff --git a/tests/integration/targets/rule/vars/main.yml b/tests/integration/targets/rule/vars/main.yml index 7b1d89ddb..c6e8f059f 100644 --- a/tests/integration/targets/rule/vars/main.yml +++ b/tests/integration/targets/rule/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/service_group/vars/main.yml b/tests/integration/targets/service_group/vars/main.yml index 4df709fc3..c8658ee9a 100644 --- a/tests/integration/targets/service_group/vars/main.yml +++ b/tests/integration/targets/service_group/vars/main.yml @@ -4,10 +4,6 @@ test_sites: edition: "cme" site: "stable_cme" port: "5323" - - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/tag_group/vars/main.yml b/tests/integration/targets/tag_group/vars/main.yml index a348c8001..955bfb1fe 100644 --- a/tests/integration/targets/tag_group/vars/main.yml +++ b/tests/integration/targets/tag_group/vars/main.yml @@ -4,10 +4,6 @@ test_sites: edition: "cme" site: "stable_cme" port: "5323" - - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/timeperiod/tasks/test.yml b/tests/integration/targets/timeperiod/tasks/test.yml index 430473bf2..1d72ab9cc 100644 --- a/tests/integration/targets/timeperiod/tasks/test.yml +++ b/tests/integration/targets/timeperiod/tasks/test.yml @@ -1,4 +1,14 @@ --- +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Set customer when needed." + ansible.builtin.set_fact: + customer: "provider" + when: outer_item.edition == "cme" + +- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Unset customer when needed." + ansible.builtin.set_fact: + customer: null + when: not outer_item.edition == "cme" + - name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Create new time periods." timeperiod: server_url: "{{ checkmk_var_server_url }}" diff --git a/tests/integration/targets/timeperiod/vars/main.yml b/tests/integration/targets/timeperiod/vars/main.yml index 5b9445944..75102d519 100644 --- a/tests/integration/targets/timeperiod/vars/main.yml +++ b/tests/integration/targets/timeperiod/vars/main.yml @@ -1,9 +1,9 @@ --- test_sites: - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" + edition: "cme" + site: "stable_cme" + port: "5323" - version: "2.3.0p17" edition: "cre" site: "stable_cre" diff --git a/tests/integration/targets/user/vars/main.yml b/tests/integration/targets/user/vars/main.yml index 723c7d9bc..ba92ba751 100644 --- a/tests/integration/targets/user/vars/main.yml +++ b/tests/integration/targets/user/vars/main.yml @@ -4,10 +4,6 @@ test_sites: edition: "cme" site: "stable_cme" port: "5323" - - version: "2.3.0p17" - edition: "cce" - site: "stable_cce" - port: "5223" - version: "2.3.0p17" edition: "cre" site: "stable_cre"