diff --git a/update.sls b/update.sls index 367d0aa..3565be4 100644 --- a/update.sls +++ b/update.sls @@ -1,4 +1,7 @@ {% if grains['kernel'] == 'Linux' %} include: - linux.update -{% endif %} \ No newline at end of file +{% elif grains['kernel'] == 'Windows' } + include: + - windows.update +{% endif %} diff --git a/windows/update.sls b/windows/update.sls new file mode 100644 index 0000000..9c0514a --- /dev/null +++ b/windows/update.sls @@ -0,0 +1,18 @@ +{% if grains['kernel'] == 'Windows' } +# Update the system using the state defaults +update_system: + wua.up_to_date + +# Update the drivers +update_drivers: + wua.up_to_date: + - software: False + - drivers: True + - skip_reboot: False + +# Apply all critical updates +update_critical: + wua.up_to_date: + - severities: + - Critical +{% endif %}