Puppet Class: role::labs::google_api_proxy

Defined in:
modules/role/manifests/labs/google_api_proxy.pp

Overview

Class: role::labs::google_api_proxy

Provision nginx reverse proxy vhosts for accessing Google API endpoints from inside Labs via a fixed IP address.

Parameters:

instances

A hash mapping vhost names to external_proxy::instance parameters.

Usage

class { 'role::labs::google_api_proxy'

instances => {
    'google-api-proxy.wmflabs.org' => {
        'proxied' => 'https://www.googleapis.com',
        'default' => true,
    },
    'googlevision-api-proxy.wmflabs.org' => {
        'proxied' => 'https://vision.googleapis.com',
    },
},

}

Parameters:

  • instances (Any)


23
24
25
26
27
28
29
# File 'modules/role/manifests/labs/google_api_proxy.pp', line 23

class role::labs::google_api_proxy (
    $instances,
) {
    class { 'profile::wmcs::google_api_proxy':
        instances => $instances,
    }
}