Files
openstack-ansible/rpc_deployment/roles/nova_common/tasks/main.yml
Kevin Carter c33e5089d6 Nova.conf and Metadata-agent file consistency updates
This PR resolves https://github.com/rcbops/ansible-lxc-rpc/issues/79 while
also cleaning up the nova.conf template file as well as the metadata-agent.ini file.

removed unused variables

commented everything and added port / caching as explicite settings

removed whitespace

File clean up

Commeneted everything as sections in the file. Added +metadata_host and +metadata_port.
Nothing else was added or removed however the contents were moved around in the file to
make it more consistent and legible.
2014-09-07 22:22:46 -05:00

49 lines
1.6 KiB
YAML

---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Get glance admin endpoint
shell: >
. /root/openrc && keystone endpoint-list | grep "$(keystone service-list | awk '/image/ {print $2}')" | awk '{print $10}'
register: glanceendpoint
- name: Get neutron admin endpoint
shell: >
. /root/openrc && keystone endpoint-list | grep "$(keystone service-list | awk '/network/ {print $2}')" | awk '{print $10}'
register: neutronendpoint
- name: Set variable data
set_fact:
neutron_service_adminurl: "{{ neutronendpoint.stdout }}"
glance_service_adminurl: "{{ glanceendpoint.stdout }}"
- name: Setup nova config
template: >
src={{ item }}
dest=/etc/nova/{{ item }}
owner={{ system_user }}
group={{ system_group }}
with_items:
- nova.conf
- rootwrap.conf
- rootwrap.d/api-metadata.filters
- rootwrap.d/baremetal-compute-ipmi.filters
- rootwrap.d/baremetal-deploy-helper.filters
- rootwrap.d/compute.filters
- rootwrap.d/network.filters
- policy.json
- cells.json
- api-paste.ini
notify: Restart os service