Issue #22715 has been updated by eric sorenson. Status changed from Unreviewed to Needs More Information Assignee changed from eric2 sorenson to Raghavendra Rachamadugu
`import` does not and will not support variable interpolation like that. `include` DOES support variable interpolation and works better than `import` in almost all cases. my recommendation for a workaround follows the docs here http://docs.puppetlabs.com/puppet/2.7/reference/lang_import.html you should change it to `include "nodes::${certname}"` then write the code for the nodes into a module: <pre> ## modules/nodes/manifests/mynode.pp class nodes::mynode { .... } </pre> Does that seem like a reasonable approach? ---------------------------------------- Feature #22715: Allow importing of single node manifest file using import statement in site.pp https://projects.puppetlabs.com/issues/22715#change-98053 * Author: Raghavendra Rachamadugu * Status: Needs More Information * Priority: Normal * Assignee: Raghavendra Rachamadugu * Category: * Target version: * Affected Puppet version: * Keywords: * Branch: ---------------------------------------- I should be able to do the following in a site.pp file import 'nodes/${clientcert}.pp' The workaround without this is to have import 'nodes/*.pp' Using a wildcard has few problems 1. It unnecessarily includes a lot of puppet code to process 2. A problem (say syntax issue) in one manifest file now has a global impact - every single agent check-in will fail -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
