diff options
author | mh <mh@immerda.ch> | 2010-10-22 23:02:56 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-10-22 23:02:56 +0200 |
commit | a3027bd256133a739dc5ea6002349fdf61cd6e67 (patch) | |
tree | bca316790186cd438eac38dc2bc0fe4baf10e1df /manifests/daemon/vhosts.pp | |
parent | a863cadc10448179941f0be1b8c3e56f25c8afa3 (diff) |
add xinetd based service
Diffstat (limited to 'manifests/daemon/vhosts.pp')
-rw-r--r-- | manifests/daemon/vhosts.pp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/manifests/daemon/vhosts.pp b/manifests/daemon/vhosts.pp index 3777fa1..8dd238d 100644 --- a/manifests/daemon/vhosts.pp +++ b/manifests/daemon/vhosts.pp @@ -1,7 +1,15 @@ class git::daemon::vhosts inherits git::daemon { + if $git_daemon == 'service' { File['/etc/sysconfig/git-daemon']{ - source => [ "puppet:///modules/site-git/sysconfig/${fqdn}/git-daemon.vhosts", - "puppet:///modules/site-git/sysconfig/git-daemon.vhosts", - "puppet:///modules/git/sysconfig/git-daemon.vhosts" ], + source => [ "puppet:///modules/site-git/sysconfig/${fqdn}/git-daemon.vhosts", + "puppet:///modules/site-git/sysconfig/git-daemon.vhosts", + "puppet:///modules/git/sysconfig/git-daemon.vhosts" ], } + } else { + File['/etc/xinetd.d/git']{ + source => [ "puppet:///modules/site-git/xinetd.d/${fqdn}/git.vhosts", + "puppet:///modules/site-git/xinetd.d/git.vhosts", + "puppet:///modules/git/xinetd.d/git.vhosts" ], + } + } } |