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') %} |
Tatyana Leontovich | 4453dd6 | 2018-06-26 18:44:31 +0300 | [diff] [blame] | 9 | {# set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' #} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 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) %} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 17 | {% set HOSTNAME_KVM04 = os_env('HOSTNAME_KVM04', 'kvm04.' + DOMAIN_NAME) %} |
| 18 | {% set HOSTNAME_KVM05 = os_env('HOSTNAME_KVM05', 'kvm05.' + DOMAIN_NAME) %} |
| 19 | {% set HOSTNAME_KVM06 = os_env('HOSTNAME_KVM06', 'kvm06.' + DOMAIN_NAME) %} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 20 | {% set HOSTNAME_CMP001 = os_env('HOSTNAME_CMP001', 'cmp001.' + DOMAIN_NAME) %} |
| 21 | {% set HOSTNAME_CMP002 = os_env('HOSTNAME_CMP002', 'cmp002.' + DOMAIN_NAME) %} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 22 | {% set HOSTNAME_CMP003 = os_env('HOSTNAME_CMP003', 'cmp003.' + DOMAIN_NAME) %} |
| 23 | {% set HOSTNAME_CMP004 = os_env('HOSTNAME_CMP004', 'cmp004.' + DOMAIN_NAME) %} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 24 | {% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %} |
| 25 | {% set HOSTNAME_GTW02 = os_env('HOSTNAME_GTW02', 'gtw02.' + DOMAIN_NAME) %} |
| 26 | {% set HOSTNAME_GTW03 = os_env('HOSTNAME_GTW03', 'gtw03.' + DOMAIN_NAME) %} |
| 27 | |
| 28 | {% set HOSTNAME_CTL = os_env('HOSTNAME_CTL', 'ctl.' + DOMAIN_NAME) %} |
| 29 | {% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %} |
| 30 | {% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %} |
| 31 | {% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %} |
| 32 | {% set HOSTNAME_DBS = os_env('HOSTNAME_DBS', 'dbs.' + DOMAIN_NAME) %} |
| 33 | {% set HOSTNAME_DBS01 = os_env('HOSTNAME_DBS01', 'dbs01.' + DOMAIN_NAME) %} |
| 34 | {% set HOSTNAME_DBS02 = os_env('HOSTNAME_DBS02', 'dbs02.' + DOMAIN_NAME) %} |
| 35 | {% set HOSTNAME_DBS03 = os_env('HOSTNAME_DBS03', 'dbs03.' + DOMAIN_NAME) %} |
| 36 | {% set HOSTNAME_MSG = os_env('HOSTNAME_MSG', 'msg.' + DOMAIN_NAME) %} |
| 37 | {% set HOSTNAME_MSG01 = os_env('HOSTNAME_MSG01', 'msg01.' + DOMAIN_NAME) %} |
| 38 | {% set HOSTNAME_MSG02 = os_env('HOSTNAME_MSG02', 'msg02.' + DOMAIN_NAME) %} |
| 39 | {% set HOSTNAME_MSG03 = os_env('HOSTNAME_MSG03', 'msg03.' + DOMAIN_NAME) %} |
| 40 | {% set HOSTNAME_MON = os_env('HOSTNAME_MON', 'mon.' + DOMAIN_NAME) %} |
| 41 | {% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %} |
| 42 | {% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %} |
| 43 | {% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %} |
| 44 | {% set HOSTNAME_LOG = os_env('HOSTNAME_LOG', 'log.' + DOMAIN_NAME) %} |
| 45 | {% set HOSTNAME_LOG01 = os_env('HOSTNAME_LOG01', 'log01.' + DOMAIN_NAME) %} |
| 46 | {% set HOSTNAME_LOG02 = os_env('HOSTNAME_LOG02', 'log02.' + DOMAIN_NAME) %} |
| 47 | {% set HOSTNAME_LOG03 = os_env('HOSTNAME_LOG03', 'log03.' + DOMAIN_NAME) %} |
| 48 | {% set HOSTNAME_MTR = os_env('HOSTNAME_MTR', 'mtr.' + DOMAIN_NAME) %} |
| 49 | {% set HOSTNAME_MTR01 = os_env('HOSTNAME_MTR01', 'mtr01.' + DOMAIN_NAME) %} |
| 50 | {% set HOSTNAME_MTR02 = os_env('HOSTNAME_MTR02', 'mtr02.' + DOMAIN_NAME) %} |
| 51 | {% set HOSTNAME_MTR03 = os_env('HOSTNAME_MTR03', 'mtr03.' + DOMAIN_NAME) %} |
| 52 | {% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %} |
| 53 | {% set HOSTNAME_PRX02 = os_env('HOSTNAME_PRX02', 'prx02.' + DOMAIN_NAME) %} |
| 54 | {% set HOSTNAME_PRX03 = os_env('HOSTNAME_PRX03', 'prx03.' + DOMAIN_NAME) %} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 55 | {% set HOSTNAME_RGW = os_env('HOSTNAME_RGW', 'rgw.' + DOMAIN_NAME) %} |
| 56 | {% set HOSTNAME_RGW01 = os_env('HOSTNAME_RGW01', 'rgw01.' + DOMAIN_NAME) %} |
| 57 | {% set HOSTNAME_RGW02 = os_env('HOSTNAME_RGW02', 'rgw02.' + DOMAIN_NAME) %} |
| 58 | {% set HOSTNAME_RGW03 = os_env('HOSTNAME_RGW03', 'rgw03.' + DOMAIN_NAME) %} |
| 59 | {% set HOSTNAME_CMN01 = os_env('HOSTNAME_CMN01', 'cmn01.' + DOMAIN_NAME) %} |
| 60 | {% set HOSTNAME_CMN02 = os_env('HOSTNAME_CMN02', 'cmn02.' + DOMAIN_NAME) %} |
| 61 | {% set HOSTNAME_CMN03 = os_env('HOSTNAME_CMN03', 'cmn03.' + DOMAIN_NAME) %} |
| 62 | {% set HOSTNAME_OSD001 = os_env('HOSTNAME_OSD001', 'osd001.' + DOMAIN_NAME) %} |
| 63 | {% set HOSTNAME_OSD002 = os_env('HOSTNAME_OSD002', 'osd002.' + DOMAIN_NAME) %} |
| 64 | {% set HOSTNAME_OSD003 = os_env('HOSTNAME_OSD003', 'osd003.' + DOMAIN_NAME) %} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 65 | |
| 66 | {% set ETH0_IP_ADDRESS_APT = os_env('ETH0_IP_ADDRESS_ATP', '10.10.0.14') %} |
| 67 | {% set ETH0_IP_ADDRESS_CFG01 = os_env('ETH0_IP_ADDRESS_CFG01', '10.10.0.15') %} |
| 68 | {% set ETH0_IP_ADDRESS_PRX01 = os_env('ETH0_IP_ADDRESS_PRX01', '10.10.0.11') %} |
| 69 | {% set ETH0_IP_ADDRESS_PRX02 = os_env('ETH0_IP_ADDRESS_PRX02', '10.10.0.12') %} |
| 70 | {% set ETH0_IP_ADDRESS_PRX03 = os_env('ETH0_IP_ADDRESS_PRX03', '10.10.0.13') %} |
| 71 | {% set ETH0_IP_ADDRESS_CTL = os_env('ETH0_IP_ADDRESS_CTL', '10.10.0.10') %} |
| 72 | {% set ETH0_IP_ADDRESS_CTL01 = os_env('ETH0_IP_ADDRESS_CTL01', '10.10.0.11') %} |
| 73 | {% set ETH0_IP_ADDRESS_CTL02 = os_env('ETH0_IP_ADDRESS_CTL02', '10.10.0.12') %} |
| 74 | {% set ETH0_IP_ADDRESS_CTL03 = os_env('ETH0_IP_ADDRESS_CTL03', '10.10.0.13') %} |
| 75 | {% set ETH0_IP_ADDRESS_MSG = os_env('ETH0_IP_ADDRESS_MSG', '10.10.0.40') %} |
| 76 | {% set ETH0_IP_ADDRESS_MSG01 = os_env('ETH0_IP_ADDRESS_MSG01', '10.10.0.41') %} |
| 77 | {% set ETH0_IP_ADDRESS_MSG02 = os_env('ETH0_IP_ADDRESS_MSG02', '10.10.0.42') %} |
| 78 | {% set ETH0_IP_ADDRESS_MSG03 = os_env('ETH0_IP_ADDRESS_MSG03', '10.10.0.43') %} |
| 79 | {% set ETH0_IP_ADDRESS_DBS = os_env('ETH0_IP_ADDRESS_DBS', '10.10.0.50') %} |
| 80 | {% set ETH0_IP_ADDRESS_DBS01 = os_env('ETH0_IP_ADDRESS_DBS01', '10.10.0.51') %} |
| 81 | {% set ETH0_IP_ADDRESS_DBS02 = os_env('ETH0_IP_ADDRESS_DBS02', '10.10.0.52') %} |
| 82 | {% set ETH0_IP_ADDRESS_DBS03 = os_env('ETH0_IP_ADDRESS_DBS03', '10.10.0.53') %} |
| 83 | {% set ETH0_IP_ADDRESS_KVM01 = os_env('ETH0_IP_ADDRESS_KVM01', '10.10.0.241') %} |
| 84 | {% set ETH0_IP_ADDRESS_KVM02 = os_env('ETH0_IP_ADDRESS_KVM02', '10.10.0.242') %} |
| 85 | {% set ETH0_IP_ADDRESS_KVM03 = os_env('ETH0_IP_ADDRESS_KVM03', '10.10.0.243') %} |
| 86 | {% set ETH0_IP_ADDRESS_KVM04 = os_env('ETH0_IP_ADDRESS_KVM04', '10.10.0.244') %} |
| 87 | {% set ETH0_IP_ADDRESS_KVM05 = os_env('ETH0_IP_ADDRESS_KVM05', '10.10.0.245') %} |
| 88 | {% set ETH0_IP_ADDRESS_KVM06 = os_env('ETH0_IP_ADDRESS_KVM06', '10.10.0.246') %} |
| 89 | {% set ETH0_IP_ADDRESS_CMP001 = os_env('ETH0_IP_ADDRESS_CMP001', '10.10.0.101') %} |
| 90 | {% set ETH0_IP_ADDRESS_CMP002 = os_env('ETH0_IP_ADDRESS_CMP002', '10.10.0.102') %} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 91 | {% set ETH0_IP_ADDRESS_CMP003 = os_env('ETH0_IP_ADDRESS_CMP003', '10.10.0.103') %} |
| 92 | {% set ETH0_IP_ADDRESS_CMP004 = os_env('ETH0_IP_ADDRESS_CMP004', '10.10.0.104') %} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 93 | {% set ETH0_IP_ADDRESS_GTW01 = os_env('ETH0_IP_ADDRESS_GTW01', '10.10.0.224') %} |
| 94 | {% set ETH0_IP_ADDRESS_GTW02 = os_env('ETH0_IP_ADDRESS_GTW02', '10.10.0.225') %} |
| 95 | {% set ETH0_IP_ADDRESS_GTW02 = os_env('ETH0_IP_ADDRESS_GTW02', '10.10.0.226') %} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 96 | {% set ETH0_IP_ADDRESS_RGW = os_env('ETH0_IP_ADDRESS_RGW', '10.10.0.75') %} |
| 97 | {% set ETH0_IP_ADDRESS_RGW01 = os_env('ETH0_IP_ADDRESS_RGW01', '10.10.0.76') %} |
| 98 | {% set ETH0_IP_ADDRESS_RGW02 = os_env('ETH0_IP_ADDRESS_RGW02', '10.10.0.77') %} |
| 99 | {% set ETH0_IP_ADDRESS_RGW03 = os_env('ETH0_IP_ADDRESS_RGW03', '10.10.0.78') %} |
| 100 | {% set ETH0_IP_ADDRESS_CMN01 = os_env('ETH0_IP_ADDRESS_CMN01', '10.10.0.66') %} |
| 101 | {% set ETH0_IP_ADDRESS_CMN02 = os_env('ETH0_IP_ADDRESS_CMN02', '10.10.0.67') %} |
| 102 | {% set ETH0_IP_ADDRESS_CMN03 = os_env('ETH0_IP_ADDRESS_CMN03', '10.10.0.68') %} |
| 103 | {% set ETH0_IP_ADDRESS_OSD001 = os_env('ETH0_IP_ADDRESS_OSD001', '10.10.0.201') %} |
| 104 | {% set ETH0_IP_ADDRESS_OSD002 = os_env('ETH0_IP_ADDRESS_OSD002', '10.10.0.202') %} |
| 105 | {% set ETH0_IP_ADDRESS_OSD003 = os_env('ETH0_IP_ADDRESS_OSD003', '10.10.0.203') %} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 106 | |
| 107 | |
| 108 | {% set ETH1_IP_ADDRESS_CFG01 = os_env('ETH1_IP_ADDRESS_CFG01', '10.11.0.15') %} |
| 109 | {% set ETH1_IP_ADDRESS_PRX01 = os_env('ETH1_IP_ADDRESS_PRX01', '10.11.0.11') %} |
| 110 | {% set ETH1_IP_ADDRESS_PRX02 = os_env('ETH1_IP_ADDRESS_PRX02', '10.11.0.12') %} |
| 111 | {% set ETH1_IP_ADDRESS_PRX03 = os_env('ETH1_IP_ADDRESS_PRX03', '10.11.0.13') %} |
| 112 | {% set ETH1_IP_ADDRESS_CTL = os_env('ETH1_IP_ADDRESS_CTL', '10.11.0.10') %} |
| 113 | {% set ETH1_IP_ADDRESS_CTL01 = os_env('ETH1_IP_ADDRESS_CTL01', '10.11.0.11') %} |
| 114 | {% set ETH1_IP_ADDRESS_CTL02 = os_env('ETH1_IP_ADDRESS_CTL02', '10.11.0.12') %} |
| 115 | {% set ETH1_IP_ADDRESS_CTL03 = os_env('ETH1_IP_ADDRESS_CTL03', '10.11.0.13') %} |
| 116 | {% set ETH1_IP_ADDRESS_MSG = os_env('ETH1_IP_ADDRESS_MSG', '10.11.0.40') %} |
| 117 | {% set ETH1_IP_ADDRESS_MSG01 = os_env('ETH1_IP_ADDRESS_MSG01', '10.11.0.41') %} |
| 118 | {% set ETH1_IP_ADDRESS_MSG02 = os_env('ETH1_IP_ADDRESS_MSG02', '10.11.0.42') %} |
| 119 | {% set ETH1_IP_ADDRESS_MSG03 = os_env('ETH1_IP_ADDRESS_MSG03', '10.11.0.43') %} |
| 120 | {% set ETH1_IP_ADDRESS_DBS = os_env('ETH1_IP_ADDRESS_DBS', '10.11.0.50') %} |
| 121 | {% set ETH1_IP_ADDRESS_DBS01 = os_env('ETH1_IP_ADDRESS_DBS01', '10.11.0.51') %} |
| 122 | {% set ETH1_IP_ADDRESS_DBS02 = os_env('ETH1_IP_ADDRESS_DBS02', '10.11.0.52') %} |
| 123 | {% set ETH1_IP_ADDRESS_DBS03 = os_env('ETH1_IP_ADDRESS_DBS03', '10.11.0.53') %} |
| 124 | {% set ETH1_IP_ADDRESS_KVM01 = os_env('ETH1_IP_ADDRESS_KVM01', '10.11.0.241') %} |
| 125 | {% set ETH1_IP_ADDRESS_KVM02 = os_env('ETH1_IP_ADDRESS_KVM02', '10.11.0.242') %} |
| 126 | {% set ETH1_IP_ADDRESS_KVM03 = os_env('ETH1_IP_ADDRESS_KVM03', '10.11.0.243') %} |
| 127 | {% set ETH1_IP_ADDRESS_KVM04 = os_env('ETH1_IP_ADDRESS_KVM04', '10.11.0.244') %} |
| 128 | {% set ETH1_IP_ADDRESS_KVM05 = os_env('ETH1_IP_ADDRESS_KVM05', '10.11.0.245') %} |
| 129 | {% set ETH1_IP_ADDRESS_KVM06 = os_env('ETH1_IP_ADDRESS_KVM06', '10.11.0.246') %} |
| 130 | {% set ETH1_IP_ADDRESS_CMP001 = os_env('ETH1_IP_ADDRESS_CMP001', '10.11.0.101') %} |
| 131 | {% set ETH1_IP_ADDRESS_CMP002 = os_env('ETH1_IP_ADDRESS_CMP002', '10.11.0.102') %} |
| 132 | {% set ETH1_IP_ADDRESS_GTW01 = os_env('ETH1_IP_ADDRESS_GTW01', '10.11.0.224') %} |
| 133 | {% set ETH1_IP_ADDRESS_GTW02 = os_env('ETH1_IP_ADDRESS_GTW02', '10.11.0.225') %} |
| 134 | {% set ETH1_IP_ADDRESS_GTW02 = os_env('ETH1_IP_ADDRESS_GTW02', '10.11.0.226') %} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 135 | {% set ETH1_IP_ADDRESS_RGW = os_env('ETH1_IP_ADDRESS_RGW', '10.11.0.75') %} |
| 136 | {% set ETH1_IP_ADDRESS_RGW01 = os_env('ETH1_IP_ADDRESS_RGW01', '10.11.0.76') %} |
| 137 | {% set ETH1_IP_ADDRESS_RGW02 = os_env('ETH1_IP_ADDRESS_RGW02', '10.11.0.77') %} |
| 138 | {% set ETH1_IP_ADDRESS_RGW03 = os_env('ETH1_IP_ADDRESS_RGW03', '10.11.0.78') %} |
| 139 | {% set ETH1_IP_ADDRESS_CMN01 = os_env('ETH1_IP_ADDRESS_CMN01', '10.11.0.66') %} |
| 140 | {% set ETH1_IP_ADDRESS_CMN02 = os_env('ETH1_IP_ADDRESS_CMN02', '10.11.0.67') %} |
| 141 | {% set ETH1_IP_ADDRESS_CMN03 = os_env('ETH1_IP_ADDRESS_CMN03', '10.11.0.68') %} |
| 142 | {% set ETH1_IP_ADDRESS_OSD001 = os_env('ETH1_IP_ADDRESS_OSD001', '10.11.0.201') %} |
| 143 | {% set ETH1_IP_ADDRESS_OSD002 = os_env('ETH1_IP_ADDRESS_OSD002', '10.11.0.202') %} |
| 144 | {% set ETH1_IP_ADDRESS_OSD002 = os_env('ETH1_IP_ADDRESS_OSD002', '10.11.0.203') %} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 145 | |
| 146 | {% set ETH2_IP_ADDRESS_CFG01 = os_env('ETH1_IP_ADDRESS_CFG01', '172.16.44.33') %} |
| 147 | |
| 148 | {% set ETH0_IP_ADDRESS_CFG01_PREFIX = '.'.join(ETH0_IP_ADDRESS_CFG01.split('.')[0:3]) %} |
| 149 | {% set ETH1_IP_ADDRESS_CFG01_PREFIX = '.'.join(ETH1_IP_ADDRESS_CFG01.split('.')[0:3]) %} |
| 150 | {% set ETH2_IP_ADDRESS_CFG01_PREFIX = '.'.join(ETH2_IP_ADDRESS_CFG01.split('.')[0:3]) %} |
| 151 | |
| 152 | |
| 153 | --- |
| 154 | aliases: |
| 155 | - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }} |
| 156 | - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }} |
| 157 | - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }} |
| 158 | |
| 159 | |
| 160 | template: |
| 161 | devops_settings: |
| 162 | env_name: {{ os_env('ENV_NAME', 'phy-mcp-ocata-offline-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
| 163 | |
| 164 | address_pools: |
| 165 | managment-pool01: |
Dmitry Tyzhnenko | b610afd | 2018-02-19 15:43:45 +0200 | [diff] [blame] | 166 | net: {{ os_env('MGMT_ADDRESS_POOL01', '10.11.0.0/16:16') }} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 167 | params: |
| 168 | ip_reserved: |
| 169 | gateway: +1 |
| 170 | l2_network_device: +1 |
| 171 | default_{{ HOSTNAME_CFG01 }}: {{ ETH1_IP_ADDRESS_CFG01 }} |
| 172 | default_{{ HOSTNAME_KVM01 }}: {{ ETH1_IP_ADDRESS_KVM01 }} |
| 173 | default_{{ HOSTNAME_KVM02 }}: {{ ETH1_IP_ADDRESS_KVM02 }} |
| 174 | default_{{ HOSTNAME_KVM03 }}: {{ ETH1_IP_ADDRESS_KVM03 }} |
| 175 | default_{{ HOSTNAME_KVM04 }}: {{ ETH1_IP_ADDRESS_KVM04 }} |
| 176 | default_{{ HOSTNAME_KVM05 }}: {{ ETH1_IP_ADDRESS_KVM05 }} |
| 177 | default_{{ HOSTNAME_KVM06 }}: {{ ETH1_IP_ADDRESS_KVM06 }} |
| 178 | default_{{ HOSTNAME_CMP001 }}: {{ ETH1_IP_ADDRESS_CMP001 }} |
| 179 | default_{{ HOSTNAME_CMP002 }}: {{ ETH1_IP_ADDRESS_CMP002 }} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 180 | default_{{ HOSTNAME_CMP003 }}: {{ ETH1_IP_ADDRESS_CMP003 }} |
| 181 | default_{{ HOSTNAME_CMP004 }}: {{ ETH1_IP_ADDRESS_CMP004 }} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 182 | default_{{ HOSTNAME_GTW01 }}: {{ ETH1_IP_ADDRESS_GTW01 }} |
| 183 | default_{{ HOSTNAME_GTW02 }}: {{ ETH1_IP_ADDRESS_GTW02 }} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 184 | default_{{ HOSTNAME_GTW03 }}: {{ ETH1_IP_ADDRESS_GTW03 }} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 185 | default_{{ HOSTNAME_CTL }}: {{ ETH1_IP_ADDRESS_CTL }} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 186 | default_{{ HOSTNAME_CTL01 }}: {{ ETH1_IP_ADDRESS_CTL01 }} |
| 187 | default_{{ HOSTNAME_CTL02 }}: {{ ETH1_IP_ADDRESS_CTL02 }} |
| 188 | default_{{ HOSTNAME_CTL03 }}: {{ ETH1_IP_ADDRESS_CTL03 }} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 189 | default_{{ HOSTNAME_MSG }}: {{ ETH1_IP_ADDRESS_MSG }} |
| 190 | default_{{ HOSTNAME_MSG01 }}: {{ ETH1_IP_ADDRESS_MSG02 }} |
| 191 | default_{{ HOSTNAME_MSG02 }}: {{ ETH1_IP_ADDRESS_MSG03 }} |
| 192 | default_{{ HOSTNAME_MSG03 }}: {{ ETH1_IP_ADDRESS_MSG04 }} |
| 193 | default_{{ HOSTNAME_MON }}: {{ ETH1_IP_ADDRESS_MON }} |
| 194 | default_{{ HOSTNAME_MON01 }}: {{ ETH1_IP_ADDRESS_MON01 }} |
| 195 | default_{{ HOSTNAME_MON02 }}: {{ ETH1_IP_ADDRESS_MON02 }} |
| 196 | default_{{ HOSTNAME_MON03 }}: {{ ETH1_IP_ADDRESS_MON03 }} |
| 197 | default_{{ HOSTNAME_DBS }}: {{ ETH1_IP_ADDRESS_DBS }} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 198 | default_{{ HOSTNAME_DBS01 }}: {{ ETH1_IP_ADDRESS_DBS01 }} |
| 199 | default_{{ HOSTNAME_DBS02 }}: {{ ETH1_IP_ADDRESS_DBS02 }} |
| 200 | default_{{ HOSTNAME_DBS03 }}: {{ ETH1_IP_ADDRESS_DBS03 }} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 201 | default_{{ HOSTNAME_LOG }}: {{ ETH1_IP_ADDRESS_LOG }} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 202 | default_{{ HOSTNAME_LOG01 }}: {{ ETH1_IP_ADDRESS_LOG01 }} |
| 203 | default_{{ HOSTNAME_LOG02 }}: {{ ETH1_IP_ADDRESS_LOG02 }} |
| 204 | default_{{ HOSTNAME_LOG03 }}: {{ ETH1_IP_ADDRESS_LOG03 }} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 205 | default_{{ HOSTNAME_MTR }}: {{ ETH1_IP_ADDRESS_MTR }} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 206 | default_{{ HOSTNAME_MTR01 }}: {{ ETH1_IP_ADDRESS_MTR01 }} |
| 207 | default_{{ HOSTNAME_MTR02 }}: {{ ETH1_IP_ADDRESS_MTR02 }} |
| 208 | default_{{ HOSTNAME_MTR03 }}: {{ ETH1_IP_ADDRESS_MTR03 }} |
| 209 | default_{{ HOSTNAME_RGW }}: {{ ETH1_IP_ADDRESS_RGW }} |
| 210 | default_{{ HOSTNAME_RGW01 }}: {{ ETH1_IP_ADDRESS_RGW01 }} |
| 211 | default_{{ HOSTNAME_RGW02 }}: {{ ETH1_IP_ADDRESS_RGW02 }} |
| 212 | default_{{ HOSTNAME_RGW03 }}: {{ ETH1_IP_ADDRESS_RGW03 }} |
| 213 | default_{{ HOSTNAME_CMN01 }}: {{ ETH1_IP_ADDRESS_CMN01 }} |
| 214 | default_{{ HOSTNAME_CMN02 }}: {{ ETH1_IP_ADDRESS_CMN02 }} |
| 215 | default_{{ HOSTNAME_CMN03 }}: {{ ETH1_IP_ADDRESS_CMN03 }} |
| 216 | default_{{ HOSTNAME_OSD001 }}: {{ ETH1_IP_ADDRESS_OSD001 }} |
| 217 | default_{{ HOSTNAME_OSD002 }}: {{ ETH1_IP_ADDRESS_OSD002 }} |
| 218 | default_{{ HOSTNAME_OSD003 }}: {{ ETH1_IP_ADDRESS_OSD003 }} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 219 | |
| 220 | admin-pool01: |
Dmitry Tyzhnenko | b610afd | 2018-02-19 15:43:45 +0200 | [diff] [blame] | 221 | net: {{ os_env('DEPLOY_ADDRESS_POOL01', '10.10.0.0/16:16') }} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 222 | params: |
| 223 | ip_reserved: |
| 224 | gateway: +1 |
| 225 | l2_network_device: +1 |
| 226 | default_{{ HOSTNAME_APT }}: {{ ETH0_IP_ADDRESS_APT }} |
| 227 | default_{{ HOSTNAME_CFG01 }}: {{ ETH0_IP_ADDRESS_CFG01 }} |
| 228 | default_{{ HOSTNAME_KVM01 }}: {{ ETH0_IP_ADDRESS_KVM01 }} |
| 229 | default_{{ HOSTNAME_KVM02 }}: {{ ETH0_IP_ADDRESS_KVM02 }} |
| 230 | default_{{ HOSTNAME_KVM03 }}: {{ ETH0_IP_ADDRESS_KVM03 }} |
| 231 | default_{{ HOSTNAME_KVM04 }}: {{ ETH0_IP_ADDRESS_KVM04 }} |
| 232 | default_{{ HOSTNAME_KVM05 }}: {{ ETH0_IP_ADDRESS_KVM05 }} |
| 233 | default_{{ HOSTNAME_KVM06 }}: {{ ETH0_IP_ADDRESS_KVM06 }} |
| 234 | default_{{ HOSTNAME_CMP001 }}: {{ ETH0_IP_ADDRESS_CMP001 }} |
| 235 | default_{{ HOSTNAME_CMP002 }}: {{ ETH0_IP_ADDRESS_CMP002 }} |
| 236 | default_{{ HOSTNAME_GTW01 }}: {{ ETH0_IP_ADDRESS_GTW01 }} |
| 237 | default_{{ HOSTNAME_GTW02 }}: {{ ETH0_IP_ADDRESS_GTW02 }} |
| 238 | default_{{ HOSTNAME_CTL }}: {{ ETH0_IP_ADDRESS_CTL }} |
| 239 | default_{{ HOSTNAME_CTL01 }}: {{ ETH0_IP_ADDRESS_CTL02 }} |
| 240 | default_{{ HOSTNAME_CTL02 }}: {{ ETH0_IP_ADDRESS_CTL03 }} |
| 241 | default_{{ HOSTNAME_CTL03 }}: {{ ETH0_IP_ADDRESS_CTL04 }} |
| 242 | default_{{ HOSTNAME_MSG }}: {{ ETH0_IP_ADDRESS_MSG }} |
| 243 | default_{{ HOSTNAME_MSG01 }}: {{ ETH0_IP_ADDRESS_MSG02 }} |
| 244 | default_{{ HOSTNAME_MSG02 }}: {{ ETH0_IP_ADDRESS_MSG03 }} |
| 245 | default_{{ HOSTNAME_MSG03 }}: {{ ETH0_IP_ADDRESS_MSG04 }} |
| 246 | default_{{ HOSTNAME_MON }}: {{ ETH0_IP_ADDRESS_MON }} |
| 247 | default_{{ HOSTNAME_MON01 }}: {{ ETH0_IP_ADDRESS_MON01 }} |
| 248 | default_{{ HOSTNAME_MON02 }}: {{ ETH0_IP_ADDRESS_MON02 }} |
| 249 | default_{{ HOSTNAME_MON03 }}: {{ ETH0_IP_ADDRESS_MON03 }} |
| 250 | default_{{ HOSTNAME_DBS }}: {{ ETH0_IP_ADDRESS_DBS }} |
| 251 | default_{{ HOSTNAME_DBS01 }}: {{ ETH0_IP_ADDRESS_DBS02 }} |
| 252 | default_{{ HOSTNAME_DBS02 }}: {{ ETH0_IP_ADDRESS_DBS03 }} |
| 253 | default_{{ HOSTNAME_DBS03 }}: {{ ETH0_IP_ADDRESS_DBS04 }} |
| 254 | default_{{ HOSTNAME_LOG }}: {{ ETH0_IP_ADDRESS_LOG }} |
| 255 | default_{{ HOSTNAME_LOG01 }}: {{ ETH0_IP_ADDRESS_LOG02 }} |
| 256 | default_{{ HOSTNAME_LOG02 }}: {{ ETH0_IP_ADDRESS_LOG03 }} |
| 257 | default_{{ HOSTNAME_LOG03 }}: {{ ETH0_IP_ADDRESS_LOG04 }} |
| 258 | default_{{ HOSTNAME_MTR }}: {{ ETH0_IP_ADDRESS_MTR }} |
| 259 | default_{{ HOSTNAME_MTR01 }}: {{ ETH0_IP_ADDRESS_MTR02 }} |
| 260 | default_{{ HOSTNAME_MTR02 }}: {{ ETH0_IP_ADDRESS_MTR03 }} |
| 261 | default_{{ HOSTNAME_MTR03 }}: {{ ETH0_IP_ADDRESS_MTR04 }} |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 262 | default_{{ HOSTNAME_RGW }}: {{ ETH0_IP_ADDRESS_RGW }} |
| 263 | default_{{ HOSTNAME_RGW01 }}: {{ ETH0_IP_ADDRESS_RGW01 }} |
| 264 | default_{{ HOSTNAME_RGW02 }}: {{ ETH0_IP_ADDRESS_RGW02 }} |
| 265 | default_{{ HOSTNAME_RGW03 }}: {{ ETH0_IP_ADDRESS_RGW03 }} |
| 266 | default_{{ HOSTNAME_CMN01 }}: {{ ETH0_IP_ADDRESS_CMN01 }} |
| 267 | default_{{ HOSTNAME_CMN02 }}: {{ ETH0_IP_ADDRESS_CMN02 }} |
| 268 | default_{{ HOSTNAME_CMN03 }}: {{ ETH0_IP_ADDRESS_CMN03 }} |
| 269 | default_{{ HOSTNAME_OSD001 }}: {{ ETH0_IP_ADDRESS_OSD001 }} |
| 270 | default_{{ HOSTNAME_OSD002 }}: {{ ETH0_IP_ADDRESS_OSD002 }} |
| 271 | default_{{ HOSTNAME_OSD003 }}: {{ ETH0_IP_ADDRESS_OSD003 }} |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 272 | |
| 273 | public-pool01: |
| 274 | net: {{ os_env('PUBLIC_ADDRESS_POOL01', '172.16.44.0/22:22') }} |
| 275 | params: |
| 276 | ip_reserved: |
| 277 | gateway: +1 |
| 278 | l2_network_device: +1 |
| 279 | default_{{ HOSTNAME_CFG01 }}: {{ ETH2_IP_ADDRESS_CFG01 }} |
| 280 | |
| 281 | |
| 282 | groups: |
| 283 | |
| 284 | - name: default |
| 285 | driver: |
| 286 | name: devops.driver.libvirt |
| 287 | params: |
| 288 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 289 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 290 | stp: False |
| 291 | hpet: False |
| 292 | enable_acpi: true |
| 293 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
| 294 | |
| 295 | network_pools: |
| 296 | admin: admin-pool01 |
| 297 | managment: managment-pool01 |
| 298 | public: public-pool01 |
| 299 | |
| 300 | l2_network_devices: |
| 301 | # Ironic management interface |
| 302 | managment: |
| 303 | address_pool: managment-pool01 |
| 304 | dhcp: false |
| 305 | forward: |
| 306 | mode: bridge |
| 307 | parent_iface: |
| 308 | phys_dev: !os_env ADMIN_BRIDGE |
| 309 | |
| 310 | admin: # deploy |
| 311 | address_pool: admin-pool01 |
| 312 | dhcp: false |
| 313 | forward: |
| 314 | mode: bridge |
| 315 | parent_iface: |
| 316 | phys_dev: !os_env DEPLOY_BRIDGE |
| 317 | |
| 318 | public: |
| 319 | address_pool: public-pool01 |
| 320 | dhcp: false |
| 321 | forward: |
| 322 | mode: bridge |
| 323 | parent_iface: |
| 324 | phys_dev: !os_env PUBLIC_BRIDGE |
| 325 | |
| 326 | #admin: |
| 327 | # address_pool: admin-pool01 |
| 328 | # dhcp: true |
| 329 | |
| 330 | #group_volumes: |
| 331 | # |
| 332 | # |
| 333 | # |
| 334 | |
| 335 | nodes: |
| 336 | - name: {{ HOSTNAME_CFG01 }} |
| 337 | role: salt_master |
| 338 | params: |
| 339 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
Dennis Dmitriev | 75e250f | 2018-02-26 17:13:59 +0200 | [diff] [blame] | 340 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 341 | boot: |
| 342 | - hd |
| 343 | cloud_init_volume_name: iso |
| 344 | cloud_init_iface_up: ens3 |
| 345 | volumes: |
| 346 | - name: system |
| 347 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 348 | shared_backing_store_name: !os_env CFG01_VOLUME_NAME |
| 349 | format: qcow2 |
| 350 | - name: config |
| 351 | format: raw |
| 352 | device: cdrom |
| 353 | bus: ide |
| 354 | source_image: !os_env CFG01_CONFIG_PATH |
| 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 | cloudinit_meta_data: *cloudinit_meta_data |
| 362 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 363 | |
| 364 | |
| 365 | interfaces: |
| 366 | - label: ens3 |
| 367 | l2_network_device: admin # deploy |
| 368 | interface_model: *interface_model |
| 369 | |
| 370 | - label: ens4 |
| 371 | l2_network_device: managment |
| 372 | interface_model: *interface_model |
| 373 | |
| 374 | - label: ens5 |
| 375 | l2_network_device: public |
| 376 | interface_model: *interface_model |
| 377 | |
| 378 | #- label: ens6 |
| 379 | # l2_network_device: admin |
| 380 | # interface_model: *interface_model |
| 381 | |
| 382 | |
| 383 | network_config: |
| 384 | ens3: |
| 385 | networks: |
| 386 | - admin # deploy |
| 387 | ens4: |
| 388 | networks: |
| 389 | - managment |
| 390 | ens5: |
| 391 | networks: |
| 392 | - public |
| 393 | #ens6: |
| 394 | # networks: |
| 395 | # - admin |
| 396 | |
| 397 | - name: {{ HOSTNAME_APT }} |
| 398 | role: salt_minion |
| 399 | params: |
| 400 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 401 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 402 | boot: |
| 403 | - hd |
| 404 | volumes: |
| 405 | - name: system |
| 406 | capacity: !os_env NODE_VOLUME_SIZE, 550 |
| 407 | shared_backing_store_name: !os_env APT_VOLUME_NAME |
| 408 | format: qcow2 |
| 409 | - name: iso # Volume with name 'iso' will be used |
| 410 | # for store image with cloud-init metadata. |
| 411 | # capacity: 1 |
| 412 | format: raw |
| 413 | device: cdrom |
| 414 | bus: ide |
| 415 | source_image: !os_env APT_CONFIG_PATH |
| 416 | |
| 417 | interfaces: |
| 418 | - label: ens3 |
| 419 | l2_network_device: admin # deploy |
| 420 | interface_model: *interface_model |
| 421 | #- label: ens4 |
| 422 | # l2_network_device: admin |
| 423 | # interface_model: *interface_model |
| 424 | |
| 425 | network_config: |
| 426 | ens3: |
| 427 | networks: |
| 428 | - admin |
| 429 | #ens4: |
| 430 | # networks: |
| 431 | # - admin |
| 432 | |