Skip to content

Commit

Permalink
trivial ws consistency fixes`
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Sep 14, 2013
1 parent a068b7a commit 4c8828e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@
'$warning_schedule must be either daily, once, or diminishing.')

case $ensure {
'present','latest': {
'present', 'latest': {
$pkg_ensure = $ensure
$svc_ensure = $service_ensure
$svc_enable = $service_ensure ? { 'running' => true, 'stopped' => false }
$file_ensure = 'present'
}
'absent','purged': {
'absent', 'purged': {
$pkg_ensure = $ensure
$svc_ensure = 'stopped'
$svc_enable = false
Expand All @@ -145,7 +145,7 @@
}
}

package {$package_name:
package { $package_name:
ensure => $pkg_ensure,
}

Expand All @@ -158,7 +158,7 @@

Package[$package_name] -> Service[$service_name]

file {$config_file:
file { $config_file:
ensure => $file_ensure,
owner => root,
group => 0,
Expand All @@ -171,7 +171,7 @@
# Special sauce for Debian where it's not enough for the rc script
# to be enabled, it also needs its own extra special config file.
if $::osfamily == 'Debian' {
shell_config {'start_smartd':
shell_config { 'start_smartd':
ensure => $file_ensure,
file => '/etc/default/smartmontools',
key => 'start_smartd',
Expand Down
4 changes: 3 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
'Debian', 'RedHat': {
$config_file = '/etc/smartd.conf'
}
default: { fail("smartd: unsupported OS family ${::osfamily}}") }
default: {
fail("smartd: unsupported OS family ${::osfamily}}")
}
}
}

0 comments on commit 4c8828e

Please sign in to comment.