Issue #2408 has been updated by Jan Vansteenkiste.

Since a solution does not seem to be comming along soonish: another possible 
workaround:

<pre><code lang="puppet">class foobar {
  include foobar::loader
}

class foobar::loader (
  $defaults = {},
) {
  $definitions = hiera_hash('foobar::foos', {})
  create_resources('foobar::defines_foo', $definitions, $defaults)
}
</code></pre>

----------------------------------------
Feature #2408: It should be possible to assign a definition to a node in an 
external nodes tool
https://projects.puppetlabs.com/issues/2408#change-93366

* Author: Pieter Barrezeele
* Status: Accepted
* Priority: High
* Assignee: Nigel Kersten
* Category: 
* Target version: 3.x
* Affected Puppet version: 0.24.8
* Keywords: 
* Branch: 
----------------------------------------
Until now, only classes/modules and parameters can be assigned to nodes in an 
external nodes tool.

It would be very useful to be able to assign a definition, such as:

<pre>
node ws1 inherits webserver {
        apache::vhost{"www.example.com"}
}
</pre>

to a node using yaml. The only other way to do now, seems to be writing wrapper 
classes.

Thanks,

Pieter.




-- 
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.


Reply via email to