diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2009-12-29 13:23:28 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2009-12-29 13:23:28 -0200 |
commit | d85df83c88cd69c14c055862060a96f7900fea0c (patch) | |
tree | 45ab7666fcf6336167ff86a119d1c7d1ef30f97f /manifests | |
parent | 28dcb772c9cdde6ae7726ee12881bdc89e6c6050 (diff) | |
download | puppet-apache-d85df83c88cd69c14c055862060a96f7900fea0c.tar.gz puppet-apache-d85df83c88cd69c14c055862060a96f7900fea0c.tar.bz2 |
Adding apache configuration
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 9fe06e4..cd82d38 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -23,11 +23,11 @@ # # http://reductivelabs.com/trac/puppet/wiki/Recipes/DebianApache2Recipe # -# TODO: log level, log files, etc $apache2_sites = "/etc/apache2/sites" $apache2_mods = "/etc/apache2/mods" $apache2_macros = "/etc/apache2/conf.d/macros" +$apache2_conf = "/etc/apache2/apache2.conf" class apache { @@ -65,6 +65,16 @@ class apache { notify => Service["apache"], } + # apache mod_macro configuration + file { "${apache2_conf}": + ensure => present, + content => template('apache/apache2.conf.erb'), + owner => root, + group => root, + mode => 0644, + notify => Service["apache"], + } + # prepare variables to use in templates case $apache_www_folder { '': { $apache_www_folder = "/var/www" } |