Skip to content
This repository was archived by the owner on Jun 12, 2019. It is now read-only.

Commit ee63e0e

Browse files
committed
We have to be thoughtful about when we're restarting the database server since we're changing the block size and the socket path.
1 parent eba872c commit ee63e0e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

manifests/configsys.pp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,18 @@
1414
$ib1_files.each |String $ib1_file| {
1515
File {"/var/lib/mysql/${ib1_file}":
1616
ensure => 'absent',
17-
notify => Exec['mysql_restart']
1817
}
1918
}
2019

21-
# Restart MySQL service
22-
exec { 'mysql_restart':
23-
command => '/bin/systemctl restart mysql',
24-
}
25-
2620
# config mariadb server using another module
2721
class {'::mysql::server':
2822
package_manage => false,
2923
service_name => 'mysql',
3024
root_password => $mysqlroot_pw,
3125
remove_default_accounts => true,
3226
override_options => $mysql_override_options,
33-
require => Package['mariadb-server'],
27+
restart => true,
28+
require => Package['mariadb-server'],
3429
}
3530

3631
# needed since libmariadb-client-lgpl-dev is providing client development files.

0 commit comments

Comments
 (0)