Make config optional
This commit is contained in:
parent
e5c55de042
commit
7c49d580a7
|
@ -3,6 +3,7 @@ class sunetdrive::proxysql (
|
|||
$bootstrap = undef,
|
||||
$location = undef,
|
||||
$proxysql_container_name = 'proxysql_proxysql_1',
|
||||
$manage_config = true,
|
||||
) {
|
||||
|
||||
# Config from group.yaml
|
||||
|
@ -54,11 +55,13 @@ class sunetdrive::proxysql (
|
|||
require => Package['nagios-nrpe-server'],
|
||||
content => template('sunetdrive/proxysql/check_mysql_server_status.erb'),
|
||||
}
|
||||
if $manage_config {
|
||||
file { '/opt/proxysql/proxysql.cnf':
|
||||
ensure => present,
|
||||
content => template('sunetdrive/proxysql/proxysql.cnf.erb'),
|
||||
mode => '0644',
|
||||
}
|
||||
}
|
||||
|
||||
file { '/opt/proxysql/my.cnf':
|
||||
ensure => present,
|
||||
|
|
Loading…
Reference in a new issue