Page MenuHomeDevCentral

Standardize NTP configuration
Needs ReviewPublic

Authored by ptdradmin on Tue, Mar 3, 14:04.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 14, 10:27
Unknown Object (File)
Sat, Mar 14, 08:09
Unknown Object (File)
Sat, Mar 14, 07:05
Unknown Object (File)
Sat, Mar 14, 00:13
Unknown Object (File)
Fri, Mar 13, 22:59
Unknown Object (File)
Fri, Mar 13, 03:10
Unknown Object (File)
Thu, Mar 12, 17:26
Unknown Object (File)
Thu, Mar 12, 10:27
Subscribers
None

Details

Reviewers
dereckson
Maniphest Tasks
T1223: Configure NTP in rOPS
Summary
  • Centralize NTP servers in Pillar
  • Update templates for Chrony and NTpd
  • Manage ntpdate and ntp.conf on FreeBSD

Ref T1223

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
feature/ntp-standardization-T1223
Build Status
Buildable 6472
Build 6756: arc lint + arc unit

Event Timeline

ptdradmin created this revision.

Standardize NTP configuration (T1223) - v2

dereckson retitled this revision from Standardize NTP configuration (T1223) to Standardize NTP configuration.Tue, Mar 3, 17:58
dereckson edited the summary of this revision. (Show Details)

Pillar OK.

Configuration templates OK, with proper headers.

Open questions for the role logic:

  • ntpd vs ntpdate -> which one to run on FreeBSD? We'll need to drop the other one
  • servers are defined twice, one in RC config, one in NTP configuration, which one we keep?

From T2192 and https://agora.nasqueron.org/Operations_grimoire/NTP#FreeBSD:

  • ntpd is favoured
dereckson requested changes to this revision.Wed, Mar 4, 06:38
dereckson added inline comments.
roles/core/ntp/init.sls
53

We don't need that one, but we'd need a /etc/rc.conf.d/ntpd file with as content:

ntpd_enable="YES"

This revision now requires changes to proceed.Wed, Mar 4, 06:38

Apply feedback: use YES (quotes) and add ntpd_sync_on_start

Fix FreeBSD configuration based on dereckson feedback

Final fix: remove ntpdate state from init.sls

Final cleanup: dereckson feedback and fix file corruption

roles/core/ntp/init.sls
18

Actually we're normalizing with " right now.

Normalize to double quotes in Jinja templates as requested