MOON
Server: Apache
System: Linux server2.shieldcogroup.com 3.10.0-1160.119.1.el7.tuxcare.els12.x86_64 #1 SMP Fri Nov 8 05:49:38 UTC 2024 x86_64
User: jacom (1029)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/leapp/repos.d/system_upgrade/el7toel8/models/authselect.py
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.
    """