Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 1 | # Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required |
| 2 | {% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %} |
| 3 | |
| 4 | {% import 'physical-mcp-ocata-offline-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 5 | {% import 'physical-mcp-ocata-offline-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %} |
| 6 | |
| 7 | |
| 8 | {% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'physical-mcp-ocata-offline-ovs') %} |
| 9 | #{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %} |
| 10 | {% set DOMAIN_NAME = os_env('DOMAIN_NAME', 'offline-ocata-vxlan.local') %} |
| 11 | {% set HOSTNAME_APT = os_env('HOSTNAME_CFG01', 'apt.' + DOMAIN_NAME) %} |
| 12 | {% set HOSTNAME_CFG01 = os_env('HOSTNAME_APT01', 'cfg01.' + DOMAIN_NAME) %} |
| 13 | |
| 14 | {% set HOSTNAME_KVM01 = os_env('HOSTNAME_KVM01', 'kvm01.' + DOMAIN_NAME) %} |
| 15 | {% set HOSTNAME_KVM02 = os_env('HOSTNAME_KVM02', 'kvm02.' + DOMAIN_NAME) %} |
| 16 | {% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM03', 'kvm03.' + DOMAIN_NAME) %} |
| 17 | {% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM04', 'kvm04.' + DOMAIN_NAME) %} |
| 18 | {% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM05', 'kvm05.' + DOMAIN_NAME) %} |
| 19 | {% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM06', 'kvm06.' + DOMAIN_NAME) %} |
| 20 | {% set HOSTNAME_CMP001 = os_env('HOSTNAME_CMP001', 'cmp001.' + DOMAIN_NAME) %} |
| 21 | {% set HOSTNAME_CMP002 = os_env('HOSTNAME_CMP002', 'cmp002.' + DOMAIN_NAME) %} |
| 22 | {% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %} |
| 23 | {% set HOSTNAME_GTW02 = os_env('HOSTNAME_GTW02', 'gtw02.' + DOMAIN_NAME) %} |
| 24 | {% set HOSTNAME_GTW03 = os_env('HOSTNAME_GTW03', 'gtw03.' + DOMAIN_NAME) %} |
| 25 | |
| 26 | {% set HOSTNAME_CTL = os_env('HOSTNAME_CTL', 'ctl.' + DOMAIN_NAME) %} |
| 27 | {% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %} |
| 28 | {% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %} |
| 29 | {% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %} |
| 30 | {% set HOSTNAME_DBS = os_env('HOSTNAME_DBS', 'dbs.' + DOMAIN_NAME) %} |
| 31 | {% set HOSTNAME_DBS01 = os_env('HOSTNAME_DBS01', 'dbs01.' + DOMAIN_NAME) %} |
| 32 | {% set HOSTNAME_DBS02 = os_env('HOSTNAME_DBS02', 'dbs02.' + DOMAIN_NAME) %} |
| 33 | {% set HOSTNAME_DBS03 = os_env('HOSTNAME_DBS03', 'dbs03.' + DOMAIN_NAME) %} |
| 34 | {% set HOSTNAME_MSG = os_env('HOSTNAME_MSG', 'msg.' + DOMAIN_NAME) %} |
| 35 | {% set HOSTNAME_MSG01 = os_env('HOSTNAME_MSG01', 'msg01.' + DOMAIN_NAME) %} |
| 36 | {% set HOSTNAME_MSG02 = os_env('HOSTNAME_MSG02', 'msg02.' + DOMAIN_NAME) %} |
| 37 | {% set HOSTNAME_MSG03 = os_env('HOSTNAME_MSG03', 'msg03.' + DOMAIN_NAME) %} |
| 38 | {% set HOSTNAME_MON = os_env('HOSTNAME_MON', 'mon.' + DOMAIN_NAME) %} |
| 39 | {% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %} |
| 40 | {% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %} |
| 41 | {% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %} |
| 42 | {% set HOSTNAME_LOG = os_env('HOSTNAME_LOG', 'log.' + DOMAIN_NAME) %} |
| 43 | {% set HOSTNAME_LOG01 = os_env('HOSTNAME_LOG01', 'log01.' + DOMAIN_NAME) %} |
| 44 | {% set HOSTNAME_LOG02 = os_env('HOSTNAME_LOG02', 'log02.' + DOMAIN_NAME) %} |
| 45 | {% set HOSTNAME_LOG03 = os_env('HOSTNAME_LOG03', 'log03.' + DOMAIN_NAME) %} |
| 46 | {% set HOSTNAME_MTR = os_env('HOSTNAME_MTR', 'mtr.' + DOMAIN_NAME) %} |
| 47 | {% set HOSTNAME_MTR01 = os_env('HOSTNAME_MTR01', 'mtr01.' + DOMAIN_NAME) %} |
| 48 | {% set HOSTNAME_MTR02 = os_env('HOSTNAME_MTR02', 'mtr02.' + DOMAIN_NAME) %} |
| 49 | {% set HOSTNAME_MTR03 = os_env('HOSTNAME_MTR03', 'mtr03.' + DOMAIN_NAME) %} |
| 50 | {% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %} |
| 51 | {% set HOSTNAME_PRX02 = os_env('HOSTNAME_PRX02', 'prx02.' + DOMAIN_NAME) %} |
| 52 | {% set HOSTNAME_PRX03 = os_env('HOSTNAME_PRX03', 'prx03.' + DOMAIN_NAME) %} |
| 53 | |
| 54 | |
| 55 | |
| 56 | {% set ETH0_IP_ADDRESS_APT = os_env('ETH0_IP_ADDRESS_ATP', '10.10.0.14') %} |
| 57 | {% set ETH0_IP_ADDRESS_CFG01 = os_env('ETH0_IP_ADDRESS_CFG01', '10.10.0.15') %} |
| 58 | {% set ETH0_IP_ADDRESS_PRX01 = os_env('ETH0_IP_ADDRESS_PRX01', '10.10.0.11') %} |
| 59 | {% set ETH0_IP_ADDRESS_PRX02 = os_env('ETH0_IP_ADDRESS_PRX02', '10.10.0.12') %} |
| 60 | {% set ETH0_IP_ADDRESS_PRX03 = os_env('ETH0_IP_ADDRESS_PRX03', '10.10.0.13') %} |
| 61 | {% set ETH0_IP_ADDRESS_CTL = os_env('ETH0_IP_ADDRESS_CTL', '10.10.0.10') %} |
| 62 | {% set ETH0_IP_ADDRESS_CTL01 = os_env('ETH0_IP_ADDRESS_CTL01', '10.10.0.11') %} |
| 63 | {% set ETH0_IP_ADDRESS_CTL02 = os_env('ETH0_IP_ADDRESS_CTL02', '10.10.0.12') %} |
| 64 | {% set ETH0_IP_ADDRESS_CTL03 = os_env('ETH0_IP_ADDRESS_CTL03', '10.10.0.13') %} |
| 65 | {% set ETH0_IP_ADDRESS_MSG = os_env('ETH0_IP_ADDRESS_MSG', '10.10.0.40') %} |
| 66 | {% set ETH0_IP_ADDRESS_MSG01 = os_env('ETH0_IP_ADDRESS_MSG01', '10.10.0.41') %} |
| 67 | {% set ETH0_IP_ADDRESS_MSG02 = os_env('ETH0_IP_ADDRESS_MSG02', '10.10.0.42') %} |
| 68 | {% set ETH0_IP_ADDRESS_MSG03 = os_env('ETH0_IP_ADDRESS_MSG03', '10.10.0.43') %} |
| 69 | {% set ETH0_IP_ADDRESS_DBS = os_env('ETH0_IP_ADDRESS_DBS', '10.10.0.50') %} |
| 70 | {% set ETH0_IP_ADDRESS_DBS01 = os_env('ETH0_IP_ADDRESS_DBS01', '10.10.0.51') %} |
| 71 | {% set ETH0_IP_ADDRESS_DBS02 = os_env('ETH0_IP_ADDRESS_DBS02', '10.10.0.52') %} |
| 72 | {% set ETH0_IP_ADDRESS_DBS03 = os_env('ETH0_IP_ADDRESS_DBS03', '10.10.0.53') %} |
| 73 | {% set ETH0_IP_ADDRESS_KVM01 = os_env('ETH0_IP_ADDRESS_KVM01', '10.10.0.241') %} |
| 74 | {% set ETH0_IP_ADDRESS_KVM02 = os_env('ETH0_IP_ADDRESS_KVM02', '10.10.0.242') %} |
| 75 | {% set ETH0_IP_ADDRESS_KVM03 = os_env('ETH0_IP_ADDRESS_KVM03', '10.10.0.243') %} |
| 76 | {% set ETH0_IP_ADDRESS_KVM04 = os_env('ETH0_IP_ADDRESS_KVM04', '10.10.0.244') %} |
| 77 | {% set ETH0_IP_ADDRESS_KVM05 = os_env('ETH0_IP_ADDRESS_KVM05', '10.10.0.245') %} |
| 78 | {% set ETH0_IP_ADDRESS_KVM06 = os_env('ETH0_IP_ADDRESS_KVM06', '10.10.0.246') %} |
| 79 | {% set ETH0_IP_ADDRESS_CMP001 = os_env('ETH0_IP_ADDRESS_CMP001', '10.10.0.101') %} |
| 80 | {% set ETH0_IP_ADDRESS_CMP002 = os_env('ETH0_IP_ADDRESS_CMP002', '10.10.0.102') %} |
| 81 | {% set ETH0_IP_ADDRESS_GTW01 = os_env('ETH0_IP_ADDRESS_GTW01', '10.10.0.224') %} |
| 82 | {% set ETH0_IP_ADDRESS_GTW02 = os_env('ETH0_IP_ADDRESS_GTW02', '10.10.0.225') %} |
| 83 | {% set ETH0_IP_ADDRESS_GTW02 = os_env('ETH0_IP_ADDRESS_GTW02', '10.10.0.226') %} |
| 84 | |
| 85 | |
| 86 | {% set ETH1_IP_ADDRESS_CFG01 = os_env('ETH1_IP_ADDRESS_CFG01', '10.11.0.15') %} |
| 87 | {% set ETH1_IP_ADDRESS_PRX01 = os_env('ETH1_IP_ADDRESS_PRX01', '10.11.0.11') %} |
| 88 | {% set ETH1_IP_ADDRESS_PRX02 = os_env('ETH1_IP_ADDRESS_PRX02', '10.11.0.12') %} |
| 89 | {% set ETH1_IP_ADDRESS_PRX03 = os_env('ETH1_IP_ADDRESS_PRX03', '10.11.0.13') %} |
| 90 | {% set ETH1_IP_ADDRESS_CTL = os_env('ETH1_IP_ADDRESS_CTL', '10.11.0.10') %} |
| 91 | {% set ETH1_IP_ADDRESS_CTL01 = os_env('ETH1_IP_ADDRESS_CTL01', '10.11.0.11') %} |
| 92 | {% set ETH1_IP_ADDRESS_CTL02 = os_env('ETH1_IP_ADDRESS_CTL02', '10.11.0.12') %} |
| 93 | {% set ETH1_IP_ADDRESS_CTL03 = os_env('ETH1_IP_ADDRESS_CTL03', '10.11.0.13') %} |
| 94 | {% set ETH1_IP_ADDRESS_MSG = os_env('ETH1_IP_ADDRESS_MSG', '10.11.0.40') %} |
| 95 | {% set ETH1_IP_ADDRESS_MSG01 = os_env('ETH1_IP_ADDRESS_MSG01', '10.11.0.41') %} |
| 96 | {% set ETH1_IP_ADDRESS_MSG02 = os_env('ETH1_IP_ADDRESS_MSG02', '10.11.0.42') %} |
| 97 | {% set ETH1_IP_ADDRESS_MSG03 = os_env('ETH1_IP_ADDRESS_MSG03', '10.11.0.43') %} |
| 98 | {% set ETH1_IP_ADDRESS_DBS = os_env('ETH1_IP_ADDRESS_DBS', '10.11.0.50') %} |
| 99 | {% set ETH1_IP_ADDRESS_DBS01 = os_env('ETH1_IP_ADDRESS_DBS01', '10.11.0.51') %} |
| 100 | {% set ETH1_IP_ADDRESS_DBS02 = os_env('ETH1_IP_ADDRESS_DBS02', '10.11.0.52') %} |
| 101 | {% set ETH1_IP_ADDRESS_DBS03 = os_env('ETH1_IP_ADDRESS_DBS03', '10.11.0.53') %} |
| 102 | {% set ETH1_IP_ADDRESS_KVM01 = os_env('ETH1_IP_ADDRESS_KVM01', '10.11.0.241') %} |
| 103 | {% set ETH1_IP_ADDRESS_KVM02 = os_env('ETH1_IP_ADDRESS_KVM02', '10.11.0.242') %} |
| 104 | {% set ETH1_IP_ADDRESS_KVM03 = os_env('ETH1_IP_ADDRESS_KVM03', '10.11.0.243') %} |
| 105 | {% set ETH1_IP_ADDRESS_KVM04 = os_env('ETH1_IP_ADDRESS_KVM04', '10.11.0.244') %} |
| 106 | {% set ETH1_IP_ADDRESS_KVM05 = os_env('ETH1_IP_ADDRESS_KVM05', '10.11.0.245') %} |
| 107 | {% set ETH1_IP_ADDRESS_KVM06 = os_env('ETH1_IP_ADDRESS_KVM06', '10.11.0.246') %} |
| 108 | {% set ETH1_IP_ADDRESS_CMP001 = os_env('ETH1_IP_ADDRESS_CMP001', '10.11.0.101') %} |
| 109 | {% set ETH1_IP_ADDRESS_CMP002 = os_env('ETH1_IP_ADDRESS_CMP002', '10.11.0.102') %} |
| 110 | {% set ETH1_IP_ADDRESS_GTW01 = os_env('ETH1_IP_ADDRESS_GTW01', '10.11.0.224') %} |
| 111 | {% set ETH1_IP_ADDRESS_GTW02 = os_env('ETH1_IP_ADDRESS_GTW02', '10.11.0.225') %} |
| 112 | {% set ETH1_IP_ADDRESS_GTW02 = os_env('ETH1_IP_ADDRESS_GTW02', '10.11.0.226') %} |
| 113 | |
| 114 | {% set ETH2_IP_ADDRESS_CFG01 = os_env('ETH1_IP_ADDRESS_CFG01', '172.16.44.33') %} |
| 115 | |
| 116 | {% set ETH0_IP_ADDRESS_CFG01_PREFIX = '.'.join(ETH0_IP_ADDRESS_CFG01.split('.')[0:3]) %} |
| 117 | {% set ETH1_IP_ADDRESS_CFG01_PREFIX = '.'.join(ETH1_IP_ADDRESS_CFG01.split('.')[0:3]) %} |
| 118 | {% set ETH2_IP_ADDRESS_CFG01_PREFIX = '.'.join(ETH2_IP_ADDRESS_CFG01.split('.')[0:3]) %} |
| 119 | |
| 120 | |
| 121 | --- |
| 122 | aliases: |
| 123 | - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }} |
| 124 | - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }} |
| 125 | - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }} |
| 126 | |
| 127 | |
| 128 | template: |
| 129 | devops_settings: |
| 130 | env_name: {{ os_env('ENV_NAME', 'phy-mcp-ocata-offline-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
| 131 | |
| 132 | address_pools: |
| 133 | managment-pool01: |
Dmitry Tyzhnenko | b610afd | 2018-02-19 15:43:45 +0200 | [diff] [blame] | 134 | net: {{ os_env('MGMT_ADDRESS_POOL01', '10.11.0.0/16:16') }} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 135 | params: |
| 136 | ip_reserved: |
| 137 | gateway: +1 |
| 138 | l2_network_device: +1 |
| 139 | default_{{ HOSTNAME_CFG01 }}: {{ ETH1_IP_ADDRESS_CFG01 }} |
| 140 | default_{{ HOSTNAME_KVM01 }}: {{ ETH1_IP_ADDRESS_KVM01 }} |
| 141 | default_{{ HOSTNAME_KVM02 }}: {{ ETH1_IP_ADDRESS_KVM02 }} |
| 142 | default_{{ HOSTNAME_KVM03 }}: {{ ETH1_IP_ADDRESS_KVM03 }} |
| 143 | default_{{ HOSTNAME_KVM04 }}: {{ ETH1_IP_ADDRESS_KVM04 }} |
| 144 | default_{{ HOSTNAME_KVM05 }}: {{ ETH1_IP_ADDRESS_KVM05 }} |
| 145 | default_{{ HOSTNAME_KVM06 }}: {{ ETH1_IP_ADDRESS_KVM06 }} |
| 146 | default_{{ HOSTNAME_CMP001 }}: {{ ETH1_IP_ADDRESS_CMP001 }} |
| 147 | default_{{ HOSTNAME_CMP002 }}: {{ ETH1_IP_ADDRESS_CMP002 }} |
| 148 | default_{{ HOSTNAME_GTW01 }}: {{ ETH1_IP_ADDRESS_GTW01 }} |
| 149 | default_{{ HOSTNAME_GTW02 }}: {{ ETH1_IP_ADDRESS_GTW02 }} |
| 150 | default_{{ HOSTNAME_CTL }}: {{ ETH1_IP_ADDRESS_CTL }} |
| 151 | default_{{ HOSTNAME_CTL01 }}: {{ ETH1_IP_ADDRESS_CTL02 }} |
| 152 | default_{{ HOSTNAME_CTL02 }}: {{ ETH1_IP_ADDRESS_CTL03 }} |
| 153 | default_{{ HOSTNAME_CTL03 }}: {{ ETH1_IP_ADDRESS_CTL04 }} |
| 154 | default_{{ HOSTNAME_MSG }}: {{ ETH1_IP_ADDRESS_MSG }} |
| 155 | default_{{ HOSTNAME_MSG01 }}: {{ ETH1_IP_ADDRESS_MSG02 }} |
| 156 | default_{{ HOSTNAME_MSG02 }}: {{ ETH1_IP_ADDRESS_MSG03 }} |
| 157 | default_{{ HOSTNAME_MSG03 }}: {{ ETH1_IP_ADDRESS_MSG04 }} |
| 158 | default_{{ HOSTNAME_MON }}: {{ ETH1_IP_ADDRESS_MON }} |
| 159 | default_{{ HOSTNAME_MON01 }}: {{ ETH1_IP_ADDRESS_MON01 }} |
| 160 | default_{{ HOSTNAME_MON02 }}: {{ ETH1_IP_ADDRESS_MON02 }} |
| 161 | default_{{ HOSTNAME_MON03 }}: {{ ETH1_IP_ADDRESS_MON03 }} |
| 162 | default_{{ HOSTNAME_DBS }}: {{ ETH1_IP_ADDRESS_DBS }} |
| 163 | default_{{ HOSTNAME_DBS01 }}: {{ ETH1_IP_ADDRESS_DBS02 }} |
| 164 | default_{{ HOSTNAME_DBS02 }}: {{ ETH1_IP_ADDRESS_DBS03 }} |
| 165 | default_{{ HOSTNAME_DBS03 }}: {{ ETH1_IP_ADDRESS_DBS04 }} |
| 166 | default_{{ HOSTNAME_LOG }}: {{ ETH1_IP_ADDRESS_LOG }} |
| 167 | default_{{ HOSTNAME_LOG01 }}: {{ ETH1_IP_ADDRESS_LOG02 }} |
| 168 | default_{{ HOSTNAME_LOG02 }}: {{ ETH1_IP_ADDRESS_LOG03 }} |
| 169 | default_{{ HOSTNAME_LOG03 }}: {{ ETH1_IP_ADDRESS_LOG04 }} |
| 170 | default_{{ HOSTNAME_MTR }}: {{ ETH1_IP_ADDRESS_MTR }} |
| 171 | default_{{ HOSTNAME_MTR01 }}: {{ ETH1_IP_ADDRESS_MTR02 }} |
| 172 | default_{{ HOSTNAME_MTR02 }}: {{ ETH1_IP_ADDRESS_MTR03 }} |
| 173 | default_{{ HOSTNAME_MTR03 }}: {{ ETH1_IP_ADDRESS_MTR04 }} |
| 174 | |
| 175 | admin-pool01: |
Dmitry Tyzhnenko | b610afd | 2018-02-19 15:43:45 +0200 | [diff] [blame] | 176 | net: {{ os_env('DEPLOY_ADDRESS_POOL01', '10.10.0.0/16:16') }} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 177 | params: |
| 178 | ip_reserved: |
| 179 | gateway: +1 |
| 180 | l2_network_device: +1 |
| 181 | default_{{ HOSTNAME_APT }}: {{ ETH0_IP_ADDRESS_APT }} |
| 182 | default_{{ HOSTNAME_CFG01 }}: {{ ETH0_IP_ADDRESS_CFG01 }} |
| 183 | default_{{ HOSTNAME_KVM01 }}: {{ ETH0_IP_ADDRESS_KVM01 }} |
| 184 | default_{{ HOSTNAME_KVM02 }}: {{ ETH0_IP_ADDRESS_KVM02 }} |
| 185 | default_{{ HOSTNAME_KVM03 }}: {{ ETH0_IP_ADDRESS_KVM03 }} |
| 186 | default_{{ HOSTNAME_KVM04 }}: {{ ETH0_IP_ADDRESS_KVM04 }} |
| 187 | default_{{ HOSTNAME_KVM05 }}: {{ ETH0_IP_ADDRESS_KVM05 }} |
| 188 | default_{{ HOSTNAME_KVM06 }}: {{ ETH0_IP_ADDRESS_KVM06 }} |
| 189 | default_{{ HOSTNAME_CMP001 }}: {{ ETH0_IP_ADDRESS_CMP001 }} |
| 190 | default_{{ HOSTNAME_CMP002 }}: {{ ETH0_IP_ADDRESS_CMP002 }} |
| 191 | default_{{ HOSTNAME_GTW01 }}: {{ ETH0_IP_ADDRESS_GTW01 }} |
| 192 | default_{{ HOSTNAME_GTW02 }}: {{ ETH0_IP_ADDRESS_GTW02 }} |
| 193 | default_{{ HOSTNAME_CTL }}: {{ ETH0_IP_ADDRESS_CTL }} |
| 194 | default_{{ HOSTNAME_CTL01 }}: {{ ETH0_IP_ADDRESS_CTL02 }} |
| 195 | default_{{ HOSTNAME_CTL02 }}: {{ ETH0_IP_ADDRESS_CTL03 }} |
| 196 | default_{{ HOSTNAME_CTL03 }}: {{ ETH0_IP_ADDRESS_CTL04 }} |
| 197 | default_{{ HOSTNAME_MSG }}: {{ ETH0_IP_ADDRESS_MSG }} |
| 198 | default_{{ HOSTNAME_MSG01 }}: {{ ETH0_IP_ADDRESS_MSG02 }} |
| 199 | default_{{ HOSTNAME_MSG02 }}: {{ ETH0_IP_ADDRESS_MSG03 }} |
| 200 | default_{{ HOSTNAME_MSG03 }}: {{ ETH0_IP_ADDRESS_MSG04 }} |
| 201 | default_{{ HOSTNAME_MON }}: {{ ETH0_IP_ADDRESS_MON }} |
| 202 | default_{{ HOSTNAME_MON01 }}: {{ ETH0_IP_ADDRESS_MON01 }} |
| 203 | default_{{ HOSTNAME_MON02 }}: {{ ETH0_IP_ADDRESS_MON02 }} |
| 204 | default_{{ HOSTNAME_MON03 }}: {{ ETH0_IP_ADDRESS_MON03 }} |
| 205 | default_{{ HOSTNAME_DBS }}: {{ ETH0_IP_ADDRESS_DBS }} |
| 206 | default_{{ HOSTNAME_DBS01 }}: {{ ETH0_IP_ADDRESS_DBS02 }} |
| 207 | default_{{ HOSTNAME_DBS02 }}: {{ ETH0_IP_ADDRESS_DBS03 }} |
| 208 | default_{{ HOSTNAME_DBS03 }}: {{ ETH0_IP_ADDRESS_DBS04 }} |
| 209 | default_{{ HOSTNAME_LOG }}: {{ ETH0_IP_ADDRESS_LOG }} |
| 210 | default_{{ HOSTNAME_LOG01 }}: {{ ETH0_IP_ADDRESS_LOG02 }} |
| 211 | default_{{ HOSTNAME_LOG02 }}: {{ ETH0_IP_ADDRESS_LOG03 }} |
| 212 | default_{{ HOSTNAME_LOG03 }}: {{ ETH0_IP_ADDRESS_LOG04 }} |
| 213 | default_{{ HOSTNAME_MTR }}: {{ ETH0_IP_ADDRESS_MTR }} |
| 214 | default_{{ HOSTNAME_MTR01 }}: {{ ETH0_IP_ADDRESS_MTR02 }} |
| 215 | default_{{ HOSTNAME_MTR02 }}: {{ ETH0_IP_ADDRESS_MTR03 }} |
| 216 | default_{{ HOSTNAME_MTR03 }}: {{ ETH0_IP_ADDRESS_MTR04 }} |
| 217 | |
| 218 | |
| 219 | public-pool01: |
| 220 | net: {{ os_env('PUBLIC_ADDRESS_POOL01', '172.16.44.0/22:22') }} |
| 221 | params: |
| 222 | ip_reserved: |
| 223 | gateway: +1 |
| 224 | l2_network_device: +1 |
| 225 | default_{{ HOSTNAME_CFG01 }}: {{ ETH2_IP_ADDRESS_CFG01 }} |
| 226 | |
| 227 | |
| 228 | groups: |
| 229 | |
| 230 | - name: default |
| 231 | driver: |
| 232 | name: devops.driver.libvirt |
| 233 | params: |
| 234 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 235 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 236 | stp: False |
| 237 | hpet: False |
| 238 | enable_acpi: true |
| 239 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
| 240 | |
| 241 | network_pools: |
| 242 | admin: admin-pool01 |
| 243 | managment: managment-pool01 |
| 244 | public: public-pool01 |
| 245 | |
| 246 | l2_network_devices: |
| 247 | # Ironic management interface |
| 248 | managment: |
| 249 | address_pool: managment-pool01 |
| 250 | dhcp: false |
| 251 | forward: |
| 252 | mode: bridge |
| 253 | parent_iface: |
| 254 | phys_dev: !os_env ADMIN_BRIDGE |
| 255 | |
| 256 | admin: # deploy |
| 257 | address_pool: admin-pool01 |
| 258 | dhcp: false |
| 259 | forward: |
| 260 | mode: bridge |
| 261 | parent_iface: |
| 262 | phys_dev: !os_env DEPLOY_BRIDGE |
| 263 | |
| 264 | public: |
| 265 | address_pool: public-pool01 |
| 266 | dhcp: false |
| 267 | forward: |
| 268 | mode: bridge |
| 269 | parent_iface: |
| 270 | phys_dev: !os_env PUBLIC_BRIDGE |
| 271 | |
| 272 | #admin: |
| 273 | # address_pool: admin-pool01 |
| 274 | # dhcp: true |
| 275 | |
| 276 | #group_volumes: |
| 277 | # |
| 278 | # |
| 279 | # |
| 280 | |
| 281 | nodes: |
| 282 | - name: {{ HOSTNAME_CFG01 }} |
| 283 | role: salt_master |
| 284 | params: |
| 285 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
Dennis Dmitriev | 75e250f | 2018-02-26 17:13:59 +0200 | [diff] [blame] | 286 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 287 | boot: |
| 288 | - hd |
| 289 | cloud_init_volume_name: iso |
| 290 | cloud_init_iface_up: ens3 |
| 291 | volumes: |
| 292 | - name: system |
| 293 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 294 | shared_backing_store_name: !os_env CFG01_VOLUME_NAME |
| 295 | format: qcow2 |
| 296 | - name: config |
| 297 | format: raw |
| 298 | device: cdrom |
| 299 | bus: ide |
| 300 | source_image: !os_env CFG01_CONFIG_PATH |
| 301 | - name: iso # Volume with name 'iso' will be used |
| 302 | # for store image with cloud-init metadata. |
| 303 | capacity: 1 |
| 304 | format: raw |
| 305 | device: cdrom |
| 306 | bus: ide |
| 307 | cloudinit_meta_data: *cloudinit_meta_data |
| 308 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 309 | |
| 310 | |
| 311 | interfaces: |
| 312 | - label: ens3 |
| 313 | l2_network_device: admin # deploy |
| 314 | interface_model: *interface_model |
| 315 | |
| 316 | - label: ens4 |
| 317 | l2_network_device: managment |
| 318 | interface_model: *interface_model |
| 319 | |
| 320 | - label: ens5 |
| 321 | l2_network_device: public |
| 322 | interface_model: *interface_model |
| 323 | |
| 324 | #- label: ens6 |
| 325 | # l2_network_device: admin |
| 326 | # interface_model: *interface_model |
| 327 | |
| 328 | |
| 329 | network_config: |
| 330 | ens3: |
| 331 | networks: |
| 332 | - admin # deploy |
| 333 | ens4: |
| 334 | networks: |
| 335 | - managment |
| 336 | ens5: |
| 337 | networks: |
| 338 | - public |
| 339 | #ens6: |
| 340 | # networks: |
| 341 | # - admin |
| 342 | |
| 343 | - name: {{ HOSTNAME_APT }} |
| 344 | role: salt_minion |
| 345 | params: |
| 346 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 347 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 348 | boot: |
| 349 | - hd |
| 350 | volumes: |
| 351 | - name: system |
| 352 | capacity: !os_env NODE_VOLUME_SIZE, 550 |
| 353 | shared_backing_store_name: !os_env APT_VOLUME_NAME |
| 354 | format: qcow2 |
| 355 | - name: iso # Volume with name 'iso' will be used |
| 356 | # for store image with cloud-init metadata. |
| 357 | # capacity: 1 |
| 358 | format: raw |
| 359 | device: cdrom |
| 360 | bus: ide |
| 361 | source_image: !os_env APT_CONFIG_PATH |
| 362 | |
| 363 | interfaces: |
| 364 | - label: ens3 |
| 365 | l2_network_device: admin # deploy |
| 366 | interface_model: *interface_model |
| 367 | #- label: ens4 |
| 368 | # l2_network_device: admin |
| 369 | # interface_model: *interface_model |
| 370 | |
| 371 | network_config: |
| 372 | ens3: |
| 373 | networks: |
| 374 | - admin |
| 375 | #ens4: |
| 376 | # networks: |
| 377 | # - admin |
| 378 | |