首页 > 代码库 > SaltStack 常用模块介绍 - timezone
SaltStack 常用模块介绍 - timezone
salt-minion:
----------
timezone:
Management of timezones
=======================
The timezone can be managed for the system:
America/Denver:
timezone.system
The system and the hardware clock are not necessarily set to the same time.
By default, the hardware clock is set to localtime, meaning it is set to the
same time as the system clock. If `utc` is set to True, then the hardware clock
will be set to UTC, and the system clock will be an offset of that.
America/Denver:
timezone.system:
- utc: True
.. _here: https://help.ubuntu.com/community/UbuntuTime#Multiple_Boot_Systems_Time_Conflicts
The Ubuntu community documentation contains an explanation of this setting, as
it applies to systems that dual-boot with Windows. This is explained in greater
detail here_.
timezone.system:
Set the timezone for the system.
name
The name of the timezone to use (e.g.: America/Denver)
utc
Whether or not to set the hardware clock to UTC (default is True)
ES:
vi /srv/salt/base/timezone.sls
Asia/Shanghai:
timezone.system:
- name: Asia/Shanghai
SaltStack 常用模块介绍 - timezone
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。