On Sun, Oct 30, 2011 at 10:40 PM, Robert Atkins <[email protected]> wrote: > Some progress... > > On Oct 31, 1:07 pm, Robert Atkins <[email protected]> wrote: >> I've installed puppet, rubygems, puppet-module and the puppetlabs-java >> module on my OpenSUSE 11.4 system. When I do: >> >> puppet apply java/manifests/init.pp >> >> ... nothing happens. I was expecting output telling me my system is > > I've now realised I can't use the class directly, but have to > "include" it from my own manifest file. This I've done; I've now > gotten as far as receiving the expected error message, modifying the > java module to include OpenSuSE as an RPM-style system, and getting > zypper complain "No provider of 'jdk' found".
Here's an example for how to use this class: https://github.com/puppetlabs/puppetlabs-java/blob/master/tests/init.pp I'm expecting OpenSuSE to fail with "operating system not supported" based on the latest code: https://github.com/puppetlabs/puppetlabs-java/blob/master/manifests/init.pp I don't know the extracted jdk package name on SuSE. You will need to copy the rpm to your zypper package repo first. Next I would copy the package_redhat class to package_suse and update the init.pp file with the following section: case $operatingsystem { opensuse: { class { 'java::package_suse': version => $version, distribution => $distribution, require => Anchor['java::begin'], before => Anchor['java::end'], } } ... If this works, we would love to get a merge request to add support to this platform. > I had to manually move the java and stdlib classes into /usr/share/ > puppet/modules though. Shouldn't puppet-module put them there > automatically? There's different modulepath defaults on different platform (as well as enterprise vs. opensource). The tool currently installs in the current working directory. I'm not sure how best to improve this default behavior, but it seems worthwhile to have a feature request opened in projects.puppetlabs.com if it doesn't already exist. Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
