diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-06-06 17:34:44 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-06-06 17:34:44 +0000 |
commit | e6944577d7ff559ab757663a73f6736e3972eb88 (patch) | |
tree | f34da99820a3db6363afe203a8ffc37017131d6c /modules/subversion | |
parent | 993b92b6039d322f738d2c4273796ad055a26264 (diff) | |
download | puppet-e6944577d7ff559ab757663a73f6736e3972eb88.tar puppet-e6944577d7ff559ab757663a73f6736e3972eb88.tar.gz puppet-e6944577d7ff559ab757663a73f6736e3972eb88.tar.bz2 puppet-e6944577d7ff559ab757663a73f6736e3972eb88.tar.xz puppet-e6944577d7ff559ab757663a73f6736e3972eb88.zip |
remove hook scripts when option is not set
Diffstat (limited to 'modules/subversion')
-rw-r--r-- | modules/subversion/manifests/init.pp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp index 0fba89ab..a817eba5 100644 --- a/modules/subversion/manifests/init.pp +++ b/modules/subversion/manifests/init.pp @@ -216,6 +216,10 @@ class subversion { mode => 755, content => template("subversion/restricted_to_user"), } + } else { + file { "$name/hooks/pre-commit.d/restricted_to_user": + ensure => absent, + } } if $commit_mail { @@ -227,7 +231,11 @@ class subversion { content => template("subversion/hook_sendmail.pl"), require => [Package['perl-SVN-Notify-Config']], } - } + } else { + file { "$name/hooks/post-commit.d/send_mail": + ensure => absent, + } + } if $cia_post { file { "$name/hooks/post-commit.d/cia.vc": @@ -238,10 +246,18 @@ class subversion { content => template("subversion/ciabot_svn.sh"), } + } else { + file { "$name/hooks/post-commit.d/cia.vc": + ensure => absent, + } } if $no_binary { pre_commit_link { "$name/hooks/pre-commit.d/no_binary": } + } else { + file { "$name/hooks/pre-commit.d/no_binary" + ensure => absent, + } } if $extract_dir { @@ -253,7 +269,11 @@ class subversion { content => template("subversion/hook_extract.pl"), require => [Package['perl-SVN-Notify-Mirror']], } - } + } else { + file { "$name/hooks/post-commit.d/extract_dir": + ensure => absent, + } + } pre_commit_link { "$name/hooks/pre-commit.d/no_empty_message": } |