[Puppet Users] puppet-hiera used with Parameterised class
Hi Puppet Users, For some bizzare reason I am unable to use hiera-puppet with a parameterised class. The output is: root@hiera hieratest/manifests# puppet apply -e "include hieratest" Error: undefined method `catalog' for # at line 1 on node hiera.localdomain Wrapped exception: undefined method `catalog' for # Error: undefined method `catalog' for # at line 1 on node hiera.localdomain These are the versions that I am using (taken from the Puppetlabs Debian/Devel): hiera (1.0.0-0.1rc3) hiera-puppet (1.0.0-0.1rc1-1-g3e68ff0) puppet-common (3.0.0-0.1rc3puppetlabs1) puppet (3.0.0-0.1rc3puppetlabs1) Relevant Files: *init.pp file* root@hiera hieratest/manifests# cat init.pp class hieratest ( $bar = hiera("foo"), $zoo = hiera("service_default_loc") ) { notice ("Working ...") notice ("Bar == ${bar}") notice ("Module_user == ${zoo}") } -- and *data.pp* file --- root@hiera hieratest/manifests# cat data.pp class hieratest::data { $foo = "Its Working!!!" ### - Server default values ### --- case $::operatingsystem { /(Ubuntu|Debian)/: { $service_default_loc = '/etc/puppet/modules' } } } --- Can anyone see what I have done wrong? I have looked at the hiera-puppet example and cannot for the life of me see anything different. Thanks, Peter -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/eyCarbBMTnsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] packaging puppet modules
On Thursday, June 28, 2012 2:47:10 PM UTC-6, Brian Gupta wrote: > > In the Debian world I'd consider a metapackage (hope this is the right > term) callet puppet-module-mysql, that can be install package > alternatives, and have puppet-module-puppetlabs-mysql (or something > like that) be one of possibly many alternatives. > Interesting idea with alternatives; I'll give that some thought. I seem to remember that sometimes the depsolving doesn't always do the right thing, but maybe that is indeed the most future-proof solution. Like you mentioned, I too would like to hear more from Puppet Labs' staff on where they see the Module culture going. - Ken -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/cHP2ASaukxcJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Puppet-Rundeck Integration
Hello- I'm running puppet enterprise 2.5.1 and just installed the puppet- rundeck gem. When I try and start puppet-rundeck, I receive the message below: You need to have Puppet 0.25.5 or later installed /usr/lib64/ruby/gems/1.8/gems/puppet-rundeck-0.0.7/lib/puppet- rundeck.rb:34:in `configure': uninitialized constant Class::Puppet (NameError) from ./puppet-rundeck:62 I did pass in the correct path to my puppet.conf file using the -- config parameter. Not sure what's wrong. Does this gem work with Puppet Enterprise? Thanks. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Puppet can't start service (dropbox) but init.d command works manually
This was failing for me because the init.d script needed a #!/bin/sh at the top of it. Puppet was getting an "Exec Format Error" when it tried to run it. 11008 execve("/etc/init.d/dropbox", ["/etc/init.d/dropbox", "status"], [/* 23 vars */]) = -1 ENOEXEC (Exec format error) Ashleyb -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Unable to Install puppet Master
Apologies for the late reply. 1. I installed "pe-tanukiwrapper-3.5.9-5.pe.el5.x86_64" separately with no deps. I moved this rpm out of packages as well >> rpm -U pe-tanukiwrapper-3.5.9-5.pe.el5.x86_64 --nodeps 2. After then I ran the puppet installer. Since I already have the mysql in my server, I didn't select mysql installation. But im getting following error. * "## Setting up the console...* *!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.* *rake aborted!* *libmysqlclient.so.15: cannot open shared object file: No such file or directory - /opt/puppet/lib/ruby/site_ruby/1.8/x86_64-linux/mysql.so* *"* Kindly help as I'm new to puppet. Thanks, Jeeva On Thursday, 31 May 2012 20:40:28 UTC+8, Trevor Vaughan wrote: > > What does rpm -qa | grep java give you? > > If you installed Java from a tar source, then it wouldn't update your > RPM database and actually meet the RPM requirements. > > Your alternatives are to download a version of Java in RPM form that > meets your requirements, roll your own stub RPM, or use --nodeps (if > using 'rpm' not 'yum'). > > Trevor > > On Thu, May 31, 2012 at 3:25 AM, Jeeva wrote: > > Hi, > > I was trying to instal puppet-enterprise-2.5.1-el-5-x86_64 in RHEL- > > 5.3 > > machine. But got below error. > > > > ## Installing packages from files... > > error: Failed dependencies: > >java >= 1.5.0 is needed by pe- > > tanukiwrapper-3.5.9-5.pe.el5.x86_64 > > > === > > = > > !! ERROR: Could not install packages from files; see messages above > > for cause. > > > > ### > > > > > > > > BUT, > > > > 1. Then I checked my java version which is > what is required. > >java -version > > java version "1.6.0_29" > > Java(TM) SE Runtime Environment (build 1.6.0_29-b11) > > Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode) > > > > 2. I'm trying to install puppet master, console and puppet agent in > > same machine as i want to test it before I move it to prod. > > > > Kindly help.. > > > > -- > > 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+unsubscr...@googlegroups.com. > > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > > > > > -- > Trevor Vaughan > Vice President, Onyx Point, Inc > (410) 541-6699 > tvaug...@onyxpoint.com > > -- This account not approved for unencrypted proprietary information -- > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/2hhjDzTM_TIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.