Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
628886f1
Commit
628886f1
authored
Oct 26, 2015
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X Move macro to common place
parent
71565a2c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
12 deletions
+17
-12
software/gitlab/instance-gitlab.cfg.in
software/gitlab/instance-gitlab.cfg.in
+3
-0
software/gitlab/instance.cfg.in
software/gitlab/instance.cfg.in
+1
-0
software/gitlab/macrolib.cfg.in
software/gitlab/macrolib.cfg.in
+5
-0
software/gitlab/software.cfg
software/gitlab/software.cfg
+4
-0
software/gitlab/template/gitlab.yml.in
software/gitlab/template/gitlab.yml.in
+1
-2
software/gitlab/template/nginx.conf.in
software/gitlab/template/nginx.conf.in
+1
-3
software/gitlab/template/rack_attack.rb.in
software/gitlab/template/rack_attack.rb.in
+1
-3
software/gitlab/template/smtp_settings.rb.in
software/gitlab/template/smtp_settings.rb.in
+1
-4
No files found.
software/gitlab/instance-gitlab.cfg.in
View file @
628886f1
...
...
@@ -147,6 +147,9 @@ etc = ${directory:etc}/gitlab-shell
recipe = slapos.recipe.template:jinja2
extensions = jinja2.ext.do
mode = 0640
import-list =
rawfile macrolib.cfg.in {{ macrolib_cfg_in }}
# TODO move common context parameters here (= common)
[gitlab-etc-template]
...
...
software/gitlab/instance.cfg.in
View file @
628886f1
...
...
@@ -35,6 +35,7 @@ context =
raw nginx_bin ${nginx-output:nginx}
raw mime_types ${nginx-output:mime}
raw macrolib_cfg_in ${macrolib.cfg.in:target}
raw gitlab_parameters_cfg ${gitlab-parameters.cfg:target}
raw database_yml_in ${database.yml.in:target}
raw gitlab_yml_in ${gitlab.yml.in:target}
...
...
software/gitlab/macrolib.cfg.in
0 → 100644
View file @
628886f1
{# common macros for gitlab instance #}
{# cfg(name) -> instance_parameter:configuration.<name> #}
{% macro cfg(name) %}{{ instance_parameter[str("configuration." + name)] }}{% endmacro %}
software/gitlab/software.cfg
View file @
628886f1
...
...
@@ -193,6 +193,10 @@ url = ${:_profile_base_location_}/template/${:_buildout_section_name_}
<= download-file
# md5sum = TODO
[macrolib.cfg.in]
<= download-file
# md5sum = TODO
[database.yml.in]
<= download-template
# md5sum = TODO
...
...
software/gitlab/template/gitlab.yml.in
View file @
628886f1
...
...
@@ -4,8 +4,7 @@
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
# (last updated for v7.13.0.rc2)
{# cfg(name) -> instance_parameter:configuration.<name> #}
{% macro cfg(name) %}{{ instance_parameter[str("configuration." + name)] }}{% endmacro %}
{% from 'macrolib.cfg.in' import cfg with context %}
production: &base
#
...
...
software/gitlab/template/nginx.conf.in
View file @
628886f1
...
...
@@ -4,9 +4,7 @@
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/nginx.conf.erb
# (last updated for omnibus-gitlab 8.1.0+rc1.ce.0-24-g3021ed9)
{# cfg(name) -> instance_parameter:configuration.<name> #}
{# XXX dup -> import from gitlab.yml.in ? #}
{% macro cfg(name) %}{{ instance_parameter[str("configuration." + name)] }}{% endmacro %}
{% from 'macrolib.cfg.in' import cfg with context %}
# user directive makes sense only when running initially as root (and nginx will complain if not)
# user {{ gitlab_backend.user }};
...
...
software/gitlab/template/rack_attack.rb.in
View file @
628886f1
...
...
@@ -4,9 +4,7 @@
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/rack_attack.rb.erb
# (last updated for omnibus-gitlab 8.1.0+rc1.ce.0-30-g38ef5d7)
{# cfg(name) -> instance_parameter:configuration.<name> #}
{# XXX dup -> import from gitlab.yml.in ? #}
{% macro cfg(name) %}{{ instance_parameter[str("configuration." + name)] }}{% endmacro %}
{% from 'macrolib.cfg.in' import cfg with context %}
# 1. Rename this file to rack_attack.rb
# 2. Review the paths_to_be_protected and add any other path you need protecting
...
...
software/gitlab/template/smtp_settings.rb.in
View file @
628886f1
...
...
@@ -3,10 +3,7 @@
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/initializers/smtp_settings.rb.sample
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/smtp_settings.rb.erb
{# cfg(name) -> instance_parameter:configuration.<name> #}
{# XXX dup -> import from gitlab.yml.in ? #}
{% macro cfg(name) %}{{ instance_parameter[str("configuration." + name)] }}{% endmacro %}
{% from 'macrolib.cfg.in' import cfg with context %}
if Rails.env.production?
Gitlab::Application.config.action_mailer.delivery_method = :smtp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment