]> gitweb.fluxo.info Git - puppet-apcupsd.git/commitdiff
Misc changes
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 3 Jan 2010 17:04:44 +0000 (15:04 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 3 Jan 2010 17:04:44 +0000 (15:04 -0200)
  - Added license on header.
  - Notifying apcupsd.
  - Adding ups name into config file.

manifests/init.pp
templates/apcupsd.conf.erb

index 660bda950cfc9e941f050ab4051ff9ef9c305776..703e95be0ec910e6f1d1f020c40a486e974ff66a 100644 (file)
@@ -1,3 +1,21 @@
+# This module is distributed under the GNU Affero General Public License:
+# 
+# Apcupsd module for puppet
+# Copyright (C) 2010 Sarava Group
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 class apcupsd {
   package { "apcupsd":
     ensure => installed,
@@ -27,6 +45,7 @@ class apcupsd {
       owner   => root,
       group   => root,
       mode    => 644,
+      notify  => Service["apcupsd"],
       require => File["/etc/apcupsd"],
       content => template('apcupsd/apcupsd.conf.erb'),
     }
@@ -36,6 +55,7 @@ class apcupsd {
       owner   => root,
       group   => root,
       mode    => 644,
+      notify  => Service["apcupsd"],
       content => template('apcupsd/default/apcupsd.erb'),
     }
 
index 1259c54d03fbddbcd0eeef94f23b51ab224f6daf..7fb24a03faf4a3f7465d7ca5eb807e335279e76d 100644 (file)
@@ -12,7 +12,7 @@
 #   Use this to give your UPS a name in log files and such. This
 #   is particulary useful if you have multiple UPSes. This does not
 #   set the EEPROM. It should be 8 characters or less.
-#UPSNAME
+UPSNAME <%= name %>
 
 # UPSCABLE <cable>
 #   Defines the type of cable connecting the UPS to your computer.