/[adm]/puppet/modules/mysql/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/mysql/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 567 - (show annotations) (download)
Thu Dec 9 12:34:34 2010 UTC (13 years, 4 months ago) by misc
File size: 553 byte(s)
- readd a better mysql module
1 class mysql {
2 class server {
3 package { "mysql":
4 ensure => installed
5 }
6
7 service { "mysql":
8 path => "/etc/init.d/mysqld",
9 ensure => running,
10 hasstatus => true,
11 }
12
13 # file { "/etc/my.cnf":
14 #
15 # }
16 }
17
18 define database() {
19 exec { "mysqladmin create $name":
20 user => root,
21 # not sure if /dev/null is needed
22 unless => "mysqlshow $name"
23 }
24 }
25 # define user($password) {
26 #
27 # }
28 }

  ViewVC Help
Powered by ViewVC 1.1.30