Skip to content

Commit

Permalink
switch from legacy to structured facts
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Sep 18, 2024
1 parent 88b4e9c commit 02448da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/alternative_entry/dpkg.rb
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
4 changes: 2 additions & 2 deletions lib/puppet/provider/alternatives/chkconfig.rb
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
4 changes: 2 additions & 2 deletions lib/puppet/provider/alternatives/dpkg.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 02448da

Please # to comment.