blob: 4b81215927379176733d481f52a1665e01552297 [file] [log] [blame]
Sergey Matov0709c762020-04-02 14:30:50 +04001heat_template_version: queens
2
3parameters:
Mykyta Karpinad86fe72025-01-20 08:25:20 +01004 vsrx_control_network_id:
Sergey Matov0709c762020-04-02 14:30:50 +04005 type: string
Mykyta Karpinad86fe72025-01-20 08:25:20 +01006 vsrx_control_network_vsrx_ip:
Sergey Matov0709c762020-04-02 14:30:50 +04007 type: string
Mykyta Karpinad86fe72025-01-20 08:25:20 +01008 vsrx_data_network_id:
Sergey Matov0709c762020-04-02 14:30:50 +04009 type: string
Mykyta Karpinad86fe72025-01-20 08:25:20 +010010 vsrx_data_network_vsrx_ip:
Anton Samoylovea0b23e2020-06-26 14:17:51 +040011 type: string
Vasyl Saienko6a6c9f02021-02-08 09:54:29 +020012 vsrx_image:
13 type: string
Mykyta Karpinad86fe72025-01-20 08:25:20 +010014 default: mos-vsrx-2nets-ctl-data
Vasyl Saienko6a6c9f02021-02-08 09:54:29 +020015 vsrx_flavor:
16 type: string
17 default: oc_vsrx
Vasyl Saienkofa9bed02021-11-04 18:52:45 +020018 availability_zone:
19 type: string
20 default: nova
Mikhail Polenchuk3cf123d2021-03-12 14:23:24 +000021 public_net_id:
22 type: string
Sergey Matov0709c762020-04-02 14:30:50 +040023
24resources:
25
Mykyta Karpinad86fe72025-01-20 08:25:20 +010026 vsrx_control_network_vsrx_port:
Sergey Matov0709c762020-04-02 14:30:50 +040027 type: OS::Neutron::Port
28 properties:
Mykyta Karpinad86fe72025-01-20 08:25:20 +010029 network_id: { get_param: vsrx_control_network_id }
Sergey Matov0709c762020-04-02 14:30:50 +040030 port_security_enabled: false
31 fixed_ips:
Mykyta Karpinad86fe72025-01-20 08:25:20 +010032 - ip_address: {get_param: vsrx_control_network_vsrx_ip }
Sergey Matov0709c762020-04-02 14:30:50 +040033
Mykyta Karpinad86fe72025-01-20 08:25:20 +010034 vsrx_data_network_vsrx_port:
Sergey Matov0709c762020-04-02 14:30:50 +040035 type: OS::Neutron::Port
36 properties:
Mykyta Karpinad86fe72025-01-20 08:25:20 +010037 network_id: { get_param: vsrx_data_network_id }
Sergey Matov0709c762020-04-02 14:30:50 +040038 port_security_enabled: false
39 fixed_ips:
Mykyta Karpinad86fe72025-01-20 08:25:20 +010040 - ip_address: {get_param: vsrx_data_network_vsrx_ip }
Anton Samoylovea0b23e2020-06-26 14:17:51 +040041
Mikhail Polenchuk3cf123d2021-03-12 14:23:24 +000042 server_floating_ip:
43 type: OS::Neutron::FloatingIP
44 properties:
45 floating_network_id: { get_param: public_net_id }
Mykyta Karpinad86fe72025-01-20 08:25:20 +010046 port_id: { get_resource: vsrx_control_network_vsrx_port }
Mikhail Polenchuk3cf123d2021-03-12 14:23:24 +000047
Sergey Matov0709c762020-04-02 14:30:50 +040048 vsrx_instance:
49 type: OS::Nova::Server
50 properties:
51 name: { list_join: ['-', [get_param: "OS::stack_name", 'vsrx01']] }
Vasyl Saienkofa9bed02021-11-04 18:52:45 +020052 availability_zone: { get_param: availability_zone }
Vasyl Saienko6a6c9f02021-02-08 09:54:29 +020053 image: { get_param: vsrx_image }
54 flavor: { get_param: vsrx_flavor }
Sergey Matov0709c762020-04-02 14:30:50 +040055 networks:
Mykyta Karpinad86fe72025-01-20 08:25:20 +010056 - port: { get_resource: vsrx_control_network_vsrx_port }
57 - port: { get_resource: vsrx_data_network_vsrx_port }
Sergey Matov0709c762020-04-02 14:30:50 +040058
59outputs:
Mikhail Polenchuk3cf123d2021-03-12 14:23:24 +000060 server_public_ip:
61 description: Floating IP address of server in public network
62 value: { get_attr: [ server_floating_ip, floating_ip_address ] }
Ilya Bumarskov128d4d22021-12-27 10:43:09 +040063 vsrx_show:
64 value: { get_attr: [ vsrx_instance, show ] }