aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/deployment/heat/heat.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/mocks/mass-pnf-sim/deployment/heat/heat.yaml')
-rw-r--r--test/mocks/mass-pnf-sim/deployment/heat/heat.yaml23
1 files changed, 22 insertions, 1 deletions
diff --git a/test/mocks/mass-pnf-sim/deployment/heat/heat.yaml b/test/mocks/mass-pnf-sim/deployment/heat/heat.yaml
index 9664ea0ad..be6032eb7 100644
--- a/test/mocks/mass-pnf-sim/deployment/heat/heat.yaml
+++ b/test/mocks/mass-pnf-sim/deployment/heat/heat.yaml
@@ -23,6 +23,19 @@ resources:
properties:
config:
get_file: cloud-config.yaml
+ sim_script:
+ type: OS::Heat::SoftwareConfig
+ properties:
+ config:
+ get_file: mass-pnf-sim_run.sh
+ sim_script_file:
+ type: OS::Heat::CloudConfig
+ properties:
+ cloud_config:
+ write_files:
+ - path: /root/mass-pnf-sim_run.sh
+ content:
+ get_attr: [sim_script, config]
simulator_floating_ip:
type: OS::Neutron::FloatingIP
properties:
@@ -30,6 +43,14 @@ resources:
get_param: float_net_id
port_id:
get_attr: [simulator, addresses, get_param: instance_net_id, 0, port]
+ cloud_config:
+ type: OS::Heat::MultipartMime
+ properties:
+ parts:
+ - config:
+ get_resource: config
+ - config:
+ get_resource: sim_script_file
simulator:
type: OS::Nova::Server
properties:
@@ -45,7 +66,7 @@ resources:
get_param: instance_net_id
user_data_format: RAW
user_data:
- get_resource: config
+ get_resource: cloud_config
outputs:
simulator_instance_id:
description: ID of the simulator instance