blob: e7c04f72950ac0f7462b296d674b296d9effd2cc [file] [log] [blame]
classes:
- service.git.client
- system.linux.system.single
- system.linux.system.single.debian
- system.linux.system.repo.mcp.apt_mirantis.saltstack
- system.linux.system.repo.mcp.apt_mirantis.openstack
- system.linux.system.repo_local.mcp.salt
- system.linux.system.repo.mcp.apt_mirantis.extra
- system.linux.system.repo.mcp.apt_mirantis.ubuntu
- system.linux.system.repo.mcp.apt_mirantis.glusterfs
- system.glusterfs.client.cluster
- system.glusterfs.client.volume.salt_pki
- system.salt.master.pkg
- system.salt.master.api
- system.salt.master.formula.pkg.gnocchi
- system.salt.master.formula.pkg.panko
- system.salt.minion.ca.salt_master
- system.salt.minion.cert.proxy
- system.keystone.client.single
- system.keystone.client.service.nova21
- system.keystone.client.service.nova-placement
- system.keystone.client.service.cinder3
- system.keystone.client.service.designate
- system.keystone.client.service.aodh
- system.keystone.client.service.ceilometer
- system.keystone.client.service.panko
- system.keystone.client.service.gnocchi
- system.gnocchi.client
- system.gnocchi.client.v1.archive_policy.default
- system.reclass.storage.salt
- system.reclass.storage.system.openstack_dns_cluster
- system.reclass.storage.system.openstack_control_cluster
- system.reclass.storage.system.openstack_compute_multi
- system.reclass.storage.system.openstack_gateway_single
- system.reclass.storage.system.openstack_dashboard_single
- system.reclass.storage.system.openstack_telemetry_cluster
- system.reclass.storage.system.cicd_control_cluster
- service.jenkins.client
- system.jenkins.client.credential.salt
- system.jenkins.client.job.deploy.openstack
- cluster.virtual-offline-pike-ovs-dpdk.infra
- cluster.virtual-offline-pike-ovs-dpdk.infra.runtest
- cluster.virtual-offline-pike-ovs-dpdk.infra.backup.client_common
parameters:
_param:
reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
reclass_data_revision: master
salt_master_environment_repository: "https://github.com/tcpcloud"
salt_master_environment_revision: master
reclass_config_master: 192.168.10.90
single_address: 172.16.10.100
salt_master_host: 127.0.0.1
salt_master_base_environment: prd
salt_minion_ca_host: cfg01.${_param:cluster_domain}
jenkins_git_url: 'git@cfg01:/home/repo'
jenkins_gerrit_url: ${_param:jenkins_git_url}
salt_api_password: 'hovno12345!'
jenkins_salt_api_url: "http://${_param:salt_master_host}:6969"
jenkins_pipeline_library_url: git@cfg01:/home/repo/mcp-ci/pipeline-library
salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
linux:
network:
interface:
ens4:
enabled: true
type: eth
proto: static
address: ${_param:single_address}
netmask: 255.255.255.0
jenkins:
client:
lib:
pipeline-library:
url: ${_param:jenkins_pipeline_library_url}
branch: ${_param:jenkins_pipelines_branch}
master:
host: ${_param:salt_master_host}
port: 8081
password: r00tme
globalenvprop:
OFFLINE_DEPLOYMENT:
value: "true"
salt:
master:
backup: true
initial_data:
engine: backupninja
source: ctl03
home_dir: /srv/volumes/backup/backupninja
host: cfg01.virtual-offline-pike-ovs-dpdk
reactor:
reclass/minion/classify:
- salt://reclass/reactor/node_register.sls
minion:
backup: true
initial_data:
engine: backupninja
source: ctl03
home_dir: /srv/volumes/backup/backupninja
host: cfg01.virtual-offline-pike-ovs-dpdk
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>>
openstack_control01:
expression: <<node_hostname>>__equals__ctl01
cluster_param:
openstack_control_node01_address:
value_template: <<node_control_ip>>
openstack_control02:
expression: <<node_hostname>>__equals__ctl02
cluster_param:
openstack_control_node02_address:
value_template: <<node_control_ip>>
openstack_control03:
expression: <<node_hostname>>__equals__ctl03
cluster_param:
openstack_control_node03_address:
value_template: <<node_control_ip>>
openstack_compute:
expression: <<node_hostname>>__startswith__cmp
node_class:
value_template:
- cluster.<<node_cluster>>.openstack.compute
node_param:
tenant_address:
value_template: <<node_tenant_ip>>
external_address:
value_template: <<node_external_ip>>
openstack_gateway:
expression: <<node_hostname>>__startswith__gtw
node_class:
value_template:
- cluster.<<node_cluster>>.openstack.gateway
node_param:
tenant_address:
value_template: <<node_tenant_ip>>
external_address:
value_template: <<node_external_ip>>
cluster_param:
openstack_gateway_node01_address:
value_template: <<node_control_ip>>
openstack_dns01:
expression: <<node_hostname>>__equals__dns01
cluster_param:
openstack_dns_node01_address:
value_template: <<node_control_ip>>
openstack_dns02:
expression: <<node_hostname>>__equals__dns02
cluster_param:
openstack_dns_node02_address:
value_template: <<node_control_ip>>
openstack_dashboard:
expression: <<node_hostname>>__startswith__prx
node_class:
value_template:
- cluster.<<node_cluster>>.openstack.dashboard
- cluster.<<node_cluster>>.openstack.proxy
cluster_param:
openstack_proxy_node01_address:
value_template: <<node_control_ip>>
openstack_telemetry01:
expression: <<node_hostname>>__equals__mdb01
cluster_param:
openstack_telemetry_node01_address:
value_template: <<node_control_ip>>
openstack_telemetry02:
expression: <<node_hostname>>__equals__mdb02
cluster_param:
openstack_telemetry_node02_address:
value_template: <<node_control_ip>>
openstack_telemetry03:
expression: <<node_hostname>>__equals__mdb03
cluster_param:
openstack_telemetry_node03_address:
value_template: <<node_control_ip>>
cicd_control_node01:
expression: <<node_hostname>>__equals__cid01
cluster_param:
cicd_control_node01_address:
value_template: <<node_control_ip>>
cicd_control_node02:
expression: <<node_hostname>>__equals__cid02
cluster_param:
cicd_control_node02_address:
value_template: <<node_control_ip>>
cicd_control_node03:
expression: <<node_hostname>>__equals__cid03
cluster_param:
cicd_control_node03_address:
value_template: <<node_control_ip>>
node:
openstack_control_node01:
classes:
- cluster.virtual-offline-pike-ovs-dpdk.infra.backup.client_mysql
- service.galera.master.cluster
params:
mysql_cluster_role: master
linux_system_codename: xenial
openstack_control_node02:
classes:
- service.galera.slave.cluster
params:
mysql_cluster_role: slave
linux_system_codename: xenial
openstack_control_node03:
classes:
- cluster.virtual-offline-pike-ovs-dpdk.infra.backup.server
- service.galera.slave.cluster
params:
mysql_cluster_role: slave
linux_system_codename: xenial
openstack_compute_node01:
params:
dpdk0_name: ens5
dpdk0_pci: '"0000:00:05.0"'
single_address: 172.16.10.105
tenant_address: 10.1.0.105
external_address: 10.16.0.105
openstack_compute_node02:
params:
dpdk0_name: ens5
dpdk0_pci: '"0000:00:05.0"'
single_address: 172.16.10.106
tenant_address: 10.1.0.106
external_address: 10.16.0.106
openstack_gateway_node01:
params:
tenant_address: 10.1.0.110
external_address: 10.16.0.110
openstack_proxy_node01:
classes:
- cluster.virtual-offline-pike-ovs-dpdk.openstack.proxy
params:
linux_system_codename: xenial
openstack_telemetry_node01:
params:
# create resources only from 1 controller
# to prevent race conditions
ceilometer_create_gnocchi_resources: true
redis_cluster_role: 'master'
openstack_telemetry_node02:
params:
redis_cluster_role: 'slave'
openstack_telemetry_node03:
params:
redis_cluster_role: 'slave'