Merge pull request #691 from buzzdeee/master
Fix regression introduced by adding OpenBSD support.
This commit is contained in:
commit
97b7223f48
4 changed files with 14 additions and 1 deletions
|
@ -246,6 +246,10 @@ Whether the service should be restarted when things change. Valid values are 'tr
|
||||||
|
|
||||||
The name of the group used for root. Can be a group name or a group ID. See more about the [`group` file attribute](https://docs.puppetlabs.com/references/latest/type.html#file-attribute-group).
|
The name of the group used for root. Can be a group name or a group ID. See more about the [`group` file attribute](https://docs.puppetlabs.com/references/latest/type.html#file-attribute-group).
|
||||||
|
|
||||||
|
#####`mysql_group`
|
||||||
|
|
||||||
|
The name of the group of the mysql daemon user. Can be a group name or a group ID. See more about the [`group` file attribute](https://docs.puppetlabs.com/references/latest/type.html#file-attribute-group).
|
||||||
|
|
||||||
#####`package_ensure`
|
#####`package_ensure`
|
||||||
|
|
||||||
Whether the package exists or should be a specific version. Valid values are 'present', 'absent', or 'x.y.z'. Defaults to 'present'.
|
Whether the package exists or should be a specific version. Valid values are 'present', 'absent', or 'x.y.z'. Defaults to 'present'.
|
||||||
|
|
|
@ -76,6 +76,7 @@ class mysql::params {
|
||||||
$basedir = '/usr'
|
$basedir = '/usr'
|
||||||
$datadir = '/var/lib/mysql'
|
$datadir = '/var/lib/mysql'
|
||||||
$root_group = 'root'
|
$root_group = 'root'
|
||||||
|
$mysql_group = 'mysql'
|
||||||
$socket = '/var/lib/mysql/mysql.sock'
|
$socket = '/var/lib/mysql/mysql.sock'
|
||||||
$ssl_ca = '/etc/mysql/cacert.pem'
|
$ssl_ca = '/etc/mysql/cacert.pem'
|
||||||
$ssl_cert = '/etc/mysql/server-cert.pem'
|
$ssl_cert = '/etc/mysql/server-cert.pem'
|
||||||
|
@ -125,6 +126,7 @@ class mysql::params {
|
||||||
/(SLES|SLED)/ => '/var/lib/mysql/mysqld.pid',
|
/(SLES|SLED)/ => '/var/lib/mysql/mysqld.pid',
|
||||||
}
|
}
|
||||||
$root_group = 'root'
|
$root_group = 'root'
|
||||||
|
$mysql_group = 'mysql'
|
||||||
$server_service_name = 'mysql'
|
$server_service_name = 'mysql'
|
||||||
$socket = $::operatingsystem ? {
|
$socket = $::operatingsystem ? {
|
||||||
/OpenSuSE/ => '/var/run/mysql/mysql.sock',
|
/OpenSuSE/ => '/var/run/mysql/mysql.sock',
|
||||||
|
@ -158,6 +160,7 @@ class mysql::params {
|
||||||
$log_error = '/var/log/mysql/error.log'
|
$log_error = '/var/log/mysql/error.log'
|
||||||
$pidfile = '/var/run/mysqld/mysqld.pid'
|
$pidfile = '/var/run/mysqld/mysqld.pid'
|
||||||
$root_group = 'root'
|
$root_group = 'root'
|
||||||
|
$mysql_group = 'mysql'
|
||||||
$server_service_name = 'mysql'
|
$server_service_name = 'mysql'
|
||||||
$socket = '/var/run/mysqld/mysqld.sock'
|
$socket = '/var/run/mysqld/mysqld.sock'
|
||||||
$ssl_ca = '/etc/mysql/cacert.pem'
|
$ssl_ca = '/etc/mysql/cacert.pem'
|
||||||
|
@ -187,6 +190,7 @@ class mysql::params {
|
||||||
$log_error = '/var/log/mysqld.log'
|
$log_error = '/var/log/mysqld.log'
|
||||||
$pidfile = '/var/run/mysqld/mysqld.pid'
|
$pidfile = '/var/run/mysqld/mysqld.pid'
|
||||||
$root_group = 'root'
|
$root_group = 'root'
|
||||||
|
$mysql_group = 'mysql'
|
||||||
$server_service_name = 'mysqld'
|
$server_service_name = 'mysqld'
|
||||||
$socket = '/var/lib/mysql/mysql.sock'
|
$socket = '/var/lib/mysql/mysql.sock'
|
||||||
$ssl_ca = '/etc/mysql/cacert.pem'
|
$ssl_ca = '/etc/mysql/cacert.pem'
|
||||||
|
@ -210,6 +214,7 @@ class mysql::params {
|
||||||
$log_error = '/var/log/mysql/mysqld.err'
|
$log_error = '/var/log/mysql/mysqld.err'
|
||||||
$pidfile = '/run/mysqld/mysqld.pid'
|
$pidfile = '/run/mysqld/mysqld.pid'
|
||||||
$root_group = 'root'
|
$root_group = 'root'
|
||||||
|
$mysql_group = 'mysql'
|
||||||
$server_service_name = 'mysql'
|
$server_service_name = 'mysql'
|
||||||
$socket = '/run/mysqld/mysqld.sock'
|
$socket = '/run/mysqld/mysqld.sock'
|
||||||
$ssl_ca = '/etc/mysql/cacert.pem'
|
$ssl_ca = '/etc/mysql/cacert.pem'
|
||||||
|
@ -234,6 +239,7 @@ class mysql::params {
|
||||||
$log_error = "/var/db/mysql/${::hostname}.err"
|
$log_error = "/var/db/mysql/${::hostname}.err"
|
||||||
$pidfile = '/var/db/mysql/mysql.pid'
|
$pidfile = '/var/db/mysql/mysql.pid'
|
||||||
$root_group = 'wheel'
|
$root_group = 'wheel'
|
||||||
|
$mysql_group = 'mysql'
|
||||||
$server_service_name = 'mysql-server'
|
$server_service_name = 'mysql-server'
|
||||||
$socket = '/tmp/mysql.sock'
|
$socket = '/tmp/mysql.sock'
|
||||||
$ssl_ca = undef
|
$ssl_ca = undef
|
||||||
|
@ -261,6 +267,7 @@ class mysql::params {
|
||||||
$log_error = "/var/mysql/${::hostname}.err"
|
$log_error = "/var/mysql/${::hostname}.err"
|
||||||
$pidfile = '/var/mysql/mysql.pid'
|
$pidfile = '/var/mysql/mysql.pid'
|
||||||
$root_group = 'wheel'
|
$root_group = 'wheel'
|
||||||
|
$mysql_group = '_mysql'
|
||||||
$server_service_name = 'mysqld'
|
$server_service_name = 'mysqld'
|
||||||
$socket = '/var/run/mysql/mysql.sock'
|
$socket = '/var/run/mysql/mysql.sock'
|
||||||
$ssl_ca = undef
|
$ssl_ca = undef
|
||||||
|
@ -290,6 +297,7 @@ class mysql::params {
|
||||||
$log_error = '/var/log/mysqld.log'
|
$log_error = '/var/log/mysqld.log'
|
||||||
$pidfile = '/var/run/mysqld/mysqld.pid'
|
$pidfile = '/var/run/mysqld/mysqld.pid'
|
||||||
$root_group = 'root'
|
$root_group = 'root'
|
||||||
|
$mysql_group = 'mysql'
|
||||||
$server_service_name = 'mysqld'
|
$server_service_name = 'mysqld'
|
||||||
$socket = '/var/lib/mysql/mysql.sock'
|
$socket = '/var/lib/mysql/mysql.sock'
|
||||||
$ssl_ca = '/etc/mysql/cacert.pem'
|
$ssl_ca = '/etc/mysql/cacert.pem'
|
||||||
|
|
|
@ -13,6 +13,7 @@ class mysql::server (
|
||||||
$remove_default_accounts = false,
|
$remove_default_accounts = false,
|
||||||
$restart = $mysql::params::restart,
|
$restart = $mysql::params::restart,
|
||||||
$root_group = $mysql::params::root_group,
|
$root_group = $mysql::params::root_group,
|
||||||
|
$mysql_group = $mysql::params::mysql_group,
|
||||||
$root_password = $mysql::params::root_password,
|
$root_password = $mysql::params::root_password,
|
||||||
$service_enabled = $mysql::params::server_service_enabled,
|
$service_enabled = $mysql::params::server_service_enabled,
|
||||||
$service_manage = $mysql::params::server_service_manage,
|
$service_manage = $mysql::params::server_service_manage,
|
||||||
|
|
|
@ -21,7 +21,7 @@ class mysql::server::service {
|
||||||
file { $options['mysqld']['log-error']:
|
file { $options['mysqld']['log-error']:
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => $mysqluser,
|
owner => $mysqluser,
|
||||||
group => $::mysql::server::root_group,
|
group => $::mysql::server::mysql_group,
|
||||||
}
|
}
|
||||||
|
|
||||||
service { 'mysqld':
|
service { 'mysqld':
|
||||||
|
|
Loading…
Reference in a new issue