diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-12-22 12:59:32 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-12-22 12:59:32 -0200 |
commit | 75bbacddbc3365586956a6177806cbfee2618810 (patch) | |
tree | d0885d5b9cdb2234a754fe62f3583e09a0a60b58 /manifests | |
parent | 54eacd438e5fc4fb5618db553cee2594b2145c0e (diff) | |
download | puppet-git-75bbacddbc3365586956a6177806cbfee2618810.tar.gz puppet-git-75bbacddbc3365586956a6177806cbfee2618810.tar.bz2 |
Adding git-manager wrapper class
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/git-daemon.pp | 2 | ||||
-rw-r--r-- | manifests/git-manager.pp | 10 | ||||
-rw-r--r-- | manifests/gitweb.pp | 2 | ||||
-rw-r--r-- | manifests/init.pp | 1 |
4 files changed, 13 insertions, 2 deletions
diff --git a/manifests/git-daemon.pp b/manifests/git-daemon.pp index fdb0007..5ed845a 100644 --- a/manifests/git-daemon.pp +++ b/manifests/git-daemon.pp @@ -4,7 +4,7 @@ # # http://reductivelabs.com/trac/puppet/wiki/Recipes/SimpleText -class git-daemon inherits gitosis { +class git-daemon inherits git-manager { # the needed packages and services include inetd diff --git a/manifests/git-manager.pp b/manifests/git-manager.pp new file mode 100644 index 0000000..9e29518 --- /dev/null +++ b/manifests/git-manager.pp @@ -0,0 +1,10 @@ +class git-manager { + case $use_gitolite { + true: { + include gitolite + }, + default: { + include gitosis + } + } +} diff --git a/manifests/gitweb.pp b/manifests/gitweb.pp index dbf08e1..045787d 100644 --- a/manifests/gitweb.pp +++ b/manifests/gitweb.pp @@ -1,6 +1,6 @@ # This class handles a gitweb installation. -class gitweb inherits gitosis { +class gitweb inherits git-manager { # the needed packages package { gitweb: ensure => installed } diff --git a/manifests/init.pp b/manifests/init.pp index 9e1a5f6..09e9010 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,4 +4,5 @@ import "git.pp" import "gitosis.pp" import "gitweb.pp" import "git-daemon.pp" +import "git-manager.pp" import "gitolite.pp" |