Giter Club home page Giter Club logo

moonshine_scout's Introduction

#Moonshine Scout

A Moonshine plugin for installing and managing the Scout client.

Requirements

  • A Scout account
  • The agent key for your server. This key will be provided at the time you add your server to Scout, and is also available under the Server Admin section of the site.

Quickstart Instructions

  • script/plugin install git://github.com/railsmachine/moonshine_scout.git
  • Configure agent key in config/moonshine.yml
     :scout:
     :agent_key: YOUR-PRIVATE-SCOUT-KEY
  • Include the plugin and recipe(s) in your Moonshine manifest
     recipe :scout

Scout is now configured to run via cron every 3 minutes.

Advanced configuration

You can adjust the user that runs the Scout command and the interval at which it runs by using the respective keys:

  :scout:
    :agent_key: YOUR-PRIVATE-SCOUT-KEY
    :interval:  15 # defaults to 3
    :user:      root # defaults to the moonshine user, or 'daemon' if that's not configured

To use private plugins, you'll need to configure a scout_rsa.pub. Follow the instruction and copy the scout_rsa.pub to app/manifests/templates.

Scout Realtime Gem

You can enable the scout realtime gem by setting :realtime: true in your manifest. You can also run the cap tasks below by adding the following options in your environment yaml. If you do not set these variables, they will default to the values below. (with the exception of :realtime: which must be set to TRUE to enable scout_realtime )

  :scout:
    :realtime: TRUE   #
    :version:  INT    # defaults to 0.5.3
    :port:     INT    # defaults to 5555
    :log:      PATH   # defaults to ~/.scout/scout_realtime.log
    :pid:      PATH   # defaults to ~/scout/scout_realtime.pid

Cap Tasks :

  • cap scout:realtime:start Starts the scout_realtime daemon
  • cap scout:realtime:stop Stops the scout_realtime daemon
  • cap scout:realtime:foreground Runs in the foreground, and does not daemonize the process.
  • cap scout:realtime:open_firewall_port Adds an iptables rule allowing traffic on the port selected in the yaml file.
  • cap scout:realtime:close_firewall_port Removes the iptables rule for the selected port.
  • cap scout:realtime:open_web Opens the realtime web interface locally.
  • cap scout:realtime:start_ssh_tunnel Starts an SSH tunnel to the remote server.

To use private plugins, you’ll need to configure a scout_rsa.pub. Follow the instruction and copy the scout_rsa.pub to app/manifests/templates.

Scout Daemon

You can enable the scoutd daemon by setting :scoutd: true in your moonshine.yml or manifest. The scoutd daemon runs as the scoutd user.

For certain plugins you may need sudo access. By default the scoutd user is allowed to run all commands as root. You can specify a comma separated list of allowable commands by setting :sudo_commands: in your moonshine.yml or manifest. The :sudo_commands: variable defaults to 'ALL'.


Unless otherwise specified, all content copyright © 2014, Rails Machine, LLC

moonshine_scout's People

Contributors

auxesis avatar bryantraywick avatar dbrm avatar jnewland avatar kplawver avatar railsmachine-ops avatar skalnik avatar technicalpickles avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moonshine_scout's Issues

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.