blob: bb5ad1fcf204fa8c9a14d4700f9a4c66520f08df [file] [log] [blame]
classes:
- system.docker.client
- system.docker.host
- system.linux.system.repo.mcp.apt_mirantis.ubuntu
- system.linux.system.repo.mcp.apt_mirantis.saltstack
- system.linux.system.repo.docker
- system.openssh.client.lab
- system.salt.master.pkg
- system.salt.minion.ca.salt_master
- system.salt.master.api
- system.reclass.storage.salt
- system.salt.minion.cert.k8s_server
- system.reclass.storage.system.kubernetes_control_cluster
#- system.reclass.storage.system.opencontrail_control_cluster
- cluster.sl-k8s-contrail
parameters:
_param:
salt_master_base_environment: prd
reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
reclass_data_revision: master
reclass_config_master: ${_param:infra_config_deploy_address}
single_address: ${_param:infra_config_address}
linux_system_codename: xenial
opencontrail_control_system_codename: trusty
salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
salt_master_host: ${_param:infra_config_deploy_address}
salt:
master:
reactor:
reclass/minion/classify:
- salt://reclass/reactor/node_register.sls
reclass:
storage:
class_mapping:
common_node:
expression: all
node_param:
single_address:
value_template: <<node_control_ip>>
linux_system_codename:
value_template: <<node_os>>
salt_master_host:
value_template: <<node_master_ip>>
infra_config:
expression: <<node_hostname>>__startswith__cfg
cluster_param:
infra_config_address:
value_template: <<node_control_ip>>
infra_config_deploy_address:
value_template: <<node_deploy_ip>>
cluster_domain:
value_template: <<node_domain>>
kubernetes_control01:
expression: <<node_hostname>>__equals__ctl01
cluster_param:
kubernetes_control_node01_address:
value_template: <<node_control_ip>>
kubernetes_control02:
expression: <<node_hostname>>__equals__ctl02
cluster_param:
kubernetes_control_node02_address:
value_template: <<node_control_ip>>
kubernetes_control03:
expression: <<node_hostname>>__equals__ctl03
cluster_param:
kubernetes_control_node03_address:
value_template: <<node_control_ip>>
opencontrail_control01:
expression: <<node_hostname>>__equals__ntw01
cluster_param:
opencontrail_control_node01_address:
value_template: <<node_control_ip>>
opencontrail_control02:
expression: <<node_hostname>>__equals__ntw02
cluster_param:
opencontrail_control_node02_address:
value_template: <<node_control_ip>>
opencontrail_control03:
expression: <<node_hostname>>__equals__ntw03
cluster_param:
opencontrail_control_node03_address:
value_template: <<node_ip>
kubernetes_proxy:
expression: <<node_hostname>>__equals__prx01
cluster_param:
kubernetes_proxy_node01_address:
value_template: <<node_control_ip>>
stacklight_monitor_node01:
expression: <<node_hostname>>__equals__mon01
cluster_param:
stacklight_monitor_node01_address:
value_template: <<node_control_ip>>
stacklight_monitor_node02:
expression: <<node_hostname>>__equals__mon02
cluster_param:
stacklight_monitor_node02_address:
value_template: <<node_control_ip>>
stacklight_monitor_node03:
expression: <<node_hostname>>__equals__mon03
cluster_param:
stacklight_monitor_node03_address:
value_template: <<node_control_ip>>
kubernetes_compute:
expression: <<node_hostname>>__startswith__cmp
node_class:
value_template:
- cluster.<<node_cluster>>.kubernetes.compute
prx_node:
name: ${_param:kubernetes_proxy_node01_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.stacklight.proxy
params:
salt_master_host: ${_param:infra_config_deploy_address}
linux_system_codename: xenial
single_address: ${_param:kubernetes_proxy_node01_address}
stacklight_server_node01:
name: ${_param:stacklight_monitor_node01_hostname}
domain: ${_param:cluster_domain}
classes:
- service.galera.master.cluster
- system.docker.swarm.master
- cluster.${_param:cluster_name}.stacklight.client
- cluster.${_param:cluster_name}.stacklight.server
params:
salt_master_host: ${_param:infra_config_deploy_address}
linux_system_codename: xenial
single_address: ${_param:stacklight_monitor_node01_address}
keepalived_vip_priority: 100
mysql_cluster_role: master
stacklight_server_node02:
name: ${_param:stacklight_monitor_node02_hostname}
domain: ${_param:cluster_domain}
classes:
- service.galera.slave.cluster
- system.docker.swarm.manager
- cluster.${_param:cluster_name}.stacklight.server
params:
salt_master_host: ${_param:infra_config_deploy_address}
linux_system_codename: xenial
single_address: ${_param:stacklight_monitor_node02_address}
keepalived_vip_priority: 101
mysql_cluster_role: slave
stacklight_server_node03:
name: ${_param:stacklight_monitor_node03_hostname}
domain: ${_param:cluster_domain}
classes:
- service.galera.slave.cluster
- system.docker.swarm.manager
- cluster.${_param:cluster_name}.stacklight.server
params:
salt_master_host: ${_param:infra_config_deploy_address}
linux_system_codename: xenial
single_address: ${_param:stacklight_monitor_node03_address}
keepalived_vip_priority: 102
mysql_cluster_role: slave
opencontrail_control_node01:
name: ${_param:opencontrail_control_node01_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.opencontrail.control
params:
salt_master_host: ${_param:reclass_config_master}
linux_system_codename: ${_param:opencontrail_control_system_codename}
single_address: ${_param:opencontrail_control_node01_address}
keepalived_vip_priority: 103
opencontrail_database_id: 1
rabbitmq_cluster_role: master
opencontrail_control_node02:
name: ${_param:opencontrail_control_node02_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.opencontrail.control
params:
salt_master_host: ${_param:reclass_config_master}
linux_system_codename: ${_param:opencontrail_control_system_codename}
single_address: ${_param:opencontrail_control_node02_address}
keepalived_vip_priority: 102
opencontrail_database_id: 2
rabbitmq_cluster_role: slave
opencontrail_control_node03:
name: ${_param:opencontrail_control_node03_hostname}
domain: ${_param:cluster_domain}
classes:
- cluster.${_param:cluster_name}.opencontrail.control
params:
salt_master_host: ${_param:reclass_config_master}
linux_system_codename: ${_param:opencontrail_control_system_codename}
single_address: ${_param:opencontrail_control_node03_address}
keepalived_vip_priority: 101
opencontrail_database_id: 3
rabbitmq_cluster_role: slave