Fixed mysql init on Ubuntu and Debian.
This commit is contained in:
parent
ed65daf9d8
commit
a5f30acd33
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,11 @@ class mysql::server {
|
||||||
}
|
}
|
||||||
|
|
||||||
service { "mysqld":
|
service { "mysqld":
|
||||||
|
name => $operatingsystem ? {
|
||||||
|
"ubuntu" => "mysql",
|
||||||
|
"debian" => "mysql",
|
||||||
|
default => "mysqld",
|
||||||
|
},
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
enable => true,
|
||||||
require => File["/srv/mysql"],
|
require => File["/srv/mysql"],
|
||||||
|
|
Loading…
Add table
Reference in a new issue