fix motd
Change-Id: I93a911a9d58f9ad6cd3389280df586df460d1f34
diff --git a/classes/cluster/mcp-day01/infra/init.yml b/classes/cluster/mcp-day01/infra/init.yml
index b309406..1bcfb47 100644
--- a/classes/cluster/mcp-day01/infra/init.yml
+++ b/classes/cluster/mcp-day01/infra/init.yml
@@ -48,15 +48,16 @@
enabled: true
contents: ${_param:banner}
motd:
- - banner:
- ${_param:char_number_sign}!/bin/bash
+ - banner: |
+ #!/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}"
+ echo "Build date: $BUILD_TIMESTAMP_RFC"
package:
cloud-init:
version: latest