diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-03 15:04:44 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-03 15:04:44 -0200 |
commit | da5ed6dea2abd2ae14345903df98a257777bf7b4 (patch) | |
tree | 82804a2a1019ac188a136a839d6ce514278e51f1 /manifests | |
parent | f1556ba8635f60d677dc64d2c765b679a5bf0758 (diff) | |
download | puppet-apcupsd-da5ed6dea2abd2ae14345903df98a257777bf7b4.tar.gz puppet-apcupsd-da5ed6dea2abd2ae14345903df98a257777bf7b4.tar.bz2 |
Misc changes
- Added license on header.
- Notifying apcupsd.
- Adding ups name into config file.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 660bda9..703e95b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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'), } |