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. Thanks, John -- John Kennedy -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On May 31, 4:58 am, John Kennedy <skeb...@gmail.com> 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tuesday, May 31, 2011 at 2:58 AM, John Kennedy 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. > Thanks, > John >Which Puppet version are you using? This looks similar to #6856 which was fixed in 2.6.8. It could also be #4932.> -- > John Kennedy > > -- > 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 (mailto:puppet-users@googlegroups.com). > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users+unsubscribe@googlegroups.com). > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, May 31, 2011 at 18:36, Nick Lewis <nick@puppetlabs.com> wrote:> On Tuesday, May 31, 2011 at 2:58 AM, John Kennedy 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. > Thanks, > John > > Which Puppet version are you using? This looks similar to #6856 which was > fixed in 2.6.8. It could also be #4932. > >The puppet master is 2.6.4. The nodes are running 2.6.8. -- John Kennedy -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.