Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A tiny ruby rack application which exposes the data from puppet as JSON over HTTP
Ruby
branch: master

This branch is 8 commits behind garethr:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
puppet/modules/web-puppet
test
.gitignore
Gemfile
Gemfile.lock
README
Rakefile
web-puppet.gemspec

README

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-facter 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

Note that the port and daemonize options will override those on the command line.
The username and password options enable HTTP basic authentication using those details.
Something went wrong with that request. Please try again.