Am I correct in making the observation that this: class openldap::config ($prefix ="dc=no,dc=domain",$rootpw="secret") { case $operatingsytem { Debian,Ubuntu: { class { openldap::config::debian : prefix => $prefix, rootpw => $rootpw } } default : { class {openldap::config::default : prefix => $prefix, rootpw => $rootpw } } } } is not a valid syntax? When I try to instantiate this as class { openldap::config : ...... } it fails. -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- 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.
On Sat, Feb 12, 2011 at 3:13 PM, Peter Berghold <salty.cowdawg@gmail.com>wrote:> Am I correct in making the observation that this: > > class openldap::config ($prefix ="dc=no,dc=domain",$rootpw="secret") { > case $operatingsytem { > Debian,Ubuntu: { class { openldap::config::debian : > prefix => $prefix, > rootpw => $rootpw > } > > } > default : { class {openldap::config::default : > prefix => $prefix, > rootpw => $rootpw > } > } > > } > > } > > is not a valid syntax? > > When I try to instantiate this as > > class { openldap::config : ...... } >try putting single quotes around the title.> it fails. >> > -- > Peter L. Berghold > Owner, Shark River Technical Solutions LLC > > -- > 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. >-- 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.
Tried putting single quotes around tthe title as follows: class { ''openldap::config'' : prefix => "dc=sharkrivertech,dc=com", rootpw => ''xxxxxx'' } When puppet is run I get: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type class at /etc/puppet/manifests/nodes/atldhost0.pp:13 on node atldhost0.atl.sharkrivertech.com warning: Not using cache on failed catalog Line 13 is the closing brace for the "class" statement. -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- 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.
On Sun, Feb 13, 2011 at 11:00 AM, Peter Berghold <salty.cowdawg@gmail.com> wrote:> > > Tried putting single quotes around tthe title as follows: > class { > ''openldap::config'' : > prefix => "dc=sharkrivertech,dc=com", > rootpw => ''xxxxxx'' > } > > > When puppet is run I get: > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid > resource type class at /etc/puppet/manifests/nodes/atldhost0.pp:13 on node > atldhost0.atl.sharkrivertech.com > warning: Not using cache on failed catalog > > Line 13 is the closing brace for the "class" statement.Does the class openldap::config live in the file <modulepath>/openldap/manifests/config.pp OR in <modulepath>/openldap/manifests/init.pp? If not, Puppet will not automatically import the manifest on-demand. The "invalid resource class" is a bit misleading, class is a valid resource, Puppet just isn''t finding a class with the name you told it to look for. Hope this helps, -- Jeff McCune http://www.puppetlabs.com/ -- 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.
> err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid > resource type class at /etc/puppet/manifests/nodes/atldhost0.pp:13 on > node atldhost0.atl.sharkrivertech.com > <http://atldhost0.atl.sharkrivertech.com> > warning: Not using cache on failed catalog > > Line 13 is the closing brace for the "class" statement.What version is your puppetmaster? -- 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.
On Thu, Feb 17, 2011 at 4:22 AM, Felix Frank < felix.frank@alumni.tu-berlin.de> wrote:> > > What version is your puppetmaster? > >the latest stable version. -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- 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.