Puppet Class: kartotherian
- Defined in:
- modules/kartotherian/manifests/init.pp
Overview
SPDX-License-Identifier: Apache-2.0 Class: kartotherian
This class installs and configures kartotherian
While only being a thin wrapper around service::node, this class exists to accomodate future kartotherian needs that are not suited for the service module classes as well as conform to a de-facto standard of having a module for every service
Parameters
- conf_sources
-
Sources that will be added to the configuration file of the service. This defines the data transformation pipeline for the tile services. The actual file is loaded from the root of the source code directory. (/srv/deployment/kartotherian/deploy/src/) Default: 'sources.prod.yaml'
- contact_groups
-
Contact groups for alerting. Default: 'admins'
- cassandra_servers
-
List of cassandra server names used by Kartotherian
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'modules/kartotherian/manifests/init.pp', line 27
class kartotherian(
Array[String] $cassandra_servers,
String $cassandra_pass,
String $pgsql_pass,
String $storage_id,
String $tilerator_storage_id,
String $wikidata_query_service,
String $contact_groups = 'admins',
Stdlib::Port $port = 6533,
String $num_workers = 'ncpu',
String $cassandra_user = 'kartotherian',
String $pgsql_user = 'kartotherian',
Boolean $use_nodejs10 = false,
) {
ensure_packages(['libmapnik3.0'])
service::node { 'kartotherian':
port => $port,
deployment => 'scap3',
deployment_config => true,
deployment_vars => {
geoshapes_user => $pgsql_user,
geoshapes_password => $pgsql_pass,
cassandra_user => $cassandra_user,
cassandra_password => $cassandra_pass,
cassandra_servers => $cassandra_servers,
osmdb_password => $pgsql_pass,
osmdb_user => $pgsql_user,
storage_id => $storage_id,
tilerator_storage_id => $tilerator_storage_id,
wikidata_query_service => $wikidata_query_service,
},
has_spec => true,
healthcheck_url => '',
contact_groups => $contact_groups,
use_nodejs10 => $use_nodejs10,
}
}
|