summaryrefslogtreecommitdiffstats
path: root/test/unittests/scripts/unified/main.yml
blob: 29f5d07c165a8774d415e75045eb7d5f292e0d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: 2.2
shortdesc: Unified Script
longdesc: >
  Test if we can define multiple steps in a single script
category: test
steps:
  - parameters:
      - name: id
        type: resource
        required: true
        shortdesc: Identifier
  - name: vip
    shortdesc: Configure the virtual IP
    parameters:
      - name: id
        type: resource
        required: true
        shortdesc: IP Identifier
      - name: ip
        type: ip_address
        required: true
        shortdesc: The IP Address
actions:
  - cib: |
      primitive {{vip:id}} IPaddr2 ip={{vip:ip}}
      group g-{{id}} {{id}} {{vip:id}}