manifests: As long as your defined
type is sitting in a file that follows the namespacing rules it will be
accessible just like any other resource type:
https://docs.puppetlabs.com/puppet/latest/reference/lang_namespaces.html
On Sat, Jun 20, 2015 at 12:02 AM, Ganesh Nalawade ganesh...@gmail.com
Thanks Dylan.
This approach looks good as and users don't have to add file resource
explicitly.
define new_type::something (
$file_path,
) {
file { $file_path:
ensure = file,
notify= New_type['another_resource'], ---*'another_resource'
must be a variable as it is title of
@Reid: Agreed it make sense to reference another resource instead of path
string.
The links you shared are very helpful. Thanks!!!
@Dylan: While going through defined types i came across vhost here:
https://github.com/puppetlabs/puppetlabs-apache/blob/master/manifests/vhost.pp
I am not very