only include metadata recipe if asked for

Attribute 'enabled_apis' allows for metadata to be selected or not.
Only include the api-metadata recipe if it's been asked for.

Closes-Bug: 1286300

Change-Id: Ib0f89c9ccf05892840c39af0223985e0553593e6
Make the path in nova.conf configurable

Make the path in nova.conf configurable, in some cases like
if we want to use this cookbook's template to support installation
of nova-compute on windows platform.

Change-Id: I9adb2c03a428571a909d940b21b405301350e7a5
Add group permission for /etc/nova directory

Having a service program need to access /etc/nova/nova.conf file,
although the service program's service user has been added into the
"nova" service user, because /etc/nova folder permission has been set to
700 in nova-common recipe, thus the service program can not start. From
openstack-block-storage cookbook, it sets the /etc/cinder directly
permission as 750, I would think it's reasonable to grant the group
access to /etc/nova directory.

Closes-Bug: #1293956
Change-Id: I6d3ee5c424756fe11cefd425a3dddd3595b025d8
Add metering configuration for nova

There are various attributes that need to be configured for nova to
start posting notifications for ceilometer to keep track of things.

This patch adds those attributes, and it additionally adds a single
property that can be set to automatically set them all on with sensible
defaults as described here:
http://docs.openstack.org/developer/ceilometer/install/manual.html

Change-Id: I99efbe0eef739afd62cde90d17578bbd83330c36
Merge "only include metadata recipe if asked for"
Merge "Add metering configuration for nova"
Merge "Make the path in nova.conf configurable"
Fix log_dir bug

log_dir in nova.conf.erb should be
log_dir=<%= node["openstack"]["compute"]["log_dir"] %>

Change-Id: I984ae5b53b753692da95d262d182326eccd604bc
Closes-Bug: #1294521
Fix force_config_drive bug

force_config_drive is string in nova, it should be 'None' or 'always'.

Add mkisofs_cmd and injected_network_template options to support
config_drive.

Change-Id: I9fb72f13eaf7cfb6144e6e1933f69c6df64c9ec0
Use the library method auth_uri_transform

Use the library method auth_uri_transform to transform the auth uri
by the auth version.

Change-Id: Ia12d942ead55728deaac96ea6b5858d4c0bb01ba
Imlements: blueprint move-keystone-authtoken-move-auth-uri-logic
Really do include_recipe openstack-common::ceph_client

Now that it is merged in openstack-common, include the recipe that takes
care of the node being a proper ceph client.

Implements: blueprint rbd-for-block-storage
Change-Id: I8192fc45fca617e5e3ad3dc829ff5addba54b6c2
Merge "Fix force_config_drive bug"
Merge "Use the library method auth_uri_transform"
Fix DB2 ODBC driver installation issue

There is an LWRP in db2 cookbook to install ODBC driver,
so need to move this driver installation to db2 cookbook.

Change-Id: Id68d33bf6cbb086d4ef0ce536c2a6193b9674ada
Closes-bug: 1294376
Do not default to deprecated VIF driver

LibvirtHybridOVSBridgeDriver has been deprecated in Nova since
Grizzly, and is being removed in Icehouse. The new default
(and somewhat universal) VIF driver for libvirt is
LibvirtGenericVIFDriver, so default to that instead.

Change-Id: I847a0de913c23fbef8a12f5258774268f605c87d
Add compute and ec2 api ip and port configuration

Allow the common endoint attributes to populate the nova conf for
compute and ec2 apis.

Change-Id: I2b6c5d6e294ef5e382971d35d67dfd70ebaf6c6c
Closes-Bug: 1278808
Add rbd_* settings to nova.conf when images_type=rbd

This change adds rbd_user and rbd_secret_uuid to nova.conf when
images_type is set to rbd.  This allows for using the credentials set up
for cinder/volumes with images (ephemeral disks, not glance!) in nova.

While it's not nice to re-use cinder's cephx credentials, it seems to be
the only option when trying to use rbd for disk images and volumes,
anyway: https://bugs.launchpad.net/nova/+bug/1295601

Please note that this triggers a bug that hasn't been fixed in the
ubuntu packages: https://bugs.launchpad.net/nova/+bug/1233188 (while
having been fixed upstream).  I'm not sure how to proceed with this
issue.

Change-Id: I2fe12cee88510e1e8de223e18561d3fe87a32457
Closes-Bug: #1295177
Implements: blueprint rbd-for-block-storage
Adds specs for template contents

Both conditional and plain content are tested. All template-related
pending tests have been addressed, one in spec/compute_spec.rb that
was tied to a cookbook_file resource has been just removed.

Change-Id: Ib2d8871794920a10ad8e111fc89ab03ab057d3dc
Partial-Bug: #1182563
Use openstack-common VNC endpoint information

The port and interface binding attributes in the Compute
cookbook are now redundant since there is the exact same
VNC endpoint information in the common attributes now.

This patch removes the redundant attributes from Compute and
updates the places they were used. This is a small change
to the default behavior of binding to the endpoint IPs
instead of the default bind_interface (was 'lo') but
makes the behavior consistent with other endpoint binding.

Closes-Bug: 1295388
Related blueprint increase-ip-binding-flexibility

Change-Id: I1eb12aeee5459912cb5d376decb397a9efef72e4
Merge "Do not default to deprecated VIF driver"