]> gitweb.fluxo.info Git - puppet-git.git/commitdiff
Autoload
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 24 Mar 2015 14:16:26 +0000 (11:16 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 24 Mar 2015 14:16:26 +0000 (11:16 -0300)
manifests/daemon.pp
manifests/git.pp [deleted file]
manifests/gitolite.pp
manifests/gitosis.pp
manifests/gitweb.pp
manifests/init.pp

index 546aae94e131fbbe14127efd748e3a9bf17a0f10..56e0430a5be5d6cb82378d72e9680177de94d145 100644 (file)
@@ -1,19 +1,13 @@
-# This class configures the git-daemon service. It ensures the packages is
-# installed and a line is present in /etc/inetd.conf, which configures it.
-# It depends on a "line" definition, which can be found here:
-#
-#   http://reductivelabs.com/trac/puppet/wiki/Recipes/SimpleText
-
 class git::daemon (
   $implementation = hiera('git::daemon::implementation', 'gitolite')
 ) {
 
   case $implementation {
     'gitosis': {
-      include gitosis
+      include git::gitosis
     }
     default: {
-      include gitolite
+      include git::gitolite
     }
   }
 
diff --git a/manifests/git.pp b/manifests/git.pp
deleted file mode 100644 (file)
index 5a3763d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-# This class is the base for any other services handled by this module.
-
-class git {
-  # Obsolete
-  if !defined(Package['git-core']) {
-    package { 'git-core':
-      ensure => absent,
-    }
-  }
-
-  if !defined(Package['git']) {
-    package { 'git':
-      ensure => latest,
-    }
-  }
-}
index 19474df111e39ea1b826131ea514b871f8d7e11e..ecf3fa16d3678d43d6cff827eb6be9b6f85b59b8 100644 (file)
@@ -1,7 +1,7 @@
 # This class handles a gitolite installation, with /var/git as the root for
 # git repositories.
 
-class gitolite inherits git {
+class git::gitolite inherits git {
   # directory for gitolite user and repositories
   file { "/var/git":
     ensure => directory,
index c4469186454e19449d752e563de68462618106d1..a903c806865b068ad3a4eb3d7dafbb69466d29a5 100644 (file)
@@ -1,7 +1,7 @@
 # This class handles a gitosis installation, with /var/git as the root for
 # git repositories.
 
-class gitosis inherits git {
+class git::gitosis inherits git {
   # directory for gitosis user and repositories
   file { "/var/git":
     ensure => directory,
index 4399592f53d63834a0b3a89e70dfcd01c0c24919..3453169b6fe7d086c96f3b8da6bc177347fdd3e5 100644 (file)
@@ -1,6 +1,6 @@
 # This class handles a gitweb installation.
 
-class gitweb(
+class git::gitweb(
   $protocol       = hiera('git::web::protocol',          'git'),
   $hosting_domain = hiera('apache::site::domain',        $::domain),
   $implementation = hiera('git::daemon::implementation', 'gitolite')
index e3bd908c00fc4f1467cbc6e75af331c873283ddf..2c49ea82599009e44be6948bdbe386107f268e86 100644 (file)
@@ -1,7 +1,14 @@
-# The classes used by this module are imported here.
+class git {
+  # Obsolete
+  if !defined(Package['git-core']) {
+    package { 'git-core':
+      ensure => absent,
+    }
+  }
 
-import "git.pp"
-import "gitosis.pp"
-import "gitweb.pp"
-import "daemon.pp"
-import "gitolite.pp"
+  if !defined(Package['git']) {
+    package { 'git':
+      ensure => latest,
+    }
+  }
+}