Import rest of modules.
This commit is contained in:
parent
02fa10f33c
commit
3f225ced9b
39 changed files with 2056 additions and 0 deletions
3
git/files/gitweb_config.perl
Normal file
3
git/files/gitweb_config.perl
Normal file
|
@ -0,0 +1,3 @@
|
|||
|
||||
# directory containing git repositories
|
||||
$projectroot = "/srv/git"
|
37
git/manifests/init.pp
Normal file
37
git/manifests/init.pp
Normal file
|
@ -0,0 +1,37 @@
|
|||
|
||||
class git::client {
|
||||
|
||||
package { "git":
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
class git::server inherits git::client {
|
||||
|
||||
include inetd::server
|
||||
|
||||
package { ["git-daemon", "gitweb"]:
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
file { "/git":
|
||||
ensure => "/srv/git",
|
||||
}
|
||||
|
||||
file { "/var/www/git/gitweb_config.perl":
|
||||
ensure => present,
|
||||
source => "puppet:///git/gitweb_config.perl",
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
require => Package["gitweb"],
|
||||
}
|
||||
|
||||
inetd::service { "git":
|
||||
ensure => present,
|
||||
require => Package["git-daemon"],
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue