|
| 1 | +--- |
| 2 | +############################################################################### |
| 3 | +# Configuration of networks, subnets and routers for openstack. |
| 4 | + |
| 5 | +# List of networks in the openstack system. Format is as required by the |
| 6 | +# stackhpc.os-networks role. |
| 7 | +openstack_networks: |
| 8 | + - "{{ openstack_network_internal }}" |
| 9 | + - "{{ openstack_network_provision }}" |
| 10 | + - "{{ openstack_network_cleaning }}" |
| 11 | + - "{{ openstack_network_inspection }}" |
| 12 | + |
| 13 | +# openstack internal network name. |
| 14 | +openstack_network_internal_name: "internal" |
| 15 | + |
| 16 | +# openstack internal network. |
| 17 | +openstack_network_internal: |
| 18 | + name: "{{ openstack_network_internal_name }}" |
| 19 | + project: "admin" |
| 20 | + provider_network_type: "vlan" |
| 21 | + provider_physical_network: "physnet1" |
| 22 | + provider_segmentation_id: 65 |
| 23 | + shared: false |
| 24 | + # Subnet configuration. |
| 25 | + subnets: |
| 26 | + - "{{ openstack_subnet_internal }}" |
| 27 | + |
| 28 | +# openstack internal subnet. |
| 29 | +openstack_subnet_internal: |
| 30 | + name: "{{ openstack_network_internal_name }}" |
| 31 | + project: "admin" |
| 32 | + cidr: "10.65.0.0/16" |
| 33 | + enable_dhcp: false |
| 34 | + allocation_pool_start: "10.65.0.2" |
| 35 | + allocation_pool_end: "10.65.0.4" |
| 36 | + |
| 37 | +# openstack provision network name. |
| 38 | +openstack_network_provision_name: "provision-net" |
| 39 | + |
| 40 | +# openstack provision network. |
| 41 | +openstack_network_provision: |
| 42 | + name: "{{ openstack_network_provision_name }}" |
| 43 | + project: "admin" |
| 44 | + provider_network_type: "vlan" |
| 45 | + provider_physical_network: "physnet1" |
| 46 | + provider_segmentation_id: 69 |
| 47 | + shared: false |
| 48 | + # Subnet configuration. |
| 49 | + subnets: |
| 50 | + - "{{ openstack_subnet_provision }}" |
| 51 | + |
| 52 | +# openstack provision subnet. |
| 53 | +openstack_subnet_provision: |
| 54 | + name: "{{ openstack_network_provision_name }}" |
| 55 | + project: "admin" |
| 56 | + cidr: "10.69.0.0/16" |
| 57 | + enable_dhcp: false |
| 58 | + allocation_pool_start: "10.69.0.1" |
| 59 | + allocation_pool_end: "10.69.0.1" |
| 60 | + |
| 61 | +# openstack cleaning network name. |
| 62 | +openstack_network_cleaning_name: "cleaning-net" |
| 63 | + |
| 64 | +# openstack cleaning network. |
| 65 | +openstack_network_cleaning: |
| 66 | + name: "{{ openstack_network_cleaning_name }}" |
| 67 | + project: "admin" |
| 68 | + provider_network_type: "vlan" |
| 69 | + provider_physical_network: "physnet1" |
| 70 | + provider_segmentation_id: 70 |
| 71 | + shared: false |
| 72 | + # Subnet configuration. |
| 73 | + subnets: |
| 74 | + - "{{ openstack_subnet_cleaning }}" |
| 75 | + |
| 76 | +# openstack cleaning subnet. |
| 77 | +openstack_subnet_cleaning: |
| 78 | + name: "{{ openstack_network_cleaning_name }}" |
| 79 | + project: "admin" |
| 80 | + cidr: "10.70.0.0/16" |
| 81 | + enable_dhcp: false |
| 82 | + allocation_pool_start: "10.70.0.1" |
| 83 | + allocation_pool_end: "10.70.0.1" |
| 84 | + |
| 85 | +# openstack inspection network name. |
| 86 | +openstack_network_inspection_name: "inspection-net" |
| 87 | + |
| 88 | +# openstack inspection network. |
| 89 | +openstack_network_inspection: |
| 90 | + name: "{{ openstack_network_inspection_name }}" |
| 91 | + project: "admin" |
| 92 | + provider_network_type: "vlan" |
| 93 | + provider_physical_network: "physnet1" |
| 94 | + provider_segmentation_id: 71 |
| 95 | + shared: false |
| 96 | + # Subnet configuration. |
| 97 | + subnets: |
| 98 | + - "{{ openstack_subnet_inspection }}" |
| 99 | + |
| 100 | +# openstack inspection subnet. |
| 101 | +openstack_subnet_inspection: |
| 102 | + name: "{{ openstack_network_inspection_name }}" |
| 103 | + project: "admin" |
| 104 | + cidr: "10.71.0.0/16" |
| 105 | + enable_dhcp: false |
| 106 | + allocation_pool_start: "10.71.0.1" |
| 107 | + allocation_pool_end: "10.71.0.1" |
| 108 | + |
| 109 | +# List of routers in the openstack demo project. Format is as required by the |
| 110 | +# stackhpc.os-networks role. |
| 111 | +openstack_routers: |
| 112 | + - "{{ openstack_router_provision }}" |
| 113 | + - "{{ openstack_router_cleaning }}" |
| 114 | + - "{{ openstack_router_inspection }}" |
| 115 | + |
| 116 | +# openstack bare metal provisioning router. |
| 117 | +openstack_router_provision: |
| 118 | + - name: "provision" |
| 119 | + project: "admin" |
| 120 | + interfaces: |
| 121 | + - net: "{{ openstack_network_internal_name }}" |
| 122 | + subnet: "{{ openstack_network_internal_name }}" |
| 123 | + portip: "10.65.0.2" |
| 124 | + - net: "provision-net" |
| 125 | + subnet: "provision-net" |
| 126 | + portip: "10.69.0.1" |
| 127 | + |
| 128 | +# openstack bare metal cleaning router. |
| 129 | +openstack_router_cleaning: |
| 130 | + - name: "cleaning" |
| 131 | + project: "admin" |
| 132 | + interfaces: |
| 133 | + - net: "{{ openstack_network_internal_name }}" |
| 134 | + subnet: "{{ openstack_network_internal_name }}" |
| 135 | + portip: "10.65.0.3" |
| 136 | + - net: "cleaning-net" |
| 137 | + subnet: "cleaning-net" |
| 138 | + portip: "10.70.0.1" |
| 139 | + |
| 140 | +# openstack bare metal inspection router. |
| 141 | +openstack_router_inspection: |
| 142 | + - name: "inspection" |
| 143 | + project: "admin" |
| 144 | + interfaces: |
| 145 | + - net: "{{ openstack_network_internal_name }}" |
| 146 | + subnet: "{{ openstack_network_internal_name }}" |
| 147 | + portip: "10.65.0.4" |
| 148 | + - net: "inspection-net" |
| 149 | + subnet: "inspection-net" |
| 150 | + portip: "10.71.0.1" |
0 commit comments