202a27b66a
Commit updates README.md with a more consistent template for documentation, removes travis.yml since we're on stackfoge now, updates the Modulefile for the new release, deletes TODO list, CHANGELOGs deleted in favor of summarized release notes in README.md, which will show up on Forge, and moves examples to tests to adhere with Puppet Labs Style Guide(http://docs.puppetlabs.com/guides/style_guide.html#tests) Change-Id: Iffa30f6f35b996305f635317fc0770f908e9057e
64 lines
1.5 KiB
Puppet
64 lines
1.5 KiB
Puppet
|
|
# uses the keystone packages
|
|
# to ensure that we use the latest precise packages
|
|
Exec { logoutput => 'on_failure' }
|
|
|
|
node glance_keystone_mysql {
|
|
class { 'mysql::server': }
|
|
class { 'keystone':
|
|
verbose => true,
|
|
debug => true,
|
|
catalog_type => 'sql',
|
|
admin_token => 'admin_token',
|
|
}
|
|
class { 'keystone::db::mysql':
|
|
password => 'keystone',
|
|
}
|
|
class { 'keystone::roles::admin':
|
|
email => 'test@puppetlabs.com',
|
|
password => 'ChangeMe',
|
|
}
|
|
class { 'role_glance_mysql': }
|
|
class { 'glance::keystone::auth':
|
|
password => 'glance_pass',
|
|
}
|
|
}
|
|
|
|
node default {
|
|
fail("could not find a matching node entry for ${clientcert}")
|
|
}
|
|
|
|
class role_glance_mysql {
|
|
|
|
class { 'glance::api':
|
|
verbose => 'True',
|
|
debug => 'True',
|
|
auth_type => 'keystone',
|
|
keystone_tenant => 'services',
|
|
keystone_user => 'glance',
|
|
keystone_password => 'glance_password',
|
|
sql_connection => 'mysql://glance:glance@127.0.0.1/glance',
|
|
}
|
|
class { 'glance::backend::file': }
|
|
|
|
class { 'glance::db::mysql':
|
|
password => 'glance',
|
|
dbname => 'glance',
|
|
user => 'glance',
|
|
host => '127.0.0.1',
|
|
# allowed_hosts = undef,
|
|
# $cluster_id = 'localzone'
|
|
}
|
|
|
|
class { 'glance::registry':
|
|
verbose => 'True',
|
|
debug => 'True',
|
|
auth_type => 'keystone',
|
|
keystone_tenant => 'services',
|
|
keystone_user => 'glance',
|
|
keystone_password => 'glance_password',
|
|
sql_connection => 'mysql://glance:glance@127.0.0.1/glance',
|
|
}
|
|
|
|
}
|