From 9bd88b5f4eedc3a9181729228f6ba15f41a5f181 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Wed, 21 Mar 2012 16:08:58 +0200 Subject: [PATCH] Disable PEERDNS in ntpd class on CentOS and Fedora --- ntpd/manifests/init.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ntpd/manifests/init.pp b/ntpd/manifests/init.pp index 6550a01..950a1f5 100644 --- a/ntpd/manifests/init.pp +++ b/ntpd/manifests/init.pp @@ -34,6 +34,15 @@ class ntpd { } } + case $operatingsystem { + "centos","fedora": { + augeas { "disable-peerntp": + context => "/files/etc/sysconfig/network", + changes => "set PEERNTP no", + } + } + } + }