Adds the ability to fill it in and sets a reasonable default.
define apt::pin(
$ensure = present,
+ $explanation = "${::caller_module_name}: ${name}",
$order = '',
$packages = '*',
$priority = 0,
'owner' => 'root',
'group' => 'root',
'mode' => '0644',
- 'content' => "# #{title}\nPackage: #{param_hash[:packages]}\nPin: release a=#{param_hash[:release] || title}\nPin-Priority: #{param_hash[:priority]}\n",
+ 'content' => "# #{title}\nExplanation: : #{title}\nPackage: #{param_hash[:packages]}\nPin: release a=#{param_hash[:release] || title}\nPin-Priority: #{param_hash[:priority]}\n",
})
}
end
# <%= name %>
+Explanation: <%= explanation %>
Package: <%= packages %>
Pin: <%= pin %>
Pin-Priority: <%= priority %>