Hi Sanda,

On Fri, Aug 24, 2012 at 8:32 AM, Sandra Schlichting
<littlesandr...@gmail.com> wrote:

> Is it possible to override the ntp class name, so I can create an ntp class
> with contains my ntp server names?

The author built his ntp module with parameterized classes [1] so that
you could modify its behavior and data without touching the Puppet
manifests at all. If you'd like to create an ntp class with your own
ntp server names, you declare the class [2] exactly like you
suggested.

class { 'ntp':
  server_list => [ 'server1', 'server2', 'etc' ],
}

This is equivalent to writing include ntp but without just accepting
the default behavior and data.

> Hugs,
> Sandra
>

Hugs back!

--Ryan

[1] http://docs.puppetlabs.com/learning/modules2.html
[2] 
http://docs.puppetlabs.com/puppet/2.7/reference/lang_classes.html#declaring-a-class-like-a-resource

-- 
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.

Reply via email to