Skip to content

Commit

Permalink
Move Update grub to variable for CentOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
Yair Podemsky committed Sep 16, 2024
1 parent 49ae1e5 commit 1e99865
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playbooks/ci_restore_snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
# This playbook rollback in the CI to the initiale state using LVM
---
- name: Rollback to the initiale state
gather_facts: true
hosts: cluster_machines
become: true
tasks:
- include_vars: "../vars/{{ ansible_distribution | replace(' ', '_') }}_paths.yml"
- name: "grub conf"
lineinfile:
dest: /etc/default/grub
Expand All @@ -19,7 +21,7 @@
- efi=runtime
- "{{ grub_append | default([]) }}"
- name: Update grub
command: update-grub
command: "{{ grub_update_command }}"
- name: Merge lvm snapshot
command:
cmd: lvconvert --merge vg1/root-snap
Expand Down
1 change: 1 addition & 0 deletions vars/CentOS_paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ snmp_sudoers_path: "../src/centos/sudoers/Centos-snmp.j2"
crm_command_path: "/usr/local/bin/crm"
cukinia_command_path: "/usr/local/bin/cukinia"
setup_ovs_command_path: "/usr/local/bin/setup_ovs.py"
grub_update_command: "grub2-mkconfig -o /boot/grub2/grub.cfg"
2 changes: 2 additions & 0 deletions vars/Debian_paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ snmp_sudoers_path: "../src/debian/sudoers/Debian-snmp.j2"
crm_command_path: "crm"
cukinia_command_path: "cukinia"
setup_ovs_command_path: "setup_ovs.py"

grub_update_command: "update-grub"
2 changes: 2 additions & 0 deletions vars/Seapath_host_Yocto_distribution_paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ service_name_chrony: "chronyd"
crm_command_path: "/usr/bin/crm"
cukinia_command_path: "/usr/sbin/cukinia"
setup_ovs_command_path: "/usr/bin/setup_ovs.py"

grub_update_command: "update-grub"

0 comments on commit 1e99865

Please sign in to comment.