blob: eccd87476dc436be95100231455f2b7df7233733 [file] [log] [blame]
Petr Michalec6463b432017-08-17 11:52:59 +02001classes:
azvyagintsev2859f0e2018-06-11 17:45:47 +03002- system.linux.system.repo.mcp.apt_mirantis.ubuntu
Petr Michalec56e329c2017-07-03 14:32:04 +02003- system.openssh.client.lab
Petr Michalec6463b432017-08-17 11:52:59 +02004- system.salt.master.single
Petr Michalec30e49052017-09-15 16:32:52 +02005- system.salt.master.git
Petr Michalec56e329c2017-07-03 14:32:04 +02006- system.salt.minion.ca.salt_master
7- system.salt.master.api
Petr Michalec56e329c2017-07-03 14:32:04 +02008- system.mysql.client
9- system.reclass.storage.salt
Petr Michalec6463b432017-08-17 11:52:59 +020010- system.reclass.storage.system.infra_idm_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020011- cluster.aaa-ha-freeipa.infra
12- cluster.aaa-ha-freeipa.aaa
13- cluster.aaa-ha-freeipa
Petr Michalec56e329c2017-07-03 14:32:04 +020014parameters:
15 _param:
Petr Michalec30e49052017-09-15 16:32:52 +020016 salt_master_base_environment: dev
Petr Michalec56e329c2017-07-03 14:32:04 +020017 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git"
18 reclass_data_revision: master
19 reclass_config_master: ${_param:infra_config_deploy_address}
20 single_address: ${_param:infra_config_address}
21 linux_system_codename: xenial
22 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
23 salt_master_host: 127.0.0.1
24 salt:
Petr Michalec30e49052017-09-15 16:32:52 +020025 #minion:
26 # source:
27 # engine: none
Petr Michalec56e329c2017-07-03 14:32:04 +020028 master:
Petr Michalec30e49052017-09-15 16:32:52 +020029 #source:
30 # # TEMP: avoid to install salt packages (as we preinstall development version)
31 # engine: none
Petr Michalec56e329c2017-07-03 14:32:04 +020032 reactor:
33 reclass/minion/classify:
34 - salt://reclass/reactor/node_register.sls
Petr Michalec30e49052017-09-15 16:32:52 +020035 environment:
36 dev:
37 formula:
38 salt:
39 #source: pkg
40 #name: salt-formula-salt
41 source: git
Petr Michaleccf0e1362017-10-06 09:02:18 +020042 address: 'https://github.com/salt-formulas/salt-formula-salt.git'
43 revision: 'master'
44 #address: 'https://github.com/epcim/salt-formula-salt.git'
45 #revision: 'review/petr_michalec/allow-multiple-ext-pillars-and-reclass-options'
Petr Michalece917a3e2017-09-06 17:37:00 +020046
Petr Michalec56e329c2017-07-03 14:32:04 +020047 reclass:
48 storage:
49 class_mapping:
50 common_node:
51 expression: all
52 node_param:
53 single_address:
Petr Michalec30e49052017-09-15 16:32:52 +020054 value_template: <<node_control_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020055 linux_system_codename:
56 value_template: <<node_os>>
57 salt_master_host:
58 value_template: <<node_master_ip>>
59 infra_config:
60 expression: <<node_hostname>>__startswith__cfg
61 cluster_param:
62 infra_config_address:
Petr Michalec30e49052017-09-15 16:32:52 +020063 value_template: <<node_control_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020064 infra_config_deploy_address:
Petr Michalec30e49052017-09-15 16:32:52 +020065 value_template: <<node_deploy_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020066 identity_control01:
67 expression: <<node_hostname>>__equals__idm01
68 cluster_param:
69 identity_control_node01_address:
Petr Michalec30e49052017-09-15 16:32:52 +020070 value_template: <<node_control_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020071 node_class:
72 value_template:
73 #- system.linux.system.repo.saltstack.rhel7
74 - cluster.<<node_cluster>>.aaa.freeipa_server
75 identity_control02:
76 expression: <<node_hostname>>__equals__idm02
77 cluster_param:
78 identity_control_node02_address:
Petr Michalec30e49052017-09-15 16:32:52 +020079 value_template: <<node_control_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020080 node_class:
81 value_template:
82 #- system.linux.system.repo.saltstack.rhel7
83 - cluster.<<node_cluster>>.aaa.freeipa_server
84 identity_control03:
85 expression: <<node_hostname>>__equals__idm03
86 cluster_param:
87 identity_control_node03_address:
Petr Michalec30e49052017-09-15 16:32:52 +020088 value_template: <<node_control_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020089 node_class:
90 value_template:
91 #- system.linux.system.repo.saltstack.rhel7
92 - cluster.<<node_cluster>>.aaa.freeipa_server
93 identity_client:
94 expression: <<node_hostname>>__startswith__tst
95 node_class:
96 value_template:
azvyagintsev2859f0e2018-06-11 17:45:47 +030097 - system.linux.system.repo.mcp.apt_mirantis.ubuntu
Petr Michalec56e329c2017-07-03 14:32:04 +020098 - cluster.<<node_cluster>>.aaa.freeipa_client