Based on the documentation I had thought that this: file { "/var/puppet": ensure => "/var/lib/puppet" } should create a symlink /var/puppet which points to the directory /var/lib/puppet It doesn''t seem to be working :-/ Any ideas? Thanks! -- Please remember that an email is just like a postcard; it is not confidential nor private nor secure and can be read by many other people than the intended recipient. A postcard can be read by anyone at the mail sorting office and expecting what is written on it to be private and secret is not realistic. Please hold no higher expectation of email. If you need to send confidential information in an email you need to use encryption. PGP is Pretty good for this. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
That''s rather odd. I just tested it with 0.24.7 on my workstation, and the "ensure => [link target]" syntax works for me. Do you see anything odd in the logs? -Josh On Mar 9, 2009, at 1:10 PM, Steve Wray wrote:> > Based on the documentation I had thought that this: > > file { "/var/puppet": > ensure => "/var/lib/puppet" > } > > > should create a symlink /var/puppet which points to the directory > /var/lib/puppet > > It doesn''t seem to be working :-/ > > Any ideas? > > Thanks! > > > -- > Please remember that an email is just like a postcard; it is not > confidential nor private nor secure and can be read by many other > people > than the intended recipient. A postcard can be read by anyone at the > mail > sorting office and expecting what is written on it to be private and > secret > is not realistic. Please hold no higher expectation of email. > > If you need to send confidential information in an email you need to > use > encryption. PGP is Pretty good for this. > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I always prefer the syntax file {"/var/puppet": ensure => symlink, target => "/var/lib/puppet" } as it seems to me to be more accurate in describing what I want it to do. It should achieve the same thing though. Steve Wray wrote:> Based on the documentation I had thought that this: > > file { "/var/puppet": > ensure => "/var/lib/puppet" > } > > > should create a symlink /var/puppet which points to the directory > /var/lib/puppet > > It doesn''t seem to be working :-/ > > Any ideas? > > Thanks! > > >-- Trevor Hemsley Infrastructure Engineer ................................................. * C A L Y P S O * 4th Floor, Tower Point, 44 North Road, Brighton, BN1 1YR, UK OFFICE +44 (0) 1273 666 350 FAX +44 (0) 1273 666 351 ................................................. www.calypso.com This electronic-mail might contain confidential information intended only for the use by the entity named. If the reader of this message is not the intended recipient, the reader is hereby notified that any dissemination, distribution or copying is strictly prohibited. * P * /*/ Please consider the environment before printing this e-mail /*/ --~--~---------~--~----~------------~-------~--~----~ 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 3/9/09, Trevor Hemsley <trevor.hemsley@codefarm.com> wrote:> > I always prefer the syntax > > file {"/var/puppet": > ensure => symlink, > target => "/var/lib/puppet" > } >++ I find the other syntax to be really confusing as it''s quite a different value type for the ensure parameter compared to all the other uses of the file type.> as it seems to me to be more accurate in describing what I want it to > do. It should achieve the same thing though. > > Steve Wray wrote: >> Based on the documentation I had thought that this: >> >> file { "/var/puppet": >> ensure => "/var/lib/puppet" >> } >> >> >> should create a symlink /var/puppet which points to the directory >> /var/lib/puppet >> >> It doesn''t seem to be working :-/ >> >> Any ideas? >> >> Thanks! >> >> >> > > -- > > Trevor Hemsley > Infrastructure Engineer > ................................................. > * C A L Y P S O > * 4th Floor, Tower Point, > 44 North Road, > Brighton, BN1 1YR, UK > > OFFICE +44 (0) 1273 666 350 > FAX +44 (0) 1273 666 351 > > ................................................. > www.calypso.com > > This electronic-mail might contain confidential information intended > only for the use by the entity named. If the reader of this message is > not the intended recipient, the reader is hereby notified that any > dissemination, distribution or copying is strictly prohibited. > > * P * /*/ Please consider the environment before printing this e-mail /*/ > > > > >-- Nigel Kersten Systems Administrator Tech Lead - MacOps --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks for verifying that I have the correct syntax, it pointed to another error I''d made. Trevor Hemsley wrote:> I always prefer the syntax > > file {"/var/puppet": > ensure => symlink, > target => "/var/lib/puppet" > } > > as it seems to me to be more accurate in describing what I want it to > do. It should achieve the same thing though. > > Steve Wray wrote: >> Based on the documentation I had thought that this: >> >> file { "/var/puppet": >> ensure => "/var/lib/puppet" >> } >> >> >> should create a symlink /var/puppet which points to the directory >> /var/lib/puppet >> >> It doesn''t seem to be working :-/ >> >> Any ideas? >> >> Thanks! >> >> >> >-- Please remember that an email is just like a postcard; it is not confidential nor private nor secure and can be read by many other people than the intended recipient. A postcard can be read by anyone at the mail sorting office and expecting what is written on it to be private and secret is not realistic. Please hold no higher expectation of email. If you need to send confidential information in an email you need to use encryption. PGP is Pretty good for this. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---