Exemple #1
0
    def ApplyKeyboardWithTask(self) -> ObjPath:
        """Apply keyboard configuration to the current system.

        :return: DBus path of the task applying the configuration
        """
        return TaskContainer.to_object_path(
            self.implementation.apply_keyboard_with_task())
Exemple #2
0
    def AttachSubscriptionWithTask(self) -> ObjPath:
        """Attach subscription using a runtime DBus task.

        :return: a DBus path of an installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.attach_subscription_with_task())
Exemple #3
0
    def ScanDevicesWithTask(self) -> ObjPath:
        """Scan all devices with a task.

        :return: a path to a task
        """
        return TaskContainer.to_object_path(
            self.implementation.scan_devices_with_task())
    def ConfigureUsersWithTask(self) -> ObjPath:
        """Configure users via a DBus task.

        :returns: DBus path of the task
        """
        return TaskContainer.to_object_path(
            self.implementation.configure_users_with_task())
Exemple #5
0
    def SetSystemPurposeWithTask(self) -> ObjPath:
        """Set system purpose for the installed system with an installation task.

        :return: a DBus path of an installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.set_system_purpose_with_task())
Exemple #6
0
    def UnregisterWithTask(self) -> ObjPath:
        """Unregister using a runtime DBus task.

        :return: a DBus path of an installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.unregister_with_task())
Exemple #7
0
    def InstallSystemWithTask(self) -> ObjPath:
        """Install the system.

        :return: a DBus path of the main installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.install_system_with_task())
Exemple #8
0
    def RegisterUsernamePasswordWithTask(self) -> ObjPath:
        """Register with username & password using a runtime DBus task.

        :return: a DBus path of an installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.register_username_password_with_task())
Exemple #9
0
    def RegisterOrganizationKeyWithTask(self) -> ObjPath:
        """Register with organization & keys(s) using a runtime DBus task.

        :return: a DBus path of an installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.register_organization_key_with_task())
Exemple #10
0
    def SetupWithTask(self) -> ObjPath:
        """Setup the payload.

        Check availability of the image and update required space
        """
        return TaskContainer.to_object_path(
            self.implementation.setup_with_task())
Exemple #11
0
    def ConfigureFIPSWithTask(self) -> ObjPath:
        """Configure FIPS on the installed system.

        :return: a DBus path of a installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.configure_fips_with_task())
Exemple #12
0
    def ResetWithTask(self) -> ObjPath:
        """Reset the storage model.

        :return: a path to a task
        """
        return TaskContainer.to_object_path(
            self.implementation.reset_with_task())
Exemple #13
0
    def StartModulesWithTask(self) -> ObjPath:
        """Start modules with the task.

        :return: a DBus path of the task
        """
        return TaskContainer.to_object_path(
            self.implementation.start_modules_with_task())
Exemple #14
0
    def ConfigureWithTask(self) -> ObjPath:
        """Schedule the partitioning actions.

        :return: a DBus path to a task
        """
        return TaskContainer.to_object_path(
            self.implementation.configure_with_task())
Exemple #15
0
    def CopyLogsWithTask(self) -> ObjPath:
        """Copy installation logs with a task.

        :return: a DBus path of the task
        """
        return TaskContainer.to_object_path(
            self.implementation.copy_logs_with_task())
    def SetRootPasswordWithTask(self) -> ObjPath:
        """Set root password via a DBus task.

        :returns: DBus path of the task
        """
        return TaskContainer.to_object_path(
            self.implementation.set_root_password_with_task())
Exemple #17
0
    def JoinRealmWithTask(self) -> ObjPath:
        """Join realm with a task.

        NOTE: temporary API needed before dynamic task scheduling is implemented
        """
        return TaskContainer.to_object_path(
            self.implementation.join_realm_with_task())
Exemple #18
0
    def SetRHSMConfigWithTask(self) -> ObjPath:
        """Set RHSM configuration with a runtime DBus task.

        :return: a DBus path of an installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.set_rhsm_config_with_task())
Exemple #19
0
    def ParseAttachedSubscriptionsWithTask(self) -> ObjPath:
        """Parse attached subscriptions using a runtime DBus task.

        :return: a DBus path of an installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.parse_attached_subscriptions_with_task())
Exemple #20
0
    def PreconfigureFIPSWithTask(self, payload_type: Str) -> ObjPath:
        """Set up FIPS for the payload installation with a task.

        :param payload_type: a string with the payload type
        :return: a DBus path of a installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.preconfigure_fips_with_task(payload_type))
Exemple #21
0
    def InstallWithTask(self) -> ObjPath:
        """Install the payload.

        * Copy the payload.
        * Create rescue images
        """
        return TaskContainer.to_object_path(
            self.implementation.install_with_task())
Exemple #22
0
    def FormatWithTask(self, dasds: List[Str]) -> ObjPath:
        """Format DASDs.

        :param dasds: a list of disk names
        :return: a path to a task
        """
        return TaskContainer.to_object_path(
            self.implementation.format_with_task(dasds))
    def FixZIPLBootloaderWithTask(self) -> ObjPath:
        """Fix ZIPL bootloader with a task.

        :return: a DBus path of a installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.fix_zipl_bootloader_with_task()
        )
Exemple #24
0
    def FixZIPLWithTask(self) -> ObjPath:
        """Fix the ZIPL bootloader.

        FIXME: This is just a temporary method.

        :return: a path to a DBus task
        """
        return TaskContainer.to_object_path(
            self.implementation.fix_zipl_with_task())
Exemple #25
0
    def DiscoverWithTask(self, device_number: Str) -> ObjPath:
        """Discover a DASD.

        :param device_number: a device number
        :return: a path to a task
        :raise: DiscoveryError in a case of failure
        """
        return TaskContainer.to_object_path(
            self.implementation.discover_with_task(device_number))
Exemple #26
0
    def TeardownWithTask(self) -> ObjPath:
        """Tear down installation source image.

        * Unmount the image
        * Clean up mount point directories
        * Remove downloaded image
        """
        return TaskContainer.to_object_path(
            self.implementation.teardown_with_task())
Exemple #27
0
    def ConsolidateInitramfsConnectionsWithTask(self) -> ObjPath:
        """Ensure devices configured in initramfs have no more than one NM connection.

        This should be used only in installer environment.

        :returns: DBus path of the task consolidating the connections
        """
        return TaskContainer.to_object_path(
            self.implementation.consolidate_initramfs_connections_with_task())
Exemple #28
0
    def InstallNetworkWithTask(self, overwrite: Bool) -> ObjPath:
        """Install network with an installation task.

        FIXME: does overwrite still apply?
        :param overwrite: overwrite existing configuration
        :return: a DBus path of an installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.install_network_with_task(overwrite))
Exemple #29
0
    def InstallWithTask(self) -> ObjPath:
        """Install the bootloader.

        FIXME: This is just a temporary method.

        :return: a path to a DBus task
        """
        return TaskContainer.to_object_path(
            self.implementation.install_with_task())
Exemple #30
0
    def ConfigureHostnameWithTask(self, overwrite: Bool) -> ObjPath:
        """Configure hostname with an installation task.

        FIXME: does overwrite still apply?
        :param overwrite: overwrite existing configuration
        :return: a DBus path of an installation task
        """
        return TaskContainer.to_object_path(
            self.implementation.configure_hostname_with_task(overwrite))