xymon::client::config : Manage the default file for Xymon initscript.
This commit is contained in:
parent
d1c86d8894
commit
de5393d777
@ -32,6 +32,7 @@ class xymon::client (
|
||||
$service_managed = $xymon::params::cli_service_managed,
|
||||
$service_name = $xymon::params::cli_service_name,
|
||||
$service_default_path = $xymon::params::cli_service_default_path,
|
||||
$service_default_tpl = $xymon::params::cli_service_default_tpl,
|
||||
$service_path = $xymon::params::cli_service_path,
|
||||
$service_tpl = $xymon::params::cli_service_tpl,
|
||||
) inherits xymon::params {
|
||||
|
@ -10,7 +10,14 @@ class xymon::client::config {
|
||||
mode => 0644,
|
||||
}
|
||||
|
||||
file { "${xymon::client::service_path}":
|
||||
# Service initscript
|
||||
file { $xymon::client::service_default_path:
|
||||
ensure => present,
|
||||
content => template($xymon::client::service_default_tpl),
|
||||
notify => Service[$xymon::client::service_name],
|
||||
}
|
||||
->
|
||||
file { $xymon::client::service_path:
|
||||
ensure => present,
|
||||
mode => 0754,
|
||||
content => template($xymon::client::service_tpl),
|
||||
|
@ -18,6 +18,7 @@ class xymon::params {
|
||||
$cli_service_managed = true
|
||||
$cli_service_name = 'xymon-client'
|
||||
$cli_service_default_path = '/etc/default/xymon-client'
|
||||
$cli_service_default_tpl = 'xymon/client/default.service.erb'
|
||||
$cli_service_path = '/etc/init.d/xymon-client'
|
||||
$cli_service_tpl = 'xymon/client/xymon-client.deb_service.erb'
|
||||
|
||||
|
0
templates/client/default.service.erb
Normal file
0
templates/client/default.service.erb
Normal file
Loading…
Reference in New Issue
Block a user