Skip to content

Instantly share code, notes, and snippets.

@joejulian
Last active January 28, 2016 23:15
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 joejulian/5a0532c25ba31f859d59 to your computer and use it in GitHub Desktop.
Save joejulian/5a0532c25ba31f859d59 to your computer and use it in GitHub Desktop.
windows_join_domain
winrepo:
module.run:
- name: pkg.refresh_db
install_win32net:
pkg.installed:
- name: win32net
- refresh_db: True
- require:
- pkg: winrepo
join_domain:
module.run:
- name: system.join_domain
- domain: {{ salt['pillar.get']('correct_windows_domain:domain') }}
- restart: True
- require:
- pkg: install_win32net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment