Class apache::apache2
In:

Defines

module   site  

Classes and Modules

Class apache::apache2::no_default_site

Defines

module( $require_package => 'apache2', $ensure => 'present' )

Define an apache2 module. Debian packages place the module config into /etc/apache2/mods-available.

You can add a custom require (string) if the module depends on packages that aren‘t part of the default apache2 package. Because of the package dependencies, apache2 will automagically be included.

site( $require_package => 'apache2', $content => '', $ensure => 'present', $source => '' )

Define an apache2 site. Place all site configs into /etc/apache2/sites-available and en-/disable them with this type.

You can add a custom require (string) if the site depends on packages that aren‘t part of the default apache2 package. Because of the package dependencies, apache2 will automagically be included.

With the optional parameter "content", the site config can be provided directly (e.g. with template()). Alternatively "source" is used as a standard File%source URL to get the site file. The third possiblity is setting "ensure" to a filename, which will be symlinked.

[Validate]