Move jgit autogc disablement into correct config
The receive.autogc configuration apparently needs to be in its own file, not in the general gerrit.conf. Move it to the correct location. https://review.opendev.org/Documentation/config-gerrit.html#jgit-receive While we're here, correct the filename on the gerrit.config and secure.config templates to make it clear they're jinja2 files, and add a file mode to the replication.config where it was missing. Change-Id: I9243bccac103c51ee435725aae482731642a37cc
This commit is contained in:
parent
c91ead8c05
commit
cc04abd39d
2
playbooks/roles/gerrit/files/jgit.config
Normal file
2
playbooks/roles/gerrit/files/jgit.config
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[receive]
|
||||||
|
autogc = false
|
@ -63,7 +63,7 @@
|
|||||||
|
|
||||||
- name: Write Gerrit config file
|
- name: Write Gerrit config file
|
||||||
template:
|
template:
|
||||||
src: gerrit.config
|
src: gerrit.config.j2
|
||||||
dest: "{{ gerrit_site_dir }}/etc/gerrit.config"
|
dest: "{{ gerrit_site_dir }}/etc/gerrit.config"
|
||||||
owner: "{{ gerrit_user_name }}"
|
owner: "{{ gerrit_user_name }}"
|
||||||
group: "{{ gerrit_user_name }}"
|
group: "{{ gerrit_user_name }}"
|
||||||
@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
- name: Write Gerrit secure config file
|
- name: Write Gerrit secure config file
|
||||||
template:
|
template:
|
||||||
src: secure.config
|
src: secure.config.j2
|
||||||
dest: "{{ gerrit_site_dir }}/etc/secure.config"
|
dest: "{{ gerrit_site_dir }}/etc/secure.config"
|
||||||
owner: "{{ gerrit_user_name }}"
|
owner: "{{ gerrit_user_name }}"
|
||||||
group: "{{ gerrit_user_name }}"
|
group: "{{ gerrit_user_name }}"
|
||||||
@ -83,8 +83,17 @@
|
|||||||
dest: "{{ gerrit_site_dir }}/etc/replication.config"
|
dest: "{{ gerrit_site_dir }}/etc/replication.config"
|
||||||
owner: "{{ gerrit_user_name }}"
|
owner: "{{ gerrit_user_name }}"
|
||||||
group: "{{ gerrit_user_name }}"
|
group: "{{ gerrit_user_name }}"
|
||||||
|
mode: 0644
|
||||||
when: gerrit_replication is defined
|
when: gerrit_replication is defined
|
||||||
|
|
||||||
|
- name: Write Gerrit JGit config
|
||||||
|
copy:
|
||||||
|
src: jgit.config
|
||||||
|
dest: "{{ gerrit_site_dir }}/etc/jgit.config"
|
||||||
|
owner: "{{ gerrit_user_name }}"
|
||||||
|
group: "{{ gerrit_user_name }}"
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
# Server host key for SSH service on port 29418
|
# Server host key for SSH service on port 29418
|
||||||
- name: Write Gerrit SSH host private key
|
- name: Write Gerrit SSH host private key
|
||||||
copy:
|
copy:
|
||||||
|
@ -74,7 +74,6 @@
|
|||||||
[receive]
|
[receive]
|
||||||
maxObjectSizeLimit = 100 m
|
maxObjectSizeLimit = 100 m
|
||||||
enableSignedPush = false
|
enableSignedPush = false
|
||||||
autogc = false
|
|
||||||
[commentlink "bugheader"]
|
[commentlink "bugheader"]
|
||||||
match = "([Cc]loses|[Pp]artial|[Rr]elated)-[Bb]ug:\\s*#?(\\d+)"
|
match = "([Cc]loses|[Pp]artial|[Rr]elated)-[Bb]ug:\\s*#?(\\d+)"
|
||||||
link = "https://launchpad.net/bugs/$2"
|
link = "https://launchpad.net/bugs/$2"
|
Loading…
x
Reference in New Issue
Block a user