Skip to content

Commit

Permalink
PSMDB AL2023. Fix percona release and tarball tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sandraromanchenko committed Jan 28, 2025
1 parent 7b6f7fa commit 8dd73ce
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
49 changes: 49 additions & 0 deletions psmdb-tarball/psmdb-tarball/molecule/al2023/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
dependency:
name: galaxy
driver:
name: ec2
platforms:
- name: al2023-${BUILD_NUMBER}-${JOB_NAME}
region: us-west-2
image: ami-055e3d4f0bbeb5878
vpc_subnet_id: subnet-03136d8c244f56036
instance_type: ${INSTANCE_TYPE:-t2.medium}
ssh_user: ec2-user
root_device_name: /dev/sda1
instance_tags:
iit-billing-tag: jenkins-psmdb-worker
job-name: ${JOB_NAME}
provisioner:
name: ansible
log: True
playbooks:
create: ../../../../playbooks/create.yml
destroy: ../../../../playbooks/destroy.yml
prepare: ../../playbooks/prepare.yml
cleanup: ../../playbooks/cleanup.yml
converge: ../../playbooks/playbook.yml
verifier:
name: testinfra
directory: ../../tests/
options:
verbose: true
s: true
junitxml: al2023-report.xml
scenario:
name: al2023
converge_sequence:
- prepare
- converge
destroy_sequence:
- destroy
cleanup_sequence:
- cleanup
test_sequence:
- destroy
- create
- prepare
- converge
- verify
- cleanup
- destroy
12 changes: 11 additions & 1 deletion roles/openldap/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@
- jq
when: ansible_distribution_major_version <= "7"

- name: Fetch CentOS gpg key
get_url:
url: http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Official
dest: /tmp/RPM-GPG-KEY-CentOS-Official
retries: 5
delay: 5
register: result
until: result.status_code == 200
when: ansible_distribution_major_version == "8"

- name: Import CentOS gpg key
rpm_key:
state: present
key: http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Official
key: /tmp/RPM-GPG-KEY-CentOS-Official
when: ansible_distribution_major_version == "8"

- name: Install required packages
Expand Down
5 changes: 4 additions & 1 deletion tasks/install_percona_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
when: ansible_os_family == "Debian" and prel_version == "latest"

- name: Install latest percona release RHEL
command: yum -y install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
command: yum -y install https://repo.percona.com/prel/yum/testing/2023/RPMS/noarch/percona-release-1.0-30.noarch.rpm
when: ansible_os_family == "RedHat" and prel_version == "latest"

- name: Enable telemetry testing repo
command: percona-release enable telemetry testing

- name: clean and update yum cache
shell: |
yum clean all
Expand Down

0 comments on commit 8dd73ce

Please sign in to comment.