Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions templates/bmc-port-port-security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ parameters:
type: string

resources:
bmc_sg:
type: OS::Neutron::SecurityGroup
properties:
name:
list_join:
- '_'
- - {get_param: bmc_prefix}
- 'sg'
description: SSH, ping, IPMI from the same net
rules:
- protocol: icmp
- protocol: tcp
port_range_min: 22
port_range_max: 22
- protocol: udp
port_range_min: 623
port_range_max: 623
remote_ip_prefix: {get_param: private_net}

private_bmc_port:
type: OS::Neutron::Port
Expand All @@ -19,6 +37,8 @@ resources:
- - 'utility'
- {get_param: bmc_prefix}
network: {get_param: private_net}
security_groups:
- {get_resource: bmc_sg}
port_security_enabled: False
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause any security groups to have no effect.


outputs:
Expand Down
20 changes: 20 additions & 0 deletions templates/bmc-port.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ parameters:
type: string

resources:
bmc_sg:
type: OS::Neutron::SecurityGroup
properties:
name:
list_join:
- '_'
- - {get_param: bmc_prefix}
- 'sg'
description: SSH, ping, IPMI from the same net
rules:
- protocol: icmp
- protocol: tcp
port_range_min: 22
port_range_max: 22
- protocol: udp
port_range_min: 623
port_range_max: 623
remote_ip_prefix: {get_param: private_net}

private_bmc_port:
type: OS::Neutron::Port
Expand All @@ -19,6 +37,8 @@ resources:
- - 'utility'
- {get_param: bmc_prefix}
network: {get_param: private_net}
security_groups:
- {get_resource: bmc_sg}

outputs:
port:
Expand Down