12 if ! ($source or $content) {
13 fail ( "No configuration found for ${name}" )
17 default: { fail ( "Unknown ensure value: '$ensure'" ) }
26 $target = "/etc/apache2/sites-available/${base}"
28 $link_target = $ensure ? {
37 require => Package['apache2'],
38 notify => Service['apache2'],
44 require => Package['apache2'],
45 notify => Service['apache2'],
49 if $ensure == present {
50 file { "/etc/apache2/sites-enabled/${name}":
52 target => $link_target,
53 notify => Service['apache2'],
56 file { "/etc/apache2/sites-enabled/${name}":
58 notify => Service['apache2'],