<commit_before>#
# Cookbook Name:: gitlab
# Attribute:: default
#
# Copyright (C) 2013 <NAME>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#

default[:gitlab][:host] = node[:fqdn]
default[:gitlab][:user] = "git"
default[:gitlab][:user_home] = "/home/#{node[:gitlab][:user]}"
default[:gitlab][:packages] = %w{
  curl checkinstall ruby1.9.3 openssh-server openssl
  build-essential ruby1.9.1-dev zlib1g-dev libyaml-dev libssl-dev
  libgdbm-dev libreadline-dev libncurses5-dev libffi-dev libxml2-dev
  libxslt1-dev libcurl4-openssl-dev libicu-dev libc6-dev
}
default[:gitlab][:app_home] = "#{node[:gitlab][:user_home]}/gitlab"
default[:gitlab][:git_url] = "https://github.com/gitlabhq/gitlabhq.git"
default[:gitlab][:git_ref] = "5-2-stable"
default[:gitlab][:redis_uri] = nil
default[:gitlab][:database_config] = {
  :adapter => "mysql2",
  :encoding => "utf8",
  :reconnect => false,
  :pool => 5,
  :database => "gitlab",
  :username => "gitlab",
  :host => 'localhost',
  :socket => "/var/run/mysqld/mysqld.sock"
}
# this taken into account at the first run only
default[:gitlab][:admin] = {
  :email => "<EMAIL>",
  :name => "Administrator",
  :username => "root",
  # password must be at least 6 chars long
  :password => "<PASSWORD>"
}
default[:gitlab][:backup_path] = "tmp/backups"
default[:gitlab][:backup_keep_time] = 604800
default[:gitlab][:satellites_home] = "#{node[:gitlab][:user_home]}/gitlab-satellites"
default[:gitlab][:use_https] = false
default[:gitlab][:ssl_certificate] = "/etc/nginx/#{node[:gitlab][:host]}.crt"
default[:gitlab][:ssl_certificate_key] = "/etc/nginx/#{node[:gitlab][:host]}.key"
default[:gitlab][:ssl_certificate_pem] = "/etc/nginx/#{node[:gitlab][:host]}.pem"
default[:gitlab][:ssl_req] = "/C=US/ST=Several/L=Locality/O=Example/OU=Operations/CN=#{node[:gitlab][:host]}/emailAddress=root@#{node[:gitlab][:host]}"

default[:gitlab_shell][:app_home] = "#{node[:gitlab][:user_home]}/gitlab-shell"
default[:gitlab_shell][:git_url] = "https://github.com/gitlabhq/gitlab-shell.git"
default[:gitlab_shell][:git_ref] = "v1.4.0"
default[:gitlab_shell][:repositories] = "#{node[:gitlab][:user_home]}/repositories"
default[:gitlab_shell][:redis_config] = nil<commit_msg>added comment<commit_after>#
# Cookbook Name:: gitlab
# Attribute:: default
#
# Copyright (C) 2013 <NAME>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#

# the hostname you want to access gitlab, e.g: git.yourcompany.com
default[:gitlab][:host] = node[:fqdn]
default[:gitlab][:user] = "git"
default[:gitlab][:user_home] = "/home/#{node[:gitlab][:user]}"
default[:gitlab][:packages] = %w{
  curl checkinstall ruby1.9.3 openssh-server openssl
  build-essential ruby1.9.1-dev zlib1g-dev libyaml-dev libssl-dev
  libgdbm-dev libreadline-dev libncurses5-dev libffi-dev libxml2-dev
  libxslt1-dev libcurl4-openssl-dev libicu-dev libc6-dev
}
default[:gitlab][:app_home] = "#{node[:gitlab][:user_home]}/gitlab"
default[:gitlab][:git_url] = "https://github.com/gitlabhq/gitlabhq.git"
default[:gitlab][:git_ref] = "5-2-stable"
default[:gitlab][:redis_uri] = nil
default[:gitlab][:database_config] = {
  :adapter => "mysql2",
  :encoding => "utf8",
  :reconnect => false,
  :pool => 5,
  :database => "gitlab",
  :username => "gitlab",
  :host => 'localhost',
  :socket => "/var/run/mysqld/mysqld.sock"
}
# this taken into account at the first run only
default[:gitlab][:admin] = {
  :email => "<EMAIL>",
  :name => "Administrator",
  :username => "root",
  # password must be at least 6 chars long
  :password => "<PASSWORD>"
}
default[:gitlab][:backup_path] = "tmp/backups"
default[:gitlab][:backup_keep_time] = 604800
default[:gitlab][:satellites_home] = "#{node[:gitlab][:user_home]}/gitlab-satellites"
default[:gitlab][:use_https] = false
default[:gitlab][:ssl_certificate] = "/etc/nginx/#{node[:gitlab][:host]}.crt"
default[:gitlab][:ssl_certificate_key] = "/etc/nginx/#{node[:gitlab][:host]}.key"
default[:gitlab][:ssl_certificate_pem] = "/etc/nginx/#{node[:gitlab][:host]}.pem"
default[:gitlab][:ssl_req] = "/C=US/ST=Several/L=Locality/O=Example/OU=Operations/CN=#{node[:gitlab][:host]}/emailAddress=root@#{node[:gitlab][:host]}"

default[:gitlab_shell][:app_home] = "#{node[:gitlab][:user_home]}/gitlab-shell"
default[:gitlab_shell][:git_url] = "https://github.com/gitlabhq/gitlab-shell.git"
default[:gitlab_shell][:git_ref] = "v1.4.0"
default[:gitlab_shell][:repositories] = "#{node[:gitlab][:user_home]}/repositories"
default[:gitlab_shell][:redis_config] = nil

{'fraction_non_alphanumeric': 0.2025974025974026, 'fraction_numerical': 0.01341991341991342, 'mean_word_length': 6.779461279461279, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 33, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7110269', 'n_tokens_mistral': 1799, 'n_tokens_neox': 1752, 'n_words': 275}