| Class | apache::apache2 |
| In: |
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.