Sergey Matov | 0709c76 | 2020-04-02 14:30:50 +0400 | [diff] [blame] | 1 | heat_template_version: queens |
| 2 | |
| 3 | parameters: |
Ilya Bumarskov | 128d4d2 | 2021-12-27 10:43:09 +0400 | [diff] [blame] | 4 | private_floating_network_id: |
Sergey Matov | 0709c76 | 2020-04-02 14:30:50 +0400 | [diff] [blame] | 5 | type: string |
| 6 | private_floating_network_gateway: |
| 7 | type: string |
| 8 | accessible_network: |
| 9 | type: string |
Ilya Bumarskov | 128d4d2 | 2021-12-27 10:43:09 +0400 | [diff] [blame] | 10 | control_network_vsrx_ip: |
Sergey Matov | 0709c76 | 2020-04-02 14:30:50 +0400 | [diff] [blame] | 11 | type: string |
Anton Samoylov | ea0b23e | 2020-06-26 14:17:51 +0400 | [diff] [blame] | 12 | data_network_vsrx_ip: |
| 13 | type: string |
Oleh Hryhorov | e7feab4 | 2020-11-11 18:00:29 +0200 | [diff] [blame] | 14 | tun_network: |
Anton Samoylov | ea0b23e | 2020-06-26 14:17:51 +0400 | [diff] [blame] | 15 | type: string |
Vasyl Saienko | 6a6c9f0 | 2021-02-08 09:54:29 +0200 | [diff] [blame] | 16 | vsrx_image: |
| 17 | type: string |
Anton Samoylov | 4a85a96 | 2021-09-29 10:30:08 +0400 | [diff] [blame] | 18 | default: mos-vsrx-acc-fl-tun |
Vasyl Saienko | 6a6c9f0 | 2021-02-08 09:54:29 +0200 | [diff] [blame] | 19 | vsrx_flavor: |
| 20 | type: string |
| 21 | default: oc_vsrx |
Vasyl Saienko | fa9bed0 | 2021-11-04 18:52:45 +0200 | [diff] [blame] | 22 | availability_zone: |
| 23 | type: string |
| 24 | default: nova |
Mikhail Polenchuk | 3cf123d | 2021-03-12 14:23:24 +0000 | [diff] [blame] | 25 | public_net_id: |
| 26 | type: string |
Sergey Matov | 0709c76 | 2020-04-02 14:30:50 +0400 | [diff] [blame] | 27 | |
| 28 | resources: |
| 29 | |
Sergey Matov | 0709c76 | 2020-04-02 14:30:50 +0400 | [diff] [blame] | 30 | 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 Bumarskov | 128d4d2 | 2021-12-27 10:43:09 +0400 | [diff] [blame] | 36 | - ip_address: {get_param: control_network_vsrx_ip } |
Sergey Matov | 0709c76 | 2020-04-02 14:30:50 +0400 | [diff] [blame] | 37 | |
| 38 | private_floating_server_port: |
| 39 | type: OS::Neutron::Port |
| 40 | properties: |
Ilya Bumarskov | 128d4d2 | 2021-12-27 10:43:09 +0400 | [diff] [blame] | 41 | network_id: { get_param: private_floating_network_id } |
Sergey Matov | 0709c76 | 2020-04-02 14:30:50 +0400 | [diff] [blame] | 42 | port_security_enabled: false |
| 43 | fixed_ips: |
| 44 | - ip_address: { get_param: private_floating_network_gateway} |
| 45 | |
Oleh Hryhorov | e7feab4 | 2020-11-11 18:00:29 +0200 | [diff] [blame] | 46 | tun_server_port: |
Anton Samoylov | ea0b23e | 2020-06-26 14:17:51 +0400 | [diff] [blame] | 47 | type: OS::Neutron::Port |
| 48 | properties: |
Oleh Hryhorov | e7feab4 | 2020-11-11 18:00:29 +0200 | [diff] [blame] | 49 | network_id: { get_param: tun_network } |
Anton Samoylov | ea0b23e | 2020-06-26 14:17:51 +0400 | [diff] [blame] | 50 | port_security_enabled: false |
| 51 | fixed_ips: |
| 52 | - ip_address: { get_param: data_network_vsrx_ip} |
| 53 | |
Mikhail Polenchuk | 3cf123d | 2021-03-12 14:23:24 +0000 | [diff] [blame] | 54 | 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 Matov | 0709c76 | 2020-04-02 14:30:50 +0400 | [diff] [blame] | 60 | vsrx_instance: |
| 61 | type: OS::Nova::Server |
| 62 | properties: |
| 63 | name: { list_join: ['-', [get_param: "OS::stack_name", 'vsrx01']] } |
Vasyl Saienko | fa9bed0 | 2021-11-04 18:52:45 +0200 | [diff] [blame] | 64 | availability_zone: { get_param: availability_zone } |
Vasyl Saienko | 6a6c9f0 | 2021-02-08 09:54:29 +0200 | [diff] [blame] | 65 | image: { get_param: vsrx_image } |
| 66 | flavor: { get_param: vsrx_flavor } |
Sergey Matov | 0709c76 | 2020-04-02 14:30:50 +0400 | [diff] [blame] | 67 | networks: |
| 68 | - port: { get_resource: accessible_server_port } |
| 69 | - port: { get_resource: private_floating_server_port } |
Oleh Hryhorov | e7feab4 | 2020-11-11 18:00:29 +0200 | [diff] [blame] | 70 | - port: { get_resource: tun_server_port } |
Sergey Matov | 0709c76 | 2020-04-02 14:30:50 +0400 | [diff] [blame] | 71 | |
| 72 | outputs: |
Mikhail Polenchuk | 3cf123d | 2021-03-12 14:23:24 +0000 | [diff] [blame] | 73 | server_public_ip: |
| 74 | description: Floating IP address of server in public network |
| 75 | value: { get_attr: [ server_floating_ip, floating_ip_address ] } |
Ilya Bumarskov | 128d4d2 | 2021-12-27 10:43:09 +0400 | [diff] [blame] | 76 | vsrx_show: |
| 77 | value: { get_attr: [ vsrx_instance, show ] } |