0

I am trying to run a script with puppet. I have absolutely no idea about how puppet works

When I run the following command:

facter_user=nbui facter_group=staff puppet apply --node_name_value=mac_local --modulepath=/foobar/sysops/aws/puppet/modules /foobar/sysops/aws/puppet/manifests/nodes.pp

I get the following error:

Could not find dependency Package[openjdk-6-jdk] for Exec[elasticsearch-package] at /foobar/sysops/aws/puppet/modules/elasticsearch/manifests/init.pp:76

I looked for error but could not find anything good.

According to the error I feel java is missing, but Mac - OSX already ships with open-jdk right?

Also I am able to run "javac"

What am I missing?

michaeltwofish
  • 209
  • 4
  • 11
Gaurav Shah
  • 101
  • 2

1 Answers1

1

Disclaimer: I am one of the developers of Puppet.

So, the error is that the specific package named "openjdk-6-jdk" can't be installed on your machine, and isn't already there.

Given that you are on a Mac, as indicated, that isn't a great surprise - you wouldn't use that package anyhow.

So, the manifest - the Puppet code that contains the instruction to install that package - isn't built to work on MacOS. (...and we can only be as good as the instructions we get.)

You need to get in touch with the folks who wrote the manifest and get them to add OS-X support, or to run that on a platform that those folks supported in their manifest.

(...or learn enough Puppet to fix their bug, of course. :)

Daniel Pittman
  • 5,842
  • 1
  • 23
  • 20
  • My colleagues are running mac & for them the script runs perfectly well – Gaurav Shah Apr 03 '12 at 05:54
  • Uhm, no, that error means that there's no package resource defined -- he's missing some manifest file or fragment that defines that resource. The package itself may well be available, or even installed. – womble Apr 03 '12 at 06:24
  • Could you please help me figure that out ? – Gaurav Shah Apr 03 '12 at 06:30