Wire in hieradata overrides via ExtraConfig for NovaCompute
authorSteven Hardy <shardy@redhat.com>
Wed, 15 Jul 2015 17:36:48 +0000 (13:36 -0400)
committerSteven Hardy <shardy@redhat.com>
Thu, 16 Jul 2015 15:02:20 +0000 (16:02 +0100)
commit1f13f59726d7212fdb797f58ab5c70ab7f9cbcaa
tree1586e9d0530e202a5852cd3440292cbfb5a5d6b6
parent71e9426f195cf3c17fc11adf17f14d41caa7cf30
Wire in hieradata overrides via ExtraConfig for NovaCompute

Adds support for global (ExtraConfig) and role-specific
(NovaComputeExtraConfig) hiera overrides, similar to those added
for the controller.

For example, you can pass an environment file like:
parameters:
  NovaComputeExtraConfig:
    nova::scheduler::filter::ram_allocation_ratio: 1.8
    compute_classes:
    - ::nova::scheduler::filter

This passes a hiera value for ram_allocation_ratio and enables
a class via the include added in https://review.openstack.org/#/c/197908/

Note this also requires https://review.openstack.org/#/c/188772/
or 40-hiera-datafiles incorrectly quotes the list and the
compute_classes part won't work.

Change-Id: Ic33eed1b5e9c33c0d2f6075c65c8d9649b82c8b4
puppet/compute-puppet.yaml