summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Filion <lelutin@gmail.com>2012-04-13 02:19:05 -0400
committerGabriel Filion <lelutin@gmail.com>2012-04-13 02:19:05 -0400
commit917274dc6ba44ae114d16da5e1fa1e3701ac0b87 (patch)
treed2cf6103a62a9f968472110e14160c3885b01f32
parentedd53ae0e92e728c646faed80ce4eec46d92b588 (diff)
downloadpuppet-smartmontools-917274dc6ba44ae114d16da5e1fa1e3701ac0b87.tar.gz
puppet-smartmontools-917274dc6ba44ae114d16da5e1fa1e3701ac0b87.tar.bz2
Ensure package is installed before installing "default" file
There's currently no link that forces puppet to install the package before placing the file /etc/default/smartmontools. This leads to errors in the package's install process.
-rw-r--r--manifests/init.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8bafa95..d8ce756 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -48,8 +48,9 @@ class smartmontools {
owner => root,
group => root,
mode => 0644,
- notify => Service["smartmontools"],
+ notify => Service['smartmontools'],
source => "puppet://$server/modules/smartmontools/default/smartmontools",
+ require => Package['smartmontools'],
}
service { "smartmontools":