I am trying to learn how to use puppet, following along with their Quick Start Guide.
I would like to add a time stamp using generate:
$timestamp = generate('/bin/date')
class helloworld::motd {
file { '/etc/motd':
owner => 'root',
group => 'root',
mode => '0644',
content => "Production puppetmaster is in control. Last run: ${timestamp}\n",
}
}
But the resulting motd file has no date/time:
Production puppetmaster is in control. Last run:
What am I doing wrong?