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>
changes/25/235425/6
Jay Clark 7 years ago committed by Kevin Carter
parent e4b5bafe49
commit 37ed05243a
  1. 8
      playbooks/roles/os_glance/defaults/main.yml
  2. 9
      playbooks/roles/os_glance/tasks/glance_db_setup.yml

@ -29,6 +29,14 @@ glance_venv_enabled: true
# system path used when the installing.
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
glance_ceilometer_enabled: False

@ -47,3 +47,12 @@
- glance-db-sync
- glance-setup
- 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

Loading…
Cancel
Save