Giter Site home page Giter Site logo

ansible-beats's Introduction

ansible-beats

Build Status

Ansible Galaxy

Installs and configures a specified Beat instance.

https://www.elastic.co/guide/en/beats/filebeat/current/index.html

Requirements

  • Ansible 2.x

Role Variables

Variable required default comments
beat_name no "metricbeat" The name of the beat to install. The list of supported_beats is defined in the role vars.
beat_install no true A flag used to control whether the role should perform installation steps.
beat_config no When defined, the child yaml is used to populate the beat's config file. If undefined, the config file is unchanged.*
beat_svc_state no When defined, corresponds to the desired state parameter of Ansible's Service Module.
beat_svc_enabled no When defined, corresponds to the desired enabled parameter of Ansible's Service Module.
beat_cfg_file no {{beat_name}}.yml If defined, sets the name for the config file.
beat_version no If defined, will install the specified version.

*: You are able to use config file namespacing when defining the beat_config variable, but it is not suggested.

Dependencies

None

Example Playbooks

To install metricbeat with default configuration:

- hosts: myhosts
  vars:
  roles:
     - role: cyverse.beats

To install metricbeat with specified configuration:

- hosts: myhosts
  vars:
    beat_config:
       metricbeat.modules:
       - module: system
         metricsets:
           - cpu
           - filesystem
           - memory
           - network
           - process
         enabled: true
         period: 10s
         processes: ['.*']
         cpu_ticks: false
       - module: apache
         metricsets: ["status"]
         enabled: true
         period: 1s
         hosts: ["http://127.0.0.1"]
       output.elasticsearch:
         hosts: ["127.0.0.1:9200"]
  roles:
     - role: cyverse.beats

To install filebeat with specified configuration:

- hosts: myhosts
  vars:
    beat_name: filebeat
    beat_config:
         ...
  roles:
     - role: cyverse.beats

License

See LICENSE.txt

Author Information

https://cyverse.org

ansible-beats's People

Contributors

skovorodkin avatar strootman avatar

Watchers

 avatar

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.