summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-03 18:59:38 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-03 18:59:38 -0200
commit48584c8cc51119c6b0dfbde767e34043e8aa080d (patch)
tree5142adb76397496603c19fbca5656fb9dae70a8e /manifests
parentda5ed6dea2abd2ae14345903df98a257777bf7b4 (diff)
downloadpuppet-apcupsd-48584c8cc51119c6b0dfbde767e34043e8aa080d.tar.gz
puppet-apcupsd-48584c8cc51119c6b0dfbde767e34043e8aa080d.tar.bz2
Renaming parameter 'type' to 'upstype'
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 703e95b..aca9a82 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -21,7 +21,7 @@ class apcupsd {
ensure => installed,
}
- define ups($type = 'apcsmart', $cable = 'smart', $device = '/dev/ttyS0', $ensure = 'present') {
+ define ups($upstype = 'apcsmart', $cable = 'smart', $device = '/dev/ttyS0', $ensure = 'present') {
$ups_configured = $ensure ? {
'present' => 'yes',
@@ -37,14 +37,14 @@ class apcupsd {
ensure => 'directory',
owner => 'root',
group => 'root',
- mode => 755,
+ mode => 0755,
}
file { "/etc/apcupsd/apcupsd.conf":
ensure => present,
owner => root,
group => root,
- mode => 644,
+ mode => 0644,
notify => Service["apcupsd"],
require => File["/etc/apcupsd"],
content => template('apcupsd/apcupsd.conf.erb'),
@@ -54,7 +54,7 @@ class apcupsd {
ensure => present,
owner => root,
group => root,
- mode => 644,
+ mode => 0644,
notify => Service["apcupsd"],
content => template('apcupsd/default/apcupsd.erb'),
}