diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/subversion/manifests/client.pp | 13 | ||||
-rw-r--r-- | modules/subversion/manifests/init.pp | 20 | ||||
-rw-r--r-- | modules/subversion/manifests/mirror.pp | 6 |
3 files changed, 19 insertions, 20 deletions
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') + } +} |