cookbook 'gitlabhq', '= 0.4.0'
gitlabhq (2) Versions 0.4.0 Follow0
Installs/Configures Gitlab
cookbook 'gitlabhq', '= 0.4.0', :supermarket
knife supermarket install gitlabhq
knife supermarket download gitlabhq
GitLabHQ Cookbook
This cookbook installs and configures GitLab.
Requirements
- Hard disk space
- Around 200 mb plus space for your repositories
Attributes
gitlabhq::default
default[:gitlab][:install_ruby] = '1.9.3-p392' default[:gitlab][:ruby_dir] = "/usr/local/ruby/#{node[:gitlab][:install_ruby]}/bin" # GIT default[:git][:prefix] = "/usr/local" default[:git][:version] = "1.8.2.1" default[:git][:url] = "https://git-core.googlecode.com/files/git-#{node[:git][:version]}.tar.gz" default[:git][:checksum] = "ed6dbf91b56c1540627563b5e8683fe726dac881ae028f3f17650b88fcb641d7" # DATABASE default[:gitlab][:database][:type] = 'mysql' default[:gitlab][:database][:adapter] = default[:gitlab][:database][:type] == 'mysql' ? 'mysql2' : 'postgresql' default[:gitlab][:database][:encoding] = default[:gitlab][:database][:type] == 'mysql' ? 'utf8' : 'unicode' default[:gitlab][:database][:host] = 'localhost' default[:gitlab][:database][:pool] = 5 default[:gitlab][:database][:database] = 'gitlab' default[:gitlab][:database][:username] = 'gitlab' # GITLAB USER default[:gitlab][:user] = 'git' default[:gitlab][:group] = 'git' default[:gitlab][:home] = '/home/git' default[:gitlab][:app_home] = "#{node[:gitlab][:home]}/gitlab" default[:gitlab][:environment] = 'production' default[:gitlab][:marker_dir] = "#{node[:gitlab][:home]}/.markers" # GITLAB SHELL default[:gitlab][:ssh_port] = 22 default[:gitlab][:gitlab_shell_url] = 'https://github.com/gitlabhq/gitlab-shell' default[:gitlab][:gitlab_shell_branch] = 'v1.4.0' default[:gitlab][:gitlab_shell_home] = "#{node[:gitlab][:home]}/gitlab-shell" default[:gitlab][:gitlab_shell_user] = 'git' default[:gitlab][:repos_path] = "#{node[:gitlab][:home]}/repositories" default[:gitlab][:satellite_path] = "#{node[:gitlab][:home]}/gitlab-satellites" default[:gitlab][:auth_file] = "#{node[:gitlab][:home]}/.ssh/authorized_keys" default[:gitlab][:backup_path] = "#{node[:gitlab][:app_home]}/backups" default[:gitlab][:redis_binary_path] = '/usr/bin/redis-cli' default[:gitlab][:redis_host] = '127.0.0.1' default[:gitlab][:redis_port] = 6379 default[:gitlab][:redis_namespace] = 'resque:gitlab' default[:gitlab][:trust_local_sshkeys] = 'yes' # GITLAB default[:gitlab][:gitlab_url] = 'https://github.com/gitlabhq/gitlabhq' default[:gitlab][:gitlab_branch] = 'v5.2.0' default[:gitlab][:backup_keep_time] = 604800 default[:gitlab][:https] = true default[:gitlab][:ssl_certificate] = "/etc/nginx/#{node[:fqdn]}.crt" default[:gitlab][:ssl_certificate_key] = "/etc/nginx/#{node[:fqdn]}.key" default[:gitlab][:ssl_req] = "/C=US/ST=Several/L=Locality/O=Example/OU=Operations/CN=#{node[:fqdn]}/emailAddress=root@localhost" default[:gitlab][:gems] = %w{ charlock_holmes bundler rake } default[:gitlab][:python_packages] = %w{ pygments } # BACKUP default[:gitlab][:backup][:s3_region] = 'us-east-1' default[:gitlab][:backup][:s3_bucket] = 'gitlab-repo-backups' default[:gitlab][:backup][:s3_path] = '/backups' default[:gitlab][:backup][:s3_keep] = 10
Usage
gitlabhq::default
Just include gitlabhq
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[gitlabhq]" ] }
Contributing
- Fork the repository on Github
- Create a named feature branch (like
my_cool_feature
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: chris@wideeyelabs.com
Dependent cookbooks
Contingent cookbooks
There are no cookbooks that are contingent upon this one.