On Monday, February 3, 2014 9:13:28 AM UTC-6, JonY wrote: > > I need to convert my resource based system to ENC. >
That statement does not make sense. You cannot do anything useful with Puppet without resources. I suppose you may mean that you want to drop node blocks, in which you sometimes declare resources and resource collections, in favor of classifying nodes via an ENC. > It's mostly straightforward but I'm not sure how to handle operations like > these: > > Class['apt'] -> Package<| |> > > ENCs can feed only classes (with or without parameters) and top-scope variables to Puppet. You therefore have two general ways forward: 1. Do as you said, and drop *all* node blocks in favor of ENC classification. In this case you need to wrap all resource and resource collection declarations in classes. Your ENC then specifies the appropriate classes. 2. Use node blocks together with ENC, and leave resource declarations in the node blocks. In this case Puppet must be able to match a node block to every node, but that's not an onerous requirement because it can be satisfied trivially via an empty 'default' node block. In this case, yes, Puppet will combine the ENC-specified and node-block-specified declarations for each node, and use them all. 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/ea850cb2-45a0-4b41-a026-70c4e41a04ee%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.