Skip to content

Commit

Permalink
Merge pull request jhoblitt#33 from pauloconnor/after_package
Browse files Browse the repository at this point in the history
Allow the service to start only after the package is installed
  • Loading branch information
Joshua Hoblitt committed Jun 27, 2014
2 parents 41b6cbc + db01583 commit 962c878
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,12 @@
# to be enabled, it also needs its own extra special config file.
if $::osfamily == 'Debian' {
shell_config { 'start_smartd':
ensure => $file_ensure,
file => '/etc/default/smartmontools',
key => 'start_smartd',
value => 'yes',
before => Service[$service_name],
ensure => $file_ensure,
file => '/etc/default/smartmontools',
key => 'start_smartd',
value => 'yes',
before => Service[$service_name],
require => Package[$package_name],
}
}

Expand Down

0 comments on commit 962c878

Please sign in to comment.