1 # Copyright 2014 Hewlett-Packard Development Company, L.P.
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
15 heat_template_version: 2013-05-23
16 description: Deploy Nagios
20 description: Password for initial admin user
24 description: Network to attach floating ips to.
28 description: What flavor to use for the nagios server.
32 description: Image for Nagios.
36 description: What Nova SSH key to use for the nagios server.
40 description: Neutron networks to monitor.
45 description: URL for Keystone to access Nova.
49 description: password to present to nova_host_ip.
53 description: username to present to nova_host_ip.
57 description: tenant name to present to nova_host_ip.
61 description: Network id for server.
65 type: OS::Heat::StructuredConfig
69 adm_web_passwd: { get_input: adm_web_passwd }
70 os_auth_url: { get_input: nova_os_auth_url }
71 os_password: { get_input: nova_os_password }
72 os_username: { get_input: nova_os_username }
73 os_tenant_name: { get_input: nova_os_tenant_name }
74 monitor_networks: { get_input: monitor_networks }
75 completion-signal: { get_input: deploy_signal_id }
76 nagios_security_group:
77 type: OS::Neutron::SecurityGroup
98 type: OS::Neutron::Port
100 network_id: { get_param: server_network }
101 security_groups: [ { get_resource: nagios_security_group } ]
103 type: OS::Nova::Server
105 flavor: { get_param: flavor }
106 image: { get_param: image }
107 key_name: { get_param: key_name }
109 - network: { get_param: server_network }
110 port: { get_resource: nagios_net_port }
111 user_data_format: SOFTWARE_CONFIG
112 user_data: {get_resource: NodeUserData}
115 type: OS::TripleO::NodeUserData
118 type: OS::Neutron::FloatingIP
120 floating_network_id: { get_param: external_network }
121 port_id: { get_resource: nagios_net_port }
123 type: OS::Heat::StructuredDeployment
125 server: { get_resource: nagios_server }
126 config: { get_resource: nagios_config }
128 adm_web_passwd: { get_param: adm_web_passwd }
129 nova_os_auth_url: { get_param: nova_os_auth_url }
130 nova_os_password: { get_param: nova_os_password }
131 nova_os_username: { get_param: nova_os_username }
132 nova_os_tenant_name: { get_param: nova_os_tenant_name }
133 monitor_networks: { get_param: monitor_networks }
136 description: Address of Nagios admin interface.
137 value: { get_attr: [ nagios_floating_ip, floating_ip_address ] }