blob: 70e3c0775348c2c36914ebd659b74649909b7482 [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 Michalec56e329c2017-07-03 14:32:04 +02005- system.salt.master.pkg
6- 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
11- cluster.aaa_ha_freeipa.infra
12- cluster.aaa_ha_freeipa.aaa
Petr Michalec56e329c2017-07-03 14:32:04 +020013- cluster.aaa_ha_freeipa
14parameters:
15 _param:
16 salt_master_base_environment: prd
17 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:
25 master:
Petr Michalec6463b432017-08-17 11:52:59 +020026 enabled: true
Petr Michalec56e329c2017-07-03 14:32:04 +020027 reactor:
28 reclass/minion/classify:
29 - salt://reclass/reactor/node_register.sls
30 reclass:
31 storage:
32 class_mapping:
33 common_node:
34 expression: all
35 node_param:
36 single_address:
37 value_template: <<node_ip>>
38 linux_system_codename:
39 value_template: <<node_os>>
40 salt_master_host:
41 value_template: <<node_master_ip>>
42 infra_config:
43 expression: <<node_hostname>>__startswith__cfg
44 cluster_param:
45 infra_config_address:
46 value_template: <<node_ip>>
47 infra_config_deploy_address:
48 value_template: <<node_ip>>
49 identity_control01:
50 expression: <<node_hostname>>__equals__idm01
51 cluster_param:
52 identity_control_node01_address:
53 value_template: <<node_ip>>
54 node_class:
55 value_template:
56 #- system.linux.system.repo.saltstack.rhel7
57 - cluster.<<node_cluster>>.aaa.freeipa_server
58 identity_control02:
59 expression: <<node_hostname>>__equals__idm02
60 cluster_param:
61 identity_control_node02_address:
62 value_template: <<node_ip>>
63 node_class:
64 value_template:
65 #- system.linux.system.repo.saltstack.rhel7
66 - cluster.<<node_cluster>>.aaa.freeipa_server
67 identity_control03:
68 expression: <<node_hostname>>__equals__idm03
69 cluster_param:
70 identity_control_node03_address:
71 value_template: <<node_ip>>
72 node_class:
73 value_template:
74 #- system.linux.system.repo.saltstack.rhel7
75 - cluster.<<node_cluster>>.aaa.freeipa_server
76 identity_client:
77 expression: <<node_hostname>>__startswith__tst
78 node_class:
79 value_template:
80 - system.linux.system.repo.ubuntu
81 - cluster.<<node_cluster>>.aaa.freeipa_client