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: hiera('profile::query_service::package_dir'))
  • data_dir (Stdlib::Unixpath) (defaults to: hiera('profile::query_service::data_dir'))
  • log_dir (Stdlib::Unixpath) (defaults to: hiera('profile::query_service::log_dir'))
  • deploy_mode (Query_service::DeployMode) (defaults to: hiera('profile::query_service::deploy_mode'))
  • deploy_name (String) (defaults to: hiera('profile::query_service::deploy_name'))
  • enable_ldf (Boolean) (defaults to: hiera('profile::query_service::enable_ldf', false))
  • max_query_time_millis (Integer) (defaults to: hiera('profile::query_service::max_query_time_millis', 60000))
  • high_query_time_port (Boolean) (defaults to: hiera('profile::query_service::high_query_time_port', false))
  • blazegraph_main_ns (String) (defaults to: lookup('profile::query_service::blazegraph_main_ns'))
  • oauth (Boolean) (defaults to: lookup('profile::query_service::oauth'))


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
# 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 = hiera('profile::query_service::package_dir'),
    Stdlib::Unixpath $data_dir = hiera('profile::query_service::data_dir'),
    Stdlib::Unixpath $log_dir = hiera('profile::query_service::log_dir'),
    Query_service::DeployMode $deploy_mode = hiera('profile::query_service::deploy_mode'),
    String $deploy_name = hiera('profile::query_service::deploy_name'),
    Boolean $enable_ldf = hiera('profile::query_service::enable_ldf', false),
    Integer $max_query_time_millis = hiera('profile::query_service::max_query_time_millis', 60000),
    Boolean $high_query_time_port = hiera('profile::query_service::high_query_time_port', false),
    String $blazegraph_main_ns = lookup('profile::query_service::blazegraph_main_ns'),
    Boolean $oauth = lookup('profile::query_service::oauth')
) {
    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,
    }

    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';
        }
    }

    class { 'query_service::monitor::gui': }
}