dev/provisioning/modules/apache/manifests/mod/alias.pp
changeset 28 b0b56e0f8c7f
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
       
     1 class apache::mod::alias(
       
     2   $apache_version = $apache::apache_version,
       
     3   $icons_options  = 'Indexes MultiViews',
       
     4   # set icons_path to false to disable the alias
       
     5   $icons_path     = $::apache::params::alias_icons_path,
       
     6 
       
     7 ) {
       
     8   apache::mod { 'alias': }
       
     9   # Template uses $icons_path
       
    10   if $icons_path {
       
    11     file { 'alias.conf':
       
    12       ensure  => file,
       
    13       path    => "${::apache::mod_dir}/alias.conf",
       
    14       content => template('apache/mod/alias.conf.erb'),
       
    15       require => Exec["mkdir ${::apache::mod_dir}"],
       
    16       before  => File[$::apache::mod_dir],
       
    17       notify  => Class['apache::service'],
       
    18     }
       
    19   }
       
    20 }