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 5236c3e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 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_datadir:
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_datadir
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_datadir: /var/run/receptor/

# UWSGI default values
uwsgi_processes: 5
# NOTE: to increase this value, net.core.somaxconn must also be increased
Expand Down
11 changes: 7 additions & 4 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_DATADIR = '{{ receptor_datadir }}'


{% for item in extra_settings | default([]) %}
{{ item.setting }} = {{ item.value }}
Expand Down Expand Up @@ -243,10 +245,11 @@ data:
- log-level: {{ receptor_log_level }}
- local-only: null
- node:
firewallrules:
- action: reject
tonode: HOSTNAME
toservice: control
datadir: {{ receptor_datadir }}
firewallrules:
- action: reject
tonode: HOSTNAME
toservice: control
- control-service:
service: control
filename: /var/run/receptor/receptor.sock
Expand Down

0 comments on commit 5236c3e

Please sign in to comment.