OpenStack Glance Puppet Module
Go to file
Mathieu Gagné f126d462ab Capitalize boolean values in config files
This patch allows the usage of Puppet boolean values and still
configure values with OpenStack boolean style: True/False.

Change-Id: I1f96bf979e67fd7fb8fd1d984809fd072783224c
2013-05-21 19:30:22 -04:00
examples site.pp overrides sql_connection for glance-api.conf also 2012-12-18 15:22:45 +00:00
ext update passwords from test script 2012-10-31 16:03:43 -07:00
lib/puppet Capitalize boolean values in config files 2013-05-21 19:30:22 -04:00
manifests Allow paste deploy flavor to be passed for glance api 2013-04-26 05:51:59 -04:00
spec Allow paste deploy flavor to be passed for glance api 2013-04-26 05:51:59 -04:00
tests switch log_verbose,log_debug to debug,verbose 2012-10-14 00:21:14 -07:00
.fixtures.yml Add glance::db::postgresql class. 2013-04-23 12:58:39 -04:00
.gitignore add gitignore 2012-10-14 12:37:06 -07:00
.gitreview Add gitreview 2013-04-10 13:39:23 -07:00
.travis.yml update travis file to add 2.6 and 3.1 support 2013-03-05 14:16:37 -08:00
CHANGELOG release 1.1.0 2013-03-19 10:29:16 -07:00
Gemfile Replace deprecated :rubygems source 2013-05-02 16:27:19 -04:00
LICENSE Add Apache LICENSE FILE 2012-08-23 14:57:14 -07:00
Modulefile release 1.1.0 2013-03-19 10:29:16 -07:00
Rakefile Switch to using the puppetlabs_spec_helper gem for common files instead of duplicating code 2012-05-31 15:33:11 -07:00
README.md update README 2013-04-16 17:51:07 -07:00
TODO Add test script 2012-03-29 16:45:40 -07:00

PuppetLabs Glance module

This module can be used to flexibly configure glance, the image service of openstack.

It has been tested with a combination of other modules, and has primarily been developed as a subcomponent of the openstack module

It is currently targettting the folsom/grizzly releases of OpenStack.

Platforms

  • Ubuntu 12.04 (Precise)
  • RHEL 6

configurations

Glance is configured with the following classes:

configures glance::api service

class { 'glance::api':
  verbose           => $verbose,
  debug             => $verbose,
  auth_type         => 'keystone',
  auth_port         => '35357',
  auth_host         => $keystone_host,
  keystone_tenant   => 'services',
  keystone_user     => 'glance',
  keystone_password => $glance_user_password,
  sql_connection    => $sql_connection,
  enabled           => $enabled,
}

configures the glance registry

class { 'glance::registry':
  verbose           => $verbose,
  debug             => $verbose,
  auth_host         => $keystone_host,
  auth_port         => '35357',
  auth_type         => 'keystone',
  keystone_tenant   => 'services',
  keystone_user     => 'glance',
  keystone_password => $glance_user_password,
  sql_connection    => $sql_connection,
  enabled           => $enabled,
}

Configure file storage backend

class { 'glance::backend::file': }

Create the Glance db, this should be configured on your mysql server

class { 'glance::db::mysql':
  user          => $glance_db_user,
  password      => $glance_db_password,
  dbname        => $glance_db_dbname,
  allowed_hosts => $allowed_hosts,
}

configures glance endpoints in keystone

should be run on your keystone server

class { 'glance::keystone::auth':
  password         => $glance_user_password,
  public_address   => $glance_public_real,
  admin_address    => $glance_admin_real,
  internal_address => $glance_internal_real,
  region           => $region,
}

for full examples, see the examples directory.

in the module, puppet-openstack, the following classes configure parts of glance:

  • openstack::glance # api, file backend, and registry
  • openstack::keystone # sets up endpoints
  • openstack::db::mysql # sets up db config