Status
OpenStack Glance image service installation
Tested on Ubuntu Precise (12.04) and Trusty (14.04)
A DBMS already configured with a user and a database (when applicable).
A RabbitMQ server. See below.
A Keystone server. See below.
For RHEL/CentOS, RHOSP or RDO repositories are needed.
Name | Default value | Description |
---|---|---|
glance_database_url |
sqlite:////var/lib/glance/glance.sqlite |
Database URI |
glance_user |
glance |
Admin user for the image service as defined on Keystone |
glance_pass |
glance_pass_default |
Password for the image service as defined on Keystone |
glance_bind_host |
0.0.0.0 |
IP address glance API will bind to |
glance_port |
9292 |
Desired glance service port |
glance_protocol |
http |
Desired glance protocol (http/https) - WiP, do not use. |
keystone_admin_port |
35357 |
Keystone admin service port |
keystone_hostname |
localhost |
Hostname/IP address where the keystone service runs |
keystone_port |
5000 |
Keystone service port |
keystone_protocol |
http |
Desired glance protocol (http/https) - WiP, do not use |
rabbit_hostname |
localhost |
Hostname/IP address where the RabbitMQ service runs |
rabbit_username |
rabbit_username_default |
RabbitMQ username for glance |
rabbit_pass |
rabbit_pass_default |
RabbitMQ password for glance |
glance_hostname |
localhost |
Hostname/IP used internally during configuration. localhost is usually ok |
glance_log_dir |
/var/log/glance |
Log directory (it must exist) |
None.
- hosts: glance001
roles:
- role: openstack-glance
glance_database_url: "mysql://{{ MYSQL_GLANCE_USER }}:{{ MYSQL_GLANCE_PASS }}@{{ DATABASE_HOSTNAME }}/{{ MYSQL_GLANCE_DB }}"
glance_hostname: glance
glance_pass: "{{ GLANCE_PASS }}"
keystone_hostname: keystone
rabbit_hostname: rabbitmq
rabbit_username: glance
rabbit_pass: "{{ RABBIT_GLANCE_PASS }}"
A complete Ansible playbook demo, which uses this role, is available on Github (openstack-ansible-galaxy/vagrant-ansible-openstack) https://github.com/openstack-ansible-galaxy/vagrant-ansible-openstack
RedHat suport implemented by Abel Boldú abel.boldu@gmx.com
Apache
Copyright (c) 2015 Davide Guerri davide.guerri@gmail.com