Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Removed filebeat+metricbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetepete committed Sep 2, 2020
1 parent 4f95fdd commit 6d873eb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 60 deletions.
18 changes: 0 additions & 18 deletions files/elasticsearch_logging/filebeat.service

This file was deleted.

18 changes: 0 additions & 18 deletions files/elasticsearch_logging/metricbeat.service

This file was deleted.

24 changes: 0 additions & 24 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,6 @@
command => '/bin/systemctl start nginx',
unless => ['/usr/bin/test -f /run/nginx.pid'],
}
exec { 'filebeat':
command => '/bin/systemctl enable filebeat',
creates => '/etc/systemd/system/multi-user.target.wants/filebeat.service',
}
file { '/usr/lib/systemd/system/filebeat.service':
ensure => 'file',
replace => "true",
source => 'puppet:///modules/marsnat/elasticsearch_logging/filebeat.service',
}
exec { 'start filebeat':
command => '/bin/systemctl start filebeat',
}
exec { 'metricbeat':
command => '/bin/systemctl enable metricbeat',
creates => '/etc/systemd/system/multi-user.target.wants/metricbeat.service',
}
file { '/usr/lib/systemd/system/metricbeat.service':
ensure => 'file',
replace => "true",
source => 'puppet:///modules/marsnat/elasticsearch_logging/metricbeat.service',
}
exec { 'start metricbeat':
command => '/bin/systemctl start metricbeat',
}
# For exec, use something like:
# unless => '/usr/bin/pgrep -f "manage.py runserver"',
# to prevent running duplicate. Puppet is supposed to check process table
Expand Down

0 comments on commit 6d873eb

Please sign in to comment.