Puppet Class: mysql::install

Defined in:
manifests/init.pp

Overview

Class: mysqlmaster

Full description of class mysqlmaster here.

This class install Mysql and setup it as a Master of MySQL Replicator. For now, it’s only works with Ikoula Cloudstack Debian template and called by the following script PHP API using CloudStack Userdata :

github.com/ikoula/cloudstack/blob/master/mysql-master.php

Authors

Laurent H. Ikoula <contrib@ikoula.com>

Copyright 2011 Your name here, unless otherwise noted.



17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/init.pp', line 17

class mysql::install {
    package { "mysql-server":
        ensure => present,
        }
    file { "/etc/mysql/my.cnf" :
        replace  => "true",
        source => "/etc/puppet/modules/mysql/files/etc.mysql.my.cnf",
        owner   => root,
        group   => root,
        require => Package['mysql-server'],
        mode    => 0644
    }
}