Пример #1
0
    def publish(self):
        """Publish the module."""
        TaskContainer.set_namespace(NETWORK.namespace)
        self._firewall_module.publish()

        DBus.publish_object(NETWORK.object_path, NetworkInterface(self))
        DBus.register_service(NETWORK.service_name)
Пример #2
0
    def publish(self):
        """Publish the module."""
        TaskContainer.set_namespace(PAYLOADS.namespace)

        self._packages.publish()

        DBus.publish_object(PAYLOADS.object_path, PayloadsInterface(self))
        DBus.register_service(PAYLOADS.service_name)
Пример #3
0
    def publish(self):
        """Publish the boss."""
        TaskContainer.set_namespace(BOSS.namespace)

        # Publish submodules.
        self._ui_module.publish()

        DBus.publish_object(BOSS.object_path, BossInterface(self))
        DBus.register_service(BOSS.service_name)
Пример #4
0
    def publish(self):
        """Publish the module."""
        TaskContainer.set_namespace(STORAGE.namespace)

        for kickstart_module in self._modules:
            kickstart_module.publish()

        DBus.publish_object(STORAGE.object_path, StorageInterface(self))
        DBus.register_service(STORAGE.service_name)
Пример #5
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())
Пример #6
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())
Пример #7
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())
Пример #8
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())
Пример #9
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())
Пример #10
0
    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())
Пример #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())
Пример #12
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())
Пример #13
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())
Пример #14
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())
Пример #15
0
    def FinishInstallationWithTasks(self) -> List[ObjPath]:
        """Finish installation with tasks.

        :return: a list of D-Bus paths of tasks
        """
        tasks = self.implementation.finish_installation_with_tasks()
        return TaskContainer.to_object_path_list(tasks)
Пример #16
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())
Пример #17
0
    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())
Пример #18
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())
Пример #19
0
    def PreInstallWithTasks(self) -> List[ObjPath]:
        """Execute preparation steps.

        FIXME: Temporary -- installation methods will be provided only by the main service
        """
        return TaskContainer.to_object_path_list(
            self.implementation.pre_install_with_tasks())
Пример #20
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())
Пример #21
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())
Пример #22
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())
Пример #23
0
    def InstallWithTasks(self) -> List[ObjPath]:
        """Returns installation tasks of this module.

        :returns: list of object paths of installation tasks
        """
        return TaskContainer.to_object_path_list(
            self.implementation.install_with_tasks())
Пример #24
0
    def InstallWithTasks(self) -> List[ObjPath]:
        """Install the payload.

        FIXME: Temporary -- installation methods will be provided only by the main service
        """
        return TaskContainer.to_object_path_list(
            self.implementation.install_with_tasks())
Пример #25
0
    def TeardownWithTasks(self) -> List[ObjPath]:
        """Returns teardown tasks for this module.

        :returns: list of object paths of installation tasks
        """
        return TaskContainer.to_object_path_list(
            self.implementation.teardown_with_tasks())
Пример #26
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())
Пример #27
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())
Пример #28
0
    def PostInstallWithTasks(self) -> List[ObjPath]:
        """Do post installation tasks.

        * [NO] check installation requirements were applied (Payload)
        """
        return TaskContainer.to_object_path_list(
            self.implementation.post_install_with_tasks())
Пример #29
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())
Пример #30
0
    def InstallWithTask(self) -> ObjPath:
        """Install the payload.

        * Copy the payload.
        * Create rescue images
        """
        return TaskContainer.to_object_path(
            self.implementation.install_with_task())