aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--manifests/nodes.pp29
-rw-r--r--modules/subversion/manifests/init.pp7
2 files changed, 11 insertions, 25 deletions
diff --git a/manifests/nodes.pp b/manifests/nodes.pp
index 5550e373..a4b91d9a 100644
--- a/manifests/nodes.pp
+++ b/manifests/nodes.pp
@@ -17,32 +17,11 @@ node valstar {
include rsyncd
include mirror
include openldap::master
+ include subversion::client
+
- # for puppet svn checkout
- package {"subversion":
- ensure => "installed"
- }
-
- # 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
- #
- package {"lib64sasl2-plug-anonymous":
- ensure => "installed"
- }
-
- # update the puppet snapshot
- cron { puppet_update:
- command => "cd /etc/puppet && /usr/bin/svn update -q",
- user => root,
- minute => '*/5'
- }
-
- exec { puppet_etc:
- cwd => "/etc/",
- command => "/usr/bin/svn co svn://vm-gandi.mageia.org/adm/puppet/",
- user => "root",
- creates => "/etc/puppet/manifests/site.pp"
+ subversion::snapshot { "/etc/puppet":
+ source => "svn://vm-gandi.mageia.org/adm/puppet/"
}
file { "extdata":
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp
index 1904de0e..dc00fe2e 100644
--- a/modules/subversion/manifests/init.pp
+++ b/modules/subversion/manifests/init.pp
@@ -33,6 +33,13 @@ class subversion {
package { subversion:
ensure => installed,
}
+ # 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
+ #
+ package {"lib64sasl2-plug-anonymous":
+ ensure => "installed"
+ }
}
# TODO ensure that subversion ishere