Puppet Class: profile::toolforge::static

Defined in:
modules/profile/manifests/toolforge/static.pp

Overview

Parameters:

  • web_domain (Stdlib::Fqdn) (defaults to: lookup('profile::toolforge::web_domain', {default_value => 'toolforge.org'}))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'modules/profile/manifests/toolforge/static.pp', line 1

class profile::toolforge::static (
    Stdlib::Fqdn $web_domain = lookup('profile::toolforge::web_domain', {default_value => 'toolforge.org'}),
) {
    $resolver = join($::nameservers, ' ')
    $fingerprints_dir = '/var/www/fingerprints'

    wmflib::dir::mkdir_p($fingerprints_dir)

    nginx::site { 'static-server':
        content => template('profile/toolforge/static-server.conf.erb'),
    }

    class { 'ssh::publish_fingerprints':
        document_root => $fingerprints_dir,
    }
}