Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Add whitehall basic_auth_credentials for integration
Browse files Browse the repository at this point in the history
  • Loading branch information
SebAshton committed Jan 16, 2018
1 parent 813ad5e commit d98546e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/govuk/manifests/apps/link_checker_api.pp
Expand Up @@ -53,6 +53,10 @@
# The token used to bypass the rate limiting on GOV.uk
# Default: undef
#
# [*govuk_basic_auth_credentials*]
# Basic auth credentials for Whitehall used on integration.
# Default: undef
#
class govuk::apps::link_checker_api (
$db_hostname = undef,
$db_username = 'link_checker_api',
Expand All @@ -67,6 +71,7 @@
$redis_port = undef,
$secret_key_base = undef,
$rate_limit_token = undef,
$govuk_basic_auth_credentials = undef,
) {
$app_name = 'link-checker-api'

Expand Down Expand Up @@ -114,6 +119,13 @@
}
}

if $govuk_basic_auth_credentials != undef {
govuk::app::envvar { "${title}-GOVUK_BASIC_AUTH_CREDENTIALS":
varname => 'GOVUK_BASIC_AUTH_CREDENTIALS',
value => $govuk_basic_auth_credentials,
}
}

if $::govuk_node_class !~ /^development$/ {
govuk::app::envvar::database_url { $app_name:
type => 'postgresql',
Expand Down

0 comments on commit d98546e

Please sign in to comment.