Utilise ['openstack']['region'] from cookbook-openstack-common

- Set ['openstack']['image']['region'] to equal ['openstack']['region']
- Add test to override the endpoint and confirm it is used.

Change-Id: I5045695fcaddfb3d6cd7858cab904460dfdca7cd
Addresses: blueprint uniform-region
Change execution place of ressource execute['glance-manage version_control 0'] in recipes/registry.rb

The ressource execute['glance-manage version_control 0'] crash when you change the glance db password
because the ressource template['/etc/glance/glance-registry.conf'] is not yet updated with the new password at the time.
This fix change the order of execution of the ressource execute['glance-manage version_control 0'] to fix that issue.

Change-Id: I3376c8ad4da90bef22c595945a984233f22222fb
Closes-Bug: #1282941
update gitignore

Change-Id: I8d9b8c497a961711c90c295a90a38b5b8929a49c
Cleanup node['cpu']['total'] work-around for fauxhai

The fauxhai fix for the cpu stanza has merged and is available in fauxhai
version 2.1.0 so reverting the workaround patch and ensuring fauxhai 2.1.0
is used.

- Remove node.set for ['cpu']['total'] in the spec tests
- Adjust the Gemfile to use fauxhai 2.1.0
- Adjust the Gemfile.lock

Change-Id: Ida6f840b6d6b28512cdfac841d51ac2fc94fdb6f
Addresses: blueprint fauxhai-Cleanup
Adding ChefSpec::Coverage to spec_helper.rb

Change-Id: I2d22050cb9c023c8d1761f912b50312b756e85a3
Addresses: blueprint lint-and-unit-testing-for-havana
Merge "Change execution place of ressource execute['glance-manage version_control 0'] in recipes/registry.rb"
Merge "update gitignore"
Merge "Cleanup node['cpu']['total'] work-around for fauxhai"
Merge "Adding ChefSpec::Coverage to spec_helper.rb"
Disable the NumericLiterals cop for rubocop

- Disable the NumericLiterals cop in the .rubocop.yml file - this cop enforces
  an underscore '_' every 3 characters of an integer. This doesn't make much
  sense in our use case and reduces readability. Especially for port numbers.
- Remove any existing entries that were abiding by the NumericLiterals
  cop.

Change-Id: I8ddd828f372050cac38b8c384ed4952b98836313
Addresses: blueprint rubocop-integer