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

feature/add-retries #291

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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 .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
ansible_version: "devel"
cassandra_version:
- package_version: "311x"
tar_version: "3.11.11"
tar_version: "3.11.17"
test_scenario:
- docker_image: "ubuntu2204"
python_version: "3.10"
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
ansible_version: "devel"
cassandra_version:
- package_version: "40x"
tar_version: "4.0.5"
tar_version: "4.0.9"
test_scenario:
#- docker_image: centos7
# python_version: "2.7"
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
ansible_version: "devel"
cassandra_version:
- package_version: "41x"
tar_version: "4.1.4"
tar_version: "4.1.7"
test_scenario:
#- docker_image: centos7
# python_version: "2.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
- name: Install required_packages
package:
name: "{{ required_packages }}"
retries: 5
delay: 5

- name: Ensure Cassandra service from setup_cassandra isn't running
service:
Expand All @@ -45,37 +47,47 @@
package:
name: sudo
state: present
retries: 5
delay: 5

- name: Install OpenJDK package
yum:
name: "{{ openjdk }}"
state: present
retries: 5
delay: 5
when: ansible_os_family == 'RedHat'

- name: Run the equivalent of "apt-get update"
apt:
update_cache: yes
retries: 5
delay: 5
when: ansible_os_family == 'Debian'

- name: Install required pip packages
pip:
name: "{{ pip_packages }}"
state: present
retries: 5
delay: 5

- name: Download ant package and unarchive
unarchive:
src: "{{ ant_download }}"
dest: /usr/local
remote_src: yes
validate_certs: False
retries: 10
delay: 5

- name: Create a symbolic link for ant
file:
state: link
src: "/usr/local/apache-ant-{{ ant_version }}/"
dest: /usr/local/ant

- name:
- name: "Adds ant script"
blockinfile:
path: /etc/profile.d/ant.sh
marker: "#<!-- {mark} ANSIBLE MANAGED BLOCK -->"
Expand Down Expand Up @@ -128,6 +140,8 @@
pip:
name: ccm
state: present
retries: 5
delay: 5

- ansible.builtin.shell: find /usr -name ccm -ls

Expand Down Expand Up @@ -170,6 +184,8 @@
CCM_CONFIG_DIR: "/home/cassandra/config"
CASSANDRA_HOME: "/home/cassandra"
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ant/bin
retries: 5
delay: 5

#- name: Add nodes to the Cassandra cluster
# ansible.builtin.shell: "sudo -E -u cassandra bash -c \"{{ ccm_cmd }} populate -n {{ cassandra_nodes }}\""
Expand Down
Loading