Puppet Class: profile::query_service::gui

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

Overview

Parameters:

  • username (String) (defaults to: lookup('profile::query_service::username'))
  • package_dir (Stdlib::Unixpath) (defaults to: lookup('profile::query_service::package_dir'))
  • data_dir (Stdlib::Unixpath) (defaults to: lookup('profile::query_service::data_dir'))
  • log_dir (Stdlib::Unixpath) (defaults to: lookup('profile::query_service::log_dir'))
  • deploy_mode (Query_service::DeployMode) (defaults to: lookup('profile::query_service::deploy_mode'))
  • deploy_name (String) (defaults to: lookup('profile::query_service::deploy_name'))
  • enable_ldf (Boolean) (defaults to: lookup('profile::query_service::enable_ldf', {default_value => false}))
  • max_query_time_millis (Integer) (defaults to: lookup('profile::query_service::max_query_time_millis', {default_value => 60000}))
  • high_query_time_port (Boolean) (defaults to: lookup('profile::query_service::high_query_time_port', {default_value => false}))
  • blazegraph_main_ns (String) (defaults to: lookup('profile::query_service::blazegraph_main_ns'))
  • oauth (Boolean) (defaults to: lookup('profile::query_service::oauth'))
  • oauth_settings (Optional[Hash]) (defaults to: lookup('profile::query_service::oauth_settings', {default_value => {}}))
  • gui_url (Optional[Stdlib::HTTPSUrl]) (defaults to: lookup('profile::query_service::gui_url', {default_value => undef}))


1
2
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
35
36
37
38
39
40
41
42
43
44
45
# File 'modules/profile/manifests/query_service/gui.pp', line 1

class profile::query_service::gui (
    String $username = lookup('profile::query_service::username'),
    Stdlib::Unixpath $package_dir = lookup('profile::query_service::package_dir'),
    Stdlib::Unixpath $data_dir = lookup('profile::query_service::data_dir'),
    Stdlib::Unixpath $log_dir = lookup('profile::query_service::log_dir'),
    Query_service::DeployMode $deploy_mode = lookup('profile::query_service::deploy_mode'),
    String $deploy_name = lookup('profile::query_service::deploy_name'),
    Boolean $enable_ldf = lookup('profile::query_service::enable_ldf', {default_value => false}),
    Integer $max_query_time_millis = lookup('profile::query_service::max_query_time_millis', {default_value => 60000}),
    Boolean $high_query_time_port = lookup('profile::query_service::high_query_time_port', {default_value => false}),
    String $blazegraph_main_ns = lookup('profile::query_service::blazegraph_main_ns'),
    Boolean $oauth = lookup('profile::query_service::oauth'),
    Optional[Hash] $oauth_settings = lookup('profile::query_service::oauth_settings', {default_value => {}}),
    Optional[Stdlib::HTTPSUrl] $gui_url = lookup('profile::query_service::gui_url', {default_value => undef})
) {
    require ::profile::query_service::common

    class { 'query_service::gui':
        deploy_mode                => $deploy_mode,
        package_dir                => $package_dir,
        data_dir                   => $data_dir,
        log_dir                    => $log_dir,
        deploy_name                => $deploy_name,
        username                   => $username,
        enable_ldf                 => $enable_ldf,
        max_query_time_millis      => $max_query_time_millis,
        blazegraph_main_ns         => $blazegraph_main_ns,
        oauth                      => $oauth,
        gui_url                    => $gui_url,
        oauth_success_redirect_url => $oauth_settings['oauth_success_redirect_url']
    }

    if $high_query_time_port {
        # port 8888 accepts queries and runs them with a higher time limit.
        # Let's allow $DOMAIN_NETWORKS access this port for now while
        # we find a way around limiting access to only
        # $ANALYTICS_NETWORKS and LVSes.
        ferm::service { 'query_service_heavy_queries_http':
            proto  => 'tcp',
            port   => '8888',
            srange => '$DOMAIN_NETWORKS';
        }
    }

}