-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add SapMachine (Linux): EPMLDI-1738 (#97) * fix tests: EPMLDI-1738 (#97) * fix s3: EPMLDI-1738 (#97) * add win: EPMLDI-1738 (#97) * fix verison: EPMLDI-1738 (#97) * fix tag for gitlab-ci: EPMLDI-1738 (#97)
- Loading branch information
Showing
22 changed files
with
1,111 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
options: | ||
role-file: requirements.yml | ||
driver: | ||
name: ec2 | ||
lint: | ||
name: yamllint | ||
options: | ||
config-file: .yamllint | ||
platforms: | ||
- name: test-aws-centos7-sapmachine-jdk-tarball-10 | ||
image: ami-9887c6e7 | ||
platform: centos7 | ||
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 | ||
- sapmachine | ||
- jdk | ||
- sapmachine_fallback | ||
|
||
- name: test-aws-centos8-sapmachine-jre-tarball-10 | ||
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 | ||
- sapmachine | ||
- jre | ||
- sapmachine_fallback | ||
|
||
- name: test-aws-Debian9-sapmachine-jre-tarball-10 | ||
image: ami-003f19e0e687de1cd | ||
platform: debian9 | ||
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: admin | ||
groups: | ||
- debian_family | ||
- sapmachine | ||
- jre | ||
- sapmachine_fallback | ||
|
||
- name: test-aws-ubuntu18-sapmachine-jdk-tarball-10 | ||
image: ami-012fd5eb46f56731f | ||
platform: ubuntu18 | ||
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: ubuntu | ||
groups: | ||
- debian_family | ||
- sapmachine | ||
- jdk | ||
- sapmachine_fallback | ||
|
||
- name: test-aws-ubuntu18-sapmachine-s3-10 | ||
image: ami-012fd5eb46f56731f | ||
profile_name: epmldi-instance-profile | ||
platform: ubuntu18 | ||
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: ubuntu | ||
groups: | ||
- debian_family | ||
- sapmachine | ||
- s3 | ||
|
||
provisioner: | ||
name: ansible | ||
log: false | ||
config_options: | ||
defaults: | ||
callback_whitelist: profile_tasks,timer | ||
inventory: | ||
group_vars: | ||
sapmachine: | ||
java_distribution: sapmachine | ||
java_major_version: 10 | ||
jdk: | ||
java_package: jdk | ||
jre: | ||
java_package: jre | ||
sapmachine_fallback: | ||
transport: sapmachine-fallback | ||
s3: | ||
transport: s3 | ||
transport_s3_bucket: java-molecule-s3-test | ||
transport_s3_path: /java/sapmachine/sapmachine-jdk-10.0.2.13_linux-x64_bin.tar.gz | ||
transport_s3_aws_access_key: "{{ lookup('env','AWS_ACCESS_KEY_ID') }}" | ||
transport_s3_aws_secret_key: "{{ lookup('env','AWS_SECRET_ACCESS_KEY') }}" | ||
playbooks: | ||
create: ../resources/provisioning/AWS/create.yml | ||
prepare: ../cloud-aws-sapmachine-10/prepare.yml | ||
destroy: ../resources/provisioning/AWS/destroy.yml | ||
verify: ../resources/tests/verify.yml | ||
lint: | ||
name: ansible-lint | ||
scenario: | ||
name: cloud-aws-sapmachine-10 | ||
verifier: | ||
name: ansible | ||
lint: | ||
name: ansible-lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
roles: | ||
- role: ansible-role-java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
- name: Include common prepare | ||
import_playbook: ../resources/provisioning/AWS/prepare.yml | ||
|
||
- name: Prepare Debian | ||
hosts: debian_family | ||
tasks: | ||
|
||
- 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 | ||
|
||
- name: Prepare RHEL | ||
hosts: rhel_family | ||
tasks: | ||
|
||
- name: Enable EPEL repository | ||
yum: | ||
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-\ | ||
{{ ansible_distribution_major_version }}.noarch.rpm" | ||
state: 'present' | ||
register: status | ||
until: status is succeeded | ||
become: true | ||
|
||
- name: Prepare host to S3 transport | ||
hosts: s3 | ||
tasks: | ||
|
||
- name: Install pip package | ||
package: | ||
name: 'python-pip' | ||
state: present | ||
register: status | ||
until: status is succeeded | ||
become: true | ||
|
||
- name: Install boto module | ||
pip: | ||
name: | ||
- botocore | ||
- boto | ||
- boto3 | ||
state: present | ||
executable: 'pip' | ||
extra_args: --upgrade | ||
register: status | ||
until: status is succeeded | ||
become: true |
Oops, something went wrong.