|
1 | 1 | ---
|
2 | 2 | ###############################################################################
|
3 |
| -# Configuration of OpenStack projects and users user environment. |
4 |
| - |
5 |
| -# List of OpenStack projects. Format is as required by the stackhpc.os-projects |
6 |
| -# role. |
7 |
| -#openstack_projects: |
8 |
| - |
9 |
| -############################################################################### |
10 |
| -# Configuration of networks, subnets and routers. |
| 3 | +# Configuration of networks, subnets and routers for openstack. |
11 | 4 |
|
12 | 5 | # List of networks in the openstack system. Format is as required by the
|
13 | 6 | # stackhpc.os-networks role.
|
14 |
| -#openstack_networks: |
15 |
| - |
16 |
| -# List of routers in the openstack project. Format is as required by the |
| 7 | +openstack_networks: |
| 8 | + - "{{ openstack_network_external }}" |
| 9 | + - "{{ openstack_network_demo_vxlan }}" |
| 10 | + - "{{ openstack_network_demo_vlan }}" |
| 11 | + - "{{ openstack_network_demo_provider }}" |
| 12 | + |
| 13 | +# openstack external network name. |
| 14 | +openstack_network_external_name: "external" |
| 15 | + |
| 16 | +# openstack external network. |
| 17 | +openstack_network_external: |
| 18 | + name: "{{ openstack_network_external_name }}" |
| 19 | + project: "admin" |
| 20 | + provider_network_type: "vlan" |
| 21 | + provider_physical_network: "physnet1" |
| 22 | + provider_segmentation_id: 102 |
| 23 | + shared: true |
| 24 | + external: true |
| 25 | + # Subnet configuration. |
| 26 | + subnets: |
| 27 | + - "{{ openstack_subnet_external }}" |
| 28 | + |
| 29 | +# openstack external subnet. |
| 30 | +openstack_subnet_external: |
| 31 | + name: "{{ openstack_network_external_name }}" |
| 32 | + project: "admin" |
| 33 | + cidr: "192.168.38.0/24" |
| 34 | + no_gateway_ip: false |
| 35 | + allocation_pool_start: "192.168.38.129" |
| 36 | + allocation_pool_end: "192.168.38.254" |
| 37 | + |
| 38 | +# openstack demo VXLAN network name. |
| 39 | +openstack_network_demo_vxlan_name: "demo-vxlan" |
| 40 | + |
| 41 | +# openstack demo VXLAN network. |
| 42 | +openstack_network_demo_vxlan: |
| 43 | + name: "{{ openstack_network_demo_vxlan_name }}" |
| 44 | + project: demo |
| 45 | + provider_network_type: "vxlan" |
| 46 | + shared: false |
| 47 | + # Subnet configuration. |
| 48 | + subnets: |
| 49 | + - "{{ openstack_subnet_demo_vxlan }}" |
| 50 | + |
| 51 | +# openstack demo VXLAN subnet. |
| 52 | +openstack_subnet_demo_vxlan: |
| 53 | + name: "{{ openstack_network_demo_vxlan_name }}" |
| 54 | + project: demo |
| 55 | + cidr: "10.1.0.0/24" |
| 56 | + gateway_ip: "10.1.0.1" |
| 57 | + allocation_pool_start: "10.1.0.2" |
| 58 | + allocation_pool_end: "10.1.0.254" |
| 59 | + |
| 60 | +# openstack demo VLAN network name. |
| 61 | +openstack_network_demo_vlan_name: "demo-vlan" |
| 62 | + |
| 63 | +# openstack demo VLAN network. |
| 64 | +openstack_network_demo_vlan: |
| 65 | + name: "{{ openstack_network_demo_vlan_name }}" |
| 66 | + project: demo |
| 67 | + provider_network_type: "vlan" |
| 68 | + provider_physical_network: "physnet1" |
| 69 | + shared: false |
| 70 | + # Subnet configuration. |
| 71 | + subnets: |
| 72 | + - "{{ openstack_subnet_demo_vlan }}" |
| 73 | + |
| 74 | +# openstack demo VLAN subnet. |
| 75 | +openstack_subnet_demo_vlan: |
| 76 | + name: "{{ openstack_network_demo_vlan_name }}" |
| 77 | + project: demo |
| 78 | + cidr: "10.0.0.0/24" |
| 79 | + gateway_ip: "10.0.0.1" |
| 80 | + allocation_pool_start: "10.0.0.2" |
| 81 | + allocation_pool_end: "10.0.0.254" |
| 82 | + |
| 83 | +# openstack demo provider VLAN network name. |
| 84 | +openstack_network_demo_provider_name: "demo-provider" |
| 85 | + |
| 86 | +# openstack demo provider VLAN |
| 87 | +openstack_network_demo_provider: |
| 88 | + name: "{{ openstack_network_demo_provider_name }}" |
| 89 | + project: demo |
| 90 | + provider_network_type: "vlan" |
| 91 | + provider_physical_network: "physnet1" |
| 92 | + provider_segmentation_id: 100 |
| 93 | + shared: false |
| 94 | + # Subnet configuration. |
| 95 | + subnets: |
| 96 | + - "{{ openstack_subnet_demo_provider }}" |
| 97 | + |
| 98 | +# openstack demo provider VLAN subnet |
| 99 | +openstack_subnet_demo_provider: |
| 100 | + name: "{{ openstack_network_demo_provider_name }}" |
| 101 | + project: demo |
| 102 | + cidr: "10.100.0.0/16" |
| 103 | + gateway_ip: "10.100.0.1" |
| 104 | + allocation_pool_start: "10.100.1.0" |
| 105 | + allocation_pool_end: "10.100.99.255" |
| 106 | + host_routes: |
| 107 | + - destination: "10.66.0.0/16" |
| 108 | + nexthop: "10.100.0.2" |
| 109 | + |
| 110 | +# List of routers in the openstack demo project. Format is as required by the |
17 | 111 | # stackhpc.os-networks role.
|
18 |
| -#openstack_routers: |
19 |
| - |
20 |
| -# List of security groups in the openstack project. |
| 112 | +openstack_routers: |
| 113 | + - "{{ openstack_router_demo }}" |
| 114 | + |
| 115 | +# openstack demo router. |
| 116 | +openstack_router_demo: |
| 117 | + - name: demo |
| 118 | + project: demo |
| 119 | + interfaces: |
| 120 | + - "{{ openstack_network_demo_vlan_name }}" |
| 121 | + - "{{ openstack_network_demo_vxlan_name }}" |
| 122 | + - "{{ openstack_network_demo_provider_name }}" |
| 123 | + network: "{{ openstack_network_external_name }}" |
| 124 | + |
| 125 | +# List of security groups in the openstack demo project. |
21 | 126 | # 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: |
37 |
| - |
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 |
| 127 | +openstack_security_groups: |
| 128 | + # Default security group for the openstack demo project. |
| 129 | + - name: default |
| 130 | + project: demo |
| 131 | + rules: |
| 132 | + # Allow ICMP (for ping, etc.). |
| 133 | + - protocol: icmp |
| 134 | + # Allow SSH. |
| 135 | + - protocol: tcp |
| 136 | + port_range_min: 22 |
| 137 | + port_range_max: 22 |
0 commit comments