From 8a2939448fa3bb6b10899ae6251718e010d502cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Mon, 14 Sep 2009 07:40:37 +0300 Subject: [PATCH] Added RDOC documentation to BackupPC module. --- backuppc/manifests/init.pp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/backuppc/manifests/init.pp b/backuppc/manifests/init.pp index b452a79..5e784b3 100644 --- a/backuppc/manifests/init.pp +++ b/backuppc/manifests/init.pp @@ -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":