diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-03 15:11:54 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-03 15:11:54 -0200 |
commit | 511d6a71ad01d75629bdd4ed5150d7cf41b20235 (patch) | |
tree | f78a8e7ac0df0ec4cf74732391de58f8e1f89977 /manifests/ups.pp | |
parent | f2a4c51c5368f18b4f34d46688fcaf0fe5c7cdf0 (diff) | |
download | puppet-nodo-511d6a71ad01d75629bdd4ed5150d7cf41b20235.tar.gz puppet-nodo-511d6a71ad01d75629bdd4ed5150d7cf41b20235.tar.bz2 |
Adding UPS configuration
Diffstat (limited to 'manifests/ups.pp')
-rw-r--r-- | manifests/ups.pp | 13 |
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', + } + } + } +} |