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
25 description: URL for Keystone to access Nova.
29 description: password to present to nova_host_ip.
33 description: username to present to nova_host_ip.
37 description: tenant name to present to nova_host_ip.
41 description: Neutron networks to monitor.
45 description: Image for Nagios.
49 description: Network id for server.
53 description: Network to attach floating ips to.
57 description: What flavor to use for the nagios server.
61 description: What Nova SSH key to use for the nagios 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 }
108 user_data_format: SOFTWARE_CONFIG
110 - network: { get_param: server_network }
111 port: { get_resource: nagios_net_port }
113 type: OS::Neutron::FloatingIP
115 floating_network_id: { get_param: external_network }
116 port_id: { get_resource: nagios_net_port }
118 type: OS::Heat::StructuredDeployment
120 server: { get_resource: nagios_server }
121 config: { get_resource: nagios_config }
123 adm_web_passwd: { get_param: adm_web_passwd }
124 nova_os_auth_url: { get_param: nova_os_auth_url }
125 nova_os_password: { get_param: nova_os_password }
126 nova_os_username: { get_param: nova_os_username }
127 nova_os_tenant_name: { get_param: nova_os_tenant_name }
128 monitor_networks: { get_param: monitor_networks }
131 description: Address of Nagios admin interface.
132 value: { get_attr: [ nagios_floating_ip, floating_ip_address ] }