From cfc251ad5a49169ed73e43111ed3c94fa0fec454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Mon, 30 Apr 2018 00:22:21 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20mise=20=C3=A0=20jour=20de=20W?= =?UTF-8?q?indows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update.sls | 5 ++++- windows/update.sls | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 windows/update.sls 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 %}