68 lines
1.8 KiB
YAML
68 lines
1.8 KiB
YAML
heat_template_version: 2013-05-23
|
|
description: 'Simple Base HOT for Sample VNF'
|
|
|
|
parameters:
|
|
nfv:
|
|
type: json
|
|
|
|
resources:
|
|
master_instance:
|
|
type: OS::Heat::AutoScalingGroup
|
|
properties:
|
|
min_size: 1
|
|
max_size: 3
|
|
desired_capacity: 1
|
|
resource:
|
|
type: simple_nested_master.yaml
|
|
properties:
|
|
flavor: { get_param: [ nfv, VDU, masterNode, flavor ] }
|
|
image: { get_param: [ nfv, VDU, masterNode, image ] }
|
|
net1: { get_param: [ nfv, CP, masterNode_CP1, network ] }
|
|
|
|
master_instance_scale_out:
|
|
type: OS::Heat::ScalingPolicy
|
|
properties:
|
|
scaling_adjustment: 1
|
|
auto_scaling_group_id:
|
|
get_resource: master_instance
|
|
adjustment_type: change_in_capacity
|
|
|
|
master_instance_scale_in:
|
|
type: OS::Heat::ScalingPolicy
|
|
properties:
|
|
scaling_adjustment: -1
|
|
auto_scaling_group_id:
|
|
get_resource: master_instance
|
|
adjustment_type: change_in_capacity
|
|
|
|
worker_instance:
|
|
type: OS::Heat::AutoScalingGroup
|
|
properties:
|
|
min_size: 2
|
|
max_size: 4
|
|
desired_capacity: 2
|
|
resource:
|
|
type: simple_nested_worker.yaml
|
|
properties:
|
|
flavor: { get_param: [ nfv, VDU, workerNode, flavor ] }
|
|
image: { get_param: [ nfv, VDU, workerNode, image ] }
|
|
net1: { get_param: [ nfv, CP, workerNode_CP2, network ] }
|
|
|
|
worker_instance_scale_out:
|
|
type: OS::Heat::ScalingPolicy
|
|
properties:
|
|
scaling_adjustment: 1
|
|
auto_scaling_group_id:
|
|
get_resource: worker_instance
|
|
adjustment_type: change_in_capacity
|
|
|
|
worker_instance_scale_in:
|
|
type: OS::Heat::ScalingPolicy
|
|
properties:
|
|
scaling_adjustment: -1
|
|
auto_scaling_group_id:
|
|
get_resource: worker_instance
|
|
adjustment_type: change_in_capacity
|
|
|
|
outputs: {}
|