blob: 68e743b0819b8340e09281835700e18b7e9c2947 [file] [log] [blame]
Adam Tenglerf4298762017-07-18 14:21:38 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
5- system.openssh.client.lab
6- system.salt.master.api
7- system.salt.master.pkg
8- system.reclass.storage.salt
9- system.salt.minion.ca.salt_master
10- system.salt.minion.cert.proxy
11- system.sphinx.server.doc.reclass
Adam Tengler85809272017-07-20 11:48:26 +000012- cluster.model_manager.model_manager.proxy
Adam Tenglerf4298762017-07-18 14:21:38 +020013- cluster.model_manager
14parameters:
15 _param:
16 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
17 reclass_data_revision: master
Adam Tengler85809272017-07-20 11:48:26 +000018 salt_master_environment_repository: "https://github.com/salt-formulas"
Adam Tenglerf4298762017-07-18 14:21:38 +020019 salt_master_environment_revision: master
20 reclass_config_master: ${_param:infra_config_deploy_address}
21 single_address: ${_param:infra_config_address}
22 salt_master_host: 127.0.0.1
23 salt_master_base_environment: prd
24 salt_minion_ca_host: ${linux:network:fqdn}
25 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
26 linux:
27 network:
28 interface:
29 ens4:
30 enabled: true
31 type: eth
32 proto: static
33 address: ${_param:single_address}
34 netmask: 255.255.255.0
35 salt:
36 master:
37 reactor:
38 reclass/minion/classify:
39 - salt://reclass/reactor/node_register.sls
Adam Tengler85809272017-07-20 11:48:26 +000040 environment:
41 prd:
42 formula:
43 model_manager:
44 source: git
45 address: '${_param:salt_master_environment_repository}/salt-formula-model-manager.git'
46 revision: ${_param:salt_master_environment_revision}
Adam Tenglerf4298762017-07-18 14:21:38 +020047 reclass:
48 storage:
49 class_mapping:
50 common_node:
51 expression: all
52 node_param:
53 single_address:
54 value_template: <<node_control_ip>>
55 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:
63 value_template: <<node_control_ip>>
64 infra_config_deploy_address:
65 value_template: <<node_deploy_ip>>
66 cluster_domain:
67 value_template: <<node_domain>>
68 model_manager:
69 expression: <<node_hostname>>__startswith__web
70 node_class:
71 value_template:
72 - cluster.<<node_cluster>>.model_manager.dashboard
Adam Tengler85809272017-07-20 11:48:26 +000073 model_manager_node00:
74 expression: <<node_hostname>>__equals__web0
75 cluster_param:
76 model_manager_node00_address:
77 value_template:
78 - <<node_control_ip>>
Adam Tenglerf4298762017-07-18 14:21:38 +020079