Add a new subclass (xymon::server::config) to manage configuration files

(at this time, it's only add a link to apt-plugin for Xymon server).
This commit is contained in:
gardouille 2015-02-20 16:59:16 +01:00
parent 2aa1f978f0
commit b5967d6b37
2 changed files with 23 additions and 2 deletions

View File

@ -39,13 +39,13 @@ class xymon::server (
include '::xymon::server::preconfig'
include '::xymon::server::install'
#include '::xymon::server::config'
include '::xymon::server::config'
include '::xymon::server::service'
include '::xymon::server::apache'
Class['::xymon::server::preconfig'] ->
Class['::xymon::server::install'] ->
#Class['::xymon::server::config'] ->
Class['::xymon::server::config'] ->
Class['::xymon::server::service'] ->
Class['::xymon::server::apache']

View File

@ -0,0 +1,21 @@
# == Class: xymon::server::config
#
# Some configurations before install Xymon server
#
class xymon::server::config {
File {
owner => root,
group => root,
mode => 0644,
}
# Config file for the apt plugin (from xymon-plugins) for Xymon server
file { 'link apt.cfg for Xymon server':
ensure => link,
path => '/etc/xymon/tasks.d/apt.cfg',
target => '../clientlaunch.d/apt.cfg',
}
} # Private class: xymon::server::config