blob: a75c79f3abaa65d89b643a687460b7867f9c506d [file] [log] [blame]
Jiri Broulik361512c2018-04-05 16:34:23 +02001classes:
Ivan Berezovskiy686399a2018-10-10 16:26:41 +04002- system.defaults
Jiri Broulik361512c2018-04-05 16:34:23 +02003- system.linux.system.single.debian
Jiri Broulik361512c2018-04-05 16:34:23 +02004parameters:
5 _param:
6 # TODO: Uncomment next line "linux_system_user_sudo: true" during the deployment.
7 # Don't set it "false" before you configure sudo policies and enable power users.
8 # linux_system_user_sudo: true
azvyagintsev4c536e62018-10-17 19:45:50 +03009 apt_mk_version: "proposed"
Jiri Broulik361512c2018-04-05 16:34:23 +020010 linux_repo_refresh_db: true
11 infra_config_hostname: cfg01
12 salt_minion_ca_host: ${_param:infra_config_hostname}.${_param:cluster_domain}
13 # infra service addresses
14 infra_config_address: 127.0.0.1
15 infra_config_deploy_address: 127.0.0.1
16 cluster_domain: mcp-day01.local
17 cluster_name: mcp-day01
azvyagintsevb08a7cb2018-07-11 19:33:47 +030018 # Mirantis resolver
19 dns_server01: 172.18.208.44
20 dns_server02: 8.8.8.8
azvyagintsev263e57e2018-08-29 12:58:25 +030021 company_name: Mirantis
22 banner: |
23 =================================== WARNING ====================================
24 You have accessed a computer managed by ${_param:company_name}.
25 You are required to have authorisation from ${_param:company_name}
26 before you proceed and you are strictly limited to use set out within that
27 authorisation. Unauthorised access to or misuse of this system is prohibited
28 and constitutes an offence under the Computer Misuse Act 1990.
29 If you disclose any information obtained through this system without authority
30 ${_param:company_name} may take legal action against you.
31 ================================================================================
Jiri Broulik361512c2018-04-05 16:34:23 +020032 salt:
33 minion:
34 trusted_ca_minions:
35 - ${_param:salt_minion_ca_host}
36 linux:
37 system:
38 name: ${_param:infra_config_hostname}
39 domain: ${_param:cluster_domain}
40 purge_repos: True
41 service:
42 apt-daily.timer:
43 status: dead
44 user:
45 root:
46 password: false
azvyagintsev263e57e2018-08-29 12:58:25 +030047 banner:
48 enabled: true
49 contents: ${_param:banner}
50 motd:
azvyagintsev72cdcb42018-08-29 16:21:49 +030051 - banner: |
52 #!/bin/bash
azvyagintsev263e57e2018-08-29 12:58:25 +030053
54 cat << _EOF
55
56 ${_param:banner}_EOF
azvyagintsev72cdcb42018-08-29 16:21:49 +030057
azvyagintsev263e57e2018-08-29 12:58:25 +030058 [ -r /etc/image_version ] && . /etc/image_version
59 echo "Ubuntu 16.04 \"Xenial\" Mirantis day01 cloud image"
azvyagintsev72cdcb42018-08-29 16:21:49 +030060 echo "Build date: $BUILD_TIMESTAMP_RFC"
Jiri Broulik19cb3ec2018-04-11 13:20:58 +020061 package:
62 cloud-init:
63 version: latest
azvyagintsev32b7d992018-06-06 19:04:56 +030064 reclass:
65 version: latest
alexz48bef3f2018-04-16 12:01:45 +020066 jq:
67 version: latest
azvyagintsev3e1fa1b2018-07-30 16:45:19 +020068 # salt-formulas/reclass
69 python-netaddr:
70 version: latest
71 # salt-formulas/runtest
72 python-jsonpath-rw:
73 version: latest
azvyagintsev263e57e2018-08-29 12:58:25 +030074 openssh:
75 server:
76 banner: ${_param:banner}