Page MenuHomeDevCentral

Standardize NTP configuration
Needs ReviewPublic

Authored by ptdradmin on Tue, Mar 3, 14:04.
Tags
None
Referenced Files
F24678374: D3990.diff
Wed, Mar 4, 18:52
F24671172: D3990.id10348.diff
Wed, Mar 4, 10:12
F24669199: D3990.diff
Wed, Mar 4, 07:42
F24667742: D3990.id10349.diff
Wed, Mar 4, 05:44
F24667741: D3990.id10351.diff
Wed, Mar 4, 05:44
F24664445: D3990.diff
Wed, Mar 4, 01:05
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 6396
Build 6680: 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
44

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: satisfy dereckson feedback and fix file corruption