OpenStack Keystone Puppet Module
Go to file
Dan Bode 4f549207b0 Release 1.0.0
drops essex support for folsom support.
2012-11-02 12:11:02 -07:00
examples fix merge conflict 2012-10-23 15:32:41 -07:00
ext Add test code 2012-03-29 14:41:57 -07:00
lib/puppet Validate namevar in type 2012-10-26 11:19:50 -07:00
manifests Merge pull request #89 from jtopjian/folsom 2012-10-25 15:58:35 -07:00
spec update rspec tests 2012-10-26 11:20:29 -07:00
templates/client remove more unused files 2012-10-23 15:32:39 -07:00
.fixtures.yml Add create_resource as a dep 2012-10-26 12:06:08 -07:00
.gemfile Update module for the puppetlabs_spec_helper gem 2012-05-31 16:55:33 -07:00
.gitignore add gitignore 2012-10-23 15:32:41 -07:00
.travis.yml Add travis file 2012-10-23 11:41:43 -07:00
CHANGELOG Release 1.0.0 2012-11-02 12:11:02 -07:00
LICENSE Added explicit license 2012-08-23 15:00:52 -07:00
Modulefile Release 1.0.0 2012-11-02 12:11:02 -07:00
README.markdown update docs 2012-10-23 15:32:39 -07:00
Rakefile Update module for the puppetlabs_spec_helper gem 2012-05-31 16:55:33 -07:00

README.markdown

Overview

The module contains a collection of manifests and native types that are capable of installing/managing/configuring Keystone.

Keystone is the Identity service for OpenStack.

Tested use cases

This module has been tested against the dev version of Ubuntu Precise.

It has only currently been tested as a single node installation of keystone.

It is currently targetting essex support and is being actively developed against packaging that are built off of trunk.

Dependencies:

This module has relatively few dependencies:

https://github.com/puppetlabs/puppet-concat

if used on Ubuntu

https://github.com/puppetlabs/puppet-apt

if using mysql as a backend

https://github.com/puppetlabs/puppetlabs-mysql

Usage

Manifests

class keystone

The keystone class sets up the basic configuration for the keystone service.

It must be used together with a class that expresses the db backend to use:

for example:

class { 'keystone':
  log_verbose => 'True',
  admin_token => 'my_secret_token'
}

needs to be configured to use a backend database with either:

class { 'keystone::config::sqlite': }

or

class { 'keystone::config::mysql':
  password => 'keystone',
}

or

class { 'keystone::config::postgresql':
  password => 'keystone',
}

setting up a keystone mysql db

A keystone mysql database can be configured separately from the service.

If you need to actually install a mysql database server, you can use the mysql::server class from the puppetlabs mysql module

# check out the mysql module's README to learn more about
# how to more appropriately configure a server
class { 'mysql::server': }

class { 'keystone::mysql':
  dbname   => 'keystone',
  user     => 'keystone',
  password => 'keystone_password',
}

setting up a keystone postgresql db

A keystone postgresql database can be configured separately from the service instead of mysql.

If you need to actually install a postgresql database server, you can use the postgresql::server class from the puppetlabs postgresql module. You will also need that module to install the postgresql python driver dependencies.

check out the postgresql module's README to learn more about

how to more appropriately configure a server

class { 'postgresql::server': }

class { 'keystone::postgresql': dbname => 'keystone', user => 'keystone', password => 'keystone_password', }

Native Types

The Puppet support for keystone also includes native types that can be used to manage the following keystone objects:

- keystone_tenant
- keystone_user
- keystone_role
- keystone_user_role
- keystone_service
- keystone_endpoint

These types will only work on an actual keystone node (and they read keystone.conf to figure out the admin port and admin token, which is kind of hacky, but the best way I could think of.)

- keystone_config - manages individual config file entries as resources.

examples

keystone_tenant { 'openstack': ensure => present, enabled => 'True', } keystone_user { 'openstack': ensure => present, enabled => 'True' } keystone_role { 'admin': ensure => present, } keystone_user_role { 'admin@openstack': roles => ['admin', 'superawesomedue'], ensure => present }

puppet resource

These native types also allow for some interesting introspection using puppet resource

To list all of the objects of a certain type in the keystone database, you can run:

puppet resource

For example:

puppet resource keystone_tenant

would list all know keystone tenants for a given keystone instance.