Puppet Class: cloudinsight_agent::integrations::mysql
- Inherits:
- cloudinsight_agent::params
- Defined in:
- manifests/integrations/mysql.pp
Overview
Class: cloudinsight_agent::integrations::mysql
This class will install the necessary configuration for the mysql integration
Parameters:
$host:
The host mysql is running on
$password
The mysql password for the cloudinsight user
$user
The mysql user for the cloudinsight user
$sock
Connect mysql via unix socket
$tags
Optional array of tags
$replication
replication option
$galera_cluster
galera cluster option
Sample Usage:
class { 'cloudinsight_agent::integrations::mysql' :
host => 'localhost',
password => 'some_pass',
user => 'cloudinsight'
}
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'manifests/integrations/mysql.pp', line 30
class cloudinsight_agent::integrations::mysql(
$host = 'localhost',
$password,
$user = 'cloudinsight',
$sock = undef,
$tags = [],
$replication = '0',
$galera_cluster = '0'
) inherits cloudinsight_agent::params {
validate_array($tags)
file { "${cloudinsight_agent::params::conf_dir}/mysql.yaml":
ensure => file,
owner => $cloudinsight_agent::params::cloudinsight_user,
group => $cloudinsight_agent::params::cloudinsight_group,
mode => '0600',
content => template('cloudinsight_agent/agent-conf.d/mysql.yaml.erb'),
require => Package[$cloudinsight_agent::params::package_name],
notify => Service[$cloudinsight_agent::params::service_name],
}
}
|