Skip to content

Instantly share code, notes, and snippets.

/init.sls Secret

Created December 7, 2016 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/487d9e5af7a911d1dec6dae3c037a861 to your computer and use it in GitHub Desktop.
Save anonymous/487d9e5af7a911d1dec6dae3c037a861 to your computer and use it in GitHub Desktop.
## some basic host checking to confirm its a windows box
{% if grains['os_family'] == 'Windows' %}
## should install all windows updates appears to be skipping already downloaded causing issues
stuff:
win_update.installed:
- name: update
- categories:
- 'Critical Updates'
- 'Security Updates'
- 'Updates'
- 'Update Rollups'
- 'Windows Server 2012 R2'
- skips:
- downloaded: False
- retries: 1
sotestsaltwin01:
----------
ID: stuff
Function: win_update.installed
Name: update
Result: True
Comment: Search was done without error.
Download was done without error.
Install was done without error.
Started: 17:48:20.681000
Duration: 6198.0 ms
Changes:
Summary for sotestsaltwin01
------------
Succeeded: 1
Failed: 0
------------
Total states run: 1
SOTESTSALT01:/srv/sal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment