blob: 23d64b4476ae53200f6c93ef762a03e3ad08dee3 [file] [log] [blame]
Sergey Matov0709c762020-04-02 14:30:50 +04001heat_template_version: queens
2
3parameters:
Ilya Bumarskov128d4d22021-12-27 10:43:09 +04004 private_floating_network_id:
Sergey Matov0709c762020-04-02 14:30:50 +04005 type: string
6 private_floating_network_gateway:
7 type: string
8 accessible_network:
9 type: string
Ilya Bumarskov128d4d22021-12-27 10:43:09 +040010 control_network_vsrx_ip:
Sergey Matov0709c762020-04-02 14:30:50 +040011 type: string
Anton Samoylovea0b23e2020-06-26 14:17:51 +040012 data_network_vsrx_ip:
13 type: string
Oleh Hryhorove7feab42020-11-11 18:00:29 +020014 tun_network:
Anton Samoylovea0b23e2020-06-26 14:17:51 +040015 type: string
Vasyl Saienko6a6c9f02021-02-08 09:54:29 +020016 vsrx_image:
17 type: string
Anton Samoylov4a85a962021-09-29 10:30:08 +040018 default: mos-vsrx-acc-fl-tun
Vasyl Saienko6a6c9f02021-02-08 09:54:29 +020019 vsrx_flavor:
20 type: string
21 default: oc_vsrx
Vasyl Saienkofa9bed02021-11-04 18:52:45 +020022 availability_zone:
23 type: string
24 default: nova
Mikhail Polenchuk3cf123d2021-03-12 14:23:24 +000025 public_net_id:
26 type: string
Sergey Matov0709c762020-04-02 14:30:50 +040027
28resources:
29
Sergey Matov0709c762020-04-02 14:30:50 +040030 accessible_server_port:
31 type: OS::Neutron::Port
32 properties:
33 network_id: { get_param: accessible_network }
34 port_security_enabled: false
35 fixed_ips:
Ilya Bumarskov128d4d22021-12-27 10:43:09 +040036 - ip_address: {get_param: control_network_vsrx_ip }
Sergey Matov0709c762020-04-02 14:30:50 +040037
38 private_floating_server_port:
39 type: OS::Neutron::Port
40 properties:
Ilya Bumarskov128d4d22021-12-27 10:43:09 +040041 network_id: { get_param: private_floating_network_id }
Sergey Matov0709c762020-04-02 14:30:50 +040042 port_security_enabled: false
43 fixed_ips:
44 - ip_address: { get_param: private_floating_network_gateway}
45
Oleh Hryhorove7feab42020-11-11 18:00:29 +020046 tun_server_port:
Anton Samoylovea0b23e2020-06-26 14:17:51 +040047 type: OS::Neutron::Port
48 properties:
Oleh Hryhorove7feab42020-11-11 18:00:29 +020049 network_id: { get_param: tun_network }
Anton Samoylovea0b23e2020-06-26 14:17:51 +040050 port_security_enabled: false
51 fixed_ips:
52 - ip_address: { get_param: data_network_vsrx_ip}
53
Mikhail Polenchuk3cf123d2021-03-12 14:23:24 +000054 server_floating_ip:
55 type: OS::Neutron::FloatingIP
56 properties:
57 floating_network_id: { get_param: public_net_id }
58 port_id: { get_resource: accessible_server_port }
59
Sergey Matov0709c762020-04-02 14:30:50 +040060 vsrx_instance:
61 type: OS::Nova::Server
62 properties:
63 name: { list_join: ['-', [get_param: "OS::stack_name", 'vsrx01']] }
Vasyl Saienkofa9bed02021-11-04 18:52:45 +020064 availability_zone: { get_param: availability_zone }
Vasyl Saienko6a6c9f02021-02-08 09:54:29 +020065 image: { get_param: vsrx_image }
66 flavor: { get_param: vsrx_flavor }
Sergey Matov0709c762020-04-02 14:30:50 +040067 networks:
68 - port: { get_resource: accessible_server_port }
69 - port: { get_resource: private_floating_server_port }
Oleh Hryhorove7feab42020-11-11 18:00:29 +020070 - port: { get_resource: tun_server_port }
Sergey Matov0709c762020-04-02 14:30:50 +040071
72outputs:
Mikhail Polenchuk3cf123d2021-03-12 14:23:24 +000073 server_public_ip:
74 description: Floating IP address of server in public network
75 value: { get_attr: [ server_floating_ip, floating_ip_address ] }
Ilya Bumarskov128d4d22021-12-27 10:43:09 +040076 vsrx_show:
77 value: { get_attr: [ vsrx_instance, show ] }