Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - service.git.client |
| 3 | - system.linux.system.single |
| 4 | - system.linux.system.repo.mcp.salt |
Jan Cach | 4446e41 | 2017-09-21 11:30:54 +0200 | [diff] [blame] | 5 | - system.linux.system.repo.mcp.openstack |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +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 |
Petr Jediný | 3114a39 | 2017-08-02 15:21:09 +0200 | [diff] [blame] | 13 | - system.keystone.client.core |
Petr Jediný | bef780d | 2017-09-07 15:08:09 +0200 | [diff] [blame] | 14 | - system.keystone.client.service.barbican |
Petr Jediný | 3114a39 | 2017-08-02 15:21:09 +0200 | [diff] [blame] | 15 | - system.keystone.client.service.cinder |
| 16 | - system.keystone.client.service.cinder2 |
| 17 | - system.keystone.client.service.cinder3 |
Petr Jediný | bef780d | 2017-09-07 15:08:09 +0200 | [diff] [blame] | 18 | - system.keystone.client.service.designate |
Petr Jediný | 3114a39 | 2017-08-02 15:21:09 +0200 | [diff] [blame] | 19 | - system.keystone.client.service.glance |
| 20 | - system.keystone.client.service.glare |
| 21 | - system.keystone.client.service.heat |
| 22 | - system.keystone.client.service.heat-cfn |
| 23 | - system.keystone.client.service.keystone |
| 24 | - system.keystone.client.service.neutron |
| 25 | - system.keystone.client.service.nova-ec2 |
| 26 | - system.keystone.client.service.nova21 |
| 27 | - system.keystone.client.service.nova-placement |
Adam Tengler | 2b36a76 | 2017-07-13 14:34:47 +0000 | [diff] [blame] | 28 | - system.mysql.client |
Petr Jediný | bef780d | 2017-09-07 15:08:09 +0200 | [diff] [blame] | 29 | - system.mysql.client.database.barbican |
Adam Tengler | 2b36a76 | 2017-07-13 14:34:47 +0000 | [diff] [blame] | 30 | - system.mysql.client.database.cinder |
| 31 | - system.mysql.client.database.glance |
| 32 | - system.mysql.client.database.heat |
| 33 | - system.mysql.client.database.keystone |
| 34 | - system.mysql.client.database.nova |
| 35 | - system.mysql.client.database.nova_api |
| 36 | - system.mysql.client.database.neutron |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 37 | - system.reclass.storage.system.openstack_control_cluster |
| 38 | - system.reclass.storage.system.opencontrail_control_cluster |
Petr Jediný | cddcb24 | 2017-11-28 20:18:43 +0100 | [diff] [blame] | 39 | - system.glance.client.image.cirros |
| 40 | - system.glance.client.image.ubuntu_xenial |
| 41 | - system.nova.client.flavor.default |
Petr Michalec | f05e3ea | 2017-08-21 17:33:16 +0200 | [diff] [blame] | 42 | - cluster.os-ha-contrail.openstack.proxy |
| 43 | - cluster.os-ha-contrail |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 44 | parameters: |
| 45 | _param: |
| 46 | reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab" |
| 47 | reclass_data_revision: master |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 48 | reclass_config_master: ${_param:infra_config_deploy_address} |
| 49 | single_address: ${_param:infra_config_address} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 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 |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +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" |
| 73 | |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 74 | nginx: |
| 75 | server: |
| 76 | site: |
| 77 | nginx_proxy_openstack_web: |
| 78 | proxy: |
Jan Cach | 4446e41 | 2017-09-21 11:30:54 +0200 | [diff] [blame] | 79 | host: ${_param:infra_config_address} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 80 | nginx_proxy_openstack_api_heat_cfn: |
| 81 | enabled: false |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 82 | salt: |
| 83 | master: |
| 84 | reactor: |
| 85 | reclass/minion/classify: |
| 86 | - salt://reclass/reactor/node_register.sls |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 87 | reclass: |
| 88 | storage: |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 89 | class_mapping: |
| 90 | common_node: |
| 91 | expression: all |
| 92 | node_param: |
| 93 | single_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 94 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 95 | linux_system_codename: |
| 96 | value_template: <<node_os>> |
| 97 | salt_master_host: |
| 98 | value_template: <<node_master_ip>> |
| 99 | infra_config: |
| 100 | expression: <<node_hostname>>__startswith__cfg |
| 101 | cluster_param: |
| 102 | infra_config_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 103 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 104 | infra_config_deploy_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 105 | value_template: <<node_deploy_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 106 | cluster_domain: |
| 107 | value_template: <<node_domain>> |
| 108 | openstack_control01: |
| 109 | expression: <<node_hostname>>__equals__ctl01 |
| 110 | cluster_param: |
| 111 | openstack_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 112 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 113 | openstack_control02: |
| 114 | expression: <<node_hostname>>__equals__ctl02 |
| 115 | cluster_param: |
| 116 | openstack_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 117 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 118 | openstack_control03: |
| 119 | expression: <<node_hostname>>__equals__ctl03 |
| 120 | cluster_param: |
| 121 | openstack_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 122 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 123 | opencontrail_control01: |
| 124 | expression: <<node_hostname>>__equals__ntw01 |
| 125 | cluster_param: |
| 126 | opencontrail_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 127 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 128 | opencontrail_control02: |
| 129 | expression: <<node_hostname>>__equals__ntw02 |
| 130 | cluster_param: |
| 131 | opencontrail_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 132 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 133 | opencontrail_control03: |
| 134 | expression: <<node_hostname>>__equals__ntw03 |
| 135 | cluster_param: |
| 136 | opencontrail_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 137 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 138 | openstack_compute: |
| 139 | expression: <<node_hostname>>__startswith__cmp |
| 140 | node_class: |
| 141 | value_template: |
| 142 | - cluster.<<node_cluster>>.openstack.compute |
| 143 | node_param: |
| 144 | tenant_address: |
| 145 | value_template: <<node_tenant_ip>> |
| 146 | external_address: |
| 147 | value_template: <<node_external_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 148 | node: |
| 149 | openstack_control_node01: |
| 150 | classes: |
| 151 | - service.galera.master.cluster |
| 152 | params: |
| 153 | mysql_cluster_role: master |
| 154 | linux_system_codename: xenial |
Adam Tengler | 29945d9 | 2017-08-11 15:00:47 +0000 | [diff] [blame] | 155 | horizon_identity_host: ${_param:openstack_control_address} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 156 | openstack_control_node02: |
| 157 | classes: |
| 158 | - service.galera.slave.cluster |
| 159 | params: |
| 160 | mysql_cluster_role: slave |
| 161 | linux_system_codename: xenial |
Adam Tengler | 29945d9 | 2017-08-11 15:00:47 +0000 | [diff] [blame] | 162 | horizon_identity_host: ${_param:openstack_control_address} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 163 | openstack_control_node03: |
| 164 | classes: |
| 165 | - service.galera.slave.cluster |
| 166 | params: |
| 167 | mysql_cluster_role: slave |
| 168 | linux_system_codename: xenial |
Adam Tengler | 29945d9 | 2017-08-11 15:00:47 +0000 | [diff] [blame] | 169 | horizon_identity_host: ${_param:openstack_control_address} |
| 170 | |