Skip to content

Commit

Permalink
Add directoy option for receptors data
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronH88 committed Dec 5, 2023
1 parent a61ed18 commit 3ff81e0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/crd/bases/awx.ansible.com_awxs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,9 @@ spec:
receptor_log_level:
description: Set log level of receptor service
type: string
receptor_persist_dir:
description: Set directory for receptor logs
type: string
extra_settings:
description: Extra settings to specify for the API
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,11 @@ spec:
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- urn:alm:descriptor:com.tectonic.ui:hidden
- displayName: Receptor Persistant Data Directory
path: receptor_persist_dir
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- urn:alm:descriptor:com.tectonic.ui:hidden
- displayName: API Extra Settings
path: extra_settings
x-descriptors:
Expand Down
2 changes: 2 additions & 0 deletions roles/installer/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,8 @@ host_aliases: ''

receptor_log_level: info

receptor_persist_dir: /tmp/receptor/

# UWSGI default values
uwsgi_processes: 5
# NOTE: to increase this value, net.core.somaxconn must also be increased
Expand Down
3 changes: 3 additions & 0 deletions roles/installer/templates/configmaps/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ data:

RECEPTOR_LOG_LEVEL = '{{ receptor_log_level }}'

RECEPTOR_PERSIST_DIR = '{{ receptor_persist_dir }}'


{% for item in extra_settings | default([]) %}
{{ item.setting }} = {{ item.value }}
Expand Down Expand Up @@ -247,6 +249,7 @@ data:
- action: reject
tonode: HOSTNAME
toservice: control
datadir: {{ receptor_persist_dir }}
- control-service:
service: control
filename: /var/run/receptor/receptor.sock
Expand Down

0 comments on commit 3ff81e0

Please sign in to comment.