For node definition/classification, what is the successor to `import 'nodes.pp'` now that `import` is deprecated?
I'm new to Puppet and I'm trying to figure out how to define and classify my 100+ nodes.
For a long time the standard way to classify nodes with Puppet Open Source was to use
import 'nodes.pp'. This provided an easy way to classify a small number of nodes.
# /etc/puppetlabs/puppet/manifests/site.pp # import many manifest files with node definitions import 'nodes/*.pp' # import a single manifest file with node definitions import 'nodes.pp'
However, now that 'import' has been deprecated and will be removed in Puppet 4, this method is no longer recommended.
What is the recommended alternative to
import 'nodes.pp'? There are many ways to classify nodes, but which methods are the most common and recommended?