Salt code for managing /etc/default/grub (GRUB_CMDLINE_LINUX_DEFAULT)

Hi all,

i was really surprised when i searched for existing code to manage /etc/default/grub (GRUB_CMDLINE_LINUX_DEFAULT) and the only result was salt-formula-linux/linux/system/kernel.sls at master · salt-formulas/salt-formula-linux · GitHub

Has anyone here any good code to share or any hint/experience regarding pitfalls with handling this?

BR
Heiner