On Fri, Dec 30, 2011 at 08:32, Len Rugen <lenru...@gmail.com> wrote: > We have a case where we've been requested to create an extra symlink. The > system provides libsomething.so.0.vv.rr and a symlink of libsomething.so.0. > We need create a symlink libsomething.so (without the .0). I'm afraid > maintenance may change the base file and break the puppeted symlink. > > Can we do something like subscribe to the RPM provided libsomething.so.0 > link, then fire an script to find it's new target and recreate our symlink?
Yes. Have the `package` resource notify an `exec` resource, or the `exec` subscribe to the `package`. Mark the `exec` resource `refreshonly => true`, and it will only run when notified. Then, have that run the script to find the target and make the symlink appropriately. Daniel -- ⎋ Puppet Labs Developer – http://puppetlabs.com ♲ Made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.