Guest User

private_network.yml

a guest
Aug 18th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.15 KB | None | 0 0
  1. heat_template_version: 2013-05-23
  2.  
  3. description: Template that creates a private network.
  4.  
  5. parameters:
  6.   public_network:
  7.     type: string
  8.     label: Public network name or ID
  9.     description: Public network with floating IP addresses
  10.   cidr:
  11.     type: string
  12.     label: Network CIDR
  13.     description: The CIDR of the private network
  14.   dns:
  15.     type: comma_delimited_list
  16.     label: DNS Nameservers
  17.     description: Comma separated list of DNS nameservers for the private network.
  18.  
  19. resources:
  20.   private_network:
  21.     type: OS::Neutron::Net
  22.  
  23.   private_subnet:
  24.     type: OS::Neutron::Subnet
  25.     properties:
  26.       network_id: { get_resource: private_network }
  27.       cidr: { get_param: cidr }
  28.       dns_nameservers: { get_param: dns }
  29.  
  30.   router:
  31.     type: OS::Neutron::Router
  32.     properties:
  33.       external_gateway_info:
  34.         network: { get_param: public_network }
  35.  
  36.   router-interface:
  37.     type: OS::Neutron::RouterInterface
  38.     properties:
  39.       router_id: { get_resource: router }
  40.       subnet: { get_resource: private_subnet }
  41.  
  42. outputs:
  43.   name:
  44.     description: The private network
  45.     value: { get_attr: [ private_network, name ] }
Advertisement
Add Comment
Please, Sign In to add comment