Puppet Class: ncredir

Defined in:
modules/ncredir/manifests/init.pp

Overview

Parameters:

  • ssl_settings (Tuple[String, 1, default])
  • redirection_maps (String)
  • acme_certificates (Hash[String, Hash[String, Any]])
  • acme_chief_cert_prefix (String)
  • certs_basepath (Stdlib::AbsolutePath) (defaults to: '/etc/acmecerts')
  • http_port (Stdlib::Port) (defaults to: 80)
  • https_port (Stdlib::Port) (defaults to: 443)
  • hsts_max_age (Integer) (defaults to: 106384710)


35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'modules/ncredir/manifests/init.pp', line 35

class ncredir(
    Tuple[String, 1, default] $ssl_settings,
    String $redirection_maps,
    Hash[String, Hash[String, Any]] $acme_certificates,
    String $acme_chief_cert_prefix,
    Stdlib::AbsolutePath $certs_basepath = '/etc/acmecerts',
    Stdlib::Port $http_port = 80,
    Stdlib::Port $https_port = 443,
    Integer $hsts_max_age = 106384710,
) {
    file { '/etc/nginx/conf.d/redirection_maps.conf':
        content => $redirection_maps,
        require => File['/etc/nginx/conf.d'],
        notify  => Service['nginx'],
    }

    file { '/etc/nginx/conf.d/ncredir_log_format.conf':
        source  => 'puppet:///modules/ncredir/ncredir_log_format.conf',
        require => File['/etc/nginx/conf.d'],
        notify  => Service['nginx'],
    }

    nginx::site { 'ncredir':
        content => template('ncredir/ncredir.nginx.conf.erb'),
    }
}