diff --git a/awx/main/conf.py b/awx/main/conf.py index 2dbf5e127e..67cabff9dd 100644 --- a/awx/main/conf.py +++ b/awx/main/conf.py @@ -775,6 +775,16 @@ register( help_text=_('Indicates whether the instance is part of a kubernetes-based deployment.'), ) +register( + 'UI_NEXT', + field_class=fields.BooleanField, + default=False, + label=_('Enable Next Generation User Interface'), + help_text=_('Enable the next generation user interface.'), + category=_('System'), + category_slug='system', +) + def logging_validate(serializer, attrs): if not serializer.instance or not hasattr(serializer.instance, 'LOG_AGGREGATOR_HOST') or not hasattr(serializer.instance, 'LOG_AGGREGATOR_TYPE'): diff --git a/awx/settings/defaults.py b/awx/settings/defaults.py index c9bef813d0..9134621662 100644 --- a/awx/settings/defaults.py +++ b/awx/settings/defaults.py @@ -1017,3 +1017,5 @@ AWX_MOUNT_ISOLATED_PATHS_ON_K8S = False # This is overridden downstream via /etc/tower/conf.d/cluster_host_id.py CLUSTER_HOST_ID = socket.gethostname() + +UI_NEXT = True