From b1edba08e2b00172462862288e86de2f1f5e23e1 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 17 Mar 2012 17:20:07 +0000 Subject: split client and mirror out of the main subversion module file --- modules/subversion/manifests/client.pp | 13 +++++++++++++ modules/subversion/manifests/init.pp | 20 -------------------- modules/subversion/manifests/mirror.pp | 6 ++++++ 3 files changed, 19 insertions(+), 20 deletions(-) create mode 100644 modules/subversion/manifests/client.pp create mode 100644 modules/subversion/manifests/mirror.pp (limited to 'modules') diff --git a/modules/subversion/manifests/client.pp b/modules/subversion/manifests/client.pp new file mode 100644 index 00000000..a2aa42ee --- /dev/null +++ b/modules/subversion/manifests/client.pp @@ -0,0 +1,13 @@ +class subversion::client { + # svn spam log with + # Oct 26 13:30:01 valstar svn: No worthy mechs found + # without it, + # http://mail-index.netbsd.org/pkgsrc-users/2008/11/23/msg008706.html + # + $sasl2_package = $::architecture ? { + x86_64 => 'lib64sasl2-plug-anonymous', + default => 'libsasl2-plug-anonymous' + } + + package { ['subversion', $sasl2_package]: } +} diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp index b70fdb2e..9ddfeb80 100644 --- a/modules/subversion/manifests/init.pp +++ b/modules/subversion/manifests/init.pp @@ -239,19 +239,6 @@ class subversion { } - class client { - # svn spam log with - # Oct 26 13:30:01 valstar svn: No worthy mechs found - # without it, source http://mail-index.netbsd.org/pkgsrc-users/2008/11/23/msg008706.html - # - $sasl2_package = $architecture ? { - x86_64 => "lib64sasl2-plug-anonymous", - default => "libsasl2-plug-anonymous" - } - - package {['subversion', "$sasl2_package"]: } - } - define snapshot($source, $refresh = '*/5', $user = 'root') { include subversion::client @@ -272,13 +259,6 @@ class subversion { } } - class mirror { - include subversion::tools - local_script { "create_svn_mirror.sh": - content => template('subversion/create_svn_mirror.sh') - } - } - define mirror_repository($source, $refresh = '*/5') { include subversion::mirror diff --git a/modules/subversion/manifests/mirror.pp b/modules/subversion/manifests/mirror.pp new file mode 100644 index 00000000..02d437dc --- /dev/null +++ b/modules/subversion/manifests/mirror.pp @@ -0,0 +1,6 @@ +class subversion::mirror { + include subversion::tools + local_script { 'create_svn_mirror.sh': + content => template('subversion/create_svn_mirror.sh') + } +} -- cgit v1.2.1