Compare commits
No commits in common. "718bc0b496548647e0549327e7b22895a494a5f2" and "eba9546cdcbb172c4b2172b0ef0f0b829c45267c" have entirely different histories.
718bc0b496
...
eba9546cdc
|
@ -5,9 +5,6 @@ class sunetdrive::lookup (
|
||||||
) {
|
) {
|
||||||
|
|
||||||
$environment = sunetdrive::get_environment()
|
$environment = sunetdrive::get_environment()
|
||||||
$config = lookup($environment, undef, undef, undef)
|
|
||||||
|
|
||||||
$public_url = "https://${config['site_name']}"
|
|
||||||
|
|
||||||
|
|
||||||
# Firewall settings
|
# Firewall settings
|
||||||
|
@ -16,10 +13,8 @@ class sunetdrive::lookup (
|
||||||
|
|
||||||
$dbhost = 'proxysql_proxysql_1'
|
$dbhost = 'proxysql_proxysql_1'
|
||||||
$gss_jwt_key = safe_hiera('gss_jwt_key')
|
$gss_jwt_key = safe_hiera('gss_jwt_key')
|
||||||
$replication_auth = safe_hiera('replication_auth')
|
|
||||||
$mysql_user_password = safe_hiera('mysql_user_password')
|
$mysql_user_password = safe_hiera('mysql_user_password')
|
||||||
$lookup_version = hiera("lookup_version_${environment}")
|
$lookup_version = hiera("lookup_version_${environment}")
|
||||||
$email_sender = $config['email_sender']
|
|
||||||
|
|
||||||
#Create users
|
#Create users
|
||||||
user { 'www-data': ensure => present, system => true }
|
user { 'www-data': ensure => present, system => true }
|
||||||
|
|
|
@ -1,29 +1,16 @@
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
$CONFIG = [
|
$CONFIG = [
|
||||||
'AUTH_KEY' => "<%= @gss_jwt_key %>",
|
|
||||||
'DB' => [
|
'DB' => [
|
||||||
'host' => "<%= @dbhost %>",
|
'host' => "<%= @dbhost %>",
|
||||||
'db' => "lookup" ,
|
'db' => "lookup" ,
|
||||||
'user' => "lookup",
|
'user' => "lookup",
|
||||||
'pass' => "<%= @mysql_user_password %>",
|
'pass' => "<%= @mysql_user_password %>",
|
||||||
],
|
],
|
||||||
'EMAIL_SENDER' => '<%= @email_sender %>',
|
|
||||||
'ERROR_VERBOSE' => false,
|
|
||||||
'GLOBAL_SCALE' => true,
|
'GLOBAL_SCALE' => true,
|
||||||
'IP_BLACKLIST' => [
|
|
||||||
],
|
'AUTH_KEY' => "<%= @gss_jwt_key %>",
|
||||||
'MAX_REQUESTS' => 10000,
|
];
|
||||||
'MAX_SEARCH_PAGE' => 10,
|
|
||||||
'PUBLIC_URL' => '<%= @public_url %>',
|
|
||||||
'REPLICATION_AUTH' => '<%= @replication_auth %>',
|
|
||||||
'REPLICATION_HOSTS' => [
|
|
||||||
],
|
|
||||||
'SPAM_BLACKLIST' => [
|
|
||||||
],
|
|
||||||
'TWITTER' => [
|
|
||||||
'CONSUMER_KEY' => '',
|
|
||||||
'CONSUMER_SECRET' => '',
|
|
||||||
'ACCESS_TOKEN' => '',
|
|
||||||
'ACCESS_TOKEN_SECRET' => '',
|
|
||||||
],
|
|
||||||
];
|
|
Loading…
Reference in a new issue