blob: 5cc907d4bca66d5fd0cfcff48240fe9475f09e3e [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
4#- system.openssh.server.team.cicd
5parameters:
6 _param:
7 # TODO: Uncomment next line "linux_system_user_sudo: true" during the deployment.
8 # Don't set it "false" before you configure sudo policies and enable power users.
9 # linux_system_user_sudo: true
azvyagintsev63205e72018-08-29 16:34:02 +030010 apt_mk_version: "testing"
Jiri Broulik361512c2018-04-05 16:34:23 +020011 linux_repo_refresh_db: true
12 infra_config_hostname: cfg01
13 salt_minion_ca_host: ${_param:infra_config_hostname}.${_param:cluster_domain}
14 # infra service addresses
15 infra_config_address: 127.0.0.1
16 infra_config_deploy_address: 127.0.0.1
17 cluster_domain: mcp-day01.local
18 cluster_name: mcp-day01
azvyagintsevb08a7cb2018-07-11 19:33:47 +030019 # Mirantis resolver
20 dns_server01: 172.18.208.44
21 dns_server02: 8.8.8.8
azvyagintsev263e57e2018-08-29 12:58:25 +030022 company_name: Mirantis
23 banner: |
24 =================================== WARNING ====================================
25 You have accessed a computer managed by ${_param:company_name}.
26 You are required to have authorisation from ${_param:company_name}
27 before you proceed and you are strictly limited to use set out within that
28 authorisation. Unauthorised access to or misuse of this system is prohibited
29 and constitutes an offence under the Computer Misuse Act 1990.
30 If you disclose any information obtained through this system without authority
31 ${_param:company_name} may take legal action against you.
32 ================================================================================
Jiri Broulik361512c2018-04-05 16:34:23 +020033 salt:
34 minion:
35 trusted_ca_minions:
36 - ${_param:salt_minion_ca_host}
37 linux:
38 system:
39 name: ${_param:infra_config_hostname}
40 domain: ${_param:cluster_domain}
41 purge_repos: True
42 service:
43 apt-daily.timer:
44 status: dead
45 user:
46 root:
47 password: false
azvyagintsev263e57e2018-08-29 12:58:25 +030048 banner:
49 enabled: true
50 contents: ${_param:banner}
51 motd:
azvyagintsev72cdcb42018-08-29 16:21:49 +030052 - banner: |
53 #!/bin/bash
azvyagintsev263e57e2018-08-29 12:58:25 +030054
55 cat << _EOF
56
57 ${_param:banner}_EOF
azvyagintsev72cdcb42018-08-29 16:21:49 +030058
azvyagintsev263e57e2018-08-29 12:58:25 +030059 [ -r /etc/image_version ] && . /etc/image_version
60 echo "Ubuntu 16.04 \"Xenial\" Mirantis day01 cloud image"
azvyagintsev72cdcb42018-08-29 16:21:49 +030061 echo "Build date: $BUILD_TIMESTAMP_RFC"
Jiri Broulik19cb3ec2018-04-11 13:20:58 +020062 package:
63 cloud-init:
64 version: latest
azvyagintsev32b7d992018-06-06 19:04:56 +030065 reclass:
66 version: latest
alexz48bef3f2018-04-16 12:01:45 +020067 jq:
68 version: latest
azvyagintsev3e1fa1b2018-07-30 16:45:19 +020069 # salt-formulas/reclass
70 python-netaddr:
71 version: latest
72 # salt-formulas/runtest
73 python-jsonpath-rw:
74 version: latest
azvyagintsev263e57e2018-08-29 12:58:25 +030075 openssh:
76 server:
77 banner: ${_param:banner}