Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Set installable package to latest so it can be upgraded automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysius committed May 23, 2014
1 parent 55f1595 commit b02b838
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
if $use_repository == true {
# If the package is on an external repo, install it normally.
package { $package:
ensure => installed,
ensure => latest,
}
}
elsif $use_repository == false {
Expand All @@ -51,7 +51,7 @@
source => "puppet:///modules/pbis/${package}.${package_file_suffix}",
}
package { $package:
ensure => installed,
ensure => latest,
source => "/opt/${package}.${package_file_suffix}",
provider => $package_file_provider,
require => $require_for_package
Expand All @@ -63,7 +63,7 @@
source => "puppet:///modules/pbis/${package_prerequired}.${package_file_suffix}",
}
package { $package_prerequired:
ensure => installed,
ensure => latest,
source => "/opt/${package_prerequired}.${package_file_suffix}",
provider => $package_file_provider,
require => File["/opt/${package_prerequired}.${package_file_suffix}"],
Expand Down

0 comments on commit b02b838

Please sign in to comment.