Git Product home page Git Product logo

web-puppet's Introduction

A tiny ruby rack application which exposes the data from puppet as JSON over HTTP.

    gem install web-puppet

Provides a simple command line tool which runs a built in web server. On accessing the specified port you should get a JSON response containing the current node information.

    web-puppet --help
    Usage: web-puppet [options] ...

    Configuration options:
            --no-daemonize               Don't daemonize the web server process
        -p, --port PORT                  The port to run web-puppet on
        -c, --config FILE                The file to load with configuration options
        -h, --help                       Display this screenp

Note that in most setups the yaml directory containing the node information isn't readable
by all users, so you may need to run this as puppet or root.

You can configure web-puppet using a configuration file, using the following format, and
specifying the filename with the --config option above.

    username=gilbert
    password=george
    port=3009
    daemonize=true
    filters="ec2_public_keys_0_openssh_key, ec2_userdata, sshdsakey, sshrsakey"

Note that the port and daemonize options will override those on the command line. The username and password options enable HTTP basic authentication using details specified.

The filters option will remove sensitive items from the output, you can specify any keys you like and they'll be remove automatically.

If you're using puppet to manage your puppetmaster then the provided puppet module might be of use. Include in your puppet module diretory and modify as needed. You can use like so:

    import "web-puppet"
    class { "webpuppet": username => "username", password => "password" }

web-puppet's People

Contributors

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