Issue #1858 has been updated by luke.
I like the idea, and the implementation is certainly simple.
I'm a bit concerned about reusing the existing 'file{$hash:}' syntax, but I
can't really think of a better way to do it.
Is this something you specifically want to attach to External Nodes, or would
you be comfortable having a separate connection to this system? I've been
wanting to find a simple way to generate resources through some kind of query
interface, and it would look pretty much like this. Given that we don't have a
plan for this yet, though, denying this patch in favor of a nonexistent plan
seems like a bad idea.
Anyone else have an opinion?
----------------------------------------
Feature #1858: Add resources based on a Hash
http://projects.reductivelabs.com/issues/show/1858
Author: descala
Status: Needs design decision
Priority: Normal
Assigned to: luke
Category: newfeature
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.24.7
Keywords:
Create resources from a Hash, in fact the syntax for a resource looks like a
Ruby Hash already. The idea is to use it in conjuntion with external_nodes or
with functions which return hashes.
I'll explain it with an en example.
With this external_nodes yaml
<pre>
parameters:
symlinks:
/tmp/one:
ensure: target1
/tmp/two:
ensure: target2
classes:
- foo_class
</pre>
and a this manifest:
<pre>
file {$symlinks:}
</pre>
Puppet should create two file resources /tmp/one and /tmp/two.
This feature allows the creation of simple resources, like a list of users or
cron jobs, outside puppet.
----------------------------------------
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://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---