Hi, new user here. 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 unsupported, but I don''t even see that. Nothing on the console, nothing in /var/log/puppet. Both --debug and --version are unenlightening. 1. What am I missing? It''s obviously something simple. 2. I''ve explored the java module contents and despite it being mentioned on the module''s page (http://forge.puppetlabs.com/puppetlabs/ java) I can''t see the code which actually does anything with the rpm extracted from jdk-6u25-linux-x64-rpm.bin, which I downloaded from Oracle. 3. Why do I even have to say "puppet apply java/manifests/init.pp"? I thought manifests/init.pp was a default and would get automatically executed by if I just said "puppet apply java". Cheers, Robert. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Robert Atkins
2011-Oct-31 05:40 UTC
[Puppet Users] Re: Basic questions about puppetlabs-java
Some progress... On Oct 31, 1:07 pm, Robert Atkins <snikta.tre...@gmail.com> 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 isI''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". I had to manually move the java and stdlib classes into /usr/share/ puppet/modules though. Shouldn''t puppet-module put them there automatically? Cheers, Robert. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nan Liu
2011-Oct-31 15:57 UTC
Re: [Puppet Users] Re: Basic questions about puppetlabs-java
On Sun, Oct 30, 2011 at 10:40 PM, Robert Atkins <snikta.trebor@gmail.com> wrote:> Some progress... > > On Oct 31, 1:07 pm, Robert Atkins <snikta.tre...@gmail.com> 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.