2012年12月11日 星期二

[puppet]puppet import include


Puppet class inheritance confusion - Server Fault
http://serverfault.com/questions/197909/puppet-class-inheritance-confusion


The difference between import and include statemens is:

import works with files, and does not execute classes
include executes classes
files must be imported before the classes can be included
Note: there is a very strong exception to the last rule: Puppet module lookup. include statement does automatic imports in many situations. Here are some of them:

include foo tries to import the file module_dir/foo/manifests/init.pp
include foo::bar imports module_dir/foo/manifests/bar.pp

沒有留言:

張貼留言