diff options
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" |