Puppet Class: role::labs_initial_content

Defined in:
puppet/modules/role/manifests/labs_initial_content.pp

Overview

Class: role::labs_initial_content

For labs:  loads a ready-made logo and privacy policy into the
initial wiki.


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'puppet/modules/role/manifests/labs_initial_content.pp', line 6

class role::labs_initial_content {
    require mediawiki::apache

    mediawiki::import::dump { 'labs_privacy':
        xml_dump           => '/vagrant/puppet/modules/labs/files/labs_privacy_policy.xml',
        dump_sentinel_page => 'Testwiki:Privacy_policy',
    }

    file { "${::mediawiki::apache::docroot}/labs_mediawiki_logo.png":
        ensure => present,
        source => 'puppet:///modules/labs/labs_vagrant_logo.png',
    }

    mediawiki::settings { 'labs-vagrant logo':
        values => {
            wgLogo          => '/labs_mediawiki_logo.png',
            wgMetaNamespace => 'Testwiki',
        },
    }

}