diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-02-09 10:14:42 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-02-09 10:14:42 -0200 |
commit | 8a3e9fcb53d3c9e876535e0d262a469ed446f2ff (patch) | |
tree | 78ea41e3aedcc927d7341296af784e20a2d7d16d /manifests | |
parent | f7696f43f27ad5c030dbe29499973e54b07b1b65 (diff) | |
download | puppet-apache-8a3e9fcb53d3c9e876535e0d262a469ed446f2ff.tar.gz puppet-apache-8a3e9fcb53d3c9e876535e0d262a469ed446f2ff.tar.bz2 |
Adding custom icons
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 35 |
1 files changed, 35 insertions, 0 deletions
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, |