ansible-role-gitlab/templates/gitlab.rb.j2

30 lines
749 B
Text
Raw Normal View History

2020-04-11 13:16:20 +00:00
# {{ ansible_managed }}
external_url '{{ gitlab_url }}'
2022-01-19 15:11:17 +00:00
{% if gitlab_registry_url is defined %}
registry_external_url '{{ gitlab_registry_url }}'
{% endif %}
2021-08-24 06:03:45 +00:00
{% if gitlab_pages_url is defined %}
pages_external_url '{{ gitlab_pages_url }}'
{% endif %}
2021-08-24 05:59:04 +00:00
{% if gitlab_data_dir is defined %}
2020-04-11 13:16:20 +00:00
git_data_dirs({
"default" => {
"path" => "{{ gitlab_data_dir }}"
}
})
2021-08-24 05:59:04 +00:00
{% endif %}
2020-04-11 13:16:20 +00:00
{% for module, options in gitlab_config.items() %}
{% for option, value in options.items() %}
{{ module }}['{{ option }}'] = {% if value is sameas true %}true
{% elif value is sameas false %}false
{% elif value is string %}'{{ value }}'
{% elif value is number %}{{ value }}
{% else %}YAML.load <<-EOS
{{ value|to_nice_yaml }}
EOS
2020-04-11 13:16:20 +00:00
{% endif %}
{% endfor %}
{% endfor %}