diff options
author | Michael Scherer <misc@mageia.org> | 2012-01-08 20:45:14 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-01-08 20:45:14 +0000 |
commit | 7205a84bc1b5538006239121d51da6faec9cf40c (patch) | |
tree | 915cfd7a06cea5e58f1907f1c8fd84900fbd3695 /modules | |
parent | 50127c9cb30591647e0ee6cd8d62750b6b5cbc0e (diff) | |
download | puppet-7205a84bc1b5538006239121d51da6faec9cf40c.tar puppet-7205a84bc1b5538006239121d51da6faec9cf40c.tar.gz puppet-7205a84bc1b5538006239121d51da6faec9cf40c.tar.bz2 puppet-7205a84bc1b5538006239121d51da6faec9cf40c.tar.xz puppet-7205a84bc1b5538006239121d51da6faec9cf40c.zip |
cleaning of the git module
Diffstat (limited to 'modules')
-rw-r--r-- | modules/git/manifests/init.pp | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp index 06e876e9..5b1ef9ed 100644 --- a/modules/git/manifests/init.pp +++ b/modules/git/manifests/init.pp @@ -1,7 +1,6 @@ class git { class common { - package { 'git-core': - } + package { 'git-core': } } class server inherits common { @@ -17,17 +16,11 @@ class git { } file { "/usr/local/bin/create_git_repo.sh": - ensure => present, - owner => root, - group => root, mode => 755, source => 'puppet:///modules/git/create_git_repo.sh', } file { "/usr/local/bin/apply_git_puppet_config.sh": - ensure => present, - owner => root, - group => root, mode => 755, source => 'puppet:///modules/git/apply_git_puppet_config.sh', } @@ -64,27 +57,21 @@ class git { } file { "$name/git-daemon-export-ok": - ensure => present, require => Exec["/usr/local/bin/create_git_repo.sh $name"] } file { "$name/description": - ensure => present, content => $description, require => File["$name/git-daemon-export-ok"] } file { "$name/hooks/post-receive": - ensure => present, - owner => root, - group => root, mode => 755, content => template('git/post-receive'), require => File["$name/git-daemon-export-ok"] } file { "$name/config.puppet": - ensure => present, require => File["$name/git-daemon-export-ok"], notify => Exec["/usr/local/bin/apply_git_puppet_config.sh $name"], content => template('git/config.puppet'), @@ -109,7 +96,6 @@ class git { } file { "$name/description": - ensure => present, content => $description, } @@ -138,9 +124,6 @@ class git { } file { "/usr/local/bin/update_git_svn.sh": - ensure => present, - owner => root, - group => root, mode => 755, source => 'puppet:///modules/git/update_git_svn.sh', } @@ -152,9 +135,6 @@ class git { } file { "$name/.git/hooks/pre-receive": - ensure => present, - owner => root, - group => root, mode => 755, content => template('git/pre-receive'), require => Exec["git svn $name"] @@ -167,9 +147,7 @@ class git { } class svn inherits client { - package { "git-svn": - ensure => installed - } + package { "git-svn": } } define snapshot($source, $refresh ='*/5', $user = 'root') { @@ -192,6 +170,3 @@ class git { } } } - - - |