Add package_manifest resource.
authorDan Prince <dprince@redhat.com>
Mon, 20 Jul 2015 20:18:52 +0000 (16:18 -0400)
committerMartin Mágr <mmagr@redhat.com>
Thu, 3 Sep 2015 09:35:25 +0000 (11:35 +0200)
commite3abcd6b5330959016b43115a8bf1b1cef668d30
tree2fa5a31fe28813dcad3426d0dbff3c1e58221210
parentc529fce3ef2f246909cb821bc2319cc5413960d3
Add package_manifest resource.

This patch converts the write_package_names function into
a proper resource. Using the write_package_names only works
if the function comes last in the puppet manifest. By
making the same functionality a custom resource we allow
for it to exist anywhere in the manifest and provide the
same functionality.

 The new syntax would be:

 package_manifest{'/tmp/foo': ensure => present}

Co-Authored-By: Martin Mágr <mmagr@redhat.com>
Change-Id: If3e03b1983fed47082fac8ce63f975557dbc503c
lib/puppet/parser/functions/write_package_names.rb [deleted file]
lib/puppet/provider/package_manifest/flat_file.rb [new file with mode: 0644]
lib/puppet/type/package_manifest.rb [new file with mode: 0644]
spec/unit/type/package_manifest_spec.rb [new file with mode: 0644]