43 lines
832 B
Plaintext
43 lines
832 B
Plaintext
include:
|
|
- chocolatey
|
|
|
|
# don't go to sleep, ideally until the salt run finishes
|
|
Set standby timeout to 10 hours:
|
|
powercfg.set_timeout:
|
|
- name: standby
|
|
- value: 600 # ten hours should be plenty
|
|
- order: 1
|
|
|
|
{% import_yaml "packages.yaml" as packages %}
|
|
{% for pkg in packages %}
|
|
{{ pkg }}:
|
|
chocolatey.installed:
|
|
- name: {{ pkg }}
|
|
- require:
|
|
- sls: chocolatey
|
|
{% endfor %}
|
|
|
|
Upgrade All:
|
|
chocolatey.upgraded:
|
|
- name: all
|
|
- require:
|
|
- chocolateyBootstrap
|
|
|
|
# windowsUpdates:
|
|
# wua.uptodate:
|
|
# - drivers: true
|
|
|
|
# 'gpupdate /force':
|
|
# cmd.run
|
|
|
|
Final Housekeeping:
|
|
powercfg.set_timeout: # Reset sleep timeout
|
|
- name: standby
|
|
- value: 30 # default
|
|
- order: last
|
|
module.run:
|
|
- name: system.reboot
|
|
- timeout: 0
|
|
- only_on_pending_reboot: true
|
|
- order: last
|