This seems much better to me. Specify what you want directly. Is there ever going to be more than one file that could collide? You probably only need the $bbVersion in the source param that way you can use one name and get rid of the path.
On Sun, Feb 1, 2009 at 11:02 PM, chakkerz <chakk...@gmail.com> wrote: > > ensure => [ directory, present], > seems to do the trick > > file > { "/var/bb/$bbVersion.linux/etc": > # changed path => "/var/bb/bb/ > linux_etc", > path => "/var/bb/bb/etc", > owner => bb, > group => bb, > mode => 775, > recurse => true, > source => "puppet:/// > bigbrother/$bbVersion.linux/etc", > require => file["/var/bb/bb"], > ignore => ".svn", > # added: > ensure => [ directory, > present ], > } > > # replaced by the above > # exec > # { "/bin/mv linux_etc/* etc/ && rmdir > linux_etc": > # cwd => "/var/bb/bb/", > # require => file["/var/bb/ > $bbVersion.linux/etc"], > # } > > cheers > chakkerz > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---