Skip to content

Commit

Permalink
Switch CCE to CME.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-checkmk committed Sep 30, 2024
1 parent 21a3851 commit cc49b1f
Show file tree
Hide file tree
Showing 60 changed files with 287 additions and 150 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-activation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-bakery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-contact_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-discovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-downtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-folder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-host_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-lkp-bakery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-lkp-folder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-lkp-folders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-lkp-host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-lkp-hosts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-lkp-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-lkp-rulesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-lkp-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-password.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-service_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-tag_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-timeperiod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ans-int-test-user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions tests/integration/targets/activation/tasks/test.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/targets/activation/vars/main.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 10 additions & 0 deletions tests/integration/targets/bakery/tasks/test.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
Expand Down
Loading

0 comments on commit cc49b1f

Please sign in to comment.