Heat Template installation are not happening
Hi All
I have created a heat template which is as follows :
heat_template_version: 2013-05-23
description: >
Heat template to generate Logstash installation .Our Logstash / Kibana setup has four main components:Logstash,Elasticsearch,Kibana,Logstash Forwarder.
parameters:
instance_type:
type: string
description: Instance type for Logstash server
default: m1.small
constraints:
- allowed_values: [m1.small, m1.medium, m1.large]
description: instance_type must be one of m1.small, m1.medium or m1.large
key:
type: string
description: SSH key to connect to the servers
image_id:
type: string
description: ID of the image to use for the Logstash server
default: fedora_cloud
constraints:
- allowed_values: [ fedora_cloud ]
description: >
Image ID must be fedora_cloud
Logstash_server_cidr:
type: string
description: Logstash app network address (CIDR notation)
default: 13.13.1.0/24
Logstash_server_gateway:
type: string
description: app network gateway address
default: 13.13.1.1
Logstash_server_pool_start:
type: string
description: Start of Logstash app network IP address allocation pool
default: 13.13.1.4
Logstash_server_pool_end:
type: string
description: End of Logstash app network IP address allocation pool
default: 13.13.1.34
Logstash_client_cidr:
type: string
description: Logstash client network address (CIDR notation)
default: 14.14.5.0/24
Logstash_client_pool_start:
type: string
description: Start of Logstash client app network IP address allocation pool
default: 14.14.5.4
Logstash_client_pool_end:
type: string
description: End of Logstash client app network IP address allocation pool
default: 14.14.5.20
public_net_id:
type: string
description: The ID of the public network. You will need to replace it with your DevStack public network ID
default: 8da258bb-0546-4654-bec9-10e6e58b684e
Logstash_server_name:
type: string
label: Logstash account username
description: Username of the Logstash account to use for notifications.
Logstash_client_name:
type: string
label: Logstash client account username
description: Username of the Logstash account to use for notifications.
Logstash_server_ip:
type: string
label: Logstash server ip so that client can access it.
description: Server Ip of the Logstash server to use for client.
resources:
Logstash_server_network:
type: OS::Neutron::Net
properties:
admin_state_up: true
name: Logstash_server_network
shared: true
tenant_id: admin
Logstash_server_network_subnet:
type: OS::Neutron::Subnet
properties:
network_id: { get_resource: Logstash_server_network}
cidr: { get_param: Logstash_server_cidr}
gateway_ip: { get_param: Logstash_server_gateway}
dns_nameservers: [8.8.8.8, 8.8.4.4]
allocation_pools:
- start: { get_param: Logstash_server_pool_start }
end: { get_param: Logstash_server_pool_end }
Logstash_client_network:
type: OS::Neutron::Net
properties:
admin_state_up: true
name: Logstash_client_network
shared: true
tenant_id: admin
Logstash_client_subnet:
type: OS::Neutron::Subnet
properties:
network_id: { get_resource: Logstash_client_network }
cidr: { get_param: Logstash_client_cidr}
allocation_pools:
- start: { get_param: Logstash_client_pool_start }
end: { get_param: Logstash_client_pool_end }
router:
type: OS::Neutron::Router
router_gateway:
type: OS::Neutron::RouterGateway
properties:
router_id: { get_resource: router }
network_id: { get_param: public_net_id }
router_interface:
type: OS::Neutron::RouterInterface
properties:
router_id: { get_resource: router }
subnet_id: { get_resource: Logstash_server_network_subnet}
Logstash_server_instance:
type: OS::Nova::Server
properties:
image: { get_param: image_id }
key_name: {get_param: key}
flavor: { get_param: instance_type }
networks:
- port: { get_resource: Logstash_server_app_port }
- network: { get_resource: Logstash_client_network}
user_data:
str_replace:
params:
Logstash_server_name: { get_param: Logstash_server_name }
template: |
#!/bin/bash -ex
# install dependencies
# Install java 7 as elastic search recommends it. Plus prerequisites
mkdir logstash
Logstash_client_instance:
type: OS::Nova::Server
properties:
image: { get_param: image_id }
key_name: {get_param: key}
flavor: { get_param: instance_type }
networks:
- network: { get_resource: Logstash_server_network}
user_data:
str_replace:
params:
Logstash_client_name: { get_param: Logstash_client_name }
Logstash_server_ip: { get_param: Logstash_server_ip }
template: |
#!/bin/bash -ex
# Generate SSL certificates
sudo mkdir -p /etc/pki ...