Puppet Class: role::scholarships

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

Overview

Class: role::scholarships

Provisions the Wikimania Scholarships application.

Note: The application is provisioned using an Apache named virtual host. Once the role is enabled and provisioned use the URL scholarships.local.wmftest.net:8080/ to access the site.

Parameters:

  • oauth_consumer_key (Any)
  • oauth_secret_key (Any)


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'puppet/modules/role/manifests/scholarships.pp', line 7

class role::scholarships (
    $oauth_consumer_key,
    $oauth_secret_key,
) {
    include ::mediawiki
    include ::scholarships

    role::oauth::consumer { 'Wikimania Scholarships':
        description  => 'Wikimania Scholarships',
        consumer_key => $oauth_consumer_key,
        secret_key   => $oauth_secret_key,
        callback_url => "http://${::scholarships::vhost_name}${::port_fragment}/",
        grants       => ['authonlyprivate'],
    }
}