<commit_before># Package
if platform_family?("rhel")
  packages = %w{
    libicu-devel libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel
    libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel gcc-c++
    ImageMagick-devel ImageMagick
  }
else
  packages = %w{
    build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev
    curl openssh-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev python-docutils
    logrotate vim curl wget checkinstall
  }
end

default['gitlab']['packages'] = packages
default['gitlab']['ruby'] = "2.0.0-p353"

# GitLab shell
default['gitlab']['shell_repository'] = "https://github.com/gitlabhq/gitlab-shell.git"
default['gitlab']['shell_revision'] = "v1.8.0"

# GitLab hq
default['gitlab']['repository'] = "https://github.com/gitlabhq/gitlabhq.git"
default['gitlab']['deploy_key'] = "" # Optional. Private key used to connect to private GitLab repository.

# GitLab shell config
default['gitlab']['redis_path'] = "/usr/local/bin/redis-cli"
default['gitlab']['redis_host'] = "127.0.0.1"
default['gitlab']['redis_port'] = "6379"
default['gitlab']['namespace']  = "resque:gitlab"

# GitLab hq config
default['gitlab']['git_path'] = "/usr/local/bin/git"
default['gitlab']['host'] = "localhost"

default['gitlab']['email_from'] = "<EMAIL>"
default['gitlab']['support_email'] = "<EMAIL>"

# Gems
default['gitlab']['bundle_install'] = "SSL_CERT_FILE=/opt/local/etc/certs/cacert.pem bundle install --path=.bundle --deployment"

# Assumed defaults
# database: mysql (option: postgresql)
# environment: production (option: development)

default['gitlab']['database_adapter'] = "mysql"
default['gitlab']['database_password'] = "<PASSWORD>"
default['gitlab']['database_user'] = "git"
default['gitlab']['env'] = "production"

default['mysql']['server_host'] = "localhost"
default['mysql']['server_root_password'] = "<PASSWORD>"
default['mysql']['server_repl_password'] = "<PASSWORD>"
default['mysql']['server_debian_password'] = "<PASSWORD>"

default['postgresql']['password']['postgres'] = "<PASSWORD>"
default['postgresql']['server_host'] = "localhost"

default['postfix']['mail_type'] = "client"
default['postfix']['myhostname'] = "mail.localhost"
default['postfix']['mydomain'] = "localhost"
default['postfix']['myorigin'] = "mail.localhost"
default['postfix']['smtp_use_tls'] = "no"

# User
default['gitlab']['user'] = "git" # Do not change this attribute in production since some code from the GitLab repo such as init.d script assume it is git.
default['gitlab']['group'] = "git"
default['gitlab']['home'] = "/home/git"

# GitLab shell
default['gitlab']['shell_path'] = "/home/git/gitlab-shell"

# GitLab hq
default['gitlab']['path'] = "/home/git/gitlab" # Do not change this attribute in production since some code from the GitLab repo such as init.d assume this path.

# GitLab shell config
default['gitlab']['repos_path'] = "/home/git/repositories"

# GitLab hq config
default['gitlab']['satellites_path'] = "/home/git/gitlab-satellites"

# Unicorn specific configuration
default['gitlab']['unicorn_workers_number'] = 2
default['gitlab']['unicorn_timeout'] = 30

# Setup environments
if node['gitlab']['env'] == "development"
  default['gitlab']['port'] = "3000"
  default['gitlab']['url'] = "http://localhost:3000/"
  default['gitlab']['revision'] = "master"
  default['gitlab']['environments'] = %w{development test}
else
  default['gitlab']['environments'] = %w{production}
  default['gitlab']['url'] = "http://localhost:80/"
  default['gitlab']['revision'] = "6-3-stable" # Must be branch, otherwise GitLab update will run on each chef run
  default['gitlab']['port'] = "80"
end

# Nginx ssl certificates

default['gitlab']['ssl_certificate_path'] = "/etc/ssl/certs" # Path to .crt file. If it directory doesn't exist it will be created
default['gitlab']['ssl_certificate_key_path'] = "/etc/ssl/private" # Path to .key file. If directory doesn't exist it will be created
default['gitlab']['ssl_certificate'] = "web-essentials.asia.crt" # SSL certificate
default['gitlab']['ssl_certificate_key'] = "web-essentials.asia.key" # SSL certificate key

# AWS is disabled by default. If enabled is set to true, bundler will install gems from aws group and use the credentials to populate config/aws.yml<commit_msg>Update gitlab host<commit_after># Package
if platform_family?("rhel")
  packages = %w{
    libicu-devel libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel
    libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel gcc-c++
    ImageMagick-devel ImageMagick
  }
else
  packages = %w{
    build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev
    curl openssh-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev python-docutils
    logrotate vim curl wget checkinstall
  }
end

default['gitlab']['packages'] = packages
default['gitlab']['ruby'] = "2.0.0-p353"

# GitLab shell
default['gitlab']['shell_repository'] = "https://github.com/gitlabhq/gitlab-shell.git"
default['gitlab']['shell_revision'] = "v1.8.0"

# GitLab hq
default['gitlab']['repository'] = "https://github.com/gitlabhq/gitlabhq.git"
default['gitlab']['deploy_key'] = "" # Optional. Private key used to connect to private GitLab repository.

# GitLab shell config
default['gitlab']['redis_path'] = "/usr/local/bin/redis-cli"
default['gitlab']['redis_host'] = "127.0.0.1"
default['gitlab']['redis_port'] = "6379"
default['gitlab']['namespace']  = "resque:gitlab"

# GitLab hq config
default['gitlab']['git_path'] = "/usr/local/bin/git"
default['gitlab']['host'] = "git.web-essentials.asia"

default['gitlab']['email_from'] = "<EMAIL>"
default['gitlab']['support_email'] = "<EMAIL>"

# Gems
default['gitlab']['bundle_install'] = "SSL_CERT_FILE=/opt/local/etc/certs/cacert.pem bundle install --path=.bundle --deployment"

# Assumed defaults
# database: mysql (option: postgresql)
# environment: production (option: development)

default['gitlab']['database_adapter'] = "mysql"
default['gitlab']['database_password'] = "<PASSWORD>"
default['gitlab']['database_user'] = "git"
default['gitlab']['env'] = "production"

default['mysql']['server_host'] = "localhost"
default['mysql']['server_root_password'] = "<PASSWORD>"
default['mysql']['server_repl_password'] = "<PASSWORD>"
default['mysql']['server_debian_password'] = "<PASSWORD>"

default['postgresql']['password']['postgres'] = "<PASSWORD>"
default['postgresql']['server_host'] = "localhost"

default['postfix']['mail_type'] = "client"
default['postfix']['myhostname'] = "mail.localhost"
default['postfix']['mydomain'] = "localhost"
default['postfix']['myorigin'] = "mail.localhost"
default['postfix']['smtp_use_tls'] = "no"

# User
default['gitlab']['user'] = "git" # Do not change this attribute in production since some code from the GitLab repo such as init.d script assume it is git.
default['gitlab']['group'] = "git"
default['gitlab']['home'] = "/home/git"

# GitLab shell
default['gitlab']['shell_path'] = "/home/git/gitlab-shell"

# GitLab hq
default['gitlab']['path'] = "/home/git/gitlab" # Do not change this attribute in production since some code from the GitLab repo such as init.d assume this path.

# GitLab shell config
default['gitlab']['repos_path'] = "/home/git/repositories"

# GitLab hq config
default['gitlab']['satellites_path'] = "/home/git/gitlab-satellites"

# Unicorn specific configuration
default['gitlab']['unicorn_workers_number'] = 2
default['gitlab']['unicorn_timeout'] = 30

# Setup environments
if node['gitlab']['env'] == "development"
  default['gitlab']['port'] = "3000"
  default['gitlab']['url'] = "http://git.web-essentials.asia:3000/"
  default['gitlab']['revision'] = "master"
  default['gitlab']['environments'] = %w{development test}
else
  default['gitlab']['environments'] = %w{production}
  default['gitlab']['url'] = "http://git.web-essentials.asia:80/"
  default['gitlab']['revision'] = "6-3-stable" # Must be branch, otherwise GitLab update will run on each chef run
  default['gitlab']['port'] = "80"
end

# Nginx ssl certificates

default['gitlab']['ssl_certificate_path'] = "/etc/ssl/certs" # Path to .crt file. If it directory doesn't exist it will be created
default['gitlab']['ssl_certificate_key_path'] = "/etc/ssl/private" # Path to .key file. If directory doesn't exist it will be created
default['gitlab']['ssl_certificate'] = "" # SSL certificate
default['gitlab']['ssl_certificate_key'] = "" # SSL certificate key

# AWS is disabled by default. If enabled is set to true, bundler will install gems from aws group and use the credentials to populate config/aws.yml
{'fraction_non_alphanumeric': 0.17651059970524885, 'fraction_numerical': 0.009295998186146695, 'mean_word_length': 6.3394342762063225, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 2, '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': '4253485', 'n_tokens_mistral': 2954, 'n_tokens_neox': 2817, 'n_words': 641}