/[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 3422 - (show annotations) (download)
Tue Mar 18 04:02:54 2014 UTC (10 years, 1 month ago) by dams
File size: 515 byte(s)
add 'mariadb-obsolete' to fix 'non-starting mysql service'
1 class mysql {
2 class server {
3 package {['mariadb',
4 'mariadb-obsolete']: }
5
6 service { mysqld:
7 alias => mysql,
8 subscribe => Package['mariadb'],
9 }
10
11 # file { "/etc/my.cnf":
12 #
13 # }
14 }
15
16 define database() {
17 exec { "mysqladmin create $name":
18 user => root,
19 # not sure if /dev/null is needed
20 unless => "mysqlshow $name"
21 }
22 }
23 # define user($password) {
24 #
25 # }
26 }

  ViewVC Help
Powered by ViewVC 1.1.30