diff --git a/manifests/init.pp b/manifests/init.pp index 5487abc7..6e986a9d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -153,7 +153,7 @@ String $service_name = $proxysql::params::service_name, String $service_ensure = $proxysql::params::service_ensure, - String $datadir = $proxysql::params::datadir, + Stdlib::Absolutepath $datadir = $proxysql::params::datadir, String $listen_ip = $proxysql::params::listen_ip, Integer $listen_port = $proxysql::params::listen_port, @@ -170,10 +170,10 @@ Boolean $split_config = $proxysql::params::split_config, - String $proxy_config_file = $proxysql::params::proxy_config_file, + Stdlib::Absolutepath $proxy_config_file = $proxysql::params::proxy_config_file, Boolean $manage_proxy_config_file = $proxysql::params::manage_proxy_config_file, - String $config_file = $proxysql::params::config_file, + Stdlib::Absolutepath $config_file = $proxysql::params::config_file, Boolean $manage_config_file = $proxysql::params::manage_config_file, String $mycnf_file_name = $proxysql::params::mycnf_file_name, diff --git a/manifests/install.pp b/manifests/install.pp index 84cdb74e..5db66447 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -35,13 +35,13 @@ } } - group { $::proxysql::sys_group: + group { $proxysql::sys_group: ensure => 'present', } - user { $::proxysql::sys_owner: + user { $proxysql::sys_owner: ensure => 'present', - groups => $::proxysql::sys_group, + groups => $proxysql::sys_group, } file { 'proxysql-datadir': diff --git a/manifests/reload_config.pp b/manifests/reload_config.pp index b550caba..578b793a 100644 --- a/manifests/reload_config.pp +++ b/manifests/reload_config.pp @@ -20,7 +20,7 @@ SAVE MYSQL VARIABLES TO DISK; \" ", subscribe => $subscribe, - require => [ Service[$::proxysql::service_name] , File['root-mycnf-file'] ], + require => [ Service[$proxysql::service_name] , File['root-mycnf-file'] ], refreshonly => true, } }