Skip to content

Commit 22297c1

Browse files
committed
alpine: alpine fixes, introduce server_jobs in inventory.xml
1 parent 38261c1 commit 22297c1

File tree

5 files changed

+21
-10
lines changed

5 files changed

+21
-10
lines changed

ansible/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@ For more information refer to other hosts in `inventory.yml` or the
104104

105105
Each host needs a bit of metadata:
106106

107-
- (required) `ip`: used both by ansible and placed in your ssh config.
108-
- `user`: only provide if ssh requires a non-root login. Passing this
107+
- (required) `ip`: used both by ansible and placed in your ssh config
108+
- `user`: only provide if ssh requires a non-root login—passing this
109109
will additionally make ansible try to become root for all
110-
commands executed.
111-
- `alias`: creates shorthand names for ssh convenience.
112-
- `labels`: Each host can also labels. More on that below.
110+
commands executed
111+
- `alias`: creates shorthand names for ssh convenience
112+
- `labels`: each host can also labels, more on that below
113+
- `server_jobs`: fix the number of parallel compile and test processes
113114

114115
### Adding extra options to a host
115116

ansible/inventory.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ hosts:
102102
aix61-ppc64-1: {ip: 50.200.166.131, port: 18822}
103103

104104
- joyent:
105-
alpine34-x64-1: {ip: 72.2.114.80}
106-
alpine34-x64-2: {ip: 72.2.115.165}
107-
alpine35-x64-1: {ip: }
108-
alpine35-x64-2: {ip: }
105+
alpine34-x64-1: {ip: 72.2.114.80, server_jobs: 2}
106+
alpine34-x64-2: {ip: 72.2.115.165, server_jobs: 2}
107+
alpine35-x64-1: {ip: 72.2.119.198, server_jobs: 2}
108+
alpine35-x64-2: {ip: 72.2.118.27, server_jobs: 2}
109109
freebsd10-x64-1: {ip: 72.2.115.15}
110110
freebsd10-x64-2: {ip: 72.2.114.23}
111111
smartos14-x64-1: {ip: 72.2.114.47}

ansible/plugins/inventory/nodejs_yaml.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
# - ip [string] (required): ip address of host
5858
# - alias [string]: 'nickname', will be used in ssh config
5959
# - labels [sequence]: passed to jenkins
60+
# - server_jobs [cpus]: passed as JOBS to jenkins
6061
#
6162
# parsing done on host naming:
6263
#
@@ -135,6 +136,9 @@ def main():
135136
if 'alias' in metadata:
136137
c.update({'alias': metadata['alias']})
137138

139+
if 'server_jobs' in metadata:
140+
c.update({'server_jobs': metadata['server_jobs']})
141+
138142
if 'win' in hostname:
139143
c.update({'is_win': True})
140144

ansible/roles/bootstrap/tasks/partials/alpine.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,9 @@
3535
- name: install shadow
3636
when: has_shadow.rc == 1
3737
raw: apk add shadow
38+
39+
# required for bug on Joyent for Alpine 3.4 using OpenSSL 7.5+
40+
# discussio @ https://github.com/nodejs/build/pull/989
41+
- name: fix openssl to < 7.5
42+
raw: apk add 'openssh<7.5'
43+

ansible/roles/jenkins-worker/tasks/monit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
args:
1313
src: "{{ monitrc }}"
1414
dest: "/etc/monitrc"
15-
mode: 0440
15+
mode: 0400
1616
loop_control:
1717
loop_var: monitrc
1818
with_first_found:

0 commit comments

Comments
 (0)