Git Product home page Git Product logo

chef-gitolite's Introduction

DESCRIPTION:

Installs and configures gitolite in a "multi-cuisine restaurant"

REQUIREMENTS:

git
user databags with ssh public-keys

ATTRIBUTES:

Expects node['gitolite'] to be an array of hashes containing the name of the gitolite user to setup as well as the admin user of that account.

The name of the admin user will be used to lookup a databag item( in 'users') to read the users ssh_key attribute for use in initializing the gitolite admin.

f.e.

~> knife node show gitolite.rocketlabsdev.com
{
  "normal": {
    "gitolite": [
      {
        "name": "account1",
        "admin": "dan"
      },
      {
        "name": "account2",
        "admin": "dan"
      }
    ],
  ...
  "run_list": [
    "recipe[gitolite::default]"
  ],
  "chef_type": "node"
}

~> knife data bag show users dan
{
  "id": "dan",
  "ssh_key": "..."
}

If a "campfire" attribute hash exists, a post-receive hook (based on https://github.com/yjerem/git-campfire-hook) will be installed.

~> knife node show partner-repo -Fj -a gitolite
{
  "gitolite": [
    {
      "name": "account1",
      "admin": "dan",
      "campfire": {
        "ssl": true,
        "token": "6d96270004515a0486bb7f76196a72b40c55a47f",
        "subdomain": "examplecampfire",
        "room": "Example Room"
      }
    }
  ]
}

USAGE:

chef-gitolite's People

Contributors

nerian avatar openfirmware avatar patcon 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.