From 50ef593f65c5e02895b771604608423a0a227607 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 16 Apr 2013 15:52:39 +0200 Subject: [PATCH] chg: added in comments the lines needed for the client to use lxc made with ``mirror`` charm. --- precise/mirror/hooks/install | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/precise/mirror/hooks/install b/precise/mirror/hooks/install index 81246a34..d50ed380 100755 --- a/precise/mirror/hooks/install +++ b/precise/mirror/hooks/install @@ -33,6 +33,17 @@ rsync ALL=(root) NOPASSWD: /usr/bin/rsync --server -vlogDtprRze.iLsf --bwlimit=2 EOF +## on client: +#mkdir -p /var/lib/rsync + +#groupadd -r rsync +#useradd -r rsync -d /var/lib/rsync -g rsync + +#chown rsync:rsync /var/lib/rsync + +#su -c 'ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa -q' - rsync +## then you should copy /var/lib/rsync/.ssh/id_rsa.pub in the destination LXC's +## /var/lib/rsync/.ssh/authorized_keys, prefixed with: command="/usr/sbin/ssh-cmd-validate"