Puppet Class: profile::microsites::query_service

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

Overview

SPDX-License-Identifier: Apache-2.0 Wikibase Query Service UI (T266702)



3
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
29
30
31
32
33
34
# File 'modules/profile/manifests/microsites/query_service.pp', line 3

class profile::microsites::query_service {

    profile::microsites::query_service::site { 'wdqs':
        domain_name => 'query.wikidata.org',
    }

    profile::microsites::query_service::site { 'wdqs-preview':
        domain_name => 'query-preview.wikidata.org',
        deploy_name => 'wdqs',
    }

    profile::microsites::query_service::site { 'wcqs':
        domain_name => 'commons-query.wikimedia.org',
    }

    wmflib::dir::mkdir_p('/srv/org/wikidata/query')
    wmflib::dir::mkdir_p('/srv/org/wikidata/query-builder')

    git::clone { 'wikidata/query/gui-deploy':
        ensure    => 'latest',
        source    => 'gerrit',
        directory => '/srv/org/wikidata/query',
        branch    => 'production',
    }

    git::clone { 'wikidata/query-builder/deploy':
        ensure    => 'latest',
        source    => 'gerrit',
        directory => '/srv/org/wikidata/query-builder',
        branch    => 'production',
    }
}