puppetlabs ntp
v10.1.0
NTP模块在各种操作系统和分布中安装,配置和管理NTP服务。
include ntp
足以让您启动并运行。传递参数,指定要使用的服务器:
class { 'ntp' :
servers => [ ' ntp1.corp.com ' , ' ntp2.corp.com ' ],
}
NTP模块的所有参数都包含在主ntp
类中,因此,对于模块的任何功能,请设置所需的选项。有关示例,请参见下面的常见用法。
include ntp
class { 'ntp' :
servers => [ ' ntp1.corp.com ' , ' ntp2.corp.com ' ],
}
class { 'ntp' :
servers => [ ' ntp1.corp.com ' , ' ntp2.corp.com ' ],
restrict => [ ' 127.0.0.1 ' ],
}
class { 'ntp' :
servers => [ ' ntp1.corp.com ' , ' ntp2.corp.com ' ],
restrict => [
' default ignore ' ,
' -6 default ignore ' ,
' 127.0.0.1 ' ,
' -6 ::1 ' ,
' ntp1.corp.com nomodify notrap nopeer noquery ' ,
' ntp2.corp.com nomodify notrap nopeer noquery '
],
}
将NTP限制在特定接口上在OpenStack节点上特别有用,OpenStack节点可能具有许多虚拟接口。
class { 'ntp' :
servers => [ ' ntp1.corp.com ' , ' ntp2.corp.com ' ],
interfaces => [ ' 127.0.0.1 ' , ' 1.2.3.4 ' ]
}
class { 'ntp' :
servers => [ ' ntp1.corp.com ' , ' ntp2.corp.com ' ],
restrict => [ ' 127.0.0.1 ' ],
service_manage => false ,
}
class { 'ntp' :
package_manage => false ,
}
class { 'ntp' :
servers => [ ' ntp1.corp.com ' , ' ntp2.corp.com ' ],
restrict => [ ' 127.0.0.1 ' ],
service_manage => false ,
config_epp => ' different/module/custom.template.epp ' ,
}
class { 'ntp' :
servers => [ ' ntp1.corp.com ' , ' ntp2.corp.com ' ],
burst => true ,
}
请参阅参考
该模块已在所有PE支持的平台上进行了测试。此外,在Solaris 10和Fedora 20-22上测试了(但不支持)。
有关支持操作系统的广泛列表,请参见Metadata.json
该代码库是在Apache2.0许可下许可的,但是由于代码库的性质,开源依赖项也可以使用AGPL,BSD-2,BSD-3,BSD-3,GPL2.0,LGPL,MIT,MIT和MPL许可的组合。
我们正在尝试一种用于运行接受测试的新工具。它的名称是puppet_litmus,这取代了烧杯作为测试跑者。要运行接受测试,请按照此处的说明进行操作。
Puppet Forge上的木偶模块是开放的项目,社区贡献对于保持其出色的贡献至关重要。在贡献更改时,请遵循我们的准则。
有关更多信息,请参阅我们的模块贡献指南。
要查看谁已经参与其中,请参阅贡献者列表。