Modified init.pp to support the version variables.
This commit is contained in:
parent
80f58785c7
commit
8a729c3e9f
1 changed files with 9 additions and 1 deletions
|
@ -1,9 +1,17 @@
|
|||
|
||||
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":
|
||||
ensure => present,
|
||||
source => "puppet:///files/packages/hastymail.tar.gz",
|
||||
source => "puppet:///files/packages/$hastymail_package",
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue