Issue #466 has been updated by Luke Kanies. Assigned to deleted (Luke Kanies)
---------------------------------------- Feature #466: Relationships to abstract resources http://projects.puppetlabs.com/issues/466 Author: Ian Burrell Status: Accepted Priority: Normal Assigned to: Category: RAL Target version: Patch: None Affected version: 0.24.4 Keywords: Branch: It would be nice if resources could declarate a virtual resource that other one depends on. For example, an exec should require the binary but the exec resource should not care where the binary is coming from. It could come from a package then the exec needs to require the package name. Or it could from a remote file or some other definition. It would be nice if the source of the binary could provide a virtual resource that the exec requires. This would give some abstraction. I see two ways to implement the virtual resources. One is to have a special virtual type which is only used for the virtual provides. This keeps them in a separate namespace which does not interfere with other types. <pre> package { "stow": provides => "/usr/local/bin/stow" } exec { "/usr/local/bin/stow": require => Virtual[[usrlocalbinstow]] } </pre> The other is to have the provides parameter make virtual resources of any type. This allows it to satisfy automatic requires. <pre> package { "stow": provides => File[[usrlocalbinstow]] } exec { "/usr/local/bin/stow": requires => File[[usrlocalbinstow]] } </pre> In this case, it might be nice to have a virtual parameter for declaring resources as virtual. -- 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.
