tripleo-heat-templates/deployment/ipa
Lance Bragstad d0c5bcac80 Fix delegation with FreeIPA cleanup
Previously, we were delegating the IPA cleanup role to the undercloud
via localhost. This is because the keytab used to authenticate to
FreeIPA and perform the cleanup of host entries during scale down is on
the undercloud. However, when using train, ansible is invoked from the
mistral container when using `delegate_to: localhost`. In this case,
you'll end up with a privilege escalation error:

  "sudo: unable to open /run/sudo/ts/mistral: Permission denied\nsudo: a password is required\n",

This is because the mistral container doesn't have passwordless sudo,
resulting in a failed privilege escalation.

Instead, we should make sure we delegate this task to the Undercloud,
where we know the tripleo-admin user is setup properly.

Change-Id: I844f78c520d7b507d906faf7242e72dd717f9cb5
Related-Bug: 1891317
(cherry picked from commit 1547fc8e30)
2020-08-12 14:31:47 -05:00
..
ipaclient-baremetal-ansible.yaml Use command to set pythonintepreter 2020-07-10 19:12:38 +05:30
ipaservices-baremetal-ansible.yaml Fix delegation with FreeIPA cleanup 2020-08-12 14:31:47 -05:00