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上的木偶模塊是開放的項目,社區貢獻對於保持其出色的貢獻至關重要。在貢獻更改時,請遵循我們的準則。
有關更多信息,請參閱我們的模塊貢獻指南。
要查看誰已經參與其中,請參閱貢獻者列表。