push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / neutron_security_group_translation / inputfiles / hot_template.yml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Version 2.0 02-11-2016 (Authors: John Doe, user PROD)
5
6 parameters:
7   oam_net_name:
8     type: string
9     description: network name of OAM network
10   security_group_name:
11     type: string
12     description: security group name of JSA
13   MASTER_names:
14     type: string
15     description: JSA MASTER instance name
16   MASTER_image_name:
17     type: string
18     description: JSA MASTER instance image name
19   MASTER_flavor_name:
20     type: string
21     description: the flavor name of JSA MASTER instance
22
23 resources:
24   jsa_security_group:
25     type: OS::Neutron::SecurityGroup
26     properties:
27       description: ems security group
28       name: {get_param: security_group_name}
29       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
30               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
31               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
32               {"direction": egress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": "::/0"},
33               {"direction": egress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": "::/0"},
34               {"direction": egress, "ethertype": IPv6, "protocol": icmp, "remote_ip_prefix": "::/0"},
35               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
36               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
37               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
38               {"direction": ingress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": "::/0"},
39               {"direction": ingress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": "::/0"},
40               {"direction": ingress, "ethertype": IPv6, "protocol": icmp, "remote_ip_prefix": "::/0"}
41               ]
42
43
44   MASTER_instance:
45     type: OS::Nova::Server
46     properties:
47       name: {get_param: MASTER_names}
48       image: {get_param: MASTER_image_name}
49       flavor: {get_param: MASTER_flavor_name}
50       networks:
51         - port: {get_resource: MASTER_mgmt_port}
52
53   MASTER_mgmt_port:
54     type: OS::Neutron::Port
55     properties:
56       network: {get_param: oam_net_name}
57       security_groups: [{get_resource: jsa_security_group}]