Last active
August 15, 2016 15:04
-
-
Save ssplatt/7336d12c641180c850d0509e7118e004 to your computer and use it in GitHub Desktop.
update-grub example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- from "grub/map.jinja" import grub with context %} | |
grub_default_config: | |
file.managed: | |
- name: '/etc/default/grub' | |
- source: salt://grub/files/default_grub.j2 | |
- user: root | |
- group : root | |
- mode: 0644 | |
- template: jinja | |
{% if grub.do_update %} | |
grub_update_config: | |
cmd.wait: | |
- name: update-grub | |
- watch: | |
- file: grub_default_config | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment