Skip to content

Commit

Permalink
Final fix to bakery test.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-checkmk committed Oct 30, 2024
1 parent d220b46 commit dc5c954
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/integration/targets/bakery/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
ansible.builtin.include_vars: /home/runner/work/ansible-collection-checkmk.general/ansible-collection-checkmk.general/ansible_collections/checkmk/general/tests/integration/files/includes/vars/global.yml

- name: "Inject a Key into the Sites." # noqa no-changed-when
ansible.builtin.command: docker cp targets/bakery/files/agent_signature_keys.mk {{ item.site }}:/omd/sites/{{ item.site }}/etc/check_mk/multisite.d/wato/agent_signature_keys.mk
loop: "{{ checkmk_var_test_sites }}"
ansible.builtin.shell: |
set -o pipefail
for container in $(docker ps | tail -n +2 | cut -d " " -f 1)
do
docker cp targets/bakery/files/agent_signature_keys.mk $container:/omd/sites/*/etc/check_mk/multisite.d/wato/agent_signature_keys.mk
done
args:
executable: /bin/bash

- name: "Testing."
ansible.builtin.include_tasks: test.yml
Expand Down

0 comments on commit dc5c954

Please sign in to comment.