drrb / puppet-library

A private Puppet Forge
GNU General Public License v3.0
87 stars 20 forks source link

Listen address config option is missing #25

Closed kisst closed 9 years ago

kisst commented 9 years ago

There is no way to setup which address on start the service, the default localhost also not the best idea since we talking about a server.... lsof -i :80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME puppet-li 9084 root 8u IPv4 500640 0t0 TCP localhost:http (LISTEN)

ptierno commented 9 years ago

you need to use -b:

eg: puppet-library --p 80 -b 10.12.12.58

Usage: puppet-library [options]
    -c, --config-file FILE           Config file to read config values from
    -p, --port PORT                  Port to listen on (defaults to whatever Rack wants to use)
    -s, --server SERVER              Server to use (defaults to whatever Rack wants to use)
    -b, --bind-host HOSTNAME         Host name to bind to (defaults to whatever Rack wants to use)
        --daemonize                  Run the server in the background
        --pidfile FILE               Write a pidfile to this location after starting (implies --daemonize)
    -m, --module-dir DIR             Directory containing packaged modules (can be specified multiple times)
    -x, --proxy URL                  Remote forge to proxy (can be specified multiple times)
        --source-dir DIR             Directory containing a module's source (can be specified multiple times)
        --cache-basedir DIR          Cache all proxies' downloaded modules under this directory
kisst commented 9 years ago

Thanks, May I suggest to update the help message to make this clear ?