1
0
mirror of https://github.com/Adam-Ant/puppet-motd synced 2024-07-06 05:36:13 +00:00
puppet-motd/manifests/init.pp
2018-02-22 15:05:43 +00:00

32 lines
509 B
Puppet

# 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 = {
'ascii' => generate('/bin/sh', '-c', "/usr/bin/figlet -cw 60 ${$facts['hostname']}"),
}
file { '/etc/motd':
content => epp('motd/motd.epp', $motd_hash),
}
}