Based way to exclude systems?

21 views
Skip to first unread message

Tom Tucker

unread,
Sep 24, 2014, 1:13:00 PM9/24/14
to puppet...@googlegroups.com

I would like to use a profile that would be applied against all Linux based systems to ensure they have an appropriate /etc/ntp.conf based on their data center location as defined by Hiera.  My question is how do I deploy this client based ntp.conf to all Linux systems, but also ensure my four Linux based NTP server feeding these clients continue to have unique server based NTP configs? 

 

In other words….

I have four data centers and 2000+ systems.  If you are a Linux system and not marked as an NTP server then use this client ntp.conf.

 

What is the best way to achieve such?

 

Thanks in advance,

JonY

unread,
Sep 24, 2014, 1:34:47 PM9/24/14
to puppet...@googlegroups.com

Garrett Honeycutt

unread,
Sep 24, 2014, 3:47:37 PM9/24/14
to puppet...@googlegroups.com
Hi Tom,

Instead of thinking in terms on exclusions, think in terms of roles of
systems. In regards to NTP you have two, ntp clients and ntp servers. I
would include an ntp class for all of your Linux based systems and if
the role is ntp server then you have a level in Hiera for it that
describes the changes that are particular to those systems such as
different upstream NTP servers, options, etc.

Best regards,
-g

--
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658
Reply all
Reply to author
Forward
0 new messages