Use structured facts to define confinement
Change-Id: Iae5951e8c128a37424c120c71f4ab68c5147cf94
This commit is contained in:
parent
5a5a7e8162
commit
1788d169fe
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user