mirror of
https://github.com/ansible/awx.git
synced 2024-10-30 22:21:13 +03:00
Merge pull request #4619 from rooftopcellist/cloud_rh_settings
Add Settings for license & automation analytics creds Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
226d507013
@ -124,6 +124,44 @@ register(
|
||||
category_slug='system',
|
||||
)
|
||||
|
||||
register(
|
||||
'REDHAT_USERNAME',
|
||||
field_class=fields.CharField,
|
||||
default='',
|
||||
allow_blank=True,
|
||||
encrypted=False,
|
||||
read_only=False,
|
||||
label=_('Red Hat customer username'),
|
||||
help_text=_('This username is used to retrieve license information and to send Automation Analytics'), # noqa
|
||||
category=_('System'),
|
||||
category_slug='system',
|
||||
)
|
||||
|
||||
register(
|
||||
'REDHAT_PASSWORD',
|
||||
field_class=fields.CharField,
|
||||
default='',
|
||||
allow_blank=True,
|
||||
encrypted=True,
|
||||
read_only=False,
|
||||
label=_('Red Hat customer password'),
|
||||
help_text=_('This password is used to retrieve license information and to send Automation Analytics'), # noqa
|
||||
category=_('System'),
|
||||
category_slug='system',
|
||||
)
|
||||
|
||||
register(
|
||||
'AUTOMATION_ANALYTICS_URL',
|
||||
field_class=fields.URLField,
|
||||
default='https://cloud.redhat.com',
|
||||
schemes=('http', 'https'),
|
||||
allow_plain_hostname=True, # Allow hostname only without TLD.
|
||||
label=_('Automation Analytics upload URL.'),
|
||||
help_text=_('This setting is used to to configure data collection for the Automation Analytics dashboard'),
|
||||
category=_('System'),
|
||||
category_slug='system',
|
||||
)
|
||||
|
||||
register(
|
||||
'INSTALL_UUID',
|
||||
field_class=fields.CharField,
|
||||
|
@ -61,6 +61,19 @@ export default ['i18n', function(i18n) {
|
||||
},
|
||||
INSIGHTS_TRACKING_STATE: {
|
||||
type: 'toggleSwitch'
|
||||
},
|
||||
REDHAT_USERNAME: {
|
||||
type: 'text',
|
||||
reset: 'REDHAT_USERNAME',
|
||||
},
|
||||
REDHAT_PASSWORD: {
|
||||
type: 'sensitive',
|
||||
hasShowInputButton: true,
|
||||
reset: 'REDHAT_PASSWORD',
|
||||
},
|
||||
AUTOMATION_ANALYTICS_URL: {
|
||||
type: 'text',
|
||||
reset: 'AUTOMATION_ANALYTICS_URL',
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user