blob: 0bdb1d38c455bfb773a1444d7017310d275a2142 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
HeatTemplateFormatVersion: '2012-12-12'
Description: 'Nagios3'
Parameters:
KeyName:
Description: Name of an existing EC2 KeyPair to enable SSH access to the instance
Type: String
Default: default
AdmWebPasswd:
Description: Password for nagiosadmin web admin user.
Type: String
Default: nagiosadmin
NovaHostIp:
Description: nova ip.
Type: String
Default: 192.0.2.1
NovaOsPassword:
Description: nova OS_PASSWORD.
Type: String
Default: unset
NovaOsUsername:
Description: nova OS_USERNAME.
Type: String
Default: admin
NovaOsTenantName:
Description: nova OS_TENANT_NAME.
Type: String
Default: admin
Nagios3ImageId:
Description: Nagios image.
Type: String
Default: nagios3
InstanceType:
Description: Use this flavor.
Type: String
Default: baremetal
InitialIpSplitKey:
Description: Network name from nova list to get initial ip list from.
Type: String
Default: ctlplane
Apache2SnakeoilPem:
Description: Snakeoil PEM file.
Type: String
Default: |
----- BEGIN PlaceHolder...
Apache2SnakeoilKey:
Description: Snakeoil Key file.
Type: String
Default: |
----- BEGIN PlaceHolder...
PostfixMailHostname:
Description: Hostname for postfix..
Type: String
Default: nagios3-nagios3
PostfixMailDomain:
Description: Top level domain for postfix.
Type: String
Default: novalocal
PostfixDelayWarningTime:
Description: Amount of time to Delay warnnings.
Type: String
Default: 4h
Resources:
nagios3:
Metadata:
OpenStack::ImageBuilder::Elements: [ nagios3 ]
apache2:
snakeoil_pem:
Ref: Apache2SnakeoilPem
snakeoil_key:
Ref: Apache2SnakeoilKey
nagios3:
adm_web_passwd:
Ref: AdmWebPasswd
nova_host_ip:
Ref: NovaHostIp
nova_os_password:
Ref: NovaOsPassword
nova_os_username:
Ref: NovaOsUsername
nova_os_tenant_name:
Ref: NovaOsTenantName
initial_network_split_key:
Ref: InitialIpSplitKey
postfix:
mailhostname:
Ref: PostfixMailHostname
maildomain:
Ref: PostfixMailDomain
delay_warning_time:
Ref: PostfixDelayWarningTime
Type: AWS::EC2::Instance
Properties:
KeyName:
Ref: KeyName
ImageId:
Ref: Nagios3ImageId
InstanceType: {Ref: InstanceType}
Outputs:
Nagios3Host:
Fn::GetAtt: [ nagios3 , first_private_address ]
|