Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- join_to_domain:
- system.join_domain:
- - name: X.dom
- - username: joindomain_service
- - password: X
- - account_ou: OU=Windows,OU=Servers,OU=X,DC=X,DC=dom
- - restart: false
- join_to_domain_restart:
- system.reboot:
- - timeout: 1
- - in_seconds: True
- - only_on_pending_reboot: False
- - watch:
- - system: join_to_domain
- The "watch" is always triggered, i.e, restart still occurs even if the computer is already added to the domain.
- saltwintest-01:
- ----------
- ID: join_to_domain
- Function: system.join_domain
- Name: ctcolo.dom
- Result: True
- Comment: Computer already added to 'X.dom'
- Started: 02:10:39.134872
- Duration: 42.819 ms
- Changes:
- ----------
- ID: join_to_domain_restart
- Function: system.reboot
- Result: True
- Comment: Request to reboot was successful
- Started: 02:10:42.758981
- Duration: 28.556 ms
- Changes:
- ----------
- new:
- A reboot has been scheduled
- old:
- No reboot or shutdown was scheduled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement