Issue #2408 has been updated by Jan Vansteenkiste.

I've had a talk with Eric (eric0) on this subject yesterday and I would like to 
add my idea on how the yaml structure could look like:

We could either provide a separate value for resources

    ---
    classes: - apache
             - mysql
    resources:
      apache::vhost:
        example.com:
          serveraliases: - www.example.com
        foo.example.com:
        bar.example.com:

Or, we could just use 1 and determine the type at runtime.

    ---
    resources:
      apache:
      mysql:
      apache::vhost:
        example.com:
        foo.example.com:
        bar.example.com:

It should be easy enough to detect the type of whatever is in this hash while 
running. I did something similar to create resources from hiera with one 
function without having to use 2 separate keys for classes and/or resources.

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

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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to