Exemplo n.º 1
0
 def _execute_task(self, sysroot, timezone, is_utc):
     task = ConfigureTimezoneTask(
         sysroot=sysroot,
         timezone=timezone,
         is_utc=is_utc
     )
     task.run()
Exemplo 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)
        ]