cloud::sql / Comments cleaning
Some cleaning on comments and lint warning. Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
@@ -73,12 +73,12 @@ class cloud::database::sql (
|
|||||||
client_package_name => 'MariaDB-client',
|
client_package_name => 'MariaDB-client',
|
||||||
service_name => $mysql_service_name,
|
service_name => $mysql_service_name,
|
||||||
}
|
}
|
||||||
# galera-23.2.7-1.rhel6.x86_64
|
|
||||||
|
# Specific to Red Hat
|
||||||
$wsrep_provider = '/usr/lib64/galera/libgalera_smm.so'
|
$wsrep_provider = '/usr/lib64/galera/libgalera_smm.so'
|
||||||
|
|
||||||
# TODO(Gonéri)
|
|
||||||
# MariaDB-Galera-server-5.5.34-1.x86_64 doesn't create this
|
|
||||||
$dirs = [ '/var/run/mysqld', '/var/log/mysql' ]
|
$dirs = [ '/var/run/mysqld', '/var/log/mysql' ]
|
||||||
|
|
||||||
file { $dirs:
|
file { $dirs:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
mode => '0750',
|
mode => '0750',
|
||||||
@@ -93,6 +93,8 @@ class cloud::database::sql (
|
|||||||
client_package_name => 'mariadb-client',
|
client_package_name => 'mariadb-client',
|
||||||
service_name => $mysql_service_name,
|
service_name => $mysql_service_name,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Specific to Debian / Ubuntu
|
||||||
$wsrep_provider = '/usr/lib/galera/libgalera_smm.so'
|
$wsrep_provider = '/usr/lib/galera/libgalera_smm.so'
|
||||||
|
|
||||||
database_user { 'debian-sys-maint@localhost':
|
database_user { 'debian-sys-maint@localhost':
|
||||||
@@ -101,6 +103,7 @@ class cloud::database::sql (
|
|||||||
provider => 'mysql',
|
provider => 'mysql',
|
||||||
require => File['/root/.my.cnf']
|
require => File['/root/.my.cnf']
|
||||||
}
|
}
|
||||||
|
|
||||||
file{'/etc/mysql/debian.cnf':
|
file{'/etc/mysql/debian.cnf':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
content => template('cloud/database/debian.cnf.erb'),
|
content => template('cloud/database/debian.cnf.erb'),
|
||||||
@@ -113,7 +116,7 @@ class cloud::database::sql (
|
|||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/init.d/mysql-bootstrap':
|
file { '/etc/init.d/mysql-bootstrap':
|
||||||
content => template("cloud/database/etc_initd_mysql"),
|
content => template('cloud/database/etc_initd_mysql'),
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
@@ -213,11 +216,6 @@ class cloud::database::sql (
|
|||||||
privileges => ['all']
|
privileges => ['all']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# TODO(Gonéri):
|
|
||||||
# Here we should do the db_sync.
|
|
||||||
# https://github.com/enovance/puppet-openstack-cloud/issues/156
|
|
||||||
|
|
||||||
Database_user<<| |>>
|
Database_user<<| |>>
|
||||||
} # if $::hostname == $galera_master
|
} # if $::hostname == $galera_master
|
||||||
|
|
||||||
@@ -245,7 +243,7 @@ class cloud::database::sql (
|
|||||||
group => 'root';
|
group => 'root';
|
||||||
}
|
}
|
||||||
|
|
||||||
# Hack for Debian. The puppet-xinetd module do not correctly reload
|
# The puppet-xinetd module do not correctly reload
|
||||||
# the configuration on “notify”
|
# the configuration on “notify”
|
||||||
# TODO(Gonéri): remove this once https://github.com/puppetlabs/puppetlabs-xinetd/pull/9
|
# TODO(Gonéri): remove this once https://github.com/puppetlabs/puppetlabs-xinetd/pull/9
|
||||||
# get merged
|
# get merged
|
||||||
|
Reference in New Issue
Block a user