aboutsummaryrefslogtreecommitdiff
path: root/manifests/ups.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/ups.pp')
-rw-r--r--manifests/ups.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/ups.pp b/manifests/ups.pp
new file mode 100644
index 0000000..8f7eaf7
--- /dev/null
+++ b/manifests/ups.pp
@@ -0,0 +1,13 @@
+class ups {
+ include apcupsd
+
+ case $has_ups {
+ true: {
+ apcupsd:ups { "ups0"
+ type => 'usb',
+ cable => 'usb',
+ device => '/dev/usb/hiddev0',
+ }
+ }
+ }
+}