Puppet Class: otrs::config

Defined in:
manifests/config.pp

Overview

Class: otrs::config

Parameters

Variables

Examples

Authors

Thomas Mueller <thomas@chaschperli.ch>

Copyright 2015 Thomas Mueller

Parameters:

  • database (Any) (defaults to: $::otrs::database)
  • database_host (Any) (defaults to: $::otrs::database_host)
  • database_user (Any) (defaults to: $::otrs::database_user)
  • database_pw (Any) (defaults to: $::otrs::database_pw)
  • sysconfig_http_running (Any) (defaults to: $::otrs::sysconfig_http_running)
  • sysconfig_cron_running (Any) (defaults to: $::otrs::sysconfig_cron_running)
  • config_pm_template (Any) (defaults to: $::otrs::config_pm_template)
  • sysconfig_template (Any) (defaults to: $::otrs::sysconfig_template)


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',
  }
}