Made more things variable.
This commit is contained in:
parent
4885b488fd
commit
aca5d696ad
@ -16,6 +16,22 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
label: ssh key name.
|
label: ssh key name.
|
||||||
description: ssh public key name. (Must be uploaded to openstack first)
|
description: ssh public key name. (Must be uploaded to openstack first)
|
||||||
|
compute_flavor:
|
||||||
|
type: string
|
||||||
|
label: Flavor for compute nodes,
|
||||||
|
description: Flavor with which to start compute nodes.
|
||||||
|
compute_flavor:
|
||||||
|
type: string
|
||||||
|
label: Flavor for auxiliary nodes.
|
||||||
|
description: Flavor with which to start auxiliary nodes. (for now only the interface machine)
|
||||||
|
cidr:
|
||||||
|
type: string
|
||||||
|
label: Cidr for internal subnet
|
||||||
|
description: Cidr for the subnet of the internal user network.
|
||||||
|
volume_size:
|
||||||
|
type: string
|
||||||
|
label: Size (GB)
|
||||||
|
description: Size (GB) of the volume for each compute node
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
internal_net:
|
internal_net:
|
||||||
@ -25,14 +41,14 @@ resources:
|
|||||||
type: OS::Neutron::Subnet
|
type: OS::Neutron::Subnet
|
||||||
properties:
|
properties:
|
||||||
network_id: { get_resource: internal_net }
|
network_id: { get_resource: internal_net }
|
||||||
cidr: "192.168.104.0/24"
|
cidr: { get_resource: cidr }
|
||||||
dns_nameservers: [ "129.125.4.6", "129.125.36.10" ]
|
dns_nameservers: [ "129.125.4.6", "129.125.36.10" ]
|
||||||
ip_version: 4
|
ip_version: 4
|
||||||
|
|
||||||
internal_router:
|
internal_router:
|
||||||
type: OS::Neutron::Router
|
type: OS::Neutron::Router
|
||||||
properties:
|
properties:
|
||||||
external_gateway_info: { network: public }
|
external_gateway_info: { get_param: public_net }
|
||||||
|
|
||||||
internal_interface:
|
internal_interface:
|
||||||
type: OS::Neutron::RouterInterface
|
type: OS::Neutron::RouterInterface
|
||||||
@ -45,7 +61,7 @@ resources:
|
|||||||
properties:
|
properties:
|
||||||
key_name: {get_param: ssh_key}
|
key_name: {get_param: ssh_key}
|
||||||
image: {get_param: image_name}
|
image: {get_param: image_name}
|
||||||
flavor: auxiliary
|
flavor: {get_param: aux_flavor}
|
||||||
networks:
|
networks:
|
||||||
- network: internal_net
|
- network: internal_net
|
||||||
|
|
||||||
@ -54,21 +70,21 @@ resources:
|
|||||||
properties:
|
properties:
|
||||||
key_name: {get_param: ssh_key}
|
key_name: {get_param: ssh_key}
|
||||||
image: {get_param: image_name}
|
image: {get_param: image_name}
|
||||||
flavor: auxiliary
|
flavor: {get_param: aux_flavor}
|
||||||
networks:
|
networks:
|
||||||
- network: internal_net
|
- network: internal_net
|
||||||
|
|
||||||
vcompute01-volume:
|
vcompute01-volume:
|
||||||
type: OS::Cinder::Volume
|
type: OS::Cinder::Volume
|
||||||
properties:
|
properties:
|
||||||
size: 100
|
size: { get_param: volume_size }
|
||||||
|
|
||||||
vcompute01:
|
vcompute01:
|
||||||
type: OS::Nova::Server
|
type: OS::Nova::Server
|
||||||
properties:
|
properties:
|
||||||
key_name: adminkey
|
key_name: adminkey
|
||||||
image: {get_param: image_name}
|
image: {get_param: image_name}
|
||||||
flavor: Compute
|
flavor: {get_param: compute_flavor}
|
||||||
networks:
|
networks:
|
||||||
- network: internal_net
|
- network: internal_net
|
||||||
|
|
||||||
@ -81,14 +97,14 @@ resources:
|
|||||||
vcompute02-volume:
|
vcompute02-volume:
|
||||||
type: OS::Cinder::Volume
|
type: OS::Cinder::Volume
|
||||||
properties:
|
properties:
|
||||||
size: 100
|
size: { get_param: volume_size }
|
||||||
|
|
||||||
vcompute02:
|
vcompute02:
|
||||||
type: OS::Nova::Server
|
type: OS::Nova::Server
|
||||||
properties:
|
properties:
|
||||||
key_name: adminkey
|
key_name: adminkey
|
||||||
image: {get_param: image_name}
|
image: {get_param: image_name}
|
||||||
flavor: Compute
|
flavor: {get_param: compute_flavor}
|
||||||
networks:
|
networks:
|
||||||
- network: internal_net
|
- network: internal_net
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user