# Where do add extra directory mappings with the new install process?

**URL:** <https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [April 30, 2021, 5:24pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091 "2021-04-30T17:24:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joey\_Washburn](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Joey\_Washburn](https://forum.ansible.com/u/Joey_Washburn)\
**Post date:** [April 30, 2021, 5:24pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/1 "2021-04-30T17:24:54Z")

</div>

We need to add a couple of directories to the task container. In the past I modified installer/roles/image\_build\_tempaltes/Dockerfile.j2 with

RUN mkdir -p /var/lib/awx/public/isos

I am trying to figure out where in the new Operator deployment method I would make these edits. It seems maybe like a config map, but not sure if I need to make my own file in the templates dir or just modify one that is already there. maybe tower\_deployment.yaml.j2

Thoughts?

---

<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 30, 2021, 8:37pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/2 "2021-04-30T20:37:18Z")

</div>

In the crd

---

<div class="post-metadata">

**Author:** ![Joey\_Washburn](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Joey\_Washburn](https://forum.ansible.com/u/Joey_Washburn)\
**Post date:** [April 30, 2021, 8:43pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/3 "2021-04-30T20:43:41Z")

</div>

What’s the crd? Sorry for the simple questions

---

<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 30, 2021, 8:49pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/4 "2021-04-30T20:49:54Z")

</div>

I suggest you read this reference. You do it through a configmap

[https://groups.google.com/g/awx-project/c/g66X-FFICXA/m/hVg2aywQAgAJ](https://groups.google.com/g/awx-project/c/g66X-FFICXA/m/hVg2aywQAgAJ)

There is a reference by Brandon Ellis

---

<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 30, 2021, 8:54pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/5 "2021-04-30T20:54:37Z")

</div>

I also wrote about my installation too:

I  
[http://weiyentan.github.io/2021/Installing-awx-kubernetes/](http://weiyentan.github.io/2021/Installing-awx-kubernetes/).  
I had to do something similar

---

<div class="post-metadata">

**Author:** ![Joey\_Washburn](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Joey\_Washburn](https://forum.ansible.com/u/Joey_Washburn)\
**Post date:** [April 30, 2021, 9:17pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/6 "2021-04-30T21:17:09Z")

</div>

That was a great help thanks. Nice work on the blog post. One thing I am curious about on the extra volumes. I see there is a mount path and a submount path that seems to point to a file. I need a persistent empty volume. We have a process that builds ISO files and drops them in that directory.

Looking at this as an example below, would I build out my directories that I need inside that custom.py file?

tower\_task\_extra\_volume\_mounts: |

- name: custom-py  
mountPath: /etc/tower/conf.d/custom.py  
subPath: custom.py

---

<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 30, 2021, 9:20pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/7 "2021-04-30T21:20:39Z")

</div>

Hold on a minute. In awx 18+ jobs run in an execution environment. Where is the pv going to be? Remote server or?

---

<div class="post-metadata">

**Author:** ![Joey\_Washburn](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Joey\_Washburn](https://forum.ansible.com/u/Joey_Washburn)\
**Post date:** [April 30, 2021, 9:22pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/8 "2021-04-30T21:22:45Z")

</div>

So thats a good question, I really dont know. We are running this on AWX14 now. So there is just the awx-web, awx-task and awx-psotgre pods. These extra directories are on the task server

---

<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 30, 2021, 9:24pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/9 "2021-04-30T21:24:05Z")

</div>

So are you mapping to it on the local server now?

---

<div class="post-metadata">

**Author:** ![Joey\_Washburn](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Joey\_Washburn](https://forum.ansible.com/u/Joey_Washburn)\
**Post date:** [April 30, 2021, 9:27pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/10 "2021-04-30T21:27:19Z")

</div>

It gets mapped on the OS running on the awx-task pod. Its a centos8 instance if I remember correctly.

So when the playbook runs it runs geniso which builds an ISO and drops it on that extra directory we have setup. During the build process we run RUN mkdir -p /var/lib/awx/public/isos

---

<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 30, 2021, 9:29pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/11 "2021-04-30T21:29:06Z")

</div>

Ok. So on your kubernetes install. You have one host?

---

<div class="post-metadata">

**Author:** ![Joey\_Washburn](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Joey\_Washburn](https://forum.ansible.com/u/Joey_Washburn)\
**Post date:** [April 30, 2021, 9:32pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/12 "2021-04-30T21:32:24Z")

</div>

Im not sure of your question. We have 3 pods that get deployed as part of the basic AWX 14 install. awx-web which is the webUI stuff. awx-task which runs the actual playbooks and awx-postgres which is the DB. I actually have no idea what the underlying infrastructure is/ Thats a black box to me. I run the old school ansible-playbook -i inventory install.yml and because of our modifications to the jinja file when it builds the docker image that gets deployed it makes those extra directories on the awx-task pod

---

<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 30, 2021, 9:34pm UTC](https://forum.ansible.com/t/where-do-add-extra-directory-mappings-with-the-new-install-process/35091/13 "2021-04-30T21:34:19Z")

</div>

Ohhh right so yoy are using awx14 in kubernetes?
