Skip to content

Instantly share code, notes, and snippets.

@awaxa
Last active May 17, 2016 02:25
Show Gist options
  • Save awaxa/fc38a532d0c05b66d349 to your computer and use it in GitHub Desktop.
Save awaxa/fc38a532d0c05b66d349 to your computer and use it in GitHub Desktop.
motd.conf.erb examples
Welcome to <%= @hostname %>
Installed Java versions are:
<% @java_versions.each do |version| -%>
<%= version %>
<% end -%>
class motd {
$hostname = $::hostname
$java_versions = [ '1.6', '1.7' ]
file { '/etc/motd':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
content => template('motd/motd.erb'),
}
}
Welcome to <%= @hostname %>
class motd {
$hostname = $::hostname
file { '/etc/motd':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
content => template('motd/motd.erb'),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment