diff --git a/linux/system/grub.sls b/linux/system/grub.sls index 4be6ec3..385c623 100644 --- a/linux/system/grub.sls +++ b/linux/system/grub.sls @@ -6,7 +6,7 @@ grub_d_directory: - mode: 755 - makedirs: True -{%- if grains['os_family'] == 'RedHat' %} +{%- if grains['os_family'] in ['RedHat','Suse'] %} {%- set boot_grub_cfg = '/boot/grub2/grub.cfg' %} /etc/default/grub: file.append: diff --git a/linux/system/repo.sls b/linux/system/repo.sls index bf6e4ec..ddb6709 100644 --- a/linux/system/repo.sls +++ b/linux/system/repo.sls @@ -166,7 +166,7 @@ linux_repo_{{ name }}: {%- endif %} {%- endif %} - {%- if grains.os_family == "RedHat" %} + {%- if grains.os_family in ["RedHat", "Suse"] %} {%- if repo.get('enabled', True) %} {%- if repo.get('proxy', {}).get('enabled', False) %}