GitLabの環境を量産するためのRecipeセットを目指します。
debファイルが100MBを超過してgithubにはアップ出来ないので下記コマンドで事前取得する
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.4.2-omnibus-1_amd64.deb -O files/default/gitlab_7.4.2-omnibus-1_amd64.deb
下記サイトを参照し、git-dataをebs管理、s3バックアップするようにレシピを変更 https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.m://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
下記ファイルのservernameをIPで書き換えるようにレシピを変更 /var/opt/gitlab/nginx/conf/gitlab-http.conf
Gemfileのhttpsをhttpに書き換えるようにレシピを変更 http://segmentfault.com/blog/venmos/1190000000457771
本RecipeのGitLabはUbuntu14.04で動作することを目的としています。 また、git, mysql, rubyがインストールされている必要があります。
ruby
- gitlab needs ruby version 2.1.3
TODO: List your cookbook attributes here.
e.g.
Key | Type | Description | Default |
---|---|---|---|
['gitlab']['external_url'] | String | gitlabを提供するURL | - |
['gitlab']['db_host'] | String | databaseのエンドポイント | - |
['gitlab']['db_port'] | String | databaseのポート | - |
['gitlab']['db_username'] | String | databaseのユーザ名 | - |
['gitlab']['db_password'] | String | databaseのパスワード | - |
TODO: Write usage instructions for each cookbook.
e.g.
Just include gitlab
in your node's run_list
:
{
"run_list": [
"recipe[gitlab]"
],
"automatic": {
"ipaddress": "XX.XX.XX.XX"
},
"gitlab": {
"external_url": "XX.XX.XX.XX",
"db_host": "your end point",
"db_port": "your port",
"db_username": "git, for example",
"db_password": "git password"
}
}
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
e.g.
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Shunsuke Wada