From 94ddcac0eb6fa971e7cce9819f61e8b73d0cff98 Mon Sep 17 00:00:00 2001 From: Bram Gillemon Date: Mon, 5 Feb 2024 21:38:32 +0100 Subject: [PATCH] test debian11 and 12 --- CHANGELOG.md | 3 +++ attributes/default.rb | 2 +- kitchen.global.yml | 2 -- kitchen.yml | 1 - 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5149f2e..fc4948e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ This file is used to list changes made in each version of the ntp cookbook. Updated readme this cookbook only support chef 15.5+ +Remove support for debian-8 / debian-9 / debian-10. +Adds support for debian-11 / debian-12 + since debian bookworm the ntp user is ntpsec (i expect debian will continue to use this in all later versions) for debian / redhat based os'es there is a leap-second file, prefer to use this. diff --git a/attributes/default.rb b/attributes/default.rb index b54910b..2b28be2 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -43,7 +43,7 @@ default['ntp']['conf_owner'] = 'root' default['ntp']['conf_group'] = 'root' -if platform?('debian') && node['platform_version'].to_i <= 12 +if platform?('debian') && node['platform_version'].to_i < 12 default['ntp']['var_owner'] = 'ntpsec' default['ntp']['var_group'] = 'ntpsec' else diff --git a/kitchen.global.yml b/kitchen.global.yml index a382fcd..8ee6a57 100644 --- a/kitchen.global.yml +++ b/kitchen.global.yml @@ -21,8 +21,6 @@ platforms: - name: centos-7 - name: centos-stream-8 - name: centos-stream-9 - - name: debian-9 - - name: debian-10 - name: debian-11 - name: debian-12 - name: fedora-latest diff --git a/kitchen.yml b/kitchen.yml index 9061f6a..a8f01e1 100644 --- a/kitchen.yml +++ b/kitchen.yml @@ -15,7 +15,6 @@ platforms: - name: amazonlinux-2 - name: centos-7 - name: centos-8 - - name: debian-9 - name: debian-11 - name: debian-12 - name: fedora-latest