Skip to content

Commit 883723f

Browse files
authored
Merge pull request #1 from stackhpc/openstack-network
feat: add openstack configuration for multinode test environment
2 parents 36cec18 + 1b3937b commit 883723f

File tree

1 file changed

+181
-49
lines changed

1 file changed

+181
-49
lines changed

etc/openstack-config/openstack-config.yml

Lines changed: 181 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,192 @@
11
---
22
###############################################################################
3-
# Configuration of OpenStack projects and users user environment.
3+
# Configuration of nova flavors for openstack.
44

5-
# List of OpenStack projects. Format is as required by the stackhpc.os-projects
6-
# role.
7-
#openstack_projects:
5+
# List of nova flavors in the openstack demo project. Format is as required by the
6+
# stackhpc.os-flavors role.
7+
openstack_flavors:
8+
- "{{ openstack_flavor_m1_tiny }}"
9+
- "{{ openstack_flavor_m1_small }}"
10+
- "{{ openstack_flavor_m1_medium }}"
11+
- "{{ openstack_flavor_m1_large }}"
12+
- "{{ openstack_flavor_m1_xlarge }}"
13+
14+
# Virtual machine flavors.
15+
openstack_flavor_m1_tiny:
16+
name: "m1.tiny"
17+
ram: 512
18+
disk: 1
19+
vcpus: 1
20+
21+
openstack_flavor_m1_small:
22+
name: "m1.small"
23+
ram: 2048
24+
disk: 20
25+
vcpus: 1
26+
27+
openstack_flavor_m1_medium:
28+
name: "m1.medium"
29+
ram: 4096
30+
disk: 40
31+
vcpus: 2
32+
33+
openstack_flavor_m1_large:
34+
name: "m1.large"
35+
ram: 8192
36+
disk: 40
37+
vcpus: 4
38+
39+
openstack_flavor_m1_xlarge:
40+
name: "m1.xlarge"
41+
ram: 16384
42+
disk: 100
43+
vcpus: 8
44+
45+
openstack_images:
46+
- "{{ openstack_image_cirros_0_6_0 }}"
47+
48+
openstack_image_cirros_0_6_0:
49+
name: "cirros"
50+
type: qcow2
51+
image_url: "https://github.com/cirros-dev/cirros/releases/download/0.6.0/cirros-0.6.0-x86_64-disk.img"
52+
is_public: True
53+
properties:
54+
os_type: "linux"
55+
os_distro: "cirros"
56+
os_version: "0.6.0"
57+
hw_rng_model: "virtio"
858

959
###############################################################################
10-
# Configuration of networks, subnets and routers.
60+
# Configuration of networks, subnets and routers for openstack.
1161

1262
# List of networks in the openstack system. Format is as required by the
1363
# stackhpc.os-networks role.
14-
#openstack_networks:
15-
16-
# List of routers in the openstack project. Format is as required by the
64+
openstack_networks:
65+
- "{{ openstack_network_external }}"
66+
- "{{ openstack_network_admin_vxlan }}"
67+
- "{{ openstack_network_admin_vlan }}"
68+
- "{{ openstack_network_admin_provider }}"
69+
70+
# openstack external network name.
71+
openstack_network_external_name: "external"
72+
73+
# openstack external network.
74+
openstack_network_external:
75+
name: "{{ openstack_network_external_name }}"
76+
project: "admin"
77+
provider_network_type: "vlan"
78+
provider_physical_network: "physnet1"
79+
provider_segmentation_id: 102
80+
shared: true
81+
external: true
82+
# Subnet configuration.
83+
subnets:
84+
- "{{ openstack_subnet_external }}"
85+
86+
# openstack external subnet.
87+
openstack_subnet_external:
88+
name: "{{ openstack_network_external_name }}"
89+
project: "admin"
90+
cidr: "192.168.38.0/24"
91+
no_gateway_ip: true
92+
allocation_pool_start: "192.168.38.129"
93+
allocation_pool_end: "192.168.38.254"
94+
95+
# openstack admin VXLAN network name.
96+
openstack_network_admin_vxlan_name: "admin-vxlan"
97+
98+
# openstack admin VXLAN network.
99+
openstack_network_admin_vxlan:
100+
name: "{{ openstack_network_admin_vxlan_name }}"
101+
project: admin
102+
provider_network_type: "vxlan"
103+
shared: false
104+
# Subnet configuration.
105+
subnets:
106+
- "{{ openstack_subnet_admin_vxlan }}"
107+
108+
# openstack admin VXLAN subnet.
109+
openstack_subnet_admin_vxlan:
110+
name: "{{ openstack_network_admin_vxlan_name }}"
111+
project: admin
112+
cidr: "10.1.0.0/24"
113+
gateway_ip: "10.1.0.1"
114+
allocation_pool_start: "10.1.0.2"
115+
allocation_pool_end: "10.1.0.254"
116+
117+
# openstack admin VLAN network name.
118+
openstack_network_admin_vlan_name: "admin-vlan"
119+
120+
# openstack admin VLAN network.
121+
openstack_network_admin_vlan:
122+
name: "{{ openstack_network_admin_vlan_name }}"
123+
project: admin
124+
provider_network_type: "vlan"
125+
provider_physical_network: "physnet1"
126+
shared: false
127+
# Subnet configuration.
128+
subnets:
129+
- "{{ openstack_subnet_admin_vlan }}"
130+
131+
# openstack admin VLAN subnet.
132+
openstack_subnet_admin_vlan:
133+
name: "{{ openstack_network_admin_vlan_name }}"
134+
project: admin
135+
cidr: "10.0.0.0/24"
136+
gateway_ip: "10.0.0.1"
137+
allocation_pool_start: "10.0.0.2"
138+
allocation_pool_end: "10.0.0.254"
139+
140+
# openstack admin provider VLAN network name.
141+
openstack_network_admin_provider_name: "admin-provider"
142+
143+
# openstack admin provider VLAN
144+
openstack_network_admin_provider:
145+
name: "{{ openstack_network_admin_provider_name }}"
146+
project: admin
147+
provider_network_type: "vlan"
148+
provider_physical_network: "physnet1"
149+
provider_segmentation_id: 100
150+
shared: false
151+
# Subnet configuration.
152+
subnets:
153+
- "{{ openstack_subnet_admin_provider }}"
154+
155+
# openstack admin provider VLAN subnet
156+
openstack_subnet_admin_provider:
157+
name: "{{ openstack_network_admin_provider_name }}"
158+
project: admin
159+
cidr: "10.100.0.0/16"
160+
gateway_ip: "10.100.0.1"
161+
allocation_pool_start: "10.100.1.0"
162+
allocation_pool_end: "10.100.99.255"
163+
164+
# List of routers in the openstack admin project. Format is as required by the
17165
# stackhpc.os-networks role.
18-
#openstack_routers:
19-
20-
# List of security groups in the openstack project.
166+
openstack_routers:
167+
- "{{ openstack_router_admin }}"
168+
169+
# openstack admin router.
170+
openstack_router_admin:
171+
- name: admin
172+
project: admin
173+
interfaces:
174+
- "{{ openstack_network_admin_vlan_name }}"
175+
- "{{ openstack_network_admin_vxlan_name }}"
176+
- "{{ openstack_network_admin_provider_name }}"
177+
network: "{{ openstack_network_external_name }}"
178+
179+
# List of security groups in the openstack admin project.
21180
# Format is as required by the stackhpc.os-networks role.
22-
#openstack_security_groups:
23-
24-
###############################################################################
25-
# Configuration of nova flavors.
26-
27-
# List of nova flavors in the openstack project. Format is as required by the
28-
# stackhpc.os-flavors role.
29-
#openstack_flavors:
30-
31-
###############################################################################
32-
# Configuration of nova host aggregates.
33-
34-
# List of nova host aggregates. Format is as required by the
35-
# stackhpc.os_host_aggregates role.
36-
#openstack_host_aggregates:
181+
openstack_security_groups:
182+
# Default security group for the openstack admin project.
183+
- name: default
184+
project: admin
185+
rules:
186+
# Allow ICMP (for ping, etc.).
187+
- protocol: icmp
188+
# Allow SSH.
189+
- protocol: tcp
190+
port_range_min: 22
191+
port_range_max: 22
37192

38-
###############################################################################
39-
# Configuration of Glance software images.
40-
41-
# List of Glance images. Format is as required by the stackhpc.os-images role.
42-
#openstack_images:
43-
44-
# List of Diskimage Builder (DIB) elements paths to include in image builds.
45-
#openstack_image_elements:
46-
47-
# List of Diskimage Builder (DIB) elements Git repositories to use in image
48-
# builds.
49-
#openstack_image_git_elements:
50-
51-
###############################################################################
52-
# Configuration of Magnum container clusters.
53-
54-
# List of magnum cluster templates. Format is as required by the
55-
# stackhpc.os-container-clusters role.
56-
#openstack_container_clusters_templates:
57-
58-
###############################################################################
59-
# Dummy variable to allow Ansible to accept this file.
60-
workaround_ansible_issue_8743: yes

0 commit comments

Comments
 (0)