Ajout de la mise à jour de Windows
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
{% if grains['kernel'] == 'Linux' %}
|
{% if grains['kernel'] == 'Linux' %}
|
||||||
include:
|
include:
|
||||||
- linux.update
|
- linux.update
|
||||||
|
{% elif grains['kernel'] == 'Windows' }
|
||||||
|
include:
|
||||||
|
- windows.update
|
||||||
{% endif %}
|
{% endif %}
|
||||||
18
windows/update.sls
Normal file
18
windows/update.sls
Normal 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 %}
|
||||||
Reference in New Issue
Block a user