def _execute_task(self, sysroot, ntp_enabled, ntp_servers):
     task = ConfigureNTPTask(
         sysroot=sysroot,
         ntp_enabled=ntp_enabled,
         ntp_servers=ntp_servers
     )
     task.run()
Esempio n. 2
0
    def install_with_tasks(self):
        """Return the installation tasks of this module.

        :return: list of installation tasks
        """
        return [
            ConfigureTimezoneTask(sysroot=conf.target.system_root,
                                  timezone=self.timezone,
                                  is_utc=self.is_utc),
            ConfigureNTPTask(sysroot=conf.target.system_root,
                             ntp_enabled=self.ntp_enabled,
                             ntp_servers=self.ntp_servers)
        ]