Skip to content

Commit 333be5f

Browse files
committed
ensure /root/.my.cnf is 0600 and root owned
explicitly set /root/.my.cnf's owner and mode to ensure it will be created with as root owned and 0600. This change fixes #357
1 parent a3bc259 commit 333be5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manifests/server/root_password.pp

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
file { "${::root_home}/.my.cnf":
1414
content => template('mysql/my.cnf.pass.erb'),
15+
user => 'root',
16+
mode => '0600',
1517
require => Mysql_user['root@localhost'],
1618
}
1719
}

0 commit comments

Comments
 (0)