1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-13 21:50:34 +00:00
puppet-fluentd/manifests/params.pp

39 lines
1.1 KiB
ObjectPascal
Raw Normal View History

class fluentd::params {
# package params
2015-11-30 16:04:14 +00:00
$package_ensure = 'installed'
$package_name = 'td-agent'
$package_install_options = []
# service params
$service_manage = true
$service_name = 'td-agent'
$service_ensure = 'running'
$service_enable = true
# config params
$config_path = '/etc/td-agent'
$conf_dir = "${config_path}/conf.d"
$config_file = "${config_path}/td-agent.conf"
# user params
$user_manage = true
$user_name = 'td-agent'
$user_group = 'td-agent'
$user_groups = ['adm']
# repo params
$repo_gpgcheck = true
$repo_gpgkey = 'http://packages.treasure-data.com/GPG-KEY-td-agent'
$repo_gpgkeyid = 'C901622B5EC4AF820C38AB861093DB45A12E206F'
$repo_name = 'treasuredata'
$repo_desc = 'TreasureData'
case $::osfamily {
'debian': {
$manage_repo = true
$distro_id = downcase($::lsbdistid)
$distro_codename = $::lsbdistcodename
$repo_url = "http://packages.treasure-data.com/2/${distro_id}/${distro_codename}/"
}
default: {
fail("Unsupported osfamily: ${::osfamily}")
}
}
}