Pavel Svimbersky | a48a9bc | 2017-08-23 16:00:02 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - service.git.client |
| 3 | - system.linux.system.single |
| 4 | - system.linux.system.repo.mcp.salt |
Petr Jediný | 16b0284 | 2018-01-15 18:28:24 +0100 | [diff] [blame] | 5 | - system.linux.system.repo.mcp.openstack |
Pavel Svimbersky | a48a9bc | 2017-08-23 16:00:02 +0200 | [diff] [blame] | 6 | - system.openssh.client.lab |
| 7 | - system.salt.master.api |
| 8 | - system.salt.master.pkg |
| 9 | - system.reclass.storage.salt |
| 10 | - system.salt.minion.ca.salt_master |
| 11 | - system.salt.minion.cert.proxy |
| 12 | - system.sphinx.server.doc.reclass |
| 13 | - system.keystone.client.core |
| 14 | - system.keystone.client.service.designate |
| 15 | - system.keystone.client.service.cinder |
| 16 | - system.keystone.client.service.cinder2 |
| 17 | - system.keystone.client.service.cinder3 |
| 18 | - system.keystone.client.service.glance |
| 19 | - system.keystone.client.service.glare |
| 20 | - system.keystone.client.service.heat |
| 21 | - system.keystone.client.service.heat-cfn |
| 22 | - system.keystone.client.service.keystone |
| 23 | - system.keystone.client.service.neutron |
| 24 | - system.keystone.client.service.nova-ec2 |
| 25 | - system.keystone.client.service.nova21 |
| 26 | - system.keystone.client.service.nova-placement |
| 27 | - system.mysql.client |
| 28 | - system.mysql.client.database.cinder |
| 29 | - system.mysql.client.database.glance |
| 30 | - system.mysql.client.database.heat |
| 31 | - system.mysql.client.database.keystone |
| 32 | - system.mysql.client.database.nova |
| 33 | - system.mysql.client.database.nova_api |
| 34 | - system.mysql.client.database.neutron |
| 35 | - system.reclass.storage.system.openstack_control_cluster |
| 36 | - system.reclass.storage.system.opencontrail_control_cluster |
Petr Jediný | cddcb24 | 2017-11-28 20:18:43 +0100 | [diff] [blame] | 37 | - system.glance.client.image.cirros |
| 38 | - system.glance.client.image.ubuntu_xenial |
| 39 | - system.nova.client.flavor.default |
Petr Michalec | f05e3ea | 2017-08-21 17:33:16 +0200 | [diff] [blame] | 40 | - cluster.os-ha-contrail-40.openstack.proxy |
| 41 | - cluster.os-ha-contrail-40 |
Pavel Svimbersky | a48a9bc | 2017-08-23 16:00:02 +0200 | [diff] [blame] | 42 | parameters: |
| 43 | _param: |
Petr Jediný | f52f645 | 2017-12-01 18:18:38 +0100 | [diff] [blame] | 44 | ubuntu_xenial_image_url: "http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcp1.1.qcow2" |
| 45 | cirros_image_url: "http://ci.mcp.mirantis.net:8085/images/cirros-x64-20170828.qcow2" |
Pavel Svimbersky | a48a9bc | 2017-08-23 16:00:02 +0200 | [diff] [blame] | 46 | reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab" |
| 47 | reclass_data_revision: master |
| 48 | reclass_config_master: ${_param:infra_config_deploy_address} |
| 49 | single_address: ${_param:infra_config_address} |
| 50 | salt_master_host: 127.0.0.1 |
| 51 | salt_master_base_environment: prd |
| 52 | salt_minion_ca_host: ${linux:network:fqdn} |
| 53 | salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1" |
| 54 | linux: |
Petr Jediný | cddcb24 | 2017-11-28 20:18:43 +0100 | [diff] [blame] | 55 | system: |
| 56 | kernel: |
| 57 | sysctl: |
| 58 | net.ipv4.conf.ens3.forwarding: 1 |
| 59 | net.ipv4.conf.ens3.send_redirects: 0 |
Pavel Svimbersky | a48a9bc | 2017-08-23 16:00:02 +0200 | [diff] [blame] | 60 | network: |
| 61 | interface: |
| 62 | ens4: |
| 63 | enabled: true |
| 64 | type: eth |
| 65 | proto: static |
| 66 | address: ${_param:single_address} |
| 67 | netmask: 255.255.255.0 |
Petr Jediný | cddcb24 | 2017-11-28 20:18:43 +0100 | [diff] [blame] | 68 | # This is workaround for different interface |
| 69 | pre_up_cmds: |
| 70 | - "iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE" |
| 71 | post_down_cmds: |
| 72 | - "iptables -t nat -F POSTROUTING" |
Pavel Svimbersky | a48a9bc | 2017-08-23 16:00:02 +0200 | [diff] [blame] | 73 | nginx: |
| 74 | server: |
| 75 | site: |
| 76 | nginx_proxy_openstack_web: |
| 77 | proxy: |
| 78 | host: ${_param:openstack_control_address} |
| 79 | nginx_proxy_openstack_api_heat_cfn: |
| 80 | enabled: false |
| 81 | salt: |
| 82 | master: |
| 83 | reactor: |
| 84 | reclass/minion/classify: |
| 85 | - salt://reclass/reactor/node_register.sls |
| 86 | reclass: |
| 87 | storage: |
| 88 | class_mapping: |
| 89 | common_node: |
| 90 | expression: all |
| 91 | node_param: |
| 92 | single_address: |
| 93 | value_template: <<node_control_ip>> |
| 94 | linux_system_codename: |
| 95 | value_template: <<node_os>> |
| 96 | salt_master_host: |
| 97 | value_template: <<node_master_ip>> |
psvimbersky | cefede5 | 2018-01-10 16:40:28 +0100 | [diff] [blame] | 98 | mark_contrail_version: |
| 99 | expression: <<opencontrail_version>>__startswith__oc |
| 100 | cluster_param: |
| 101 | linux_repo_contrail_component: |
| 102 | value_template: <<opencontrail_version>> |
Pavel Svimbersky | a48a9bc | 2017-08-23 16:00:02 +0200 | [diff] [blame] | 103 | infra_config: |
| 104 | expression: <<node_hostname>>__startswith__cfg |
| 105 | cluster_param: |
| 106 | infra_config_address: |
| 107 | value_template: <<node_control_ip>> |
| 108 | infra_config_deploy_address: |
| 109 | value_template: <<node_deploy_ip>> |
| 110 | cluster_domain: |
| 111 | value_template: <<node_domain>> |
| 112 | openstack_control01: |
| 113 | expression: <<node_hostname>>__equals__ctl01 |
| 114 | cluster_param: |
| 115 | openstack_control_node01_address: |
| 116 | value_template: <<node_control_ip>> |
| 117 | openstack_control02: |
| 118 | expression: <<node_hostname>>__equals__ctl02 |
| 119 | cluster_param: |
| 120 | openstack_control_node02_address: |
| 121 | value_template: <<node_control_ip>> |
| 122 | openstack_control03: |
| 123 | expression: <<node_hostname>>__equals__ctl03 |
| 124 | cluster_param: |
| 125 | openstack_control_node03_address: |
| 126 | value_template: <<node_control_ip>> |
Pavel Svimbersky | 51f2c6a | 2017-08-24 11:52:02 +0200 | [diff] [blame] | 127 | opencontrail_control: |
| 128 | expression: <<node_hostname>>__startswith__ntw |
| 129 | cluster_param: |
| 130 | opencontrail_control_system_codename: |
| 131 | value_template: <<node_os>> |
| 132 | opencontrail_control_interface_name: |
| 133 | value_template: <<node_control_iface>> |
Pavel Svimbersky | a48a9bc | 2017-08-23 16:00:02 +0200 | [diff] [blame] | 134 | opencontrail_control01: |
| 135 | expression: <<node_hostname>>__equals__ntw01 |
| 136 | cluster_param: |
| 137 | opencontrail_control_node01_address: |
| 138 | value_template: <<node_control_ip>> |
| 139 | opencontrail_control02: |
| 140 | expression: <<node_hostname>>__equals__ntw02 |
| 141 | cluster_param: |
| 142 | opencontrail_control_node02_address: |
| 143 | value_template: <<node_control_ip>> |
| 144 | opencontrail_control03: |
| 145 | expression: <<node_hostname>>__equals__ntw03 |
| 146 | cluster_param: |
| 147 | opencontrail_control_node03_address: |
| 148 | value_template: <<node_control_ip>> |
| 149 | openstack_compute: |
| 150 | expression: <<node_hostname>>__startswith__cmp |
| 151 | node_class: |
| 152 | value_template: |
| 153 | - cluster.<<node_cluster>>.openstack.compute |
| 154 | node_param: |
| 155 | tenant_address: |
| 156 | value_template: <<node_tenant_ip>> |
| 157 | external_address: |
| 158 | value_template: <<node_external_ip>> |
| 159 | node: |
| 160 | openstack_control_node01: |
| 161 | classes: |
| 162 | - service.galera.master.cluster |
Petr Michalec | f05e3ea | 2017-08-21 17:33:16 +0200 | [diff] [blame] | 163 | - cluster.os-ha-contrail-40.openstack.dashboard |
Pavel Svimbersky | a48a9bc | 2017-08-23 16:00:02 +0200 | [diff] [blame] | 164 | params: |
| 165 | mysql_cluster_role: master |
| 166 | linux_system_codename: xenial |
| 167 | horizon_identity_host: ${_param:openstack_control_address} |
| 168 | openstack_control_node02: |
| 169 | classes: |
| 170 | - service.galera.slave.cluster |
Petr Michalec | f05e3ea | 2017-08-21 17:33:16 +0200 | [diff] [blame] | 171 | - cluster.os-ha-contrail-40.openstack.dashboard |
Pavel Svimbersky | a48a9bc | 2017-08-23 16:00:02 +0200 | [diff] [blame] | 172 | params: |
| 173 | mysql_cluster_role: slave |
| 174 | linux_system_codename: xenial |
| 175 | horizon_identity_host: ${_param:openstack_control_address} |
| 176 | openstack_control_node03: |
| 177 | classes: |
| 178 | - service.galera.slave.cluster |
Petr Michalec | f05e3ea | 2017-08-21 17:33:16 +0200 | [diff] [blame] | 179 | - cluster.os-ha-contrail-40.openstack.dashboard |
Pavel Svimbersky | a48a9bc | 2017-08-23 16:00:02 +0200 | [diff] [blame] | 180 | params: |
| 181 | mysql_cluster_role: slave |
| 182 | linux_system_codename: xenial |
| 183 | horizon_identity_host: ${_param:openstack_control_address} |