Merge "Adding NTP to undercloud template"
[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     NoEcho: true
13   NovaHostIp:
14     Description: nova ip.
15     Type: String
16     Default: 192.0.2.1
17   NovaOsPassword:
18     Description: nova OS_PASSWORD.
19     Type: String
20     Default: unset
21     NoEcho: true
22   NovaOsUsername:
23     Description: nova OS_USERNAME.
24     Type: String
25     Default: admin
26   NovaOsTenantName:
27     Description: nova OS_TENANT_NAME.
28     Type: String
29     Default: admin
30   Nagios3ImageId:
31     Description: Nagios image.
32     Type: String
33     Default: nagios3
34   InstanceType:
35     Description: Use this flavor.
36     Type: String
37     Default: baremetal
38   InitialIpSplitKey:
39     Description: Network name from nova list to get initial ip list from.
40     Type: String
41     Default: ctlplane
42   Apache2SnakeoilPem:
43     Description: Snakeoil PEM file.
44     Type: String
45     NoEcho: true
46     Default: |
47       -----  BEGIN PlaceHolder...
48   Apache2SnakeoilKey:
49     Description: Snakeoil Key file.
50     Type: String
51     NoEcho: true
52     Default: |
53       -----  BEGIN PlaceHolder...
54   PostfixMailHostname:
55     Description: Hostname for postfix..
56     Type: String
57     Default: nagios3-nagios3
58   PostfixMailDomain:
59     Description: Top level domain for postfix.
60     Type: String
61     Default: novalocal
62   PostfixDelayWarningTime:
63     Description: Amount of time to Delay warnnings.
64     Type: String
65     Default: 4h
66 Resources:
67   nagios3:
68     Metadata:
69       OpenStack::ImageBuilder::Elements: [ nagios3 ]
70       apache2:
71         snakeoil_pem:
72           Ref: Apache2SnakeoilPem
73         snakeoil_key:
74           Ref: Apache2SnakeoilKey
75       nagios3:
76         adm_web_passwd:
77           Ref: AdmWebPasswd
78         nova_host_ip:
79           Ref: NovaHostIp
80         nova_os_password:
81           Ref: NovaOsPassword
82         nova_os_username:
83           Ref: NovaOsUsername
84         nova_os_tenant_name:
85           Ref: NovaOsTenantName
86         initial_network_split_key:
87           Ref: InitialIpSplitKey
88       postfix:
89         mailhostname:
90           Ref: PostfixMailHostname
91         maildomain:
92           Ref: PostfixMailDomain
93         delay_warning_time:
94           Ref: PostfixDelayWarningTime
95     Type: AWS::EC2::Instance
96     Properties:
97       KeyName:
98         Ref: KeyName
99       ImageId:
100         Ref: Nagios3ImageId
101       InstanceType: {Ref: InstanceType}
102 Outputs:
103     Nagios3Host: {'Fn::Select': [ 0, {'Fn::Select': [ 'ctlplane', 'Fn::GetAtt': [ 'nagios3' , 'networks' ] ]} ]}