On Friday, June 27, 2014 3:40:29 AM UTC-5, Jérémy D wrote:
>
> Hello,
>
> I need delete file : /usr/lib/zsh/4.3.17/zsh/newuser.so
>
> But version will change and i don't find how to for this scenario
>
> file { "/usr/lib/zsh/??/zsh/newuser.so":
>         ensure => absent,
>         require => Package[$packages],
>      }
>
> Anyone can help me ?
>
>

This is an excellent reason to avoid installing unpackaged software.  Had 
the file in question been part of a package, then removing or updating the 
package would have taken care of the problem without any for you to sweat 
details such as this.

With the file not being part of a package, however, the first question to 
ask is how you would determine the appropriate version number if you had to 
do it manually.  Knowing that, the most idiomatic way to proceed would be 
to make a custom fact of it, and to use the fact value in a resource 
declaration such as you presented.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/72c73c6e-0b03-47a7-8c16-3aa22f74b9f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to