Merge "Switch provider to manage paste.ini file"
Zuul authored 1 year, 9 months ago
Gerrit Code Review committed 1 year, 9 months ago
0 | 0 | Puppet::Type.type(:gnocchi_api_paste_ini).provide( |
1 | 1 | :ini_setting, |
2 | :parent => Puppet::Type.type(:ini_setting).provider(:ruby) | |
2 | :parent => Puppet::Type.type(:openstack_config).provider(:ini_setting) | |
3 | 3 | ) 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 | |
16 | 4 | |
17 | 5 | def self.file_path |
18 | 6 | '/etc/gnocchi/api-paste.ini' |
19 | 7 | end |
20 | 8 | |
21 | # added for backwards compatibility with older versions of inifile | |
22 | def file_path | |
23 | self.class.file_path | |
24 | end | |
25 | ||
26 | 9 | end |