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 |
| 5 | - system.openssh.client.lab |
| 6 | - system.salt.master.api |
| 7 | - system.salt.master.pkg |
| 8 | - system.reclass.storage.salt |
| 9 | - system.salt.minion.ca.salt_master |
| 10 | - system.salt.minion.cert.proxy |
| 11 | - system.sphinx.server.doc.reclass |
| 12 | - system.keystone.client.single |
| 13 | - system.keystone.client.service.aodh |
| 14 | - system.keystone.client.service.ceilometer |
| 15 | - system.keystone.client.service.nova21 |
| 16 | - system.keystone.client.service.glare |
| 17 | - system.keystone.client.service.cinder3 |
| 18 | - system.keystone.client.service.designate |
| 19 | - system.mysql.client.single |
| 20 | - system.reclass.storage.system.openstack_control_cluster |
| 21 | - system.reclass.storage.system.opencontrail_control_cluster |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 22 | - system.reclass.storage.system.stacklightv2_server_cluster |
| 23 | - cluster.sl_os_contrail.openstack.proxy |
| 24 | - cluster.sl_os_contrail.stacklight.proxy |
Adam Tengler | 0c62444 | 2017-07-04 13:25:36 +0000 | [diff] [blame] | 25 | - cluster.sl_os_contrail.openstack.dashboard |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 26 | - cluster.sl_os_contrail |
| 27 | parameters: |
| 28 | _param: |
| 29 | reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab" |
| 30 | reclass_data_revision: master |
Adam Tengler | 8152620 | 2017-07-11 13:03:40 +0000 | [diff] [blame] | 31 | reclass_config_master: ${_param:infra_config_deploy_address} |
| 32 | single_address: ${_param:infra_config_address} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 33 | salt_master_host: 127.0.0.1 |
| 34 | salt_master_base_environment: prd |
| 35 | salt_minion_ca_host: ${linux:network:fqdn} |
| 36 | salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1" |
| 37 | linux: |
| 38 | network: |
| 39 | interface: |
| 40 | ens4: |
| 41 | enabled: true |
| 42 | type: eth |
| 43 | proto: static |
| 44 | address: ${_param:single_address} |
| 45 | netmask: 255.255.255.0 |
| 46 | nginx: |
| 47 | server: |
| 48 | site: |
| 49 | nginx_proxy_openstack_web: |
| 50 | proxy: |
| 51 | host: prx |
| 52 | nginx_proxy_openstack_api_heat_cfn: |
| 53 | enabled: false |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 54 | salt: |
| 55 | master: |
| 56 | reactor: |
| 57 | reclass/minion/classify: |
| 58 | - salt://reclass/reactor/node_register.sls |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 59 | reclass: |
| 60 | storage: |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 61 | class_mapping: |
| 62 | common_node: |
| 63 | expression: all |
| 64 | node_param: |
| 65 | single_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 66 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 67 | linux_system_codename: |
| 68 | value_template: <<node_os>> |
| 69 | salt_master_host: |
| 70 | value_template: <<node_master_ip>> |
| 71 | infra_config: |
| 72 | expression: <<node_hostname>>__startswith__cfg |
| 73 | cluster_param: |
| 74 | infra_config_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 75 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 76 | infra_config_deploy_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 77 | value_template: <<node_deploy_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 78 | cluster_domain: |
| 79 | value_template: <<node_domain>> |
| 80 | openstack_control01: |
| 81 | expression: <<node_hostname>>__equals__ctl01 |
| 82 | cluster_param: |
| 83 | openstack_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 84 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 85 | openstack_control02: |
| 86 | expression: <<node_hostname>>__equals__ctl02 |
| 87 | cluster_param: |
| 88 | openstack_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 89 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 90 | openstack_control03: |
| 91 | expression: <<node_hostname>>__equals__ctl03 |
| 92 | cluster_param: |
| 93 | openstack_control_node03_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 | opencontrail_control01: |
| 96 | expression: <<node_hostname>>__equals__ntw01 |
| 97 | cluster_param: |
| 98 | opencontrail_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 99 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 100 | opencontrail_control02: |
| 101 | expression: <<node_hostname>>__equals__ntw02 |
| 102 | cluster_param: |
| 103 | opencontrail_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 104 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 105 | opencontrail_control03: |
| 106 | expression: <<node_hostname>>__equals__ntw03 |
| 107 | cluster_param: |
| 108 | opencontrail_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 109 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 110 | openstack_compute: |
| 111 | expression: <<node_hostname>>__startswith__cmp |
| 112 | node_class: |
| 113 | value_template: |
| 114 | - cluster.<<node_cluster>>.openstack.compute |
| 115 | node_param: |
| 116 | tenant_address: |
| 117 | value_template: <<node_tenant_ip>> |
| 118 | external_address: |
| 119 | value_template: <<node_external_ip>> |
| 120 | stacklight_monitor01: |
| 121 | expression: <<node_hostname>>__equals__mon01 |
| 122 | cluster_param: |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame^] | 123 | stacklight_monitor_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 124 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 125 | stacklight_monitor02: |
| 126 | expression: <<node_hostname>>__equals__mon02 |
| 127 | cluster_param: |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame^] | 128 | stacklight_monitor_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 129 | value_template: <<node_control_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 130 | stacklight_monitor03: |
| 131 | expression: <<node_hostname>>__equals__mon03 |
| 132 | cluster_param: |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame^] | 133 | stacklight_monitor_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 134 | value_template: <<node_control_ip>> |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 135 | node: |
| 136 | openstack_control_node01: |
| 137 | classes: |
| 138 | - service.galera.master.cluster |
| 139 | params: |
| 140 | mysql_cluster_role: master |
| 141 | linux_system_codename: xenial |
| 142 | openstack_control_node02: |
| 143 | classes: |
| 144 | - service.galera.slave.cluster |
| 145 | params: |
| 146 | mysql_cluster_role: slave |
| 147 | linux_system_codename: xenial |
| 148 | openstack_control_node03: |
| 149 | classes: |
| 150 | - service.galera.slave.cluster |
| 151 | params: |
| 152 | mysql_cluster_role: slave |
| 153 | linux_system_codename: xenial |