make tmpdir configurable
This commit is contained in:
parent
d41dbfd69f
commit
9dc1b946de
4 changed files with 11 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
# [*bind_address*] - address to bind service.
|
# [*bind_address*] - address to bind service.
|
||||||
# [*config_file*] - my.cnf configuration file path.
|
# [*config_file*] - my.cnf configuration file path.
|
||||||
# [*datadir*] - path to datadir.
|
# [*datadir*] - path to datadir.
|
||||||
|
# [*tmpdir*] - path to tmpdir.
|
||||||
# [*default_engine] - configure a default table engine
|
# [*default_engine] - configure a default table engine
|
||||||
# [*etc_root_password*] - whether to save /etc/my.cnf.
|
# [*etc_root_password*] - whether to save /etc/my.cnf.
|
||||||
# [*log_error] - path to mysql error log
|
# [*log_error] - path to mysql error log
|
||||||
|
@ -38,6 +39,7 @@ class mysql::config(
|
||||||
$bind_address = $mysql::bind_address,
|
$bind_address = $mysql::bind_address,
|
||||||
$config_file = $mysql::config_file,
|
$config_file = $mysql::config_file,
|
||||||
$datadir = $mysql::datadir,
|
$datadir = $mysql::datadir,
|
||||||
|
$tmpdir = $mysql::tmpdir,
|
||||||
$default_engine = $mysql::default_engine,
|
$default_engine = $mysql::default_engine,
|
||||||
$etc_root_password = $mysql::etc_root_password,
|
$etc_root_password = $mysql::etc_root_password,
|
||||||
$max_allowed_packet = $mysql::max_allowed_packet,
|
$max_allowed_packet = $mysql::max_allowed_packet,
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
#
|
#
|
||||||
# [*datadir*] - The directory MySQL's datafiles are stored
|
# [*datadir*] - The directory MySQL's datafiles are stored
|
||||||
#
|
#
|
||||||
|
# [*tmpdir*] - The directory MySQL's tmpfiles are stored
|
||||||
|
#
|
||||||
# [*default_engine*] - The default engine to use for tables
|
# [*default_engine*] - The default engine to use for tables
|
||||||
#
|
#
|
||||||
# [*etc_root_password*] - Whether or not to add the mysql root password to /etc/my.cnf
|
# [*etc_root_password*] - Whether or not to add the mysql root password to /etc/my.cnf
|
||||||
|
@ -86,6 +88,7 @@ class mysql(
|
||||||
$config_file = $mysql::params::config_file,
|
$config_file = $mysql::params::config_file,
|
||||||
$config_template = $mysql::params::config_template,
|
$config_template = $mysql::params::config_template,
|
||||||
$datadir = $mysql::params::datadir,
|
$datadir = $mysql::params::datadir,
|
||||||
|
$tmpdir = $mysql::params::tmpdir,
|
||||||
$default_engine = $mysql::params::default_engine,
|
$default_engine = $mysql::params::default_engine,
|
||||||
$etc_root_password = $mysql::params::etc_root_password,
|
$etc_root_password = $mysql::params::etc_root_password,
|
||||||
$java_package_name = $mysql::params::java_package_name,
|
$java_package_name = $mysql::params::java_package_name,
|
||||||
|
|
|
@ -41,6 +41,7 @@ class mysql::params {
|
||||||
$client_package_name = 'mysql'
|
$client_package_name = 'mysql'
|
||||||
$config_file = '/etc/my.cnf'
|
$config_file = '/etc/my.cnf'
|
||||||
$datadir = '/var/lib/mysql'
|
$datadir = '/var/lib/mysql'
|
||||||
|
$tmpdir = '/tmp'
|
||||||
$java_package_name = 'mysql-connector-java'
|
$java_package_name = 'mysql-connector-java'
|
||||||
$log_error = '/var/log/mysqld.log'
|
$log_error = '/var/log/mysqld.log'
|
||||||
$php_package_name = 'php-mysql'
|
$php_package_name = 'php-mysql'
|
||||||
|
@ -60,6 +61,7 @@ class mysql::params {
|
||||||
'Suse': {
|
'Suse': {
|
||||||
$basedir = '/usr'
|
$basedir = '/usr'
|
||||||
$datadir = '/var/lib/mysql'
|
$datadir = '/var/lib/mysql'
|
||||||
|
$tmpdir = '/tmp'
|
||||||
$service_name = 'mysql'
|
$service_name = 'mysql'
|
||||||
$client_package_name = $::operatingsystem ? {
|
$client_package_name = $::operatingsystem ? {
|
||||||
/OpenSuSE/ => 'mysql-community-server-client',
|
/OpenSuSE/ => 'mysql-community-server-client',
|
||||||
|
@ -94,6 +96,7 @@ class mysql::params {
|
||||||
'Debian': {
|
'Debian': {
|
||||||
$basedir = '/usr'
|
$basedir = '/usr'
|
||||||
$datadir = '/var/lib/mysql'
|
$datadir = '/var/lib/mysql'
|
||||||
|
$tmpdir = '/tmp'
|
||||||
$service_name = 'mysql'
|
$service_name = 'mysql'
|
||||||
$client_package_name = 'mysql-client'
|
$client_package_name = 'mysql-client'
|
||||||
$server_package_name = 'mysql-server'
|
$server_package_name = 'mysql-server'
|
||||||
|
@ -114,6 +117,7 @@ class mysql::params {
|
||||||
'FreeBSD': {
|
'FreeBSD': {
|
||||||
$basedir = '/usr/local'
|
$basedir = '/usr/local'
|
||||||
$datadir = '/var/db/mysql'
|
$datadir = '/var/db/mysql'
|
||||||
|
$tmpdir = '/tmp'
|
||||||
$service_name = 'mysql-server'
|
$service_name = 'mysql-server'
|
||||||
$client_package_name = 'databases/mysql55-client'
|
$client_package_name = 'databases/mysql55-client'
|
||||||
$server_package_name = 'databases/mysql55-server'
|
$server_package_name = 'databases/mysql55-server'
|
||||||
|
@ -137,6 +141,7 @@ class mysql::params {
|
||||||
'Amazon': {
|
'Amazon': {
|
||||||
$basedir = '/usr'
|
$basedir = '/usr'
|
||||||
$datadir = '/var/lib/mysql'
|
$datadir = '/var/lib/mysql'
|
||||||
|
$tmpdir = '/tmp'
|
||||||
$service_name = 'mysqld'
|
$service_name = 'mysqld'
|
||||||
$client_package_name = 'mysql'
|
$client_package_name = 'mysql'
|
||||||
$server_package_name = 'mysql-server'
|
$server_package_name = 'mysql-server'
|
||||||
|
|
|
@ -14,7 +14,7 @@ socket = <%= @socket %>
|
||||||
port = <%= @port %>
|
port = <%= @port %>
|
||||||
basedir = <%= @basedir %>
|
basedir = <%= @basedir %>
|
||||||
datadir = <%= @datadir %>
|
datadir = <%= @datadir %>
|
||||||
tmpdir = /tmp
|
tmpdir = <%= tmpdir %>
|
||||||
skip-external-locking
|
skip-external-locking
|
||||||
|
|
||||||
<% if @bind_address %>
|
<% if @bind_address %>
|
||||||
|
|
Loading…
Reference in a new issue