From d835b2cae8abc71958b69362162e6a70c3d7ef63 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 08:48:59 +0200 Subject: Adding upstream version 4.6.0. Signed-off-by: Daniel Baumann --- test/unittests/scripts/v2/main.yml | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 test/unittests/scripts/v2/main.yml (limited to 'test/unittests/scripts/v2/main.yml') diff --git a/test/unittests/scripts/v2/main.yml b/test/unittests/scripts/v2/main.yml new file mode 100644 index 0000000..41822a2 --- /dev/null +++ b/test/unittests/scripts/v2/main.yml @@ -0,0 +1,46 @@ +--- +- version: 2.2 + shortdesc: Apache Webserver + longdesc: > + Configure a resource group containing a virtual IP address and + an instance of the Apache web server. + category: Server + parameters: + - name: id + shortdesc: The ID specified here is for the web server resource group. + - name: install + type: boolean + value: true + shortdesc: Disable if no installation should be performed + include: + - agent: test:apache + parameters: + - name: id + value: "{{id}}-server" + - name: configfile + type: file + ops: | + op monitor interval=20s timeout=20s + - agent: test:virtual-ip + name: virtual-ip + parameters: + - name: id + value: "{{id}}-ip" + - name: ip + type: ip_address + ops: | + op monitor interval=20s timeout=20s + actions: + - install: + - apache2 + when: install + - call: a2enable mod_status + shortdesc: Enable status module + nodes: all + when: install + - cib: | + {{virtual-ip}} + {{apache}} + group {{id}} + {{virtual-ip:id}} + {{apache:id}} -- cgit v1.2.3