Ajout de la mise à jour de Windows

This commit is contained in:
2018-04-30 00:22:21 +02:00
parent 0037e51aa2
commit cfc251ad5a
2 changed files with 22 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
{% if grains['kernel'] == 'Linux' %}
include:
- linux.update
{% elif grains['kernel'] == 'Windows' }
include:
- windows.update
{% endif %}

18
windows/update.sls Normal file
View File

@@ -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 %}