Giter Club home page Giter Club logo

ansible-role-metricbeat's People

Contributors

wanderanimrod avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-role-metricbeat's Issues

Configuration validation fails on Ubuntu 14.04

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.