Update PrivateIp to first_private_address.
[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   PostfixMailHostname:
51     Description: Hostname for postfix..
52     Type: String
53     Default: nagios3-nagios3
54   PostfixMailDomain:
55     Description: Top level domain for postfix.
56     Type: String
57     Default: novalocal
58   PostfixDelayWarningTime:
59     Description: Amount of time to Delay warnnings.
60     Type: String
61     Default: 4h
62 Resources:
63   nagios3:
64     Metadata:
65       OpenStack::ImageBuilder::Elements: [ nagios3 ]
66       apache2:
67         snakeoil_pem:
68           Ref: Apache2SnakeoilPem
69         snakeoil_key:
70           Ref: Apache2SnakeoilKey
71       nagios3:
72         adm_web_passwd:
73           Ref: AdmWebPasswd
74         nova_host_ip:
75           Ref: NovaHostIp
76         nova_os_password:
77           Ref: NovaOsPassword
78         nova_os_username:
79           Ref: NovaOsUsername
80         nova_os_tenant_name:
81           Ref: NovaOsTenantName
82         initial_network_split_key:
83           Ref: InitialIpSplitKey
84       postfix:
85         mailhostname:
86           Ref: PostfixMailHostname
87         maildomain:
88           Ref: PostfixMailDomain
89         delay_warning_time:
90           Ref: PostfixDelayWarningTime
91     Type: AWS::EC2::Instance
92     Properties:
93       KeyName:
94         Ref: KeyName
95       ImageId:
96         Ref: Nagios3ImageId
97       InstanceType: {Ref: InstanceType}
98 Outputs:
99     Nagios3Host:
100         Fn::GetAtt: [ nagios3 , first_private_address ]