On Tuesday, September 30, 2014 3:29:23 AM UTC-5, Benjamin Priestman wrote:
>
> I've always used import, not include to get my node definitions into 
> site.pp. the new way of doing it, I believe, is to use a manifest 
> directory. See 
> https://docs.puppetlabs.com/puppet/latest/reference/lang_import.html



Yes. 'include' is for declaring classes; it does not apply directly to 
whole manifests.  'import'ing node definitions is about the only use of 
'import' that is any more accepted as good practice.  The point of the 
new(ish) "manifest directory" feature seems primarily to remove any need 
for that use of 'import'.  Deprecation of 'import' will surely follow, if 
it hasn't been deprecated already.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/2a949d89-85d8-4f8d-81f4-dd111622e411%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to