aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp2
-rw-r--r--manifests/ups.pp13
2 files changed, 15 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 76ef58d..cde0182 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -9,6 +9,7 @@ import "lsb.pp"
import "motd.pp"
import "sudo.pp"
import "sysctl.pp"
+import "ups.pp"
class nodo {
include lsb
@@ -73,6 +74,7 @@ class nodo::server inherits nodo {
include initramfs
include firewire
include sysctl
+ include ups
# DNS resolver
$resolvconf_domain = "$domain"
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',
+ }
+ }
+ }
+}