Hi Sanda,
On Fri, Aug 24, 2012 at 8:32 AM, Sandra Schlichting
<
littles...@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