Modified init.pp to support the version variables.

This commit is contained in:
Lari Huttunen 2012-01-16 12:07:42 +00:00
parent 80f58785c7
commit 8a729c3e9f

View file

@ -1,9 +1,17 @@
class hastymail { class hastymail {
if !$hastymail_package {
if $hastymail_package_latest {
$hastymail_package = $hastymail_package_latest
} else {
fail("Must define \$hastymail_package or \$hastymail_package_latest")
}
}
file { "/usr/local/src/hastymail.tar.gz": file { "/usr/local/src/hastymail.tar.gz":
ensure => present, ensure => present,
source => "puppet:///files/packages/hastymail.tar.gz", source => "puppet:///files/packages/$hastymail_package",
mode => 0644, mode => 0644,
owner => root, owner => root,
group => root, group => root,