Puppet Class: openstack::wikitech::wikitechprivatesettings

Defined in:
modules/openstack/manifests/wikitech/wikitechprivatesettings.pp

Overview

Class openstack::wikitechprivatesettings

Installs the private settings file for wikitech connection to ldap

Parameters:

  • wikitech_nova_ldap_proxyagent_pass (Any)
  • wikitech_nova_ldap_user_pass (Any)
  • phabricator_api_token (Any)
  • gerrit_api_user (Any)
  • gerrit_api_password (Any)


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'modules/openstack/manifests/wikitech/wikitechprivatesettings.pp', line 4

class openstack::wikitech::wikitechprivatesettings(
    $wikitech_nova_ldap_proxyagent_pass,
    $wikitech_nova_ldap_user_pass,
    $phabricator_api_token,
    $gerrit_api_user,
    $gerrit_api_password,
) {

    file { '/etc/mediawiki':
        ensure => 'directory',
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
    }

    # Drop this file onto the wikitech host; this file exists to hand off
    #  settings from private puppet to mediawiki.
    file { '/etc/mediawiki/WikitechPrivateSettings.php':
        ensure  => 'present',
        owner   => 'root',
        group   => 'root',
        mode    => '0644',
        content => template('openstack/wikitech/wikitech_private.php.erb'),
    }
}