blob: bd29e3604ed0ed06ecf4cc3ec461fa6d79737e20 [file] [log] [blame]
Petr Michalec6463b432017-08-17 11:52:59 +02001classes:
Petr Michalec56e329c2017-07-03 14:32:04 +02002- system.linux.system.repo.ubuntu
3- 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
42 address: 'https://github.com/epcim/salt-formula-salt.git'
43 revision: 'review/petr_michalec/allow-multiple-ext-pillars-and-reclass-options'
Petr Michalece917a3e2017-09-06 17:37:00 +020044
Petr Michalec56e329c2017-07-03 14:32:04 +020045 reclass:
46 storage:
47 class_mapping:
48 common_node:
49 expression: all
50 node_param:
51 single_address:
Petr Michalec30e49052017-09-15 16:32:52 +020052 value_template: <<node_control_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020053 linux_system_codename:
54 value_template: <<node_os>>
55 salt_master_host:
56 value_template: <<node_master_ip>>
57 infra_config:
58 expression: <<node_hostname>>__startswith__cfg
59 cluster_param:
60 infra_config_address:
Petr Michalec30e49052017-09-15 16:32:52 +020061 value_template: <<node_control_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020062 infra_config_deploy_address:
Petr Michalec30e49052017-09-15 16:32:52 +020063 value_template: <<node_deploy_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020064 identity_control01:
65 expression: <<node_hostname>>__equals__idm01
66 cluster_param:
67 identity_control_node01_address:
Petr Michalec30e49052017-09-15 16:32:52 +020068 value_template: <<node_control_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020069 node_class:
70 value_template:
71 #- system.linux.system.repo.saltstack.rhel7
72 - cluster.<<node_cluster>>.aaa.freeipa_server
73 identity_control02:
74 expression: <<node_hostname>>__equals__idm02
75 cluster_param:
76 identity_control_node02_address:
Petr Michalec30e49052017-09-15 16:32:52 +020077 value_template: <<node_control_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020078 node_class:
79 value_template:
80 #- system.linux.system.repo.saltstack.rhel7
81 - cluster.<<node_cluster>>.aaa.freeipa_server
82 identity_control03:
83 expression: <<node_hostname>>__equals__idm03
84 cluster_param:
85 identity_control_node03_address:
Petr Michalec30e49052017-09-15 16:32:52 +020086 value_template: <<node_control_ip>>
Petr Michalec56e329c2017-07-03 14:32:04 +020087 node_class:
88 value_template:
89 #- system.linux.system.repo.saltstack.rhel7
90 - cluster.<<node_cluster>>.aaa.freeipa_server
91 identity_client:
92 expression: <<node_hostname>>__startswith__tst
93 node_class:
94 value_template:
95 - system.linux.system.repo.ubuntu
96 - cluster.<<node_cluster>>.aaa.freeipa_client