Puppet Class: role::simplestatic

Defined in:
modules/role/manifests/simplestatic.pp

Overview

Parameters:

  • host_names (Any) (defaults to: [])
  • base_path (Any) (defaults to: '/srv')


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'modules/role/manifests/simplestatic.pp', line 8

class role::simplestatic (
    $host_names = [],
    $base_path = '/srv',
) {
    # This role is expected to be used only in labs
    requires_realm('labs')

    class { '::httpd':
        modules => ['rewrite', 'headers'],
    }

    httpd::site { 'simplestatic':
        ensure  => present,
        content => template('role/apache/sites/simplestatic.erb'),
    }
}