diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-19 00:59:56 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-19 00:59:56 +0000 |
commit | b2ed23e21623ff4f7a2d60c4d8224a477bea6a93 (patch) | |
tree | 98dc65c18cb741a753579d520b9be0c57f4c6fa5 | |
parent | e4ef50d39879a0a939daac20bae2cd8e6cf6d669 (diff) | |
download | puppet-b2ed23e21623ff4f7a2d60c4d8224a477bea6a93.tar puppet-b2ed23e21623ff4f7a2d60c4d8224a477bea6a93.tar.gz puppet-b2ed23e21623ff4f7a2d60c4d8224a477bea6a93.tar.bz2 puppet-b2ed23e21623ff4f7a2d60c4d8224a477bea6a93.tar.xz puppet-b2ed23e21623ff4f7a2d60c4d8224a477bea6a93.zip |
- rewrite the link setup part, as the array do not work like I believed they would
-rw-r--r-- | modules/subversion/manifests/init.pp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp index 187e8f98..6b11eb8a 100644 --- a/modules/subversion/manifests/init.pp +++ b/modules/subversion/manifests/init.pp @@ -79,6 +79,18 @@ class subversion { } } + + # FIXME ugly + define pre_commit_link($directory) { + file { "pre_commit_link-${name}": + path => "$directory/$name", + ensure => "/usr/local/share/subversion/pre-commit.d/$name", + owner => root, + group => root, + mode => 755, + } + } + # TODO # deploy a cronjob to make a backup file ( ie, dump in some directory ) @@ -148,15 +160,10 @@ class subversion { } } - $pre_commit_check = ['no_commit_log','no_root', $syntax_check] - - file { "$name/hooks/pre-commit.d/$pre_commit_check": - ensure => "/usr/local/share/subversion/pre-commit.d/$pre_commit_check", - owner => root, - group => root, - mode => 755 - } + pre_commit_link { ['no_empty_message','no_root_commit', $syntax_check]: + directory => "$name/hooks/pre-commit.d/" + } } |