2020-02-03 23:18:28 -05:00
|
|
|
# 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
|
|
|
|
|
2020-02-03 23:19:48 -05:00
|
|
|
Firefox Policies:
|
|
|
|
file.managed:
|
|
|
|
- name: 'C:\\Program Files\\Mozilla Firefox\distribution\policies.json'
|
2021-09-13 20:06:51 -04:00
|
|
|
- source: 'salt://config/firefox-policies.json'
|
2020-02-03 23:19:48 -05:00
|
|
|
- makedirs: true
|
|
|
|
|
2020-02-03 23:22:18 -05:00
|
|
|
windowsUpdates:
|
|
|
|
wua.uptodate:
|
|
|
|
- drivers: true
|
2019-11-11 14:22:13 -05:00
|
|
|
|
2020-02-03 23:22:18 -05:00
|
|
|
'gpupdate':
|
|
|
|
cmd.run
|
2020-02-03 23:18:28 -05:00
|
|
|
|
|
|
|
Final Housekeeping:
|
|
|
|
powercfg.set_timeout: # Reset sleep timeout
|
|
|
|
- name: standby
|
|
|
|
- value: 30 # default
|
|
|
|
- order: last
|
2020-02-03 23:19:13 -05:00
|
|
|
module.run:
|
|
|
|
- name: system.reboot
|
|
|
|
- timeout: 0
|
|
|
|
- only_on_pending_reboot: true
|
|
|
|
- order: last
|