Merge pull request #68 from bodepd/move_file_path_to_class

changes required to support purging
This commit is contained in:
Dan Bode 2013-03-10 22:33:34 -07:00
commit 913d3cc627
5 changed files with 30 additions and 5 deletions

View File

@ -15,8 +15,13 @@ Puppet::Type.type(:glance_api_config).provide(
'='
end
def file_path
def self.file_path
'/etc/glance/glance-api.conf'
end
# this needs to be removed. This has been replaced with the class method
def file_path
self.class.file_path
end
end

View File

@ -15,8 +15,13 @@ Puppet::Type.type(:glance_api_paste_ini).provide(
'='
end
def file_path
def self.file_path
'/etc/glance/glance-api-paste.ini'
end
# added for backwards compatibility with older versions of inifile
def file_path
self.class.file_path
end
end

View File

@ -15,8 +15,13 @@ Puppet::Type.type(:glance_cache_config).provide(
'='
end
def file_path
def self.file_path
'/etc/glance/glance-cache.conf'
end
# added for backwards compatibility with older versions of inifile
def file_path
self.class.file_path
end
end

View File

@ -15,8 +15,13 @@ Puppet::Type.type(:glance_registry_config).provide(
'='
end
def file_path
def self.file_path
'/etc/glance/glance-registry.conf'
end
# added for backwards compatibility with older versions of inifile
def file_path
self.class.file_path
end
end

View File

@ -15,8 +15,13 @@ Puppet::Type.type(:glance_registry_paste_ini).provide(
'='
end
def file_path
def self.file_path
'/etc/glance/glance-registry-paste.ini'
end
# added for backwards compatibility with older versions of inifile
def file_path
self.class.file_path
end
end