Skip to content

Commit

Permalink
add param $devicescan_options to class smartd
Browse files Browse the repository at this point in the history
used to pass arguments to the DEVICESCAN directive in smartd configuration file
  • Loading branch information
Joshua Hoblitt committed Apr 25, 2013
1 parent 51b6a10 commit 89c55ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions manifests/defaults.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
$mail_to = 'root'
$schedule = 'daily' # other choices: once, diminishing
$enable_monit = false
$devicescan_options = false

case $::osfamily {
'FreeBSD': {
Expand Down
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
$mail_to = $smartd::defaults::mail_to,
$schedule = $smartd::defaults::schedule,
$enable_monit = $smartd::defaults::enable_monit,
$devicescan_options = $smartd::defaults::devicescan_options,
) inherits smartd::defaults {
case $ensure {
'present': {
Expand Down
2 changes: 1 addition & 1 deletion templates/smartd.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Managed by Puppet -- do not edit!
DEFAULT -m <%= @mail_to %> -M <%= @schedule %>
<% if @scan -%>
DEVICESCAN
DEVICESCAN <% if @devicescan_options %><%= @devicescan_options %><% end %>
<% end -%>
<% @devices.each do |device| -%>
<%= device -%>
Expand Down

0 comments on commit 89c55ce

Please sign in to comment.