On May 31, 4:58 am, John Kennedy <[email protected]> wrote:
> I have a group of web servers being load balanced. I have 4 types of servers
> all build from the same image.
> When I build the image I forgot to clear out one of the sym links from
> sites-enabled to sites-available. This is causing problems with the web
> servers. I have tried to have puppet remove the link but have had little
> success. I have tried the following:
> file { "/opt/nginx/sites-enabled/<site file": ensure => absent }
> This will remove a file if it is there but not this link.
> What am I missing? I have googled to get the above which I thought would
> remove the link.


ensure => absent is what I would expect to work, too.  Does that
parameter actually end up in the catalog for the node(s) you are
testing?  If so, then what message, if any, does the Puppet agent log
about it?

Crazy idea: does the link target exist?  If not, then what happens if
you create it first?  It would be a bug if Puppet won't remove broken
links, but I can imagine a couple of ways that such a bug could creep
in.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en.

Reply via email to