Skip to content

Commit

Permalink
Allow the service to start only after the package is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloconnor committed Jun 25, 2014
1 parent 41b6cbc commit db01583
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 db01583

Please sign in to comment.