
so that pipeline configuration can be updated from Puppet for keystone. Change-Id: I6bcbddca5dcfd625a325917174339f7be5206827
28 lines
477 B
Ruby
28 lines
477 B
Ruby
Puppet::Type.type(:keystone_paste_ini).provide(
|
|
:ini_setting,
|
|
:parent => Puppet::Type.type(:ini_setting).provider(:ruby)
|
|
) do
|
|
|
|
def section
|
|
resource[:name].split('/', 2).first
|
|
end
|
|
|
|
def setting
|
|
resource[:name].split('/', 2).last
|
|
end
|
|
|
|
def separator
|
|
'='
|
|
end
|
|
|
|
def self.file_path
|
|
'/etc/keystone/keystone-paste.ini'
|
|
end
|
|
|
|
# this needs to be removed. This has been replaced with the class method
|
|
def file_path
|
|
self.class.file_path
|
|
end
|
|
|
|
end
|