Skip to content
Merged
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: 5 additions & 1 deletion e2e/fixtures/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ ansible_playbook_lima=ansible-playbook \
--extra-vars='@$(variant_vars_file)' \
--extra-vars='$(EXTRA_VARS)'

.PHONY: fix-lima-clocks
fix-lima-clocks:
ansible --become --inventory=outputs/lima.inventory.yaml all -m command -a 'chronyc -a makestep'

.PHONY: deploy-lima-machines
deploy-lima-machines:
$(ansible_playbook_lima) deploy_lima_machines.yaml
Expand All @@ -36,7 +40,7 @@ setup-lima-hosts:
setup_hosts.yaml

.PHONY: deploy-lima-control-plane
deploy-lima-control-plane:
deploy-lima-control-plane: fix-lima-clocks
$(ansible_playbook_lima) \
--inventory=outputs/lima.inventory.yaml \
--extra-vars='version=$(CONTROL_PLANE_VERSION:v%=%)' \
Expand Down
12 changes: 12 additions & 0 deletions e2e/fixtures/roles/install_prerequisites/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,15 @@
- "--strip-components=1"
- "{{ etcd_archive_name }}/etcdctl"
creates: /usr/bin/etcdctl
- name: Allow large time jumps in chronyd
ansible.builtin.lineinfile:
path: /etc/chrony.conf
regexp: '^makestep'
line: 'makestep 1 -1'
register: chronycfg
when: provider == "lima"
- name: Restart chronyd
ansible.builtin.systemd_service:
name: chronyd
state: restarted
when: provider == "lima" and chronycfg.changed