Last active
May 17, 2016 02:25
-
-
Save awaxa/fc38a532d0c05b66d349 to your computer and use it in GitHub Desktop.
motd.conf.erb examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Welcome to <%= @hostname %> | |
| Installed Java versions are: | |
| <% @java_versions.each do |version| -%> | |
| <%= version %> | |
| <% end -%> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'), | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Welcome to <%= @hostname %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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