From 023cc68ba2d8d03c8b8eb26496f3062b9bed63d0 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Mon, 7 Jun 2021 12:07:19 -0400 Subject: [PATCH] Surface default instance group names in /api/v2/settings/all --- awx/main/conf.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/awx/main/conf.py b/awx/main/conf.py index 09360fc54f..c121dcda51 100644 --- a/awx/main/conf.py +++ b/awx/main/conf.py @@ -177,6 +177,24 @@ register( read_only=True, ) +register( + 'DEFAULT_CONTROL_PLANE_QUEUE_NAME', + field_class=fields.CharField, + label=_('The instance group where control plane tasks run'), + category=_('System'), + category_slug='system', + read_only=True, +) + +register( + 'DEFAULT_EXECUTION_QUEUE_NAME', + field_class=fields.CharField, + label=_('The instance group where user jobs run (currently only on non-VM installs)'), + category=_('System'), + category_slug='system', + read_only=True, +) + register( 'DEFAULT_EXECUTION_ENVIRONMENT', field_class=fields.PrimaryKeyRelatedField,