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