Skip to content

Commit 5930279

Browse files
authored
cleanup: handle rebranding of adoptopenjdk and new api url (#145)
1 parent 0bc84ec commit 5930279

File tree

21 files changed

+130
-130
lines changed

21 files changed

+130
-130
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ This Ansible role has the following features for:
3232
- Install JDK
3333
- Additional opportunity to install from zulu-fallback, s3, web, local source, chocolatey.
3434

35-
**AdoptOpenJDK**
35+
**Adoptium**
3636

3737
- Install JDK, JRE
38-
- Additional opportunity to install from adoptopenjdk-fallback, repositories, web, local source, s3, chocolatey.
38+
- Additional opportunity to install from adoptium-fallback, repositories, web, local source, s3, chocolatey.
3939

4040

4141
**SapMachine**
@@ -101,7 +101,7 @@ Requirements
101101
- 8
102102
- 11
103103
- 17
104-
- **Supported AdoptOpenJDK version**:
104+
- **Supported Adoptium version**:
105105
- 8
106106
- 11
107107
- 12
@@ -156,7 +156,7 @@ Requirements
156156
- `oracle_java`
157157
- `sapjvm`
158158
- `zulu`
159-
- `adoptopenjdk`
159+
- `adoptium`
160160
- `sapmachine`
161161
- `dragonwell8`
162162
- `corretto`
@@ -169,15 +169,15 @@ Requirements
169169
- `jdk` (default)
170170
- `jre`
171171

172-
- `transport` Artifact source transport. Use `fallback` (OpenJDK, SAPJVM, AdoptOpenJDK, SapMachine, ZULU, Alibaba Dragonwell, Amazon Corretto distributions are supported), `repositories`(OpenJDK, AdoptOpenJDK, Amazon Corretto distributions are supported), `local`, `web` or `s3` according to your requirements.
172+
- `transport` Artifact source transport. Use `fallback` (OpenJDK, SAPJVM, Adoptium, SapMachine, ZULU, Alibaba Dragonwell, Amazon Corretto distributions are supported), `repositories`(OpenJDK, Adoptium, Amazon Corretto distributions are supported), `local`, `web` or `s3` according to your requirements.
173173

174174
Available:
175175
- `repositories` Installing java from system repositories (yum or apt, Linux only)
176176
- `web` Fetching artifact from custom web url
177-
- `chocolatey` Windows specific package manager (Supported OpenJDK: JDK 11, 12 or JRE 8, SapMachine, ZULU, AdoptOpenJDK)
177+
- `chocolatey` Windows specific package manager (Supported OpenJDK: JDK 11, 12 or JRE 8, SapMachine, ZULU, Adoptium)
178178
- `local` Local artifact stored on ansible master (can be used as cache for other transport)
179179
- `s3` Download artifact from s3 bucket (Linux clients only, for Windows please use other transports)
180-
- `fallback` fetching artifacts from official sites (available for distributions: openjdk, sapjvm, zulu, adoptopenjdk, sapmachine, dragonwell8, corretto).
180+
- `fallback` fetching artifacts from official sites (available for distributions: openjdk, sapjvm, zulu, adoptium, sapmachine, dragonwell8, corretto).
181181
This is *default* value for `transport` variable
182182

183183
**Notice** using `s3` transport requires specific packages to be installed on target host:
@@ -226,8 +226,8 @@ Requirements
226226

227227
default: `{{ lookup('env','AWS_SECRET_KEY') }}`
228228

229-
# Configure AdoptOpenJDK
230-
- `adoptopenjdk_impl` AdoptOpenJDK Implementation
229+
# Configure Adoptium
230+
- `adoptium_impl` Adoptium Implementation
231231
- `hotspot` (default)
232232
- `openj9`
233233

@@ -373,18 +373,18 @@ https://docs.ansible.com/ansible/latest/modules/aws_s3_module.html#requirements
373373
java_major_version: 17
374374
java_package: jdk
375375
```
376-
### Installing AdoptOpenJDK 8-openj9-jre from adoptopenjdk-fallback:
376+
### Installing Adoptium 8-openj9-jre from adoptium-fallback:
377377
378378
```yaml
379-
- name: Install AdoptOpenJDK
379+
- name: Install Adoptium
380380
hosts: all
381381

382382
roles:
383383
- role: lean_delivery.java
384-
java_distribution: adoptopenjdk
384+
java_distribution: adoptium
385385
transport: fallback
386386
java_package: jre
387-
adoptopenjdk_impl: openj9
387+
adoptium_impl: openj9
388388
java_major_version: 8
389389
```
390390

defaults/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# - oracle_java
55
# - sapjvm
66
# - zulu
7-
# - adoptopenjdk (not supported 9/10)
7+
# - adoptium (not supported 9/10)
88
# - alibaba_dragonwell (8 only)
99
# - sapmachine
1010
# - Amazon Corretto (supported only 8/11)
@@ -20,7 +20,7 @@ java_distribution: openjdk
2020
java_package: jdk
2121

2222
# AdoptOpenJDK Implementation (hotspot/openj9)
23-
adoptopenjdk_impl: hotspot
23+
adoptium_impl: hotspot
2424

2525
# OpenJDK Redhat: 8 (packages) / 11 (package for centos7, tarball for all other) / 12 (tarball)
2626
# OpenJDK Debian: 8 (packages) / 11 (package for ubuntu18, tarball for all other) / 12 (tarball)
@@ -52,7 +52,7 @@ transport: fallback
5252
# - "local" Local artifact
5353
# - "repositories" Install from repositories for Debian and RHEL
5454
# - "openjdk-fallback" Install from artifact downloaded from openjdk site
55-
# - "adoptopenjdk-fallback" Install from artifact downloaded from adoptopenjdk site
55+
# - "adoptium-fallback" Install from artifact downloaded from adoptium site
5656
# - "sapjvm-fallback" Install from artifact downloaded from SAP site
5757
# - "zulu-fallback" Install from artifact downloaded from AZUL site
5858
# - "sapmachine-fallback" Install from artifact downloaded from SapMachine site

molecule/cloud-aws-adoptopenjdk-11/molecule.yml renamed to molecule/cloud-aws-adoptium-11/molecule.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ lint: |
99
yamllint
1010
ansible-lint
1111
platforms:
12-
- name: test-aws-centos7-adoptopenjdk-hotspot-jre-tarball-11
12+
- name: test-aws-centos7-adoptium-hotspot-jre-tarball-11
1313
image: ami-9887c6e7
1414
platform: centos7
1515
instance_type: t3.micro
@@ -23,12 +23,12 @@ platforms:
2323
ssh_user: centos
2424
groups:
2525
- rhel_family
26-
- adoptopenjdk
26+
- adoptium
2727
- hotspot
2828
- jre
29-
- adoptopenjdk_fallback
29+
- adoptium_fallback
3030

31-
- name: test-aws-ubuntu18-adoptopenjdk-openj9-jdk-tarball-11
31+
- name: test-aws-ubuntu18-adoptium-openj9-jdk-tarball-11
3232
image: ami-012fd5eb46f56731f
3333
platform: ubuntu18
3434
instance_type: t3.micro
@@ -42,12 +42,12 @@ platforms:
4242
ssh_user: ubuntu
4343
groups:
4444
- debian_family
45-
- adoptopenjdk
45+
- adoptium
4646
- openj9
4747
- jdk
48-
- adoptopenjdk_fallback
48+
- adoptium_fallback
4949

50-
- name: test-aws-Debian9-adoptopenjdk-hotspot-jdk-repositories-11
50+
- name: test-aws-Debian9-adoptium-hotspot-jdk-repositories-11
5151
image: ami-003f19e0e687de1cd
5252
platform: debian9
5353
instance_type: t3.micro
@@ -61,12 +61,12 @@ platforms:
6161
ssh_user: admin
6262
groups:
6363
- debian_family
64-
- adoptopenjdk
64+
- adoptium
6565
- hotspot
6666
- jdk
6767
- repositories
6868

69-
# - name: test-aws-centos8-adoptopenjdk-openj9-jre-repositories-11
69+
# - name: test-aws-centos8-adoptium-openj9-jre-repositories-11
7070
# image: ami-0ed2ad9dc845b42b6
7171
# platform: centos8
7272
# instance_type: t3.micro
@@ -80,12 +80,12 @@ platforms:
8080
# ssh_user: centos
8181
# groups:
8282
# - rhel_family
83-
# - adoptopenjdk
83+
# - adoptium
8484
# - openj9
8585
# - jre
8686
# - repositories
8787

88-
- name: test-aws-centos7-adoptopenjdk-local-11
88+
- name: test-aws-centos7-adoptium-local-11
8989
image: ami-9887c6e7
9090
platform: centos7
9191
instance_type: t3.micro
@@ -99,7 +99,7 @@ platforms:
9999
ssh_user: centos
100100
groups:
101101
- rhel_family
102-
- adoptopenjdk
102+
- adoptium
103103
- local
104104

105105
provisioner:
@@ -111,18 +111,18 @@ provisioner:
111111
callback_whitelist: profile_tasks,timer
112112
inventory:
113113
group_vars:
114-
adoptopenjdk:
115-
java_distribution: adoptopenjdk
114+
adoptium:
115+
java_distribution: adoptium
116116
java_major_version: 11
117117
jdk:
118118
java_package: jdk
119119
jre:
120120
java_package: jre
121121
openj9:
122-
adoptopenjdk_impl: openj9
122+
adoptium_impl: openj9
123123
hotspot:
124-
adoptopenjdk_impl: hotspot
125-
adoptopenjdk_fallback:
124+
adoptium_impl: hotspot
125+
adoptium_fallback:
126126
transport: fallback
127127
repositories:
128128
transport: repositories
@@ -131,10 +131,10 @@ provisioner:
131131
transport_local: /tmp/OpenJDK11U-jdk_x64_linux_hotspot_11.0.3_7.tar.gz
132132
playbooks:
133133
create: ../resources/provisioning/AWS/create.yml
134-
prepare: ../cloud-aws-adoptopenjdk-11/prepare.yml
134+
prepare: ../cloud-aws-adoptium-11/prepare.yml
135135
destroy: ../resources/provisioning/AWS/destroy.yml
136136
verify: ../resources/tests/verify.yml
137137
scenario:
138-
name: cloud-aws-adoptopenjdk-11
138+
name: cloud-aws-adoptium-11
139139
verifier:
140140
name: ansible
File renamed without changes.

molecule/cloud-aws-adoptopenjdk-11/prepare.yml renamed to molecule/cloud-aws-adoptium-11/prepare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
gather_facts: true
5353
vars:
5454
transport_s3_bucket: java-molecule-s3-test
55-
transport_s3_path: /java/adoptopenjdk/OpenJDK11U-jdk_x64_linux_hotspot_11.0.3_7.tar.gz
55+
transport_s3_path: /java/adoptium/OpenJDK11U-jdk_x64_linux_hotspot_11.0.3_7.tar.gz
5656
java_download_path: /tmp
5757
tasks:
5858
- name: Download artifact from s3

molecule/cloud-aws-adoptopenjdk-12/molecule.yml renamed to molecule/cloud-aws-adoptium-12/molecule.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ lint: |
99
yamllint
1010
ansible-lint
1111
platforms:
12-
# - name: test-aws-centos8-adoptopenjdk-hotspot-jre-repositories-12
12+
# - name: test-aws-centos8-adoptium-hotspot-jre-repositories-12
1313
# image: ami-0ed2ad9dc845b42b6
1414
# platform: centos8
1515
# instance_type: t3.micro
@@ -23,13 +23,13 @@ platforms:
2323
# ssh_user: centos
2424
# groups:
2525
# - rhel_family
26-
# - adoptopenjdk
26+
# - adoptium
2727
# - hotspot
2828
# - jre
2929
# - repositories
3030
# - pip3
3131

32-
- name: test-aws-centos7-adoptopenjdk-openj9-jdk-tarball-12
32+
- name: test-aws-centos7-adoptium-openj9-jdk-tarball-12
3333
image: ami-9887c6e7
3434
platform: centos7
3535
instance_type: t3.micro
@@ -43,13 +43,13 @@ platforms:
4343
ssh_user: centos
4444
groups:
4545
- rhel_family
46-
- adoptopenjdk
46+
- adoptium
4747
- openj9
4848
- jdk
49-
- adoptopenjdk_fallback
49+
- adoptium_fallback
5050
- pip2
5151

52-
- name: test-aws-Debian9-adoptopenjdk-openj9-jre-tarball-12
52+
- name: test-aws-Debian9-adoptium-openj9-jre-tarball-12
5353
image: ami-003f19e0e687de1cd
5454
platform: debian9
5555
instance_type: t3.micro
@@ -63,13 +63,13 @@ platforms:
6363
ssh_user: admin
6464
groups:
6565
- debian_family
66-
- adoptopenjdk
66+
- adoptium
6767
- openj9
6868
- jre
69-
- adoptopenjdk_fallback
69+
- adoptium_fallback
7070
- pip2
7171

72-
- name: test-aws-ubuntu18-adoptopenjdk-hotspot-jdk-repositories-12
72+
- name: test-aws-ubuntu18-adoptium-hotspot-jdk-repositories-12
7373
image: ami-012fd5eb46f56731f
7474
platform: ubuntu18
7575
instance_type: t3.micro
@@ -83,13 +83,13 @@ platforms:
8383
ssh_user: ubuntu
8484
groups:
8585
- debian_family
86-
- adoptopenjdk
86+
- adoptium
8787
- hotspot
8888
- jdk
8989
- repositories
9090
- pip3
9191

92-
- name: test-aws-Debian9-adoptopenjdk-hotspot-jre-repositories-12
92+
- name: test-aws-Debian9-adoptium-hotspot-jre-repositories-12
9393
image: ami-003f19e0e687de1cd
9494
platform: debian9
9595
instance_type: t3.micro
@@ -103,13 +103,13 @@ platforms:
103103
ssh_user: admin
104104
groups:
105105
- debian_family
106-
- adoptopenjdk
106+
- adoptium
107107
- hotspot
108108
- jre
109109
- repositories
110110
- pip2
111111

112-
- name: test-aws-Debian9-adoptopenjdk-s3-12
112+
- name: test-aws-Debian9-adoptium-s3-12
113113
image: ami-003f19e0e687de1cd
114114
profile_name: epmldi-instance-profile
115115
platform: debian9
@@ -124,7 +124,7 @@ platforms:
124124
ssh_user: admin
125125
groups:
126126
- debian_family
127-
- adoptopenjdk
127+
- adoptium
128128
- s3
129129
- pip2
130130

@@ -143,33 +143,33 @@ provisioner:
143143
pip3:
144144
pip_executable: pip3
145145
python_executable: python3
146-
adoptopenjdk:
147-
java_distribution: adoptopenjdk
146+
adoptium:
147+
java_distribution: adoptium
148148
java_major_version: 12
149149
jdk:
150150
java_package: jdk
151151
jre:
152152
java_package: jre
153153
openj9:
154-
adoptopenjdk_impl: openj9
154+
adoptium_impl: openj9
155155
hotspot:
156-
adoptopenjdk_impl: hotspot
157-
adoptopenjdk_fallback:
156+
adoptium_impl: hotspot
157+
adoptium_fallback:
158158
transport: fallback
159159
repositories:
160160
transport: repositories
161161
s3:
162162
transport: s3
163163
transport_s3_bucket: java-molecule-s3-test
164-
transport_s3_path: /java/adoptopenjdk/OpenJDK12U-jdk_x64_linux_hotspot_12.0.1_12.tar.gz
164+
transport_s3_path: /java/adoptium/OpenJDK12U-jdk_x64_linux_hotspot_12.0.1_12.tar.gz
165165
transport_s3_aws_access_key: "{{ lookup('env','AWS_ACCESS_KEY_ID') }}"
166166
transport_s3_aws_secret_key: "{{ lookup('env','AWS_SECRET_ACCESS_KEY') }}"
167167
playbooks:
168168
create: ../resources/provisioning/AWS/create.yml
169-
prepare: ../cloud-aws-adoptopenjdk-12/prepare.yml
169+
prepare: ../cloud-aws-adoptium-12/prepare.yml
170170
destroy: ../resources/provisioning/AWS/destroy.yml
171171
verify: ../resources/tests/verify.yml
172172
scenario:
173-
name: cloud-aws-adoptopenjdk-12
173+
name: cloud-aws-adoptium-12
174174
verifier:
175175
name: ansible
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)