# extra\_settings in awx-operator

**URL:** <https://forum.ansible.com/t/extra-settings-in-awx-operator/36044>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [November 29, 2021, 10:59pm UTC](https://forum.ansible.com/t/extra-settings-in-awx-operator/36044 "2021-11-29T22:59:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdelee](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kdelee/32/193_2.png) [@kdelee](https://forum.ansible.com/u/kdelee)\
**Post date:** [November 29, 2021, 10:59pm UTC](https://forum.ansible.com/t/extra-settings-in-awx-operator/36044/1 "2021-11-29T22:59:07Z")

</div>

tl;dr

I’m trying to use the `extra_settings` parameter in the awx-operator ([https://github.com/ansible/awx-operator#extra-settings](https://github.com/ansible/awx-operator#extra-settings)) but I’m having trouble getting it to lay down a settings whose value should be a string when it gets to `/etc/tower/settings.py`  
Has anyone else had success forcing `extra_settings` values to be strings or is this a general bug in the operator?

Full story:

I’m testing adding a new setting to awx, but I imagine this would happen with any setting – awx PR is [https://github.com/ansible/awx/pull/11395/files](https://github.com/ansible/awx/pull/11395/files)

So in my CR to create awx added the following:

extra\_settings: - setting: DEFAULT\_EXECUTION\_QUEUE\_POD\_SPEC\_OVERRIDE value: “MY\_PRETTY\_YAML\_PODSPEC\_OVERRIDE”  
but then when I look at `/etc/tower/settings.py` inside the container, looks to me like this would not parse (because its supposed to be a python file, and the value is not in quotes)

$ cat settings.py | grep POD\_SPEC

DEFAULT\_EXECUTION\_QUEUE\_POD\_SPEC\_OVERRIDE = MY\_PRETTY\_YAML\_PODSPEC\_OVERRIDE

I want the value “MY\_PRETTY\_YAML\_PODSPEC\_OVERRIDE” to be a string by the time it lands in /etc/tower/settings.py

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [November 30, 2021, 9:01pm UTC](https://forum.ansible.com/t/extra-settings-in-awx-operator/36044/2 "2021-11-30T21:01:50Z")

</div>

Could you escape the values in YAML?  
Testing with python YAML suggests that:

value: “‘MY\_PRETTY\_YAML\_PODSPEC\_OVERRIDE’”

should work.

Looking at the operator, I do see how this doesn’t do anything for you when it comes to strings:

[https://github.com/ansible/awx-operator/blob/ebe5d1e2f4afd7fd329c18420947ff5840670293/roles/installer/templates/config.yaml.j2#L93](https://github.com/ansible/awx-operator/blob/ebe5d1e2f4afd7fd329c18420947ff5840670293/roles/installer/templates/config.yaml.j2#L93)

to better help out, I guess we would have to have some type designator.
