heat_template_version: 2014-10-16 description: A simple server. parameters: key_name: type: string description: name of a keypair default: cassandra_freeradius flavor: type: string description: flavor used by the web servers default: m1.small network: type: string description: Network used by the server default: f6e1b574-21a1-44c6-9461-bdc0ef7a9b92 subnet_id: type: string description: subnet on which the load balancer will be located default: 7cb2661a-aea1-47d8-909b-2096d6f193de external_network: type: string description: UUID of a Neutron external network default: 91ee6369-8f8d-497d-beca-1812518a6c30 server_name: type: string description: name of my server default: Cassandra image: type: string description: Image used for servers default: cassandra_server metadata: type: json pool_id: type: string description: pool of servers resources: security_group1: type: OS::Neutron::SecurityGroup properties: name: security_group1 rules: - protocol: tcp port_range_min: 8888 port_range_max: 8888 - protocol: tcp port_range_min: 7000 port_range_max: 7000 - protocol: tcp port_range_min: 7001 port_range_max: 7001 - protocol: icmp - protocol: tcp port_range_min: 22 port_range_max: 22 - protocol: tcp port_range_min: 7199 port_range_max: 7199 - protocol: tcp port_range_min: 9042 port_range_max: 9042 - protocol: tcp port_range_min: 9160 port_range_max: 9160 #db_port: # type: OS::Neutron::Port # properties: # network_id: { get_param: network } # fixed_ips: # - subnet_id: { get_param: subnet_id } # security_groups: # - {get_resource: security_group1} server: type: OS::Nova::Server properties: image: {get_param: image} flavor: {get_param: flavor} key_name: {get_param: key_name} networks: - network: {get_param: network} security_groups: {get_resource: security_group1} # - port_id: { get_param: port_id } metadata: {get_param: metadata} user_data: #!/bin/bash -v cat << EOF >> /etc/resolv.conf nameserver 8.8.8.8 nameserver 192.168.5.1 EOF sudo systemctl restart cassandra member: type: OS::Neutron::PoolMember properties: pool_id: {get_param: pool_id} address: {get_attr: [server, first_address]} protocol_port: 9042