Puppet Class: otrs::config
- Defined in:
- manifests/config.pp
Overview
Class: otrs::config
Parameters
Variables
Examples
Authors
Thomas Mueller <thomas@chaschperli.ch>
Copyright
Copyright 2015 Thomas Mueller
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'manifests/config.pp', line 18
class otrs::config(
$database = $::otrs::database,
$database_host = $::otrs::database_host,
$database_user = $::otrs::database_user,
$database_pw = $::otrs::database_pw,
$sysconfig_http_running = $::otrs::sysconfig_http_running,
$sysconfig_cron_running = $::otrs::sysconfig_cron_running,
$config_pm_template = $::otrs::config_pm_template,
$sysconfig_template = $::otrs::sysconfig_template,
) {
file { "$::otrs::install_root/Kernel/Config.pm":
content => template($config_pm_template),
owner => 'otrs',
group => 'apache',
mode => '0640',
show_diff => false, # contains passwords
}
file { '/etc/sysconfig/otrs':
content => template($sysconfig_template),
owner => 'root',
group => 'root',
mode => '0644',
}
}
|