blob: 41822a2e940f97e105fc4eadf3ea69157b1830ce (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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}}
|