public
Description: Modules for puppet.
Homepage:
Clone URL: git://github.com/apenney/puppet.git
puppet / mysql / manifests / install.pp
100644 23 lines (18 sloc) 0.39 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
##
## Install MySQL.
##
 
class mysql::install {
 
    package { "mysql-server":
ensure => installed,
    }
 
    exec { "mysql-password":
command => "mysqladmin -u root password '$mysqlpassword'",
subscribe => Service["mysqld"],
refreshonly => true,
    }
 
    file { "/root/.my.cnf":
mode => 600,
content => template("mysql/dotmy.cnf.erb"),
require => Exec["mysql-password"],
    }
}