Skip to content

Path problems #6

@rlpowell

Description

@rlpowell

So given:

recursive_directory { "custom nrpe files":
source_dir => "nagios/custom_nrpe",
dest_dir => "/opt/nagios-monitored/custom_nrpe",
owner => "nagios",
group => "nagios",
file_mode => '0755',
}

I was getting:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find template 'nagios/cytobank_monitoring.erb' at /home/rlpowell/src/puppet3/modules/recursive_directory/manifests/init.pp:57 on
node shell01.c44031.blueboxgrid.com

because it was looking for nagios/templates/foo.erb instead of nagios/templates/custom_nrpe/foo.erb

This may not be the best fix, but I fixed it by changing:

    file = "#{template_path}/#{f}"

to

    file = "#{file_path}/#{f}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions