Giter Site home page Giter Site logo

ansible-graphite's Introduction

ansible-libselinux-python

Build Status This role installs graphite on Debian and RedHat systems.

Requirements

Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.

Role Variables

The default variables for this role are listed below. They are defined in defaults/main.yml`.

---

---
graphite_dir: "{{ dist_graphite_dir }}" #Check the OS file in vars
graphite_webapp: "{{ graphite_dir }}/webapp"
graphite_conf_dir: "{{ graphite_dir }}/conf"
graphite_storage_dir: "{{ graphite_dir }}/storage"
graphite_content_dir: "/usr/local/webapp/content"

graphite_rrd_dir: /var/lib/carbon/rrd
graphite_log_dir: /var/log/graphite-web/
graphite_index: '{{ graphite_storage_dir }}/index'

graphite_version: latest
graphite_use_nginx: true
graphite_secret_key: "SECRET_KEY"
graphite_host: localhost
graphite_port: 80
graphite_scheme: http
graphite_url: "{{ graphite_scheme }}://{{ graphite_host }}:{{ graphite_port }}"

graphite_uwsgi_sock_dir: /var/uwsgi
graphite_uwsgi_sock: '{{ graphite_uwsgi_sock_dir }}/graphite_uwsgi.sock'
graphite_uwsgi_pid: '{{ graphite_uwsgi_sock_dir }}/graphite_uwsgi.pid'

django_dir: "{{ dist_django_dir }}" #Check the proper file in vars

whisper_dir: /media/metrics/whisper/

whisper_cron_jobs:
  - name: "Remove old whisper data"
    cron_file: ansible_whisper_data_cleanup
    weekday: 0
    user: root
    job: "find {{ whisper_dir }} -type f -mtime +60 -name \\*.wsp -delete >> /var/log/ansible_whisper_data_cleanup.log 2>&1"

  - name: "Remove empty whisper dirs"
    cron_file: ansible_whisper_dir_cleanup
    user: root
    weekday: 0
    job: "find {{ whisper_dir }} -depth -type d -empty -delete >> /var/log/ansible_whisper_dir_cleanup.log 2>&1"

Dependencies

  • bobbyrenwick.pip
  • jimbydamonk.libselinux-python
  • cchurch.uwsgi
  • geerlingguy.repo-epel (only for RedHat)
  • geerlingguy.nginx

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - { role: username.rolename, x: 42 }

License

Apache

Author Information

Mike Buzzetti

ansible-graphite's People

Contributors

jimbydamonk avatar

Watchers

 avatar  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.