On Fri, 2012-08-24 at 11:13 -0700, Sandra Schlichting wrote:
> Hi Ryan,
> 
> [snip]
> 
> This is equivalent to writing include ntp but without just accepting 
> > the default behavior and data. 
> >
> 
> Yes, the following works
>  
> node testsrv {
> class { 'ntp': 
>   server_list => [ 'server1', 'server2', 'etc' ], 
> } 
> }
> 
> but I would really like to have this instead
> 
> node testsrv { include ntp }
> or
> node testsrv { include myconfig::ntp }

using something like 'myconfig::ntp' (or any different name,
'ntp_local', etc.) would work fine. This would look like

class myconfig::ntp {
        class { 'ntp':
                server_list => [ 'a.example.com', 'b.example.com' ]
        }
}

note testsrv {
        include myconfig::ntp
}

-- 
Calvin Walton <calvin.wal...@kepstin.ca>

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