Skip to content

Commit

Permalink
Replace realm-command with custom script
Browse files Browse the repository at this point in the history
ferricoxide committed Nov 15, 2023
1 parent 369ac23 commit 4fd4daf
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions join-domain/elx/sssd/config/clean.sls
Original file line number Diff line number Diff line change
@@ -8,11 +8,21 @@ Check Realm Status - {{ join_domain.dns_name }}:
- name: '/sbin/realm list | grep -q ''^{{ join_domain.dns_name }}'''
Leave Realm - {{ join_domain.dns_name }}:
cmd.run:
- name: '/sbin/realm leave {{ join_domain.dns_name }}'
cmd.script:
- env:
- DOMAIN_ACTION: 'leave'
- ENCRYPT_PASS: '{{ join_domain.encrypted_password }}'
- ENCRYPT_KEY: '{{ join_domain.key }}'
- JOIN_DOMAIN: '{{ join_domain.dns_name }}'
- JOIN_OU: '{{ join_domain.oupath }}'
- JOIN_USER: '{{ join_domain.username }}'
- cwd: '/root'
- name: 'join.sh'
- output_loglevel: quiet
- require:
- cmd: 'Check Realm Status - {{ join_domain.dns_name }}'
authselect Disable 'with-mkhomedir':
cmd.run:
- name: 'authselect disable-feature with-mkhomedir'

0 comments on commit 4fd4daf

Please sign in to comment.