add banner info
Change-Id: I6ff18057ddbdae1e858c99921dbd6ca35179bfcd
diff --git a/classes/cluster/mcp-day01/infra/init.yml b/classes/cluster/mcp-day01/infra/init.yml
index 99a0c72..b309406 100644
--- a/classes/cluster/mcp-day01/infra/init.yml
+++ b/classes/cluster/mcp-day01/infra/init.yml
@@ -18,6 +18,17 @@
# Mirantis resolver
dns_server01: 172.18.208.44
dns_server02: 8.8.8.8
+ company_name: Mirantis
+ banner: |
+ =================================== WARNING ====================================
+ You have accessed a computer managed by ${_param:company_name}.
+ You are required to have authorisation from ${_param:company_name}
+ before you proceed and you are strictly limited to use set out within that
+ authorisation. Unauthorised access to or misuse of this system is prohibited
+ and constitutes an offence under the Computer Misuse Act 1990.
+ If you disclose any information obtained through this system without authority
+ ${_param:company_name} may take legal action against you.
+ ================================================================================
salt:
minion:
trusted_ca_minions:
@@ -33,6 +44,19 @@
user:
root:
password: false
+ banner:
+ enabled: true
+ contents: ${_param:banner}
+ motd:
+ - banner:
+ ${_param:char_number_sign}!/bin/bash
+
+ cat << _EOF
+
+ ${_param:banner}_EOF
+ [ -r /etc/image_version ] && . /etc/image_version
+ echo "Ubuntu 16.04 \"Xenial\" Mirantis day01 cloud image"
+ echo "Build date: ${BUILD_TIMESTAMP_RFC}"
package:
cloud-init:
version: latest
@@ -46,3 +70,6 @@
# salt-formulas/runtest
python-jsonpath-rw:
version: latest
+ openssh:
+ server:
+ banner: ${_param:banner}