Compare commits
No commits in common. "5ba11977b0be2b79e0bfed19ee1c1357f4130ffe" and "01fc5a9e8601f88960b300e35e8b1588688f32ca" have entirely different histories.
5ba11977b0
...
01fc5a9e86
|
@ -219,8 +219,6 @@ MACAddressPolicy=none'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$customers.each | $index, $customer | {
|
$customers.each | $index, $customer | {
|
||||||
$customer_config_full = hiera_hash($customer)
|
|
||||||
$customer_config = $customer_config_full[$environment]
|
|
||||||
cron { "multinode_cron_${customer}":
|
cron { "multinode_cron_${customer}":
|
||||||
command => "/opt/nextcloud/cron.sh nextcloud-${customer}_app_1",
|
command => "/opt/nextcloud/cron.sh nextcloud-${customer}_app_1",
|
||||||
require => File['/opt/nextcloud/cron.sh'],
|
require => File['/opt/nextcloud/cron.sh'],
|
||||||
|
@ -228,14 +226,11 @@ MACAddressPolicy=none'
|
||||||
minute => '*/10',
|
minute => '*/10',
|
||||||
}
|
}
|
||||||
if $environment == 'prod' {
|
if $environment == 'prod' {
|
||||||
if 'primary_bucket' in $customer_config.keys() {
|
|
||||||
$s3_bucket = $customer_config['primary_bucket']
|
|
||||||
} else {
|
|
||||||
$s3_bucket = "primary-${customer}-drive.sunet.se"
|
$s3_bucket = "primary-${customer}-drive.sunet.se"
|
||||||
}
|
|
||||||
$site_name = "${customer}.drive.sunet.se"
|
$site_name = "${customer}.drive.sunet.se"
|
||||||
$trusted_proxies = ['lb1.drive.sunet.se','lb2.drive.sunet.se', 'lb3.drive.sunet.se', 'lb4.drive.sunet.se']
|
$trusted_proxies = ['lb1.drive.sunet.se','lb2.drive.sunet.se', 'lb3.drive.sunet.se', 'lb4.drive.sunet.se']
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if 'primary_bucket' in $customer_config.keys() {
|
if 'primary_bucket' in $customer_config.keys() {
|
||||||
$s3_bucket = $customer_config['primary_bucket']
|
$s3_bucket = $customer_config['primary_bucket']
|
||||||
} else {
|
} else {
|
||||||
|
@ -249,6 +244,8 @@ MACAddressPolicy=none'
|
||||||
$apache_error_path = "/opt/multinode/${customer}/404.html"
|
$apache_error_path = "/opt/multinode/${customer}/404.html"
|
||||||
$config_php_path = "/opt/multinode/${customer}/config.php"
|
$config_php_path = "/opt/multinode/${customer}/config.php"
|
||||||
$cron_log_path ="/opt/multinode/${customer}/cron.log"
|
$cron_log_path ="/opt/multinode/${customer}/cron.log"
|
||||||
|
$customer_config_full = hiera_hash($customer)
|
||||||
|
$customer_config = $customer_config_full[$environment]
|
||||||
|
|
||||||
$dbhost = 'proxysql_proxysql_1'
|
$dbhost = 'proxysql_proxysql_1'
|
||||||
$dbname = "nextcloud_${customer}"
|
$dbname = "nextcloud_${customer}"
|
||||||
|
|
Loading…
Reference in a new issue