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:
parent
2aa1f978f0
commit
b5967d6b37
|
@ -39,13 +39,13 @@ class xymon::server (
|
||||||
|
|
||||||
include '::xymon::server::preconfig'
|
include '::xymon::server::preconfig'
|
||||||
include '::xymon::server::install'
|
include '::xymon::server::install'
|
||||||
#include '::xymon::server::config'
|
include '::xymon::server::config'
|
||||||
include '::xymon::server::service'
|
include '::xymon::server::service'
|
||||||
include '::xymon::server::apache'
|
include '::xymon::server::apache'
|
||||||
|
|
||||||
Class['::xymon::server::preconfig'] ->
|
Class['::xymon::server::preconfig'] ->
|
||||||
Class['::xymon::server::install'] ->
|
Class['::xymon::server::install'] ->
|
||||||
#Class['::xymon::server::config'] ->
|
Class['::xymon::server::config'] ->
|
||||||
Class['::xymon::server::service'] ->
|
Class['::xymon::server::service'] ->
|
||||||
Class['::xymon::server::apache']
|
Class['::xymon::server::apache']
|
||||||
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue