Hi Axel
Thanks a lot, you solution is right.
Le vendredi 10 août 2012 12:40:21 UTC+2, Rost a écrit :
>
> Hi all,
>
> I am struggling on how to do this :
>
> $path = '/tmp/lib'
>
> file { $path:
> ensure => directory,
> recurse => true,
> purge => true,
> }
>
> file { $path:
> ensure => directory,
> resurce => true,
> source => 'puppet:///modules/jboss/lib
> }
>
> When puppet compiles the manifest, I get the following error:
>
> * Duplicate declaration: File[/tmp/lib] is already declared in file
> /etc/puppet/modules/srhjboss/manifests/purge.pp at line 4; cannot redeclare
> at /etc/puppet/modules/srhjboss/manifests/purge.pp:10 on node frparsrnlinnto
> *
> *
> *
> It seems that i can't purge the directory before to copy the new one from
> the source.
>
> Suggestions ??
> Thanks
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/2YJqTnc2n6AJ.
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.