4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'manifests/config.pp', line 4
class proxysql::config {
$config_settings = $proxysql::config_settings
$proxy_config_file = $proxysql::proxy_config_file
$split_config = $proxysql::split_config
if $proxysql::manage_config_file {
file { 'proxysql-config-file':
ensure => file,
path => $proxysql::config_file,
content => template('proxysql/proxysql.cnf.erb'),
mode => '0640',
owner => $proxysql::sys_owner,
group => $proxysql::sys_group,
selinux_ignore_defaults => true,
}
}
if $proxysql::split_config {
file { 'proxysql-proxy-config-file':
ensure => file,
path => $proxysql::proxy_config_file,
content => epp('proxysql/proxysql_proxy.cnf.epp', { config_settings => $config_settings }),
mode => '0640',
owner => $proxysql::sys_owner,
group => $proxysql::sys_group,
selinux_ignore_defaults => true,
replace => $proxysql::manage_proxy_config_file,
}
}
}
|