jradtilbrook / ansible-role-metricbeat Goto Github PK
View Code? Open in Web Editor NEWAnsible Metricbeat (5.x) role for the Elastic Stack
Home Page: https://galaxy.ansible.com/jradtilbrook/metricbeat/
License: MIT License
Ansible Metricbeat (5.x) role for the Elastic Stack
Home Page: https://galaxy.ansible.com/jradtilbrook/metricbeat/
License: MIT License
Hello,
Thanks for providing this role.
I have just gave it a few test runs on Ubuntu 14.04 and it fails when trying at this task copy metricbeat configuration
. Specifically, it fails to validate the metricbeats config using this code validate: /usr/bin/metricbeat.sh -c %s -configtest
when running the task as root in my playbook.
The error ansible throws is below.
{"changed": true, "exit_status": 1, "failed": true, "msg": "failed to validate", "stderr": "metricbeat2017/08/12 08:54:53.474024 beat.go:339: CRIT Exiting: error loading config file: config file ("/home/ubuntu/.ansible/tmp/ansible-tmp-1502528219.4-28975408851694/source") must be owned by the beat user (uid=0) or root\nExiting: error loading config file: config file ("/home/ubuntu/.ansible/tmp/ansible-tmp-1502528219.4-28975408851694/source") must be owned by the beat user (uid=0) or root\n", "stdout": "", "stdout_lines": []}
I have so far failed to understand where the error is coming from because when I try to validate the template on the box using the same command, the validation passes. If I had to guess, I would say it has something to do with the ansible process not having access to either the metricbeat.sh
file or another file metricbeat needs to run the validation.
I have temporarily forked the repo and commented out failing line and everything works fine. Am I missing something obvious?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.