proxysql.conf gor prod

This commit is contained in:
Micke Nordin 2023-03-13 18:54:36 +01:00
parent 4963afd5f6
commit 03808354f3
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -84,14 +84,6 @@ class sunetdrive::multinode (
content => template('sunetdrive/multinode/prune.erb.sh'), content => template('sunetdrive/multinode/prune.erb.sh'),
mode => '0744', mode => '0744',
} }
if $environment == 'test' {
cron { 'multinode_prune':
command => '/opt/nextcloud/prune.sh',
require => File['/opt/nextcloud/prune.sh'],
user => 'root',
minute => '25',
hour => '4',
}
file { '/opt/proxysql/proxysql.cnf': file { '/opt/proxysql/proxysql.cnf':
ensure => file, ensure => file,
force => true, force => true,
@ -100,6 +92,14 @@ class sunetdrive::multinode (
content => template('sunetdrive/multinode/proxysql.cnf.erb'), content => template('sunetdrive/multinode/proxysql.cnf.erb'),
mode => '0644', mode => '0644',
} }
if $environment == 'test' {
cron { 'multinode_prune':
command => '/opt/nextcloud/prune.sh',
require => File['/opt/nextcloud/prune.sh'],
user => 'root',
minute => '25',
hour => '4',
}
} }
file { '/opt/nextcloud/apache.php.ini': file { '/opt/nextcloud/apache.php.ini':
ensure => file, ensure => file,