FAQ

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.walton@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedAug 24, '12 at 3:32p
activeAug 24, '12 at 8:13p
posts5
users3
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase