Skip to content

Commit 34afa1c

Browse files
authored
Merge pull request #365 from tobiashuste/add-nolog
Make sure to not output sensitive information
2 parents f2f8614 + 571739b commit 34afa1c

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

roles/gitlab/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ gitlab_release: "ce.0"
5454
**Please note:** If no GitLab version is specified the role will always install
5555
the latest available GitLab package.
5656
57+
#### Do not display sensitive changes in diffs by default
58+
59+
```yaml
60+
gitlab_hide_sensitive_changes: true
61+
```
62+
5763
#### GPG Key URL
5864
5965
URL to the GPG key that was used to sign the packages.

roles/gitlab/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ gitlab_release: ""
1111
gitlab_gpg_key_url: "https://packages.gitlab.com/gitlab/{{ gitlab_edition }}/gpgkey"
1212
gitlab_gpg_key_id: "F6403F6544A38863DAA0B6E03F01618A51312F3F"
1313

14+
# Do not display sensitive changes in diffs by default
15+
gitlab_hide_sensitive_changes: true
16+
1417
# Specify whether this is the GitLab primary node
1518
gitlab_is_primary: false
1619

roles/gitlab/tasks/configure.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
mode: "0600"
1515
backup: true
1616
when: "gitlab_secrets_file is defined"
17+
no_log: "{{ gitlab_hide_sensitive_changes }}"
1718
notify:
1819
- "Reconfigure Primary GitLab"
1920
- "Reconfigure Non Primary GitLab"
@@ -26,6 +27,7 @@
2627
owner: "root"
2728
group: "root"
2829
mode: "0644"
30+
no_log: "{{ gitlab_hide_sensitive_changes }}"
2931
notify:
3032
- "Reconfigure Primary GitLab"
3133
- "Reconfigure Non Primary GitLab"

0 commit comments

Comments
 (0)