Puppet Class: badstation::motd
- Defined in:
- manifests/motd.pp
Overview
Simply mark when provisioning last occured in the motd.
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'manifests/motd.pp', line 3
class badstation::motd {
# TODO: Set this to run last?
# Generate the timestamp of this run.
$timestamp = generate('/bin/date', '+%Y%d%m_%H:%M:%S')
# Insert that timestamp into the system MOTD.
file { '/etc/motd':
content => "PROVISIONING TIMESTAMP: ${timestamp}",
owner => 0,
group => 0,
mode => 0644,
}
}
|