Skip to content

Commit

Permalink
[re-]add[?] class smart $service_name param
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Sep 14, 2013
1 parent 4c0ef6e commit 09fb9d8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@
class smartd (
$ensure = 'present',
$package_name = $smartd::params::package_name,
$config_file = $smartd::params::config_file,
$service_name = $smartd::params::service_name,
$service_ensure = $smartd::params::service_ensure,
$config_file = $smartd::params::config_file,
$devicescan = $smartd::params::devicescan,
$devicescan_options = $smartd::params::devicescan_options,
$devices = $smartd::params::devices,
Expand All @@ -114,8 +115,9 @@
) inherits smartd::params {
validate_re($ensure, '^present$|^latest$|^absent$|^purged$')
validate_string($package_name)
validate_string($config_file)
validate_string($service_name)
validate_re($service_ensure, '^running$|^stopped$')
validate_string($config_file)
validate_bool($devicescan)
validate_string($devicescan_options)
validate_array($devices)
Expand Down Expand Up @@ -146,7 +148,7 @@
ensure => $pkg_ensure,
}

service {$service_name:
service { $service_name:
ensure => $svc_ensure,
enable => $svc_enable,
hasrestart => true,
Expand Down

0 comments on commit 09fb9d8

Please sign in to comment.