Added security group and network
So it's easy to practice in devstack. Change-Id: I18cfe6b2ed3d4c4b148b9a5ea7f471e62fc99a4c
This commit is contained in:
parent
e4dccdee7a
commit
5252ab8ee4
@ -16,6 +16,10 @@ parameters:
|
|||||||
image:
|
image:
|
||||||
type: string
|
type: string
|
||||||
default: fedora-amd64
|
default: fedora-amd64
|
||||||
|
private_net:
|
||||||
|
type: string
|
||||||
|
default: private
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
key_add:
|
key_add:
|
||||||
type: OS::Heat::SoftwareConfig
|
type: OS::Heat::SoftwareConfig
|
||||||
@ -87,6 +91,16 @@ resources:
|
|||||||
get_resource: key_test
|
get_resource: key_test
|
||||||
server:
|
server:
|
||||||
get_resource: server_b
|
get_resource: server_b
|
||||||
|
the_sg:
|
||||||
|
type: OS::Neutron::SecurityGroup
|
||||||
|
properties:
|
||||||
|
name: the_sg
|
||||||
|
description: Ping and SSH
|
||||||
|
rules:
|
||||||
|
- protocol: icmp
|
||||||
|
- protocol: tcp
|
||||||
|
port_range_min: 22
|
||||||
|
port_range_max: 22
|
||||||
server_a:
|
server_a:
|
||||||
type: OS::Nova::Server
|
type: OS::Nova::Server
|
||||||
properties:
|
properties:
|
||||||
@ -96,6 +110,10 @@ resources:
|
|||||||
get_param: flavor
|
get_param: flavor
|
||||||
key_name:
|
key_name:
|
||||||
get_param: key_name
|
get_param: key_name
|
||||||
|
security_groups:
|
||||||
|
- {get_resource: the_sg}
|
||||||
|
networks:
|
||||||
|
- network: {get_param: private_net}
|
||||||
user_data_format: SOFTWARE_CONFIG
|
user_data_format: SOFTWARE_CONFIG
|
||||||
server_b:
|
server_b:
|
||||||
type: OS::Nova::Server
|
type: OS::Nova::Server
|
||||||
@ -106,6 +124,10 @@ resources:
|
|||||||
get_param: flavor
|
get_param: flavor
|
||||||
key_name:
|
key_name:
|
||||||
get_param: key_name
|
get_param: key_name
|
||||||
|
security_groups:
|
||||||
|
- {get_resource: the_sg}
|
||||||
|
networks:
|
||||||
|
- network: {get_param: private_net}
|
||||||
user_data_format: SOFTWARE_CONFIG
|
user_data_format: SOFTWARE_CONFIG
|
||||||
outputs:
|
outputs:
|
||||||
do_key_test_stdout:
|
do_key_test_stdout:
|
||||||
|
Loading…
Reference in New Issue
Block a user