More Updates to collectd/CGP
This commit is contained in:
parent
ca9e6b2252
commit
e1713bbc3a
3 changed files with 20 additions and 6 deletions
|
@ -144,6 +144,7 @@ class rhizo_base {
|
|||
$admin_contact = hiera('rhizo::admin_contact','')
|
||||
$support_contact = hiera('rhizo::support_contact','')
|
||||
|
||||
$gpsd = hiera('rhizo::gpsd','172.16.0.11')
|
||||
#Device Geo Info
|
||||
$bsc_geo_lat = hiera('rhizo::bsc_geo_lat')
|
||||
$bsc_geo_lon = hiera('rhizo::bsc_geo_lon')
|
||||
|
@ -383,9 +384,10 @@ schedule { 'never':
|
|||
require => File['/root/.ssh/bsc_dev'],
|
||||
}
|
||||
|
||||
file { '/root/collectd-hack':
|
||||
file { '/home/rhizomatica/bin/collectd-graph-panel-hack':
|
||||
source => 'puppet:///modules/rhizo_base/collectd-hack',
|
||||
mode => '0750'
|
||||
mode => '0750',
|
||||
notify => Exec['notify-cgp-hack']
|
||||
}
|
||||
|
||||
file { '/var/rhizomatica/rccn/config_values.py':
|
||||
|
@ -454,6 +456,11 @@ schedule { 'never':
|
|||
}
|
||||
}
|
||||
|
||||
exec { 'notify-cgp-hack':
|
||||
command => '/home/rhizomatica/bin/collectd-graph-panel-hack once',
|
||||
refreshonly => true,
|
||||
}
|
||||
|
||||
exec { 'notify-freeswitch':
|
||||
command => '/home/rhizomatica/bin/notify-freeswitch.sh',
|
||||
refreshonly => true,
|
||||
|
@ -661,10 +668,17 @@ schedule { 'never':
|
|||
require => Package['apcupsd'],
|
||||
}
|
||||
|
||||
service { 'collectd':
|
||||
provider => 'systemd',
|
||||
enable => true,
|
||||
ensure => 'running',
|
||||
}
|
||||
|
||||
file { '/etc/collectd/collectd.conf':
|
||||
ensure => present,
|
||||
source => 'puppet:///modules/rhizo_base/etc/collectd/collectd.conf',
|
||||
content => template('rhizo_base/collectd.conf.erb'),
|
||||
require => Package['collectd'],
|
||||
notify => Service['collectd']
|
||||
}
|
||||
|
||||
file { '/etc/default/apcupsd':
|
||||
|
|
|
@ -74,7 +74,7 @@ class rhizo_base::packages::buster inherits rhizo_base::packages::common {
|
|||
require => Class['rhizo_base::apt'],
|
||||
}
|
||||
|
||||
package { ['libcdk5nc6', 'msmtp-mta', 'ncat' ]:
|
||||
package { ['libcdk5nc6', 'msmtp-mta', 'ncat', 'libgps23' ]:
|
||||
ensure => installed,
|
||||
require => Class['rhizo_base::apt'],
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ class rhizo_base::packages::stretch inherits rhizo_base::packages::common {
|
|||
require => Class['rhizo_base::apt'],
|
||||
}
|
||||
|
||||
package { ['libcdk5', 'nmap' ]:
|
||||
package { ['libcdk5', 'nmap', 'libgps22' ]:
|
||||
ensure => installed,
|
||||
require => Class['rhizo_base::apt'],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue