Skip to content

Commit

Permalink
Fix documentation about parameter port.
Browse files Browse the repository at this point in the history
This uptdates the documentation to match the current code concerning parameter port.
  • Loading branch information
chrekh committed Jul 12, 2020
1 parent 60a7be8 commit c0882fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class { 'chrony':
```puppet
class { 'chrony':
queryhosts => ['192.168/16'],
port => 123,
}
```

Expand Down
6 changes: 2 additions & 4 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
# @example Allow some hosts
# class { 'chrony':
# queryhosts => ['192.168/16'],
# port => 123,
# }
# @example Configure the leap second mode
# class { 'chrony':
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c0882fa

Please sign in to comment.