diff options
Diffstat (limited to 'manifests/web')
-rw-r--r-- | manifests/web/lighttpd.pp | 26 | ||||
-rw-r--r-- | manifests/web/lighttpd/base.pp | 7 |
2 files changed, 33 insertions, 0 deletions
diff --git a/manifests/web/lighttpd.pp b/manifests/web/lighttpd.pp new file mode 100644 index 0000000..5784244 --- /dev/null +++ b/manifests/web/lighttpd.pp @@ -0,0 +1,26 @@ +class git::web::lighttpd inherits lighttpd { + include git::web::lighttpd::base + + file{'/etc/lighttpd/lighttpd-gitweb-defaults.conf': + source => [ "puppet://$server/files/git/web/${fqdn}/lighttpd-gitweb-defaults.conf", + "puppet://$server/files/git/web/lighttpd-gitweb-defaults.conf", + "puppet://$server/git/web/lighttpd-gitweb-defaults.conf" ], + require => Package['lighttpd'], + notify => Service['lighttpd'], + owner => root, group => 0, mode => 0644; + } + + + file{'/etc/lighttpd/lighttpd-gitweb.conf': + ensure => present, + require => Package['lighttpd'], + notify => Service['lighttpd'], + owner => root, group => 0, mode => 0644; + } + + file{'/etc/lighttpd/gitweb.d': + ensure => directory, + require => Package['lighttpd'], + owner => root, group => 0, mode => 0755; + } +} diff --git a/manifests/web/lighttpd/base.pp b/manifests/web/lighttpd/base.pp new file mode 100644 index 0000000..26fd225 --- /dev/null +++ b/manifests/web/lighttpd/base.pp @@ -0,0 +1,7 @@ +class git::web::lighttpd::base { + File['/etc/lighttpd/lighttpd.conf']{ + source => [ "puppet://$server/files/git/web/${fqdn}/lighttpd.conf", + "puppet://$server/files/git/web/lighttpd.conf", + "puppet://$server/git/web/lighttpd.conf" ], + } +} |