Same question at http://stackoverflow.com/questions/37497390/puppetlabs-java-oracle-failed-to-apply-catalog-no-title-provided-and-file-is-n
Objective
Find possible cause/solution for the issue of Failed to apply catalog: No title provided with https://github.com/puppetlabs/puppetlabs-java.Environment
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-327.el7.x86_64
Architecture: x86-64
puppet --version
4.5.0
Issue
Error: Failed to apply catalog: No title provided and :file is not a valid resource reference
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Notice: Scope(Java::Oracle[jdk8]): Destination is /tmp/jdk-8u51-linux-x64.rpm
Notice: Compiled catalog for puppet.demo.local in environment production in 0.29 seconds
Info: Applying configuration version '1464564285'
Error: Failed to apply catalog: No title provided and :file is not a valid resource reference
java.pp
java::oracle { 'jdk8' :
ensure => 'present',
version => '8',
java_se => 'jdk',
}
Action Taken
git clone https://github.com/voxpupuli/puppet-archive archive in modules/ directory as suggested in stackoverflow. However the issue persists.