heat_template_version: 2015-04-30
description: A firewall server
parameters:
  image:
    type: string
    default: cirros-0.3.4-x86_64-uec
    description: Image used for servers
  key_name:
    type: string
    default: k1
    description: SSH key to connect to the servers
  flavor:
    type: string
    default: m1.tiny
    description: flavor used by the servers
  network:
    type: string
    default: dc43c483-afb6-4389-a499-5bc1f70d7a5e
    description: Network used by the server

resources:
  FW1:
    type: OS::Nova::Server
    properties:
      flavor: {get_param: flavor}
      image: {get_param: image}
      key_name: {get_param: key_name}
      networks: [{network: {get_param: network} }]

outputs:
  server_ip:
    description: IP Address of the load-balanced server.
    value: { get_attr: [FW1, first_address] }
  firewall:
    description: firewall details.
    value: { get_attr: [FW1, show] }

