diff options
author | Steffen Zieger <me@saz.sh> | 2013-05-10 05:26:58 -0700 |
---|---|---|
committer | Steffen Zieger <me@saz.sh> | 2013-05-10 05:26:58 -0700 |
commit | 962798488db91310b11b257c0c8b797c0236380d (patch) | |
tree | 712a67b57d5b380cb8fe1a0a6062e063ac575a20 /manifests/database.pp | |
parent | 08c49965861137ae79620c7ca82af572f0ef024f (diff) | |
parent | 5c4812a4f44417d398ccc39cb28593b3df3ab9f4 (diff) |
Merge pull request #30 from mbornoz/improvements
Improvements
Diffstat (limited to 'manifests/database.pp')
-rw-r--r-- | manifests/database.pp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/database.pp b/manifests/database.pp index b406bba..fe6d6ac 100644 --- a/manifests/database.pp +++ b/manifests/database.pp @@ -31,23 +31,23 @@ class rsyslog::database ( ) inherits rsyslog { $db_module = "om${backend}" - $db_conf = "${rsyslog::params::rsyslog_d}${backend}.conf" + $db_conf = "${rsyslog::rsyslog_d}${backend}.conf" case $backend { - mysql: { $db_package = $rsyslog::params::mysql_package_name } - pgsql: { $db_package = $rsyslog::params::pgsql_package_name } + mysql: { $db_package = $rsyslog::mysql_package_name } + pgsql: { $db_package = $rsyslog::pgsql_package_name } default: { fail("Unsupported backend: ${backend}. Only MySQL (mysql) and PostgreSQL (pgsql) are supported.") } } package { $db_package: - ensure => $rsyslog::params::package_status, + ensure => $rsyslog::package_status, before => File[$db_conf], } file { $db_conf: ensure => present, owner => 'root', - group => $rsyslog::params::run_group, + group => $rsyslog::run_group, mode => '0600', content => template("${module_name}/database.conf.erb"), require => Class['rsyslog::config'], |