GithubHelp home page GithubHelp logo

nd-roy / ansible-role-blackfire Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 12.0 36 KB

Ansible role to install Blackfire Profiler

Home Page: https://galaxy.ansible.com/list#/roles/3201

License: MIT License

Ruby 75.99% Makefile 24.01%

ansible-role-blackfire's Introduction

Blackfire.io

Build Status Galaxy Gitter

An ansible role to install and configure Blackfire

Requirements

None.

Role Variables

'blackfire_server_id' and 'blackfire_server_token' must be changed !!

    # Sets the server id used to authenticate with Blackfire API
    #blackfire_server_id: __CHANGE_THIS_VALUE__
    
    # Sets the server token used to authenticate with Blackfire API. It is unsafe to set this from the command line
    #blackfire_server_token: __CHANGE_THIS_VALUE__
    
    # Log verbosity level (4: debug, 3: info, 2: warning, 1: error)
    blackfire_log_level: 1
    
    # Sets the socket the agent should read traces from.
    # Possible value can be a unix socket or a TCP address. ie: unix:///var/run/blackfire/agent.sock or tcp://127.0.0.1:8307
    blackfire_socket: "unix:///var/run/blackfire/agent.sock"
    
    # Sets the URL of Blackfire's data collector
    blackfire_collector: https://blackfire.io
    
    # Restart apache after the activation of blackfire php extension
    blackfire_apache_enable: false
    
    # Restart php fpm after the activation of blackfire php extension
    blackfire_php_fpm_enable: true

Dependencies

None.

Example Playbook

    - hosts: all
      roles:
         - { role: AbdoulNdiaye.Blackfire }
      vars:
        blackfire_server_id:    __CHANGE_THIS_VALUE__
        blackfire_server_token: __CHANGE_THIS_VALUE__

FAQ

Q: My playbook run fails with error stderr: sudo: sorry, you must have a tty to run sudo

A: On RHEL based systems /etc/sudoers has line:

Defaults    requiretty

It's safe to remove that line (https://bugzilla.redhat.com/show_bug.cgi?id=1020147) and by doing that everything should work.

License

MIT

Author Information

Abdoul N'Diaye @AbdoulNdiaye

Contact : [email protected]

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.