在Puppet中,“ include”和“ class”有什么区别?


8

我可以写

include '::ntp'

或者我可以写

class { '::ntp':}

它们之间有什么区别,还是我都需要?

Answers:



-1

Include是告诉木偶将“ ntp”类应用于节点,而是声明该类,此类的行为(例如确保文件,包,用户等)。


class 定义一个类,而include 声明(即使用)它。
Marcello Romani
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.