Skip to content

Commit

Permalink
PR #21 Follow-up: document new vars, fix YAML formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Dec 27, 2016
1 parent 8f217a4 commit 32308ca
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
18 changes: 14 additions & 4 deletions README.md
Expand Up @@ -24,14 +24,24 @@ Set the timezone for your server.

Set to true to allow this role to manage the NTP configuration file (`/etc/ntp.conf`).

ntp_area: ''

Set the [NTP Pool Area](http://support.ntp.org/bin/view/Servers/NTPPoolServers) to use. Defaults to none, which uses the worldwide pool.

ntp_servers:
- 0.pool.ntp.org iburst
- 1.pool.ntp.org iburst
- 2.pool.ntp.org iburst
- 3.pool.ntp.org iburst
- "0{{ ntp_area }}.pool.ntp.org iburst"
- "1{{ ntp_area }}.pool.ntp.org iburst"
- "2{{ ntp_area }}.pool.ntp.org iburst"
- "3{{ ntp_area }}.pool.ntp.org iburst"

Specify the NTP servers you'd like to use. Only takes effect if you allow this role to manage NTP's configuration, by setting `ntp_manage_config` to `true`.

ntp_restrict:
- "127.0.0.1"
- "::1"

Restrict NTP access to these hosts; loopback only, by default.

## Dependencies

None.
Expand Down
26 changes: 10 additions & 16 deletions defaults/main.yml
Expand Up @@ -3,22 +3,16 @@ ntp_enabled: true
ntp_timezone: Etc/UTC

ntp_manage_config: false
### choose ntp server area ###
# http://support.ntp.org/bin/view/Servers/NTPPoolServers
###
# Leave empty for Worldwide Area
# Worldwide: ''
# Asia: '.asia'
# Europe: '.europe'
# North America: '.north-america'
# Oceania: '.oceania'
# South America: '.south-america'

# NTP server area configuration (leave empty for 'Worldwide').
# See: http://support.ntp.org/bin/view/Servers/NTPPoolServers
ntp_area: ''
ntp_servers:
- 0{{ ntp_area }}.pool.ntp.org iburst
- 1{{ ntp_area }}.pool.ntp.org iburst
- 2{{ ntp_area }}.pool.ntp.org iburst
- 3{{ ntp_area }}.pool.ntp.org iburst
- "0{{ ntp_area }}.pool.ntp.org iburst"
- "1{{ ntp_area }}.pool.ntp.org iburst"
- "2{{ ntp_area }}.pool.ntp.org iburst"
- "3{{ ntp_area }}.pool.ntp.org iburst"

ntp_restrict:
- 127.0.0.1
- ::1
- "127.0.0.1"
- "::1"

0 comments on commit 32308ca

Please sign in to comment.