# How do I configure krb5.conf?

**URL:** <https://forum.ansible.com/t/how-do-i-configure-krb5-conf/34884>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 30, 2021, 2:01pm UTC](https://forum.ansible.com/t/how-do-i-configure-krb5-conf/34884 "2021-03-30T14:01:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon\_Ellis](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Brandon\_Ellis](https://forum.ansible.com/u/Brandon_Ellis)\
**Post date:** [March 30, 2021, 2:01pm UTC](https://forum.ansible.com/t/how-do-i-configure-krb5-conf/34884/1 "2021-03-30T14:01:46Z")

</div>

I’m trying to automate a deployment of AWX that has krb5.conf already set up.  
How do I go about doing this?

I don’t see any options to do this in the Operator or the install playbook…

---

<div class="post-metadata">

**Author:** ![Tat\_Ming\_Lee](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@Tat\_Ming\_Lee](https://forum.ansible.com/u/Tat_Ming_Lee)\
**Post date:** [April 1, 2021, 5:51am UTC](https://forum.ansible.com/t/how-do-i-configure-krb5-conf/34884/2 "2021-04-01T05:51:25Z")

</div>

I am only familar with the docker version of AWX and to configure the krb5.conf file is to connect to the interactive shell of the awx\_task container. From there you can just edit the config file like a normal linux OS with a krb package installed.

---

<div class="post-metadata">

**Author:** ![Brandon\_Ellis](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Brandon\_Ellis](https://forum.ansible.com/u/Brandon_Ellis)\
**Post date:** [April 4, 2021, 9:54pm UTC](https://forum.ansible.com/t/how-do-i-configure-krb5-conf/34884/3 "2021-04-04T21:54:57Z")

</div>

I’d love to do that, but isn’t that only a temporary change? You’re modifying a file on one container, but as soon as that container is relaunched that file won’t be there anymore.

I was thinking I’d probably either need to A) bake it into the image or B) edit a config map to automatically import the file into the container.

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [April 4, 2021, 10:41pm UTC](https://forum.ansible.com/t/how-do-i-configure-krb5-conf/34884/4 "2021-04-04T22:41:00Z")

</div>

It’s mapped iirc

---

<div class="post-metadata">

**Author:** ![Brandon\_Ellis](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Brandon\_Ellis](https://forum.ansible.com/u/Brandon_Ellis)\
**Post date:** [April 4, 2021, 11:37pm UTC](https://forum.ansible.com/t/how-do-i-configure-krb5-conf/34884/5 "2021-04-04T23:37:58Z")

</div>

Where? Doing a “find all” through the source code, I can’t even find a single reference to the term “krb5.conf”

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [April 5, 2021, 7:34am UTC](https://forum.ansible.com/t/how-do-i-configure-krb5-conf/34884/6 "2021-04-05T07:34:34Z")

</div>

Are you referrring to the AWX 18? or prior. Apoligies if you are referring to 18. I am in the same boat when I installed it. I thought you were referring to the docker intstall

---

<div class="post-metadata">

**Author:** ![Brandon\_Ellis](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Brandon\_Ellis](https://forum.ansible.com/u/Brandon_Ellis)\
**Post date:** [April 6, 2021, 2:41pm UTC](https://forum.ansible.com/t/how-do-i-configure-krb5-conf/34884/7 "2021-04-06T14:41:55Z")

</div>

Both 17.1 and 18.0  
Although, 17.1 might allow you to modify the deployment.yml.j2 template to bind a volume mount and overwrite the krb5.conf file (this config isn’t mapped by default however).  
18.0 is an operator and I too don’t know where to start

I opened this issue: [Need a way to auto-generate krb5.conf on Kubernetes deployments · Issue #9807 · ansible/awx (github.com)](https://github.com/ansible/awx/issues/9807)  
Hopefully something might come out of it.
