aa51a80b64c838b72e453553b01d48482c734704
[integration/csit.git] / plans / so / integration-etsi-testing / config / distribution-test-unzipped / sdc / v1 / catalog / services / Manualdistributiontestservice / 1.0 / resourceInstances / manualdistributiontestvnf0 / artifacts / base_ves_med1.yaml
1 heat_template_version: 2013-05-23
2
3 description: Simple template to deploy a single compute instance
4
5 parameters:
6   simple_name_0:
7     type: string
8     label: Key Name
9     description: Name of key-pair to be used for compute instance
10   simple_key:
11     type: string
12     label: Key Name
13     description: Name of key-pair to be used for compute instance
14   simple_image_name:
15     type: string
16     label: Image ID
17     description: Image to be used for compute instance
18   simple_flavor_name:
19     type: string
20     label: Instance Type
21     description: Type of instance (flavor) to be used
22   vnf_id:
23     type: string
24     label: VNF ID
25     description: The VNF ID is provided by ONAP
26   vf_module_id:
27     type: string
28     label: vFirewall module ID
29     description: The vFirewall Module ID is provided by ONAP
30   simple_netid:
31     type: string
32     label: Netid
33     description: netid
34   public_net_id:
35     type: string
36     label: Netid
37     description: public NetId
38   ves_ip:
39     type: string
40     label: Netid
41     description: public ves_ip
42   node_ip:
43     type: string
44     label: Netid
45     description: public ves_ip
46
47
48
49 resources:
50
51   simple_0_private_port:
52     type: OS::Neutron::Port
53     properties:
54       network: { get_param: simple_netid }
55       fixed_ips:
56       - ip_address: { get_param: node_ip }
57
58
59   simple_0:
60     type: OS::Nova::Server
61     properties:
62       availability_zone: nova 
63       key_name: { get_param: simple_key }
64       image: { get_param: simple_image_name }
65       flavor: { get_param: simple_flavor_name }
66       name: { get_param: simple_name_0 }
67       metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
68       networks:
69       - port: { get_resource: simple_0_private_port }
70       user_data_format: RAW
71       user_data:
72         str_replace:
73           params:
74             __ves_ip__: { get_param: ves_ip }
75             __vnfId__: { get_param: vnf_id }
76
77           template: |
78             #!/bin/bash
79
80             echo "the value we got for vndID was : __vnfId__" >> /tmp/vnfid.log
81
82 outputs:
83   oam_management_v4_address:
84     description: The IP address of the oam_management_v4_address
85     value: { get_param: node_ip  }
86