Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring/epmldi 1748 #94

Merged
merged 32 commits into from
Oct 17, 2019
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
edc2daa
Test refactored code
tgadiev Oct 16, 2019
ec302fa
Add centos8 tests
tgadiev Oct 16, 2019
f5ff574
Fix packages
tgadiev Oct 16, 2019
502caeb
Fix ubuntu
tgadiev Oct 16, 2019
bb72991
Fix trailing space
tgadiev Oct 16, 2019
750fd3d
Test fixed ubuntu
tgadiev Oct 16, 2019
b87dcf0
Test python-pip Ubuntu
tgadiev Oct 16, 2019
e7dc51d
Fix adoptopenjdk
tgadiev Oct 16, 2019
06c7de7
Test requirements
tgadiev Oct 16, 2019
c276b31
Fix epel
tgadiev Oct 16, 2019
6117a9c
Fix requirements
tgadiev Oct 16, 2019
74da53d
Test debug
tgadiev Oct 16, 2019
9517228
Fix epel
tgadiev Oct 16, 2019
d3e67c4
Fix pip Ubuntu
tgadiev Oct 16, 2019
b97123b
Test ubuntu
tgadiev Oct 16, 2019
cf77cea
Test ubuntu 18
tgadiev Oct 16, 2019
1f35aa5
Test alternate prepare
tgadiev Oct 16, 2019
1258234
Fix trailing spaces
tgadiev Oct 16, 2019
a0e5825
Remove raw python install
tgadiev Oct 16, 2019
2db1f96
Remove upgrade pip
tgadiev Oct 16, 2019
956965f
Add executable
tgadiev Oct 16, 2019
5d4617e
Test full java 12 and openjdk-ga
tgadiev Oct 16, 2019
e0b6290
Test inventory vars
tgadiev Oct 16, 2019
cb117fd
Fix group vars
tgadiev Oct 16, 2019
7a44371
Add ansible_python_interpreter: /usr/bin/python3
tgadiev Oct 16, 2019
1af1d8a
Add extra_args
tgadiev Oct 16, 2019
acf7a30
Add aws profile
tgadiev Oct 16, 2019
00ecfa2
Add ansible_python_interpreter
tgadiev Oct 16, 2019
9f93f4e
Enable all tests
tgadiev Oct 16, 2019
3497961
Update scenarios
tgadiev Oct 17, 2019
677d0ba
Fix debian test
tgadiev Oct 17, 2019
546bcd9
Make separate tasks for paths settings
tgadiev Oct 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ AWS java-6:
tags:
- aws

AWS java-7:
.AWS java-7:
variables:
AWS_REGION: us-east-1
stage: deployment test
Expand Down Expand Up @@ -78,7 +78,7 @@ AWS openjdk-13 Windows chocolatey:
tags:
- aws

AWS java-11:
.AWS java-11:
variables:
AWS_REGION: us-east-1
stage: deployment test
Expand Down Expand Up @@ -132,7 +132,7 @@ AWS openjdk-ga Windows:
tags:
- aws

AWS java-11 Windows:
.AWS java-11 Windows:
variables:
AWS_REGION: us-east-1
stage: deployment test
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Requirements
- 8
- EL 6: repositories, tarball
- EL 7: repositories, tarball
- EL 8: repositories, tarball
- Ubuntu bionic: repositories, tarball
- Debian stretch: repositories, tarball
- Windows: tarball
Expand All @@ -59,12 +60,14 @@ Requirements
- 12
- EL 6: tarball
- EL 7: tarball
- EL 8: tarball
- Ubuntu bionic: tarball
- Debian stretch: tarball
- Windows: tarball
- 13
- EL 6: tarball, openjdk-fallback
- EL 7: tarball, openjdk-fallback
- EL 8: tarball, openjdk-fallback
- Ubuntu bionic: tarball, openjdk-fallback
- Debian stretch: tarball, openjdk-fallback
- Windows: tarball, openjdk-fallback
Expand Down Expand Up @@ -98,6 +101,7 @@ Requirements
- EL
- 6
- 7
- 8
- Windows
- all

Expand Down
4 changes: 4 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ galaxy_info:
versions:
- "6"
- "7"
- "8"
- name: "Amazon"
versions:
- "2017.12"
Expand All @@ -35,7 +36,10 @@ galaxy_info:
- "java"
- "oracle"
- "jdk"
- "jre"
- "openjdk"
- "adoptopenjdk"
- "zulu"
- "sapjvm"
- "windows"

Expand Down
6 changes: 3 additions & 3 deletions molecule/cloud-aws-adoptopenjdk-11/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ platforms:
- jdk
- repositories

- name: test-aws-centos7-adoptopenjdk-openj9-jre-repositories-11
image: ami-9887c6e7
platform: centos7
- name: test-aws-centos8-adoptopenjdk-openj9-jre-repositories-11
image: ami-0ed2ad9dc845b42b6
platform: centos8
instance_type: m5.large
region: us-east-1
vpc_subnet_id: subnet-0f2b9cd66faea38af
Expand Down
38 changes: 20 additions & 18 deletions molecule/cloud-aws-adoptopenjdk-11/prepare.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
---
- name: Prepare Ubuntu / Debian
- name: Include common prepare
import_playbook: ../resources/provisioning/AWS/prepare.yml

- name: Prepare Debian
hosts: debian_family
gather_facts: false
tasks:
- name: Install python for Ansible
raw: test -e /usr/bin/python || (apt install -y python-minimal)

- name: Add universe repository for bionic
apt_repository:
repo: deb http://archive.ubuntu.com/ubuntu bionic universe
state: present
when: ansible_distribution_release == 'bionic'
become: true

- name: Install python packages
apt:
name:
- python-setuptools
state: present
register: status
until: status is succeeded
become: true
changed_when: false
register: update_result
retries: 10
delay: 5
until: update_result.rc == 0

- name: Prepare RHEL
hosts: rhel_family
gather_facts: false
tasks:
- name: Install python for Ansible
raw: test -e /usr/bin/python || (yum install -y python2 python-simplejson)
become: true
changed_when: false

- name: gather facts
setup:

- name: 'Enable EPEL repository'
- name: Enable EPEL repository
yum:
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-\
{{ ansible_distribution_major_version }}.noarch.rpm"
Expand Down
32 changes: 32 additions & 0 deletions molecule/cloud-aws-adoptopenjdk-12/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@ lint:
options:
config-file: .yamllint
platforms:
- name: test-aws-centos8-adoptopenjdk-hotspot-jre-repositories-12
image: ami-0ed2ad9dc845b42b6
platform: centos8
instance_type: m5.large
region: us-east-1
vpc_subnet_id: subnet-0f2b9cd66faea38af
assign_public_ip: false
spot_price: 0.04
security_group_name:
- default
wait_timeout: 1800
ssh_user: centos
groups:
- rhel_family
- adoptopenjdk
- hotspot
- jre
- repositories
- pip3

- name: test-aws-centos7-adoptopenjdk-openj9-jdk-tarball-12
image: ami-9887c6e7
platform: centos7
Expand All @@ -28,6 +48,7 @@ platforms:
- openj9
- jdk
- adoptopenjdk_fallback
- pip2

- name: test-aws-Debian9-adoptopenjdk-openj9-jre-tarball-12
image: ami-003f19e0e687de1cd
Expand All @@ -47,6 +68,7 @@ platforms:
- openj9
- jre
- adoptopenjdk_fallback
- pip2

- name: test-aws-ubuntu18-adoptopenjdk-hotspot-jdk-repositories-12
image: ami-012fd5eb46f56731f
Expand All @@ -66,6 +88,7 @@ platforms:
- hotspot
- jdk
- repositories
- pip3

- name: test-aws-Debian9-adoptopenjdk-hotspot-jre-repositories-12
image: ami-003f19e0e687de1cd
Expand All @@ -85,6 +108,7 @@ platforms:
- hotspot
- jre
- repositories
- pip2

- name: test-aws-Debian9-adoptopenjdk-s3-12
image: ami-003f19e0e687de1cd
Expand All @@ -103,6 +127,7 @@ platforms:
- debian_family
- adoptopenjdk
- s3
- pip2

provisioner:
name: ansible
Expand All @@ -112,6 +137,13 @@ provisioner:
callback_whitelist: profile_tasks,timer
inventory:
group_vars:
pip2:
pip_executable: pip
python_executable: python
pip3:
pip_executable: pip3
python_executable: python3
ansible_python_interpreter: /usr/bin/python3
adoptopenjdk:
java_distribution: adoptopenjdk
java_major_version: 12
Expand Down
55 changes: 28 additions & 27 deletions molecule/cloud-aws-adoptopenjdk-12/prepare.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
---
- name: Prepare Ubuntu / Debian
- name: Include common prepare
import_playbook: ../resources/provisioning/AWS/prepare.yml

- name: Prepare Debian
hosts: debian_family
gather_facts: false
tasks:
- name: Install python for Ansible
raw: test -e /usr/bin/python || (apt install -y python-minimal)

- name: Add universe repository for bionic
apt_repository:
repo: deb http://archive.ubuntu.com/ubuntu bionic universe
state: present
when: ansible_distribution_release == 'bionic'
become: true

- name: Install python packages
apt:
name:
- python-setuptools
state: present
register: status
until: status is succeeded
become: true
changed_when: false
register: update_result
retries: 10
delay: 5
until: update_result.rc == 0

- name: Prepare RHEL
hosts: rhel_family
gather_facts: false
tasks:
- name: Install python for Ansible
raw: test -e /usr/bin/python || (yum install -y python2 python-simplejson)
become: true
changed_when: false

- name: gather facts
setup:

- name: 'Enable EPEL repository'
- name: Enable EPEL repository
yum:
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-\
{{ ansible_distribution_major_version }}.noarch.rpm"
Expand All @@ -35,32 +37,31 @@

- name: Prepare host to S3 transport
hosts: s3
gather_facts: true
tasks:
- name: 'Install pip package'

- name: Install pip package
package:
name: python-pip
name: '{{ python_executable }}-pip'
state: present
register: status
until: status is succeeded
become: true

- name: 'Install boto module'
- name: Install boto module
pip:
name:
- 'pip'
- 'botocore'
- 'boto'
- 'boto3'
- botocore
- boto
- boto3
state: present
executable: '{{ pip_executable }}'
extra_args: --upgrade
register: status
until: status is succeeded
become: true

- name: Prepare host to S3 transport
hosts: localhost
gather_facts: true
vars:
transport_s3_bucket: java-molecule-s3-test
transport_s3_path: /java/adoptopenjdk/OpenJDK12U-jdk_x64_linux_hotspot_12.0.1_12.tar.gz
Expand Down
Loading