Puppet Class: profile::recommendation_api

Defined in:
modules/profile/manifests/recommendation_api.pp

Overview

Profile class for recommendation_api

Parameters:

  • wdqs_uri (String) (defaults to: hiera('profile::recommendation_api::wdqs_uri'))
  • dbhost (String) (defaults to: hiera('profile::recommendation_api::dbhost'))
  • dbname (String) (defaults to: hiera('profile::recommendation_api::dbname'))
  • dbuser (String) (defaults to: hiera('profile::recommendation_api::dbuser'))


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
# File 'modules/profile/manifests/recommendation_api.pp', line 2

class profile::recommendation_api(
    String $wdqs_uri = hiera('profile::recommendation_api::wdqs_uri'),
    String $dbhost = hiera('profile::recommendation_api::dbhost'),
    String $dbname = hiera('profile::recommendation_api::dbname'),
    String $dbuser = hiera('profile::recommendation_api::dbuser'),
) {

    include passwords::recommendationapi::mysql
    $pwd = $::passwords::recommendationapi::mysql::recommendationapiservice_pass

    service::node { 'recommendation_api':
        port              => 9632,
        repo              => 'recommendation-api/deploy',
        healthcheck_url   => '',
        has_spec          => true,
        deployment        => 'scap3',
        deployment_config => true,
        deployment_vars   => {
            wdqs_uri => $wdqs_uri,
            dbhost   => $dbhost,
            dbname   => $dbname,
            dbuser   => $dbuser,
            dbpass   => $pwd,
        },
    }
}