Skip to content

Commit

Permalink
Merge pull request voxpupuli#52 from przemas75/doc-update
Browse files Browse the repository at this point in the history
Doc update
  • Loading branch information
aboe76 authored Oct 18, 2019
2 parents aa9de1d + 1ceb373 commit e57c432
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ class { '::chrony':
port => 123,
}
```

### How to configure leap second
```puppet
class { '::chrony':
leapsecmode => 'slew',
smoothtime => '400 0.001 leaponly',
maxslewrate => 1000.0
}
```

#### Note
The parameter `port` is also set here,
module default is `0` to ensure server mode is not activated accidentally.
Expand Down Expand Up @@ -148,6 +158,10 @@ the time of generating the configuration. The argument of the allow or deny
commands can be an address, a partial address or a subnet (see manpage for more
details).

#### `cmdport`

The cmdport directive allows the port that is used for run-time monitoring (via the chronyc program) to be altered from its default (323).

#### `commandkey`

This sets the key ID used by chronyc to authenticate to chronyd.
Expand Down Expand Up @@ -186,6 +200,10 @@ This determines which template puppet should use for the chrony key file.

An array of key lines. These are printed as-is into the chrony key file.

### `leapsecmode`

How to insert the leap second mode. Use one of possible values only: `leapsecmode ignore`. Or three other possible values (`system`, `step`, `slew`).

#### `local_stratum`

Override the stratum of the server which will be reported to clients
Expand All @@ -195,6 +213,10 @@ when the local reference is active. Defaults to 10

Specify which information is to be logged.

### `maxslewrate`

Maximum rate for chronyd to slew the time. Only float type values possible, for example: `maxslewrate 1000.0`.

#### `package_ensure`

This can be set to 'present' or 'latest' or a specific version to choose the
Expand Down Expand Up @@ -265,6 +287,9 @@ This selects if puppet should manage the service in the first place.

This selects the name of the chrony service for puppet to manage.

### `smoothtime`
Specify the smoothing of the time parameter as a string, for example `smoothtime 50000 0.01`.

#### `mailonchange`

Specify the mail you wanna alert when chronyd execute a sync grater than threshold.
Expand Down

0 comments on commit e57c432

Please sign in to comment.