Puppet Class: profile::discovery_dashboards::development

Defined in:
modules/profile/manifests/discovery_dashboards/development.pp

Overview

Provision Shiny Server and Discovery Dashboards

Install and configure Shiny Server, install Discovery-specific R packages, and clone “develop” branch of Discovery's dashboards so it has the latest versions (which may have unfinished features).

filtertags: labs-project-search labs-project-shiny-r



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
35
36
37
38
39
40
41
42
43
# File 'modules/profile/manifests/discovery_dashboards/development.pp', line 8

class profile::discovery_dashboards::development {
    require profile::discovery_dashboards::base

    # Set up clones of individual dashboard repos, triggering a restart
    # of the Shiny Server service if any of the clones are updated:
    git::clone { 'wikimedia/discovery/rainbow':
        ensure    => 'absent',
        directory => '/srv/shiny-server/metrics',
        notify    => Service['shiny-server'],
        branch    => 'develop',
    }
    git::clone { 'wikimedia/discovery/twilightsparql':
        ensure    => 'latest',
        directory => '/srv/shiny-server/wdqs',
        notify    => Service['shiny-server'],
        branch    => 'develop',
    }
    git::clone { 'wikimedia/discovery/prince':
        ensure    => 'absent',
        directory => '/srv/shiny-server/portal',
        branch    => 'develop',
    }
    git::clone { 'wikimedia/discovery/wetzel':
        ensure    => 'absent',
        directory => '/srv/shiny-server/maps',
        notify    => Service['shiny-server'],
        branch    => 'develop',
    }
    git::clone { 'wikimedia/discovery/wonderbolt':
        ensure    => 'latest',
        directory => '/srv/shiny-server/external',
        notify    => Service['shiny-server'],
        branch    => 'develop',
    }

}