Merge "Make collectd startup dependent on networking Anchor"

This commit is contained in:
Zuul 2019-01-03 21:27:47 +00:00 committed by Gerrit Code Review
commit 6d47838a24
3 changed files with 14 additions and 7 deletions

View File

@ -1,2 +1,2 @@
SRC_DIR="src"
TIS_PATCH_VER=74
TIS_PATCH_VER=75

View File

@ -29,11 +29,16 @@ class platform::collectd
content => template('platform/collectd.conf.erb'),
} # now start collectd
-> exec { 'collectd-enable':
command => 'systemctl enable collectd',
unless => 'systemctl is-enabled collectd'
}
# ensure that collectd is running
-> service { 'collectd':
ensure => running,
enable => true,
provider => 'systemd'
provider => 'systemd',
require => Anchor['platform::networking'],
} # now get pmond to monitor the process
# ensure pmon soft link for process monitoring
@ -54,7 +59,6 @@ class platform::collectd::runtime {
class platform::collectd::restart {
include ::platform::collectd
exec { 'collectd-restart':
command => '/usr/local/sbin/pmon-restart collect'
command => '/usr/local/sbin/pmon-restart collectd'
}
}

View File

@ -44,6 +44,11 @@ class platform::influxdb
content => template('platform/influxdb.conf.erb'),
} # now make sure that influxdb is started
-> exec { 'influxdb-enable':
command => 'systemctl enable influxdb',
unless => 'systemctl is-enabled influxdb'
}
# ensure that influxdb is running
-> service { 'influxdb':
ensure => running,
@ -61,12 +66,10 @@ class platform::influxdb
}
}
class platform::influxdb::runtime {
include ::platform::influxdb
}
class platform::influxdb::logrotate::params (
$log_file_name = undef,
$log_file_size = undef,