Load glance metadata definitions

During the post install of glance, the metadata defs
are loaded installed.

Change-Id: I1e27f2e03fb24d85ec175b9ca308f20536350953
Closes-Bug:1469868
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Jay Clark 2015-10-15 11:31:40 -04:00 committed by Kevin Carter
parent e4b5bafe49
commit 37ed05243a
2 changed files with 17 additions and 0 deletions

View File

@ -29,6 +29,14 @@ glance_venv_enabled: true
# system path used when the installing. # system path used when the installing.
glance_bin: "{{ glance_venv_bin }}" glance_bin: "{{ glance_venv_bin }}"
# Set the etc dir path where glance is installed.
# This is used for role access to the db migrations.
# Example:
# glance_etc_dir: "/usr/local/etc/glance"
glance_venv_etc_dir: "{{ glance_bin | dirname }}/etc/glance"
glance_non_venv_etc_dir: "/usr/local/etc/glance"
glance_etc_dir: "{{ (glance_venv_enabled | bool) | ternary(glance_venv_etc_dir, glance_non_venv_etc_dir) }}"
# Enable/Disable Ceilometer # Enable/Disable Ceilometer
glance_ceilometer_enabled: False glance_ceilometer_enabled: False

View File

@ -47,3 +47,12 @@
- glance-db-sync - glance-db-sync
- glance-setup - glance-setup
- glance-command-bin - glance-command-bin
- name: Load glance metadata definitions
command: "{{ glance_bin }}/glance-manage db_load_metadefs {{ glance_etc_dir }}/metadefs"
sudo: yes
sudo_user: "{{ glance_system_user_name }}"
tags:
- glance-db-sync
- glance-setup
- glance-command-bin