Adding "force_delete" key to remove user data completely.
In rare cases (for example if environment has been configured
with ldap support user.absent cannot be executed properly and
will fail.
We can add force: True to a state so it wil succeed regardless
of ldap connectivity and remove local user data (home, mail)
Prod-Related: PROD-33024
Change-Id: I535be927bf77ce8ded28eb0a2fe57a0ef31dd161
diff --git a/tests/pillar/system.sls b/tests/pillar/system.sls
index 1ca26c4..2792df3 100644
--- a/tests/pillar/system.sls
+++ b/tests/pillar/system.sls
@@ -232,6 +232,14 @@
home: /home/saltuser2
groups:
- sudogroup1
+ example:
+ enabled: false
+ name: example
+ sudo: false
+ full_name: disabled
+ home: /home/example
+ email: disabled
+ force_delete: True
group:
testgroup:
enabled: true