summaryrefslogtreecommitdiff
path: root/manifests/cnf.pp
blob: 3f786f4b1300d5fbff06ff4d24ef362e7881e1ab (plain)
1
2
3
4
5
6
7
8
9
10
define mysql::cnf($home, $passwd) {
  file { "$home/.my.cnf":
    content => template('mysql/my.cnf.erb'),
    require => Service['mysql'],
    owner   => root,
    group   => root,
    mode    => '0400',
    notify  => Exec['set_mysql_rootpw'],
  }
}