Automatically join the Windows domain

This commit is contained in:
Adam Goldsmith 2022-10-05 14:38:39 -04:00
parent 924b02cb25
commit b970d95f1b
3 changed files with 9 additions and 3 deletions

View File

@ -18,6 +18,7 @@ base:
'G@os:Windows': 'G@os:Windows':
- enable-wakeonlan - enable-wakeonlan
- windowsWorkstation - windowsWorkstation
- windows-domain
- printers - printers
- chocolatey-packages - chocolatey-packages
- removeShortcuts - removeShortcuts

8
windows-domain.sls Normal file
View File

@ -0,0 +1,8 @@
Join Sawtooth Domain:
system.join_domain:
- name: sawtooth.claremontmakerspace.org
- username: {{ salt['pillar.get']('domainjoin:user') }}
- password: {{ salt['pillar.get']('domainjoin:pass') }}
'gpupdate':
cmd.run

View File

@ -15,9 +15,6 @@ windowsUpdates:
wua.uptodate: wua.uptodate:
- drivers: true - drivers: true
'gpupdate':
cmd.run
Final Housekeeping: Final Housekeeping:
powercfg.set_timeout: # Reset sleep timeout powercfg.set_timeout: # Reset sleep timeout
- name: standby - name: standby