Codebase list puppet-module-gnocchi / 7e42849
Merge "Switch provider to manage paste.ini file" Zuul authored 1 year, 9 months ago Gerrit Code Review committed 1 year, 9 months ago
1 changed file(s) with 1 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
00 Puppet::Type.type(:gnocchi_api_paste_ini).provide(
11 :ini_setting,
2 :parent => Puppet::Type.type(:ini_setting).provider(:ruby)
2 :parent => Puppet::Type.type(:openstack_config).provider(:ini_setting)
33 ) do
4
5 def section
6 resource[:name].split('/', 2).first
7 end
8
9 def setting
10 resource[:name].split('/', 2).last
11 end
12
13 def separator
14 '='
15 end
164
175 def self.file_path
186 '/etc/gnocchi/api-paste.ini'
197 end
208
21 # added for backwards compatibility with older versions of inifile
22 def file_path
23 self.class.file_path
24 end
25
269 end