diff options
Diffstat (limited to 'manifests/base.pp')
-rw-r--r-- | manifests/base.pp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/manifests/base.pp b/manifests/base.pp new file mode 100644 index 0000000..60f9d29 --- /dev/null +++ b/manifests/base.pp @@ -0,0 +1,29 @@ +class lighttpd::base { + package{'lighttpd': + ensure => installed, + } + + service{lighttpd: + ensure => running, + enable => true, + hasstatus => true, + require => Package[lighttpd], + } + + file{'/etc/lighttpd/lighttpd.conf': + source => [ "puppet://$server/files/lighttpd/${fqdn}/lighttpd.conf", + "puppet://$server/files/lighttpd/lighttpd.conf", + "puppet://$server/lighttpd/lighttpd.conf" ], + require => Package['lighttpd'], + notify => Service['lighttpd'], + owner => root, group => 0, mode => 0644; + } + + # ToDo: put that in a common module to share with apache + file { 'default_lighttpd_index': + path => '/var/www/lighttpd/index.html', + ensure => file, + content => template('lighttpd/default/default_index.erb'), + owner => root, group => 0, mode => 0644; + } +} |