Guest User

Untitled

a guest
Feb 27th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.82 KB | None | 0 0
  1. eat_template_version: 2015-04-30
  2.  
  3. parameters:
  4.   router_name:
  5.     type: string
  6.     default: 1823b683-bbb7-406e-831f-bf4c15eb8d4
  7.     #default: network-router
  8.  
  9.   ext_net_name:
  10.     description: This is the Management of Hadoop cluster
  11.     type: string
  12.     default: external_network
  13.  
  14.   net_name:
  15.     description: name of network used to launch instance.
  16.     type: string
  17.     default: hadoop
  18.  
  19.   subnet_cidr:
  20.     type: string
  21.     default: 10.0.3
  22.  
  23.   allocation_pool:
  24.     type: json
  25.     default: { start: 10.0.3.100, end: 10.0.3.150 }
  26.  
  27. resources:
  28.   internal_interface:
  29.     type: OS::Neutron::RouterInterface
  30.     properties:
  31.       router_id: { get_param: router_name }
  32.       subnet: { get_resource: subnet_resource }
  33.  
  34.   net_resource:
  35.     type: OS::Neutron::Net
  36.     properties:
  37.       name: { get_param: net_name }
  38.  
  39.   subnet_resource:
  40.     type: OS::Neutron::Subnet
  41.     properties:
  42.       allocation_pools:
  43.         - { get_param: allocation_pool }
  44.       name:
  45.         list_join: ['', [ 'sub-', { get_param: subnet_cidr }, '.0']]
  46.       network_id: { get_resource: net_resource }
  47.       cidr:
  48.         list_join: ['', [ { get_param: subnet_cidr }, '.0/24']]
  49.       dns_nameservers: [ "8.8.8.8", "8.8.4.4" ]
  50.       ip_version: 4
  51.  
  52.   hadoop_resource:
  53.     type: OS::Sahara::Cluster
  54.     properties:
  55.       cluster_template_id: bead5439-9bcf-492c-803c-d393e8ebfcf0
  56.       default_image_id: f72d6944-cdbb-4895-9d96-84757af7c037
  57.       hadoop_version: "2.4"
  58.       key_name: frippecom
  59.       name: hadoop
  60.       #neutron_management_network: { get_param: ext_net_name }
  61.       neutron_management_network: { get_resource: net_resource }  
  62.       plugin_name: ambari
  63.       #shares: [{"access_level": String, "path": String, "id": String}, {"access_level": String, "path": String, "id": String}, ...]
  64.       use_autoconfig: true
Add Comment
Please, Sign In to add comment