<commit_before>## THIS CONFIGURATION IS MANAGED BY PUPPET
# for all possible paramters, see:
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template
<%- def decorate(v)
  if v =~ /\AYAML/
    return v
  elsif v.is_a?(String)
    return "'#{v}'"
  elsif v.is_a?(Array)
    vedit = v.map { |s| "\"#{s}\"" }
    return "[#{vedit.join(',')}]"
  elsif v.is_a?(Hash)
    return v.inspect
  else
    return v
  end
end -%>

## Url on which GitLab will be reachable.
## For more details on configuring external_url see:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#configuring-the-external-url-for-gitlab
external_url '<%= @external_url %>'
<%- if @git_data_dir -%>

## For setting up different data storing directory
## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#storing-git-data-in-an-alternative-directory
## If you want to use a single non-default directory to store git data use:
git_data_dir "<%= @git_data_dir %>"
<%- end -%>
<%- if @gitlab_rails -%>

############################
# gitlab.yml configuration #
############################

<%- @gitlab_rails.keys.sort.each do |k| -%>
gitlab_rails['<%= k -%>'] = <%= decorate(@gitlab_rails[k]) %>
<%- end end -%>
<%- if @user -%>

###############
# GitLab user #
###############
## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#changing-the-name-of-the-git-user-group
## Modify default git user.

<%- @user.keys.sort.each do |k| -%>
user['<%= k -%>'] = <%= decorate(@user[k]) %>
<%- end end -%>
<%- if @unicorn -%>

##################
# GitLab Unicorn #
##################
## Tweak unicorn settings.

<%- @unicorn.keys.sort.each do |k| -%>
unicorn['<%= k -%>'] = <%= decorate(@unicorn[k]) %>
<%- end end -%>
<%- if @sidekiq -%>

##################
# GitLab Sidekiq #
##################

<%- @sidekiq.keys.sort.each do |k| -%>
sidekiq['<%= k -%>'] = <%= decorate(@sidekiq[k]) %>
<%- end end -%>
<%- if @shell -%>

################
# gitlab-shell #
################

<%- @shell.keys.sort.each do |k| -%>
gitlab_shell['<%= k -%>'] = <%= decorate(@shell[k]) %>
<%- end end -%>
<%- if @postgresql -%>

#####################
# GitLab PostgreSQL #
#####################

<%- @postgresql.keys.sort.each do |k| -%>
postgresql['<%= k -%>'] = <%= decorate(@postgresql[k]) %>
<%- end end -%>
<%- if @redis -%>

################
# GitLab Redis #
################
## Can be disabled if you are using your own redis instance.

<%- @redis.keys.sort.each do |k| -%>
redis['<%= k -%>'] = <%= decorate(@redis[k]) %>
<%- end end -%>
<%- if @web_server -%>

#####################
# GitLab Web server #
#####################
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/nginx.md#using-a-non-bundled-web-server
## When bundled nginx is disabled we need to add the external webserver user to the GitLab webserver group.

<%- @web_server.keys.sort.each do |k| -%>
web_server['<%= k -%>'] = <%= decorate(@web_server[k]) %>
<%- end end -%>
<%- if @nginx -%>

################
# GitLab Nginx #
################
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/nginx.md

<%- @nginx.keys.sort.each do |k| -%>
nginx['<%= k -%>'] = <%= decorate(@nginx[k]) %>
<%- end end -%>
<%- if @logging -%>

##################
# GitLab Logging #
##################
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#logs

<%- @logging.keys.sort.each do |k| -%>
logging['<%= k -%>'] = <%= decorate(@logging[k]) %>
<%- end end -%>
<%- if @logrotate -%>

#############
# Logrotate #
#############
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#logrotate
## You can disable built in logrotate feature.

<%- @logrotate.keys.sort.each do |k| -%>
logrotate['<%= k -%>'] = <%= decorate(@logrotate[k]) %>
<%- end end -%>
<%- if @git -%>

#######
# Git #
#######
## Advanced setting for configuring git system settings for omnibus-gitlab internal git
## For multiple options under one header use array of comma separated values, eg.
## { "receive" => ["fsckObjects = true"], "alias" => ["st = status", "co = checkout"] }

<%- @git.keys.sort.each do |k| -%>
omnibus_gitconfig['<%= k -%>'] = <%= decorate(@git[k]) %>
<%- end end -%>
<%- if @ci_external_url -%>

############################################
# Url on which GitLab CI will be reachable #
############################################
## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/gitlab-ci/README.md

ci_external_url '<%= ci_external_url %>'
<%- end -%>
<%- if @gitlab_ci -%>

#################################
# application.yml configuration #
#################################

<%- @gitlab_ci.keys.sort.each do |k| -%>
gitlab_ci['<%= k -%>'] = <%= decorate(@gitlab_ci[k]) %>
<%- end end -%>
<%- if @ci_unicorn -%>

#####################
# GitLab CI Unicorn #
#####################
## Tweak unicorn settings.

<%- @ci_unicorn.keys.sort.each do |k| -%>
ci_unicorn['<%= k -%>'] = <%= decorate(@ci_unicorn[k]) %>
<%- end end -%>
<%- if @ci_redis -%>

###################
# GitLab CI Redis #
###################
## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/redis.md
## You can turn off bundled redis if you want to use your own redis instanance

<%- @ci_redis.keys.sort.each do |k| -%>
ci_redis['<%= k -%>'] = <%= decorate(@ci_redis[k]) %>
<%- end end -%>
<%- if @_real_ci_nginx -%>

###################
# GitLab CI NGINX #
###################
## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/nginx.md
## You can tell the bundled NGINX that it should not serve up GitLab CI by setting ci_nginx['enable'] to false.

<%- @_real_ci_nginx.keys.sort.each do |k| -%>
ci_nginx['<%= k -%>'] = <%= decorate(@_real_ci_nginx[k]) %>
<%- end end -%>
<%- if @high_availability -%>

#####################
# High Availability #
#####################
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#only-start-omnibus-gitlab-services-after-a-given-filesystem-is-mounted

<%- @high_availability.keys.sort.each do |k| -%>
high_availability['<%= k -%>'] = <%= decorate(@high_availability[k]) %>
<%- end end -%>
<commit_msg>correct scope of ci_external_url<commit_after>## THIS CONFIGURATION IS MANAGED BY PUPPET
# for all possible paramters, see:
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template
<%- def decorate(v)
  if v =~ /\AYAML/
    return v
  elsif v.is_a?(String)
    return "'#{v}'"
  elsif v.is_a?(Array)
    vedit = v.map { |s| "\"#{s}\"" }
    return "[#{vedit.join(',')}]"
  elsif v.is_a?(Hash)
    return v.inspect
  else
    return v
  end
end -%>

## Url on which GitLab will be reachable.
## For more details on configuring external_url see:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#configuring-the-external-url-for-gitlab
external_url '<%= @external_url %>'
<%- if @git_data_dir -%>

## For setting up different data storing directory
## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#storing-git-data-in-an-alternative-directory
## If you want to use a single non-default directory to store git data use:
git_data_dir "<%= @git_data_dir %>"
<%- end -%>
<%- if @gitlab_rails -%>

############################
# gitlab.yml configuration #
############################

<%- @gitlab_rails.keys.sort.each do |k| -%>
gitlab_rails['<%= k -%>'] = <%= decorate(@gitlab_rails[k]) %>
<%- end end -%>
<%- if @user -%>

###############
# GitLab user #
###############
## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#changing-the-name-of-the-git-user-group
## Modify default git user.

<%- @user.keys.sort.each do |k| -%>
user['<%= k -%>'] = <%= decorate(@user[k]) %>
<%- end end -%>
<%- if @unicorn -%>

##################
# GitLab Unicorn #
##################
## Tweak unicorn settings.

<%- @unicorn.keys.sort.each do |k| -%>
unicorn['<%= k -%>'] = <%= decorate(@unicorn[k]) %>
<%- end end -%>
<%- if @sidekiq -%>

##################
# GitLab Sidekiq #
##################

<%- @sidekiq.keys.sort.each do |k| -%>
sidekiq['<%= k -%>'] = <%= decorate(@sidekiq[k]) %>
<%- end end -%>
<%- if @shell -%>

################
# gitlab-shell #
################

<%- @shell.keys.sort.each do |k| -%>
gitlab_shell['<%= k -%>'] = <%= decorate(@shell[k]) %>
<%- end end -%>
<%- if @postgresql -%>

#####################
# GitLab PostgreSQL #
#####################

<%- @postgresql.keys.sort.each do |k| -%>
postgresql['<%= k -%>'] = <%= decorate(@postgresql[k]) %>
<%- end end -%>
<%- if @redis -%>

################
# GitLab Redis #
################
## Can be disabled if you are using your own redis instance.

<%- @redis.keys.sort.each do |k| -%>
redis['<%= k -%>'] = <%= decorate(@redis[k]) %>
<%- end end -%>
<%- if @web_server -%>

#####################
# GitLab Web server #
#####################
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/nginx.md#using-a-non-bundled-web-server
## When bundled nginx is disabled we need to add the external webserver user to the GitLab webserver group.

<%- @web_server.keys.sort.each do |k| -%>
web_server['<%= k -%>'] = <%= decorate(@web_server[k]) %>
<%- end end -%>
<%- if @nginx -%>

################
# GitLab Nginx #
################
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/nginx.md

<%- @nginx.keys.sort.each do |k| -%>
nginx['<%= k -%>'] = <%= decorate(@nginx[k]) %>
<%- end end -%>
<%- if @logging -%>

##################
# GitLab Logging #
##################
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#logs

<%- @logging.keys.sort.each do |k| -%>
logging['<%= k -%>'] = <%= decorate(@logging[k]) %>
<%- end end -%>
<%- if @logrotate -%>

#############
# Logrotate #
#############
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#logrotate
## You can disable built in logrotate feature.

<%- @logrotate.keys.sort.each do |k| -%>
logrotate['<%= k -%>'] = <%= decorate(@logrotate[k]) %>
<%- end end -%>
<%- if @git -%>

#######
# Git #
#######
## Advanced setting for configuring git system settings for omnibus-gitlab internal git
## For multiple options under one header use array of comma separated values, eg.
## { "receive" => ["fsckObjects = true"], "alias" => ["st = status", "co = checkout"] }

<%- @git.keys.sort.each do |k| -%>
omnibus_gitconfig['<%= k -%>'] = <%= decorate(@git[k]) %>
<%- end end -%>
<%- if @ci_external_url -%>

############################################
# Url on which GitLab CI will be reachable #
############################################
## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/gitlab-ci/README.md

ci_external_url '<%= @ci_external_url %>'
<%- end -%>
<%- if @gitlab_ci -%>

#################################
# application.yml configuration #
#################################

<%- @gitlab_ci.keys.sort.each do |k| -%>
gitlab_ci['<%= k -%>'] = <%= decorate(@gitlab_ci[k]) %>
<%- end end -%>
<%- if @ci_unicorn -%>

#####################
# GitLab CI Unicorn #
#####################
## Tweak unicorn settings.

<%- @ci_unicorn.keys.sort.each do |k| -%>
ci_unicorn['<%= k -%>'] = <%= decorate(@ci_unicorn[k]) %>
<%- end end -%>
<%- if @ci_redis -%>

###################
# GitLab CI Redis #
###################
## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/redis.md
## You can turn off bundled redis if you want to use your own redis instanance

<%- @ci_redis.keys.sort.each do |k| -%>
ci_redis['<%= k -%>'] = <%= decorate(@ci_redis[k]) %>
<%- end end -%>
<%- if @_real_ci_nginx -%>

###################
# GitLab CI NGINX #
###################
## see https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/nginx.md
## You can tell the bundled NGINX that it should not serve up GitLab CI by setting ci_nginx['enable'] to false.

<%- @_real_ci_nginx.keys.sort.each do |k| -%>
ci_nginx['<%= k -%>'] = <%= decorate(@_real_ci_nginx[k]) %>
<%- end end -%>
<%- if @high_availability -%>

#####################
# High Availability #
#####################
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#only-start-omnibus-gitlab-services-after-a-given-filesystem-is-mounted

<%- @high_availability.keys.sort.each do |k| -%>
high_availability['<%= k -%>'] = <%= decorate(@high_availability[k]) %>
<%- end end -%>

{'fraction_non_alphanumeric': 0.2986648460021241, 'fraction_numerical': 0.046730389925656195, 'mean_word_length': 4.525146689019279, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 193, 'https://': 24, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5865831', 'n_tokens_mistral': 5851, 'n_tokens_neox': 5198, 'n_words': 871}