summaryrefslogtreecommitdiff
path: root/manifests/daemon.pp
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-02-09 11:19:01 -0500
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-02-09 11:19:01 -0500
commit9dd0aaaca05026a763333ef15da43f74890a50ad (patch)
tree6e4851f5c605a71228de58a083d288fbc645fd67 /manifests/daemon.pp
parent33e4b7be056c3e0b25c8864f4a56082817c38158 (diff)
provide initial Debian compatibility for git and git::daemon classes
Diffstat (limited to 'manifests/daemon.pp')
-rw-r--r--manifests/daemon.pp28
1 files changed, 5 insertions, 23 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp
index 0d22adf..33c0a26 100644
--- a/manifests/daemon.pp
+++ b/manifests/daemon.pp
@@ -1,32 +1,14 @@
class git::daemon {
+
include git
- package{'git-daemon':
- ensure => installed,
- require => Package['git'],
- }
- file{'/etc/init.d/git-daemon':
- source => [ "puppet://$server/modules/site-git/init.d/${fqdn}/git-daemon",
- "puppet://$server/modules/site-git/init.d/git-daemon",
- "puppet://$server/modules/git/init.d/git-daemon" ],
- require => Package['git-daemon'],
- owner => root, group => 0, mode => 0755;
- }
- file{'/etc/sysconfig/git-daemon':
- source => [ "puppet://$server/modules/site-git/sysconfig/${fqdn}/git-daemon",
- "puppet://$server/modules/site-git/sysconfig/git-daemon",
- "puppet://$server/modules/git/sysconfig/git-daemon" ],
- require => Package['git-daemon'],
- owner => root, group => 0, mode => 0644;
- }
- service{'git-daemon':
- ensure => running,
- enable => true,
- hasstatus => true,
- require => [ File['/etc/sysconfig/git-daemon'], File['/etc/init.d/git-daemon'] ],
+ case $operatingsystem {
+ debian: { include git::daemon::debian }
+ centos: { include git::daemon::centos }
}
if $use_shorewall {
include shorewall::rules::gitdaemon
}
+
}