easy. every resource may only be defined _once_.
you try ... twice (file { $path : ... } and file { $path: ... }, right?)
why not simply
file { $path:
ensure => directory,
recurse => true,
purge => true,
source => 'puppet:///modules/jboss/lib
}
?
if you _need_ to do this twice for whatever reason, do something like this (but you SHOULD NOT):
file { "$path/0":
$path => $path,
ensure => directory,
recurse => true,
purge => true,
}
file { "$path/1":
path => $path,
ensure => directory,
resurce => true,
source => 'puppet:///modules/jboss/lib
}
cause puppet identifies the resource by the title, which must differ, which it does not. note THAT THIS IS NOT THE RIGHT WAY :) .
HTH & greetings,
Axel.