Puppet Class: awesant
- Inherits:
- awesant::params
- Defined in:
- manifests/init.pp
Overview
Class: awesant
Module to manage Awesant log shipper with Puppet.
Parameters
- package_name
-
package name of the Awesant package
- package_ensure
-
package ensure of Awesant package Default: present
Examples
class { 'awesant':
}
Authors
Jonas Genannt <genannt@debian.org>
Copyright
Copyright 2015 Jonas Genannt
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'manifests/init.pp', line 28
class awesant(
$package_name = $awesant::params::package_name,
$package_ensure = $awesant::params::package_ensure,
$service_name = $awesant::params::service_name,
$service_ensure = $awesant::params::service_ensure,
$awesant_config = $awesant::params::awesant_config,
$awesant_logfile = $awesant::params::awesant_logfile,
$log_level = $awesant::params::log_level,
$input_include = $awesant::params::input_include,
$output_include = $awesant::params::output_include,
$resources_hiera = $awesant::params::resources_hiera
) inherits awesant::params {
class { 'awesant::package':
}->
class { 'awesant::config':
}~>
class { 'awesant::service':
}
if ($resources_hiera == true) {
create_resources('awesant::input::file', hiera('awesant::input::file', {}))
create_resources('awesant::output::rabbitmq', hiera('awesant::output::rabbitmq', {}))
}
}
|