commit:     bae0c59491f65eb518201b3ddec7a88d179cc830
Author:     Tomas Mozes <tmozes <AT> sygic <DOT> com>
AuthorDate: Mon Dec  7 14:27:07 2015 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Mon Dec  7 14:27:07 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bae0c594

app-admin/filebeat-bin: use bundled example config

 app-admin/filebeat-bin/filebeat-bin-1.0.0.ebuild  |  6 +++---
 app-admin/filebeat-bin/files/filebeat.yml.example | 14 --------------
 2 files changed, 3 insertions(+), 17 deletions(-)

diff --git a/app-admin/filebeat-bin/filebeat-bin-1.0.0.ebuild 
b/app-admin/filebeat-bin/filebeat-bin-1.0.0.ebuild
index 9d51925..a6d18e4 100644
--- a/app-admin/filebeat-bin/filebeat-bin-1.0.0.ebuild
+++ b/app-admin/filebeat-bin/filebeat-bin-1.0.0.ebuild
@@ -36,12 +36,12 @@ src_install() {
 
        fperms 0750 /var/lib/${MY_PN}
 
-       insinto /etc/${MY_PN}
-       doins "${FILESDIR}/filebeat.yml.example"
-
        newconfd "${FILESDIR}/${MY_PN}.confd" ${MY_PN}
        newinitd "${FILESDIR}/${MY_PN}.initd" ${MY_PN}
 
+       insinto /etc/${MY_PN}
+       newins ${MY_PN}.yml ${MY_PN}.yml.example
+
        dobin ${MY_PN}
 }
 

diff --git a/app-admin/filebeat-bin/files/filebeat.yml.example 
b/app-admin/filebeat-bin/files/filebeat.yml.example
deleted file mode 100644
index 06c599c..0000000
--- a/app-admin/filebeat-bin/files/filebeat.yml.example
+++ /dev/null
@@ -1,14 +0,0 @@
-filebeat:
-  prospectors:
-  -
-      paths:
-        - /var/log/*.log
-        - /var/log/debug
-        - /var/log/messages
-        - /var/log/syslog
-      input_type: log
-
-output:
-  elasticsearch:
-    hosts: ["localhost:9200"]
-    index: "logstash"

Reply via email to