From c0882fa2efd11299737bc4c6d1113979b8fd8c71 Mon Sep 17 00:00:00 2001 From: Christer Ekholm Date: Sun, 12 Jul 2020 17:55:48 +0200 Subject: [PATCH] Fix documentation about parameter port. This uptdates the documentation to match the current code concerning parameter port. --- README.md | 6 ------ REFERENCE.md | 1 - manifests/init.pp | 6 ++---- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1c43f2f..15082cb 100644 --- a/README.md +++ b/README.md @@ -112,15 +112,9 @@ class { '::chrony': ```puppet class { '::chrony': queryhosts => [ '192.168/16', ], - port => 123, } ``` -#### Note - -The parameter `port` is also set here, -module default is `0` to ensure server mode is not activated accidentally. - ### How to configure leap second ```puppet diff --git a/REFERENCE.md b/REFERENCE.md index 5f0d32b..1fa5561 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -78,7 +78,6 @@ class { 'chrony': ```puppet class { 'chrony': queryhosts => ['192.168/16'], - port => 123, } ``` diff --git a/manifests/init.pp b/manifests/init.pp index 06b7149..8d90a96 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -29,7 +29,6 @@ # @example Allow some hosts # class { 'chrony': # queryhosts => ['192.168/16'], -# port => 123, # } # @example Configure the leap second mode # class { 'chrony': @@ -136,10 +135,9 @@ # Also see [`makestep_seconds`](#makestep_seconds). # @param queryhosts # This adds the networks, hosts that are allowed to query the daemon. -# Note that `port` needs to be set for this to work. # @param port -# Port the service should listen on, to be used in combination with `queryhosts`. -# Module default is `0` to prevent accidental activation of server mode. +# Port the service should listen on. +# Module default is undef. # @param service_enable # This determines if the service should be enabled at boot. # @param service_ensure