Try multinode proxysql
This commit is contained in:
parent
9dd730fcea
commit
7728f8a272
|
@ -83,6 +83,17 @@ class sunetdrive::multinode (
|
||||||
minute => '25',
|
minute => '25',
|
||||||
hour => '4',
|
hour => '4',
|
||||||
}
|
}
|
||||||
|
file { '/opt/proxysql':
|
||||||
|
ensure => directory,
|
||||||
|
}
|
||||||
|
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,
|
||||||
|
|
|
@ -119,6 +119,6 @@ mysql_query_rules =
|
||||||
mysql_users =
|
mysql_users =
|
||||||
(
|
(
|
||||||
<%- $customers.each do |customer| -%>
|
<%- $customers.each do |customer| -%>
|
||||||
{ username = "nextcloud_<%= customer %>", password = "<%= @mysql_user_password %>", default_hostgroup = 10, transaction_persistent = <%= @transaction_persistent %>, active = 1 },
|
{ username = "nextcloud_<%= customer %>", password = "<%= hiera(customer + '_mysql_user_password') %>", default_hostgroup = 10, transaction_persistent = <%= @transaction_persistent %>, active = 1 },
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue