2daa0b1644
Currently puppet-neutron provides 2 resource types, neutorn_api_config and neutron_api_paste_ini, to manage the same file. (/etc/neutron/api-paste.ini) This patch deprecates neutron_api_config so that we can solve this duplication in a future release. Historically neutron_api_config was added before neutron_api_paste_ini, but in puppet-openstack modules we use *_conf type to manage *.conf file in general, so its name is confusing. This patch also removes the implementation to clean up authtoken parameters in api-paste.ini, because that implementation was added to deal with parameter migration from api-paste.ini to neutron.conf, which happened a long ago. Change-Id: I4361ea53bd964a3a4861c4c28abb7063e19ebd94
23 lines
363 B
Ruby
23 lines
363 B
Ruby
Puppet::Type.type(:neutron_api_paste_ini).provide(
|
|
:ini_setting,
|
|
:parent => Puppet::Type.type(:openstack_config).provider(:ini_setting)
|
|
) 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/neutron/api-paste.ini'
|
|
end
|
|
|
|
end
|