1
0
mirror of https://github.com/Adam-Ant/puppet-motd synced 2024-10-05 04:03:52 +00:00
puppet-motd/manifests/init.pp

32 lines
509 B
ObjectPascal
Raw Normal View History

2018-02-20 20:58:41 +00:00
# Class: motd
# ===========================
#
# Install a standardized motd across all your nodes.
#
#
# Examples
# --------
#
# @example
# include ::motd
#
# Authors
# -------
#
# Adam Dodman <hello@adam-ant.co.uk>
#
# Copyright
# ---------
#
# Copyright 2018 Adam Dodman, unless otherwise noted.
#
class motd {
$motd_hash = {
2018-02-22 15:05:43 +00:00
'ascii' => generate('/bin/sh', '-c', "/usr/bin/figlet -cw 60 ${$facts['hostname']}"),
2018-02-20 20:58:41 +00:00
}
file { '/etc/motd':
content => epp('motd/motd.epp', $motd_hash),
}
}