Puppet Class: profile::microsites::sitemaps

Defined in:
modules/profile/manifests/microsites/sitemaps.pp

Overview

Parameters:

  • server_name (Any) (defaults to: lookup('profile::microsites::sitemaps::server_name'))
  • server_admin (Any) (defaults to: lookup('profile::microsites::sitemaps::server_admin'))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/profile/manifests/microsites/sitemaps.pp', line 2

class profile::microsites::sitemaps(
  $server_name = lookup('profile::microsites::sitemaps::server_name'),
  $server_admin = lookup('profile::microsites::sitemaps::server_admin'),
) {

    httpd::site { $server_name:
        content => template('profile/sitemaps/apache-sitemaps.wikimedia.org.erb'),
    }

    ensure_resource('file', '/srv/org', {'ensure' => 'directory' })
    ensure_resource('file', '/srv/org/wikimedia', {'ensure' => 'directory' })

    # ensure sitemaps-admins own files in the document root
    file { '/srv/org/wikimedia/sitemaps':
        ensure  => 'directory',
        group   => 'sitemaps-admins',
        mode    => '2774',
        recurse => true,
    }
}