GithubHelp home page GithubHelp logo

cookbook-gitlab's Introduction

cookbook-gitlab Build Status

Description

This cookbook will deploy gitlab; a free project and repository management application.

Code hosted on github here.

This cookbook was developed on RHEL/CentOS 6. Other platforms may need re-worked, please open an issue or send a pull request to either, atomic-penguin or jackl0phty, on github.

Requirements

  • Hard disk space

    • About 200 Mb, plus enough space for repositories on /var
  • Ruby 1.9.1 packages

    • Packages used for Debian / Ubuntu only
  • Nginx package

    • All platforms need an nginx package to configure Nginx and Unicorn.

Cookbooks + Acknowledgements

The dependencies in this cookbook add up to over 1,500 lines of code. This would not have been possible without the great community work of so many others. Much kudos to everyone who added indirectly to the epicness of this cookbook.

  • ruby_build

    • Thanks to Fletcher Nichol for his awesome ruby_build cookbook. This ruby_build LWRP is used to build Ruby 1.9.2 for gitlab, since Redhat shipped rubies are not compatible with the application.
  • gitolite

    • Big thanks to Ruan David's gitolite as it certainly helped with the development of this cookbook. Unfortunately we had to implement our cookbook in such a way that directly conflicts with the original cookbook.
  • chef_gem

    • Thanks to Chris Roberts for this little gem helper. This cookbook provides a compatible gem resource for Omnibus on Chef versions less than 0.10.8
  • redisio

    • Thanks to Brian Bianco for this Redis cookbook, because I don't know anything about Redis. Thanks to this cookbook I still don't know anything about Redis, and that is the best kind of cookbook. One that just works out of the box.
  • Opscode, Inc cookbooks

Notes about conflicts

  • gitolite cookbook

    • The gitolite recipe within our cookbook was based on David Ruan's cookbook. We couldn't integrate gitolite and gitlab without significant rework on David's original cookbook. Our gitolite recipe will only configure gitolite for use with gitlab. Our gitlab::gitolite recipe will not set up a standalone gitolite installation as David's cookbook does.
  • nginx cookbook

    • Our default recipe templates out the /etc/nginx/conf.d/default.conf. This will directly conflict with another cookbook, such as nginx, trying to manage this file.

Attributes

  • gitlab['gitolite_url']

    • Github gitolite address
    • Default git://github.com/sitaramc/gitolite.git
  • gitlab['git_user'] & gitlab['git_group']

    • Git service account for gitolite
    • Default git
  • gitlab['git_home']

    • Top-level home for gitolite and repositories
    • Default /var/git
  • gitlab['gitolite_home']

    • Application home for gitolite
    • Default /var/git/gitolite
  • gitlab['gitolite_umask']

    • Umask setting for gitolite.rc
    • Defaults to 0007
  • gitlab['user'] & gitlab['group']

    • Gitlab service user and group for Unicorn Rails app
    • Default gitlab
  • gitlab['home']

    • Gitlab top-level home for service account
    • default /var/gitlab
  • gitlab['app_home']

    • Gitlab application home
    • Default /var/gitlab/gitlab
  • gitlab['gitlab_url']

    • Github gitlab address
    • Default git://github.com/gitlabhq/gitlabhq.git
  • gitlab['gitlab_branch']

    • Gitlab git branch
    • Default master
  • gitlab['packages']

    • Platform specific OS packages
  • gitlab['trust_local_sshkeys']

    • ssh_config key for gitlab to trust localhost keys automatically
    • Defaults to yes
  • gitlab['install_ruby']

    • Attribute to determine whether vendor packages are installed, or Rubies are built
    • Redhat family defaults 1.9.2; Debian family defaults to package.

Usage

Optionally override application paths using gitlab['git_home'] and gitlab['home'].

Add recipe gitlab::default to run_list. Go grab a lunch, or two, if Ruby has to build.

The default admin credentials for the gitlab application are as follows:

User: [email protected]
Password: 5iveL!fe

Of course you should change these first thing, once deployed.

License and Author

Author: Gerald L. Hevener Jr., M.S. Copyright: 2012

Author: Eric G. Wolfe Copyright: 2012

Gitlolite Author: David Ruan Copyright: RailsAnt, Inc., 2010

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

cookbook-gitlab's People

Contributors

jackl0phty avatar bretkoppel avatar fnichol avatar kouno 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.