Skip to content

Commit bd5a1fc

Browse files
committed
ansible: increase MaxStartups for jenkins-workspace
This is necessary when many workers running tests try to access the temp repo to download binaries simultaneously. PR-URL: #1515 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
1 parent a1957ef commit bd5a1fc

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
3+
#
4+
# generic handlers for jenkins-workspace stuff
5+
#
6+
7+
- name: restart sshd
8+
service: name="{{ sshd_service_name }}" state=restarted

ansible/roles/jenkins-workspace/tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,10 @@
8080
owner: "binary_tmp"
8181
group: "binary_tmp"
8282
mode: 0755
83+
84+
- name: Increase the maximum number of connections trying to authenticate
85+
notify: restart sshd
86+
lineinfile:
87+
line: "MaxStartups 100:30:150"
88+
dest: "{{ ssh_config }}"
89+
regexp: "MaxStartups"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
3+
#
4+
# variables for jenkins-workspace
5+
#
6+
7+
ssh_config: /etc/ssh/sshd_config
8+
9+
sshd_service_map: {
10+
'ubuntu1604': 'ssh',
11+
}
12+
13+
sshd_service_name: "{{ sshd_service_map[os]|default(sshd_service_map[os|stripversion])|default('sshd') }}"

0 commit comments

Comments
 (0)