Added RDOC documentation to BackupPC module.

This commit is contained in:
Timo Mkinen 2009-09-14 07:40:37 +03:00
parent e1a4c4d99c
commit 8a2939448f

View file

@ -1,4 +1,19 @@
# Add client into BackupPC server
#
# === Parameters
#
# $name:
# Client hostname
#
# $ensure:
# If set to present client will be added and if absent
# it will be removed from server.
#
# $operatingsystem:
# Operatingsystem of client. Used to find correct client
# configuration. Defaults to "default".
#
define backuppc::manualclient($ensure = "present", $operatingsystem = "default") {
@@file { "/etc/BackupPC/pc/${name}.pl":
@ -17,6 +32,8 @@ define backuppc::manualclient($ensure = "present", $operatingsystem = "default")
}
# Install host into BackupPC server as client.
#
class backuppc::client {
backuppc::manualclient { "${fqdn}":
@ -26,6 +43,8 @@ class backuppc::client {
}
# Install BackupPC server and add defined clients.
#
class backuppc::server {
package { "BackupPC":