Added RDOC documentation to BackupPC module.
This commit is contained in:
parent
e1a4c4d99c
commit
8a2939448f
1 changed files with 19 additions and 0 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Reference in a new issue