diff options
Diffstat (limited to '')
-rw-r--r-- | test/unittests/scripts/vip/main.yml | 28 | ||||
-rw-r--r-- | test/unittests/scripts/vipinc/main.yml | 14 |
2 files changed, 42 insertions, 0 deletions
diff --git a/test/unittests/scripts/vip/main.yml b/test/unittests/scripts/vip/main.yml new file mode 100644 index 0000000..4f3bde1 --- /dev/null +++ b/test/unittests/scripts/vip/main.yml @@ -0,0 +1,28 @@ +--- +- version: 2.2 + shortdesc: Virtual IP + category: Basic + include: + - agent: test:virtual-ip + name: virtual-ip + parameters: + - name: id + type: resource + required: true + - name: ip + type: ip_address + required: true + - name: cidr_netmask + type: integer + required: false + - name: broadcast + type: ipaddress + required: false + - name: lvs_support + required: false + type: boolean + ops: | + op start timeout="20" op stop timeout="20" + op monitor interval="10" timeout="20" + actions: + - include: virtual-ip diff --git a/test/unittests/scripts/vipinc/main.yml b/test/unittests/scripts/vipinc/main.yml new file mode 100644 index 0000000..6741885 --- /dev/null +++ b/test/unittests/scripts/vipinc/main.yml @@ -0,0 +1,14 @@ +version: 2.2 +category: Test +shortdesc: Test script include +include: + - script: vip + parameters: + - name: id + value: vip1 + - name: ip + value: 192.168.200.100 +actions: + - include: vip + - cib: | + clone c-{{vip:id}} {{vip:id}} |