Puppet Class: pyrra::api

Defined in:
modules/pyrra/manifests/api.pp

Overview

Parameters:

  • prometheus_url (String) (defaults to: 'https://thanos-query.discovery.wmnet')
  • prometheus_external_url (String) (defaults to: 'https://thanos.wikimedia.org')
  • api_url (String) (defaults to: 'http://localhost:9444')


10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'modules/pyrra/manifests/api.pp', line 10

class pyrra::api(
    String $prometheus_url          = 'https://thanos-query.discovery.wmnet',
    String $prometheus_external_url = 'https://thanos.wikimedia.org',
    String $api_url                 = 'http://localhost:9444',
){

    ensure_packages(['pyrra'])

    systemd::service { 'pyrra-api':
        ensure         => present,
        restart        => true,
        override       => true,
        content        => systemd_template('pyrra-api'),
        service_params => {
            enable     => true,
            hasrestart => true,
        },
    }

}