Skip to content

Commit

Permalink
Merge pull request #132 from rwaffen/add_monitoring_config
Browse files Browse the repository at this point in the history
add variables for monitoring to oned.conf
  • Loading branch information
rwaffen committed Mar 12, 2015
2 parents d6cadc4 + 23446a3 commit b2eb9b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
$oneuid = '9869'
$onegid = '9869'

$monitoring_interval = hiera('one::oned::monitoring_interval', '60')
$monitoring_threads = hiera('one::oned::monitoring_threads', '50')

# the priv key is mandatory on the head.
validate_string($ssh_pub_key)
if (!$one::node) {
Expand Down
4 changes: 2 additions & 2 deletions templates/oned.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ LOG = [

#MANAGER_TIMER = 30

MONITORING_INTERVAL = 60
MONITORING_THREADS = 50
MONITORING_INTERVAL = <%= scope.lookupvar('one::params::monitoring_interval') %>
MONITORING_THREADS = <%= scope.lookupvar('one::params::monitoring_threads') %>

#HOST_PER_INTERVAL = 15
#HOST_MONITORING_EXPIRATION_TIME = 43200
Expand Down

0 comments on commit b2eb9b5

Please sign in to comment.