Issue #15081 has been updated by konrad rzentarzewski.
i'm quite suprised it doesn't work.
<blockquote>
<4>root@punch(2)~$ puppet apply /tmp/ttt.pp
could not create resource of unknown type @xx at /tmp/ttt.pp:5 on node
punch.non.3dart.com
<4>root@punch(3)~$ cat /tmp/ttt.pp
define xx ($xox=$title) {
notify { "$title | $xox": }
}
create_resources('@xx',hiera('xx'))
realize(Xx["foo"])
<4>root@punch(4)~$ cat hiera/common/common.yaml
# defaults
---
xx:
foo:
xox: one
bar:
xox: two
barszcz:
xox: tri
</blockquote>
any good reason why i can't migrate my user database from manifests to hiera?
----------------------------------------
Feature #15081: Add support for virtual and exported resources to
create_resources
https://projects.puppetlabs.com/issues/15081#change-72752
Author: Gary Richards
Status: Needs Decision
Priority: Normal
Assignee: Dan Bode
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
Hi,
I use create_resources quite a bit and have found that it would often be useful
for the resources that it creates to be either virtual or exported.
In my own limited way I took a copy of create_resources.rb and it seems to be
as simple as setting p_resource.exported or p_resource.virtual to true just
after p_resource gets set to the new resource, but i'm sure there's loads that
I don't understand about all this code!
Thanks
--
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 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.