From 8a3e9fcb53d3c9e876535e0d262a469ed446f2ff Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 9 Feb 2012 10:14:42 -0200 Subject: Adding custom icons --- manifests/init.pp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'manifests') diff --git a/manifests/init.pp b/manifests/init.pp index 3008b87..9ab4cda 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -117,6 +117,41 @@ class apache { notify => Service["apache"], } + # apache alias configuration + file { "${apache2_mods}-available/alias.conf": + ensure => present, + content => template('apache/alias.conf.erb'), + owner => root, + group => root, + mode => 0644, + notify => Service["apache"], + } + + # apache autoindex configuration + file { "${apache2_mods}-available/autoindex.conf": + ensure => present, + content => template('apache/autoindex.conf.erb'), + owner => root, + group => root, + mode => 0644, + notify => Service["apache"], + } + + # icons folder + file { "${apache_www_folder}/icons": + ensure => directory, + recurse => true, + purge => true, + force => true, + owner => "root", + group => "root", + # This mode will also apply to files from the source directory + mode => 0644, + # Puppet will automatically set +x for directories + source => [ "puppet:///modules/site-apache/htdocs/$domain/icons", + "puppet:///modules/apache/icons", ] + } + # default site configuration file { "${apache2_sites}-available/default": ensure => present, -- cgit v1.2.3