From 0739077f3b65f0d67341c1818203221a03f61b93 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 18 Sep 2024 14:01:13 +0200 Subject: [PATCH] switch from legacy to structured facts --- lib/puppet/provider/alternative_entry/dpkg.rb | 4 ++-- lib/puppet/provider/alternatives/chkconfig.rb | 4 ++-- lib/puppet/provider/alternatives/dpkg.rb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/puppet/provider/alternative_entry/dpkg.rb b/lib/puppet/provider/alternative_entry/dpkg.rb index dcb8737..36f2583 100644 --- a/lib/puppet/provider/alternative_entry/dpkg.rb +++ b/lib/puppet/provider/alternative_entry/dpkg.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true Puppet::Type.type(:alternative_entry).provide(:dpkg) do - confine osfamily: %i[debian suse] - defaultfor [operatingsystem: %i[debian ubuntu], osfamily: :suse] + confine 'os.family' => %i[debian suse] + defaultfor ['os.name' => %i[debian ubuntu], 'os.family' => :suse] commands update: 'update-alternatives' diff --git a/lib/puppet/provider/alternatives/chkconfig.rb b/lib/puppet/provider/alternatives/chkconfig.rb index ca9ab5d..2585a73 100644 --- a/lib/puppet/provider/alternatives/chkconfig.rb +++ b/lib/puppet/provider/alternatives/chkconfig.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true Puppet::Type.type(:alternatives).provide(:chkconfig) do - confine osfamily: :redhat - defaultfor osfamily: :redhat + confine 'os.family' => :redhat + defaultfor 'os.family' => :redhat commands update: 'alternatives' diff --git a/lib/puppet/provider/alternatives/dpkg.rb b/lib/puppet/provider/alternatives/dpkg.rb index 5ae9462..a19248e 100644 --- a/lib/puppet/provider/alternatives/dpkg.rb +++ b/lib/puppet/provider/alternatives/dpkg.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true Puppet::Type.type(:alternatives).provide(:dpkg) do - confine osfamily: %i[debian suse] - defaultfor [operatingsystem: %i[debian ubuntu], osfamily: :suse] + confine 'os.family' => %i[debian suse] + defaultfor ['os.name' => %i[debian ubuntu], 'os.family' => :suse] commands update: 'update-alternatives' has_feature :mode