Puppet Class: cloudinsight_agent::integrations::mongo
- Inherits:
- cloudinsight_agent::params
- Defined in:
- manifests/integrations/mongo.pp
Overview
Class: cloudinsight_agent::integrations::mongo
This class will install the necessary configuration for the mongo integration
Parameters:
$host:
The host mongo is running on. Defaults to '127.0.0.1'
$port
The mongo password for the cloudinsight user. Defaults to 27017
$tags
Optional array of tags
Sample Usage:
class { 'cloudinsight_agent::integrations::mongo' :
servers => [
{
'host' => 'localhost',
'port' => '27017',
'tags' => [],
},
{
'host' => 'localhost',
'port' => '27018',
'tags' => [],
},
]
}
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'manifests/integrations/mongo.pp', line 30
class cloudinsight_agent::integrations::mongo(
$servers = [{'host' => 'localhost', 'port' => '27017'}]
) inherits cloudinsight_agent::params {
validate_array($servers)
file { "${cloudinsight_agent::params::conf_dir}/mongo.yaml":
ensure => file,
owner => $cloudinsight_agent::params::cloudinsight_user,
group => $cloudinsight_agent::params::cloudinsight_group,
mode => '0600',
content => template('cloudinsight_agent/agent-conf.d/mongo.yaml.erb'),
require => Package[$cloudinsight_agent::params::package_name],
notify => Service[$cloudinsight_agent::params::service_name]
}
}
|