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

Move Update grub to variable for CentOS support #615

Open
wants to merge 2 commits into
base: debiancentos
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
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"