Use structured facts to define confinement

Change-Id: Iae5951e8c128a37424c120c71f4ab68c5147cf94
This commit is contained in:
Takashi Kajinami 2025-04-27 22:09:43 +09:00
parent 5a5a7e8162
commit 1788d169fe

View File

@ -7,10 +7,7 @@ Puppet::Type.type(:service).provide :swiftinit, :parent => :service do
has_feature :enableable
has_feature :refreshable
confine :any => [
Facter.value(:osfamily) == 'Debian',
Facter.value(:osfamily) == 'RedHat'
]
confine 'os.family' => [:debian, :redhat]
# Check if swift service is running using swift-init
def status