Created
October 2, 2013 12:15
-
-
Save bleach/6792791 to your computer and use it in GitHub Desktop.
Cowsay motd. cowsay must be installed on the puppetmaster
This file contains 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
<%= %x{/usr/games/cowsay -f #{cowfile} #{message}} %> |
This file contains 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
define songkick_utils::cowsay_motd ($message, $cowfile='default', $ensure='present') { | |
file { '/var/run/motd': | |
ensure => $ensure, | |
content => template('songkick_utils/cowsay_motd.erb'), | |
owner => root, | |
group => root, | |
mode => 0644, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment