puppetlabs-java failed to apply catalog: No title provided and :file is not a valid resource reference

asked 2016-05-29 20:09:27 -0600

monta gravatar image

Same question at http://stackoverflow.com/questions/37...

Objective

Find possible cause/solution for the issue of Failed to apply catalog: No title provided with https://github.com/puppetlabs/puppetl....

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-a... archive in modules/ directory as suggested in stackoverflow. However the issue persists.

edit retag flag offensive close merge delete