Skip to content

Commit

Permalink
preflight: chrony missing in Ubuntu prerequisites
Browse files Browse the repository at this point in the history
Also modify tox.ini to be able to update packages on rhel and
ubuntu based OS

Signed-off-by: Teoman ONAY <[email protected]>
(cherry picked from commit 807bc9c)

# Conflicts:
#	tox.ini
  • Loading branch information
asm0deuz authored and mergify[bot] committed Dec 6, 2023
1 parent ad42894 commit 637f15c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cephadm-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,18 @@

- name: install prerequisites packages
apt:
name: "{{ ['python3','cephadm','ceph-common'] }}"
name: "{{ ['python3','chrony'] + ceph_pkgs }}"
state: "{{ (upgrade_ceph_packages | bool) | ternary('latest', 'present') }}"
update_cache: true
register: result
until: result is succeeded

- name: ensure chronyd is running
service:
name: chronyd
state: started
enabled: true

- name: install container engine
block:
- name: install podman
Expand Down
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ commands=
bash {toxinidir}/tests/scripts/vagrant_up.sh --no-provision {posargs:--provider=virtualbox}
bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}

<<<<<<< HEAD
ansible -v -i {changedir}/hosts all -b -m command -a 'dnf update -y'
=======
# Get a system up-to-date before deploying
{el,rock}{8,9}: ansible -vv -i {changedir}/hosts all -b -m dnf -a 'name="*" state=latest'
ubuntu_lts: ansible -vv -i {changedir}/hosts all -b -m apt -a 'name="*" state=latest update_cache=true'
>>>>>>> 807bc9c (preflight: chrony missing in Ubuntu prerequisites)

# Install prerequisites
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/cephadm-preflight.yml --extra-vars "\
Expand Down

0 comments on commit 637f15c

Please sign in to comment.