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
30324887
Commit
30324887
authored
Nov 06, 2015
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X Proper gitlab_shell_secret setup
parent
2d17ae03
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
8 deletions
+19
-8
software/gitlab/instance-gitlab.cfg.in
software/gitlab/instance-gitlab.cfg.in
+13
-8
software/gitlab/template/gitlab-shell-config.yml.in
software/gitlab/template/gitlab-shell-config.yml.in
+5
-0
software/gitlab/template/gitlab.yml.in
software/gitlab/template/gitlab.yml.in
+1
-0
No files found.
software/gitlab/instance-gitlab.cfg.in
View file @
30324887
...
...
@@ -114,11 +114,16 @@ backup = ${directory:srv}/backup
# gitlab-shell: etc/ log/
[gitlab-shell]
[gitlab-shell
-dir
]
recipe = slapos.cookbook:mkdirectory
etc = ${directory:etc}/gitlab-shell
log = ${directory:log}/gitlab-shell
[gitlab-shell]
etc = ${gitlab-shell-dir:etc}
log = ${gitlab-shell-dir:log}
secret = ${:etc}/gitlab_shell_secret
...
...
@@ -155,6 +160,7 @@ context-extra =
template= {{ gitlab_yml_in }}
context-extra =
section gitlab gitlab
section gitlab_shell gitlab-shell
section gitlab_backend gitlab-backend
section gitlab_shell_root_shadow gitlab-shell-root-shadow
...
...
@@ -283,19 +289,19 @@ update-command =
{{ git }} fetch software &&
{{ git }} reset --hard `cd ${:software} && {{ git }} rev-parse HEAD` &&
${:
relink
-command}
${:
tune
-command}
# NOTE there is no need to link/create .gitlab_shell_secret - we set path to it
# in gitlab & gitlab-shell configs, and gitlab creates it on its first start
[gitlab-root-shadow]
<= root-shadow
software = {{ gitlab_repository_location }}
relink
-command =
tune
-command =
# secret* tmp/ log/
rm -f .secret
.gitlab_shell_secret
&&
rm -f .secret &&
rm -rf log tmp &&
ln -sf ${gitlab:etc}/secret .secret &&
touch ${gitlab-shell:etc}/gitlab_shell_secret &&
ln -sf ${gitlab-shell:etc}/gitlab_shell_secret .gitlab_shell_secret &&
ln -sf ${gitlab:log} log &&
ln -sf ${gitlab:tmp} tmp &&
# config/
...
...
@@ -320,9 +326,8 @@ relink-command =
<= root-shadow
software = {{ gitlab_shell_repository_location }}
relink
-command =
tune
-command =
ln -sf ${gitlab-shell-config.yml:rendered} config.yml &&
ln -sf ${gitlab-shell:etc}/gitlab_shell_secret .gitlab_shell_secret &&
true
...
...
software/gitlab/template/gitlab-shell-config.yml.in
View file @
30324887
...
...
@@ -31,6 +31,11 @@ repos_path: "{{ gitlab.repositories }}"
# NOTE not used in slapos version (all access via http only)
auth_file: "TODO"
# File that contains the secret key for verifying access to GitLab.
# Default is .gitlab_shell_secret in the root directory.
secret_file: "{{ gitlab_shell.secret }}"
# Redis settings used for pushing commit notices to gitlab
redis:
bin: {{ redis_bin }}/redis-cli
...
...
software/gitlab/template/gitlab.yml.in
View file @
30324887
...
...
@@ -106,6 +106,7 @@ production: &base
repos_path: {{ gitlab.repositories }}
hooks_path: {{ gitlab_shell_root_shadow.location }}/hooks/
secret_file: {{ gitlab_shell.secret }}
# Git over HTTP is enabled
upload_pack: true
...
...
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