Merge pull request #17 from bodepd/dev
Ensure swift hash is rebuilt for every puppet run
This commit is contained in:
commit
aaf2784c73
@ -6,6 +6,14 @@ Puppet::Type.type(:ring_account_device).provide(
|
||||
|
||||
optional_commands :swift_ring_builder => 'swift-ring-builder'
|
||||
|
||||
def self.prefetch(resource)
|
||||
@my_ring = lookup_ring
|
||||
end
|
||||
|
||||
def self.ring
|
||||
@my_ring ||= lookup_ring
|
||||
end
|
||||
|
||||
# TODO maybe this should be a parameter eventually so that
|
||||
# it can be configurable
|
||||
def self.builder_file_path
|
||||
|
@ -6,6 +6,14 @@ Puppet::Type.type(:ring_container_device).provide(
|
||||
|
||||
optional_commands :swift_ring_builder => 'swift-ring-builder'
|
||||
|
||||
def self.prefetch(resource)
|
||||
@my_ring = lookup_ring
|
||||
end
|
||||
|
||||
def self.ring
|
||||
@my_ring ||= lookup_ring
|
||||
end
|
||||
|
||||
# TODO maybe this should be a parameter eventually so that
|
||||
# it can be configurable
|
||||
def self.builder_file_path
|
||||
|
@ -6,6 +6,14 @@ Puppet::Type.type(:ring_object_device).provide(
|
||||
|
||||
optional_commands :swift_ring_builder => 'swift-ring-builder'
|
||||
|
||||
def self.prefetch(resource)
|
||||
@my_ring = lookup_ring
|
||||
end
|
||||
|
||||
def self.ring
|
||||
@my_ring ||= lookup_ring
|
||||
end
|
||||
|
||||
# TODO maybe this should be a parameter eventually so that
|
||||
# it can be configurable
|
||||
def self.builder_file_path
|
||||
|
@ -8,9 +8,6 @@ class Puppet::Provider::SwiftRingBuilder < Puppet::Provider
|
||||
end
|
||||
end
|
||||
|
||||
def self.ring
|
||||
@my_ring ||= lookup_ring
|
||||
end
|
||||
|
||||
def self.lookup_ring
|
||||
object_hash = {}
|
||||
|
Loading…
Reference in New Issue
Block a user