And just to have an answer on the list as well, the syntax in the docs is correct. Though it might be class { "system::ntp" in your case. Not sure of the specifics of that module.
http://docs.puppetlabs.com/puppet/3/reference/lang_classes.html#using-resource-like-declarations On Thursday, March 21, 2013 1:09:02 PM UTC-7, John Smith wrote: > > I'm trying to use Keith Burdis's excellent erwbgy/system module without > Hiera, at least initially. > > http://forge.puppetlabs.com/erwbgy/system > > I cannot determine how call the modules. From what I can tell the > documentation isn't quite correct (or I am reading it wrong). I'm trying > to start with ntp because that's an easy to understand example. > > https://github.com/erwbgy/puppet-ntp > > The ntp documentation says > > <snip> > Specify a list of time servers to use: > > class { 'ntp': > servers => [ 'ntp1.domain.com', 'ntp2.domain.com' ], > } > <endsnip> > > If I enter it like this in my manifest, I get errors. I assume the correct > syntax is something more like this > > <snip> > system::ntp { 'name': > servers => [ 'ntp1.domain.com', 'ntp2.domain.com' ], > } > <endsnip> > > but that syntax gets me this error > Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid > resource type system::ntp at /etc/puppet/manifests/site.pp:36 on node > > Any help with this would be appreciated.. > thanks! > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.