24 lines
368 B
Ruby
24 lines
368 B
Ruby
Puppet::Type.type(:heat_api_cloudwatch_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 file_path
|
|
'/etc/heat/heat-api-cloudwatch-paste.ini'
|
|
end
|
|
|
|
end
|