summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2008-10-18 13:09:10 +0000
committerandreas <andreas@immerda.ch>2008-10-18 13:09:10 +0000
commit731da58149554e3bf432771de6410bb58d0af67e (patch)
treeefc3bbf3aa353c3a39df1ed1b0c53bd05ea65c08 /manifests/init.pp
parentfea257b75321eb82722af149bbb0a77d771f2290 (diff)
the ibdata1 file needs to be mysql, otherwise mysqld is not starting
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 975d18a..a3542fc 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -57,6 +57,13 @@ class mysql::server::base {
owner => mysql, group => mysql, mode => 0755;
}
+ file{'/var/lib/mysql/data/ibdata1':
+ ensure => file,
+ require => Package[mysql-server],
+ before => File['/opt/bin/setmysqlpass.sh'],
+ owner => mysql, group => mysql, mode => 0660;
+ }
+
case $mysql_rootpw {
'': { fail("You need to define a mysql root password! Please set \$mysql_rootpw in your site.pp or host config") }
}
@@ -134,4 +141,5 @@ class mysql::server::centos inherits mysql::server::clientpackage {
File['/etc/mysql/my.cnf']{
path => '/etc/my.cnf',
}
+
}