You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

from leapp.models import fields, Model
from leapp.topics import SystemFactsTopic, SystemInfoTopic
class Authselect(Model):
"""
Suggested changes that will convert the system to authselect.
This model describes the authselect call that can be used to convert
existing configuration into a equivalent or similar configuration
that is generated by authselect.
"""
topic = SystemFactsTopic
profile = fields.Nullable(fields.String(default=None))
"""
Suggested authselect profile name.
"""
features = fields.List(fields.String())
"""
Suggested authselect profile features.
"""
confirm = fields.Boolean(default=True)
"""
Changes to the system requires admin confirmation.
"""
class AuthselectDecision(Model):
"""
Confirmation of changes suggested in Authselect model.
If confirmed is True, the changes will be applied on RHEL-8 machine.
"""
topic = SystemInfoTopic
confirmed = fields.Boolean(default=False)
"""
If true, authselect should be called after upgrade.
"""