Skip to content

Commit ffdc226

Browse files
author
Ash Cripps
authored
ansible: add macos11-x64 macs (#2778)
* ansible: add macos11-x64 macs * move to openjdk java * stop testing on osx1014 on 17.x+ * add packages * remove the macos10.16 field
1 parent e2e72b9 commit ffdc226

6 files changed

Lines changed: 25 additions & 9 deletions

File tree

ansible/inventory.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,16 @@ hosts:
274274
ip: 199.7.167.101
275275
port: 8824
276276
user: administrator
277+
macos11-x64-1:
278+
ansible_python_interpreter: /usr/bin/python3
279+
ip: 199.7.167.101
280+
port: 8823
281+
user: administrator
282+
macos11-x64-2:
283+
ansible_python_interpreter: /usr/bin/python3
284+
ip: 199.7.167.99
285+
port: 8824
286+
user: administrator
277287

278288
- iinthecloud:
279289
ibmi73-ppc64_be-1: {ip: 65.183.160.52, user: nodejs}

ansible/roles/baselayout/vars/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ packages: {
136136
'cmake,python,ccache'
137137
],
138138

139+
'macos11': [
140+
'cmake,python,ccache'
141+
],
142+
139143
rhel7: [
140144
'gcc-c++,sudo,git,zip,unzip,iptables-services,GConf2-devel,openssl-devel,python3',
141145
],

ansible/roles/java-base/tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,26 @@
4848

4949
- name: install java tap (macOS)
5050
become_user: administrator
51-
when: java.rc > 0 and os|startswith("macos10")
51+
when: java.rc > 0 and os|startswith("macos") and arch == "x64"
5252
homebrew_tap:
5353
name: AdoptOpenJDK/openjdk
5454
state: present
5555

5656
- name: install java (macOS)
5757
become_user: administrator
58-
when: java.rc > 0 and os|startswith("macos10")
58+
when: java.rc > 0 and os|startswith("macos") and arch == "x64"
5959
homebrew_cask:
6060
name: "{{ java_package_name }}"
6161
state: present
6262

6363
- name: Fetch java (Apple Silicon)
64-
when: os|startswith("macos11")
64+
when: os|startswith("macos11") and arch == "arm64"
6565
shell:
6666
chdir: "/Users/administrator"
6767
cmd: "curl -L -o zulu8.52.0.23-ca-jdk8.0.282-macosx_aarch64.tar.gz https://cdn.azul.com/zulu/bin/zulu8.52.0.23-ca-jdk8.0.282-macosx_aarch64.tar.gz"
6868

6969
- name: Extract java (Apple Silicon)
70-
when: os|startswith("macos11")
70+
when: os|startswith("macos11") and arch == "arm64"
7171
shell:
7272
chdir: "/Users/administrator"
7373
cmd: "tar -xf zulu8.52.0.23-ca-jdk8.0.282-macosx_aarch64.tar.gz"

ansible/roles/java-base/vars/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ packages: {
1313
'fedora': 'java-1.8.0-openjdk-headless',
1414
'freebsd': 'openjdk8-jre',
1515
'ibmi': 'openjdk-11-ea',
16-
'macos10': 'adoptopenjdk8',
16+
'macos': 'adoptopenjdk8',
1717
'rhel7': 'java-1.8.0-openjdk',
1818
'smartos': 'openjdk8',
1919
'ubuntu': 'openjdk-8-jre-headless',

ansible/roles/jenkins-worker/vars/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ java_path: {
9191
'macos10.13': 'java',
9292
'macos10.14': 'java',
9393
'macos10.15': 'java',
94-
'macos10.16': 'java',
94+
'macos11': 'java',
9595
# Currently hardcoded untill adopt have their build available
9696
'macos11.0': '/Users/administrator/zulu8.52.0.23-ca-jdk8.0.282-macosx_aarch64/bin/java',
9797
'smartos15': '/opt/local/java/openjdk8/bin/java',

jenkins/scripts/VersionSelectorScript.groovy

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,15 @@ def buildExclusions = [
111111
[ /sharedlibs_shared/, anyType, lt(9) ],
112112

113113
// OSX ---------------------------------------------------
114-
[ /osx11-release-pkg/, releaseType, lt(16) ],
115-
[ /osx11-release-tar/, releaseType, lt(16) ],
116-
[ /osx1015-release-pkg/, releaseType, gte(16) ],
114+
[ /osx11-release-pkg/, releaseType, lt(16) ],
115+
[ /osx11-release-tar/, releaseType, lt(16) ],
116+
[ /osx1015-release-pkg/, releaseType, gte(16) ],
117117
[ /^osx11/, testType, lt(15) ],
118+
[ /osx1014/, anyType, gt(16) ],
118119

119120
// osx1015 enabled for all up, and builds all releases to support notarization
120121
// osx11 only for 15+ and builds the fat binary
122+
// This will need splitting into arm + x64 when the release machines move up from 10.15
121123

122124
// FreeBSD -----------------------------------------------
123125
[ /^freebsd10/, anyType, gte(11) ],

0 commit comments

Comments
 (0)