From f3faa5eb7185b28ba8ed4cb80d0c271d8878ff82 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 14 Mar 2023 11:09:40 +0900 Subject: [PATCH] bind: Disable config check in Ubuntu The named-checkconf command is now installed not in /usr/sbin but in /usr/bin in Ubuntu Jammy but puppet-dns has not adapted to the new path. This disables the check config logic to avoid the failure caused by the wrong command path, until the issue[1] is fixed in puppet-dns. [1] https://github.com/theforeman/puppet-dns/issues/227 Change-Id: I1168c4da8b6a5757f073483393f5f71183b14d8e --- manifests/bind.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/manifests/bind.pp b/manifests/bind.pp index 378ac3a7c..c1e686530 100644 --- a/manifests/bind.pp +++ b/manifests/bind.pp @@ -17,9 +17,18 @@ class openstack_integration::bind { default => 'none', } + # NOTE(tkajinam) Disable config check in Ubuntu due to + # https://github.com/theforeman/puppet-dns/issues/227 + if $facts['os']['name'] == 'Ubuntu' { + $config_check = false + } else { + $config_check = true + } + # NOTE (dmsimard): listen_on_v6 is false and overridden due to extended port # configuration in additional_options class { 'dns': + config_check => $config_check, recursion => 'no', allow_recursion => [], listen_on_v6 => false,