Merge "Fix default mysql usernames."
[apex-tripleo-heat-templates.git] / nagios3.yaml
1 HeatTemplateFormatVersion: '2012-12-12'
2 Description: 'Nagios3'
3 Parameters:
4   KeyName:
5     Description: Name of an existing EC2 KeyPair to enable SSH access to the instance
6     Type: String
7     Default: default
8   AdmWebPasswd:
9     Description: Password for nagiosadmin web admin user.
10     Type: String
11     Default: nagiosadmin
12   NovaHostIp:
13     Description: nova ip.
14     Type: String
15     Default: 192.0.2.1
16   NovaOsPassword:
17     Description: nova OS_PASSWORD.
18     Type: String
19     Default: unset
20   NovaOsUsername:
21     Description: nova OS_USERNAME.
22     Type: String
23     Default: admin
24   NovaOsTenantName:
25     Description: nova OS_TENANT_NAME.
26     Type: String
27     Default: admin
28   Nagios3ImageId:
29     Description: Nagios image.
30     Type: String
31     Default: nagios3
32   InstanceType:
33     Description: Use this flavor.
34     Type: String
35     Default: baremetal
36   InitialIpSplitKey:
37     Description: Network name from nova list to get initial ip list from.
38     Type: String
39     Default: ctlplane
40   Apache2SnakeoilPem:
41     Description: Snakeoil PEM file.
42     Type: String
43     Default: |
44       -----  BEGIN PlaceHolder...
45   Apache2SnakeoilKey:
46     Description: Snakeoil Key file.
47     Type: String
48     Default: |
49       -----  BEGIN PlaceHolder...
50 Resources:
51   nagios3:
52     Metadata:
53       OpenStack::ImageBuilder::Elements: [ nagios3 ]
54       apache2:
55         snakeoil_pem:
56           Ref: Apache2SnakeoilPem
57         snakeoil_key:
58           Ref: Apache2SnakeoilKey
59       nagios3:
60         adm_web_passwd:
61           Ref: AdmWebPasswd
62         nova_host_ip:
63           Ref: NovaHostIp
64         nova_os_password:
65           Ref: NovaOsPassword
66         nova_os_username:
67           Ref: NovaOsUsername
68         nova_os_tenant_name:
69           Ref: NovaOsTenantName
70         initial_network_split_key:
71           Ref: InitialIpSplitKey
72     Type: AWS::EC2::Instance
73     Properties:
74       KeyName:
75         Ref: KeyName
76       ImageId:
77         Ref: Nagios3ImageId
78       InstanceType: {Ref: InstanceType}
79 Outputs:
80     Nagios3Host:
81         Fn::GetAtt: [ nagios3 , PrivateIp ]