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":