From a85fa34e9f3ba40bb4adbe1c1889ecc692922b27 Mon Sep 17 00:00:00 2001 From: Michel Blockelet Date: Tue, 24 Jun 2008 05:18:52 +0200 Subject: [PATCH] Ajout rsync dans bcfg2 Ajout de rsync dans bcfg2 pour les "clients" du backup (ce sont en fait des serveurs) Par ailleurs, deplacement de rsyncd.secrets dans /etc/crans/secrets. darcs-hash:20080624031852-ddb99-67811651a7cd4a0c1e73c43f3cc67bfc6c49074d.gz --- Bundler/rsync-client.xml | 6 ++++ Cfg/etc/default/rsync/info.xml | 3 ++ Cfg/etc/default/rsync/rsync | 36 +++++++++++++++++++++++ Metadata/groups.xml | 3 +- Python/etc/rsyncd.conf | 54 ++++++++++++++++++++++++++++++++++ Rules/rules.xml | 2 ++ 6 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 Bundler/rsync-client.xml create mode 100644 Cfg/etc/default/rsync/info.xml create mode 100644 Cfg/etc/default/rsync/rsync create mode 100644 Python/etc/rsyncd.conf diff --git a/Bundler/rsync-client.xml b/Bundler/rsync-client.xml new file mode 100644 index 0000000..887abf5 --- /dev/null +++ b/Bundler/rsync-client.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/Cfg/etc/default/rsync/info.xml b/Cfg/etc/default/rsync/info.xml new file mode 100644 index 0000000..28fd470 --- /dev/null +++ b/Cfg/etc/default/rsync/info.xml @@ -0,0 +1,3 @@ + + + diff --git a/Cfg/etc/default/rsync/rsync b/Cfg/etc/default/rsync/rsync new file mode 100644 index 0000000..6385ee4 --- /dev/null +++ b/Cfg/etc/default/rsync/rsync @@ -0,0 +1,36 @@ +# Fichier gere par BCfg2 (plugin Cfg) +# +# A ne modifier que sur vert + +# defaults file for rsync daemon mode + +# start rsync in daemon mode from init.d script? +# only allowed values are "true", "false", and "inetd" +# Use "inetd" if you want to start the rsyncd from inetd, +# all this does is prevent the init.d script from printing a message +# about not starting rsyncd (you still need to modify inetd's config yourself). +RSYNC_ENABLE=true + +# which file should be used as the configuration file for rsync. +# This file is used instead of the default /etc/rsyncd.conf +# Warning: This option has no effect if the daemon is accessed +# using a remote shell. When using a different file for +# rsync you might want to symlink /etc/rsyncd.conf to +# that file. +# RSYNC_CONFIG_FILE= + +# what extra options to give rsync --daemon? +# that excludes the --daemon; that's always done in the init.d script +# Possibilities are: +# --address=123.45.67.89 (bind to a specific IP address) +# --port=8730 (bind to specified port; default 873) +RSYNC_OPTS='' + +# run rsyncd at a nice level? +# the rsync daemon can impact performance due to much I/O and CPU usage, +# so you may want to run it at a nicer priority than the default priority. +# Allowed values are 0 - 19 inclusive; 10 is a reasonable value. +RSYNC_NICE='' + +# Don't forget to create an appropriate config file, +# else the daemon will not start. diff --git a/Metadata/groups.xml b/Metadata/groups.xml index 5fb7117..d7a7a76 100644 --- a/Metadata/groups.xml +++ b/Metadata/groups.xml @@ -163,6 +163,7 @@ + - + + +