Git Product home page Git Product logo

cookbook-geminabox's Introduction

Geminabox On Chef

Configures and installs geminabox via Chef to provide a private (and optionally secured) gem store.

Features

  • Optional SSL

  • Optional user/pass authentication

Requirements

Currently this cookbook uses a defined set of applications with the intention to expand coverage of other options (like passenger, thin, apache, monit, etc). At present, these are supported:

  • Nginx

  • Unicorn

  • Bluepill

Suggested additions

It is highly suggested to include the BagConfig cookbook for storing sensitive configuration values within encrypted data bag entries:

community.opscode.com/cookbooks/bag_config

What you get

By default, this cookbook will provide a Geminabox instance available via node_address. It uses a unicorn + nginx pairing with bluepill monitoring the unicorn processes. It also comes with an upstart configuration.

Adding extras

SSL

To enable SSL, provide a key and cert pair:

node[:geminabox][:ssl] = {:key => '/path/to/ssl.key', :cert => '/path/to/ssl.cert', :enabled => true}

You can also provide the the actual key and cert pair in the attributes (though if this approach is used, it is advised to use the BagConfig cookbook and encrypt the data bag entry).

Authentication

To enable authentication, provide a path to the htpasswd file to use or the raw contents of the htpasswd file:

node[:geminabox][:auth_required] = '/path/to/htpasswd.file'

or, you can provide a hash of user/password pairs and have the auth file dynamically created:

node[:geminabox][:auth_required] = {'user1' => 'secret'}

Again, with providing plaintext passwords, it is suggested to use the BagConfig cookbook and encrypt the configuration data bag entry.

Finally, the password file can be provided via data bag. There are two ways the data bag can be formatted. First is providing the content of an htpasswd generated file. The second is to provide username/password pairs in the data bag.

Issues

Please report any bugs to the issues section on the github repo. If you have fixes, updates or new features, please fork and send a pull request

Thanks

Many thanks to Tom Lea for Geminabox

License

MIT License (see LICENSE)

cookbook-geminabox's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cookbook-geminabox's Issues

update cookbook to v0.3.0

v0.3.0

  • use berkshelf for cookbook dependency resolution
  • pin nginx cookbook to <= 2.7.5
  • add rakefile and rubocop.yml
  • update kitchen to use centos 6.7
  • fix cops
  • set ssl_protocol default to TLSv1

Remove SSLv3 from Nginx template

The Nginx SSL template hardcodes SSLv3 in the protocol list, which is not such a good idea any more because of POODLE. It would be great if this could be removed, or perhaps made configurable for those who want to disable it without forking the cookbook.

If you are looking for a little guidance, there are always some good defaults on the Mozilla Server Side TLS wiki.

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.