]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/commit
Rely on autorequire for config resource ordering
authorYanis Guenane <yguenane@redhat.com>
Wed, 12 Aug 2015 07:45:38 +0000 (09:45 +0200)
committerYanis Guenane <yguenane@redhat.com>
Wed, 12 Aug 2015 16:45:28 +0000 (18:45 +0200)
commite729f2d91177a64db52476b4e3b3c2d361b1cf47
tree5b88c9d2183a857bb1001020f5451bbf1373f311
parent47e61845e42ff3f67acaf973a7f6eb5fb3e489aa
Rely on autorequire for config resource ordering

Currently we specify the ordering of config resources wherever it is
necessary based on the presence of the file it will write to, or the
presence of the package in charge of providing the file it will write
to.

Those kind of ordering can be specified directly at the resource level
using the autorequire mechanism. With this patch, any config resource
will make sure the package in charge of providing the file will be
installed first.

Change-Id: Ie99aec47f9bf334336e9cd87106c9f47d6e5abfa
lib/puppet/type/ceilometer_config.rb
manifests/api.pp
manifests/init.pp
spec/unit/type/ceilometer_config_spec.rb