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

 

转载于:https://www.cnblogs.com/Ning-Saltstack/p/7084656.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值