Set expiration for multinode
This commit is contained in:
parent
1d5d61b4a7
commit
7e0f744e5d
1 changed files with 5 additions and 3 deletions
|
@ -18,6 +18,7 @@ define sunetdrive::app_type (
|
||||||
$dbhost = $config[ 'dbhost' ]
|
$dbhost = $config[ 'dbhost' ]
|
||||||
$dbname = $config[ 'dbname' ]
|
$dbname = $config[ 'dbname' ]
|
||||||
$dbuser = $config[ 'dbuser' ]
|
$dbuser = $config[ 'dbuser' ]
|
||||||
|
$full_backup_retention = $config[ 'full_backup_retention' ]
|
||||||
$instanceid = $config[ 'instanceid' ]
|
$instanceid = $config[ 'instanceid' ]
|
||||||
$mysql_user_password = $config[ 'mysql_user_password' ]
|
$mysql_user_password = $config[ 'mysql_user_password' ]
|
||||||
$passwordsalt = $config[ 'passwordsalt' ]
|
$passwordsalt = $config[ 'passwordsalt' ]
|
||||||
|
@ -33,6 +34,7 @@ define sunetdrive::app_type (
|
||||||
$dbhost = 'proxysql_proxysql_1'
|
$dbhost = 'proxysql_proxysql_1'
|
||||||
$dbname = 'nextcloud'
|
$dbname = 'nextcloud'
|
||||||
$dbuser = 'nextcloud'
|
$dbuser = 'nextcloud'
|
||||||
|
$full_backup_retention = hiera('full_backup_retention')
|
||||||
$instanceid = safe_hiera('instanceid')
|
$instanceid = safe_hiera('instanceid')
|
||||||
$mysql_user_password = safe_hiera('mysql_user_password')
|
$mysql_user_password = safe_hiera('mysql_user_password')
|
||||||
$passwordsalt = safe_hiera('passwordsalt')
|
$passwordsalt = safe_hiera('passwordsalt')
|
||||||
|
@ -88,13 +90,13 @@ define sunetdrive::app_type (
|
||||||
$drive_email_template_text_left = $config['drive_email_template_text_left']
|
$drive_email_template_text_left = $config['drive_email_template_text_left']
|
||||||
$drive_email_template_plain_text_left = $config['drive_email_template_plain_text_left']
|
$drive_email_template_plain_text_left = $config['drive_email_template_plain_text_left']
|
||||||
$drive_email_template_url_left = $config['drive_email_template_url_left']
|
$drive_email_template_url_left = $config['drive_email_template_url_left']
|
||||||
$full_backup_retention = hiera('full_backup_retention')
|
|
||||||
$lb_servers = hiera_hash($environment)['lb_servers']
|
$lb_servers = hiera_hash($environment)['lb_servers']
|
||||||
$document_servers = hiera_hash($environment)['document_servers']
|
$document_servers = hiera_hash($environment)['document_servers']
|
||||||
|
|
||||||
# Calculate some values
|
# Calculate some values
|
||||||
$expiration_days_min = $full_backup_retention * 31
|
$expiration_months = max(12, $full_backup_retention)
|
||||||
$expiration_days_max = $full_backup_retention * 31 + 93
|
$expiration_days_min = $expiration_months * 31
|
||||||
|
$expiration_days_max = $expiration_months * 31 + 93
|
||||||
|
|
||||||
unless $is_multinode{
|
unless $is_multinode{
|
||||||
user { 'www-data': ensure => present, system => true }
|
user { 'www-data': ensure => present, system => true }
|
||||||
|
|
Loading…
Add table
Reference in a new issue