1 define apache2::config (
12 if ! ($source or $content or $nocontentok) {
13 fail ( "No configuration found for ${name}" )
17 file { "/etc/apache2/conf-available/${name}.conf":
20 require => Package['apache2'],
21 notify => Exec['service apache2 reload'],
24 file { "/etc/apache2/conf-available/${name}.conf":
27 require => Package['apache2'],
28 notify => Exec['service apache2 reload'],
33 file { "/etc/apache2/conf-available/${name}.conf":
35 require => Package['apache2'],
36 notify => Exec['service apache2 reload'],
39 default: { fail ( "Unknown ensure value: '$ensure'" ) }
41 $link_ensure = $ensure ? {
46 file { "/etc/apache2/conf-enabled/${name}.conf":
47 ensure => $link_ensure,
48 target => "../conf-available/${name}.conf",
49 notify => Exec['service apache2 reload'],