Puppet Class: puppet_compiler::web

Defined in:
modules/puppet_compiler/manifests/web.pp

Overview

Class puppet_compiler::web

Parameters:

  • ensure (Any) (defaults to: 'present')
  • host_regex (Any) (defaults to: 'compiler\d+')


3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'modules/puppet_compiler/manifests/web.pp', line 3

class puppet_compiler::web($ensure='present', $host_regex = 'compiler\d+',) {
    nginx::site {'puppet-compiler':
        ensure  => $ensure,
        content => template('puppet_compiler/nginx_site.erb'),
    }

    file_line { 'modify_nginx_magic_types':
        path    => '/etc/nginx/mime.types',
        line    => "    text/plain                            txt pson err diff;",
        match   => '\s+text/plain\s+txt',
        require => Nginx::Site['puppet-compiler'],
        notify  => Service['nginx'],
    }
}