3963d27ef4
Removing puppet-lint warnings in favor of upgrading to latest gem 2016-09-13 21:08:47.767844 | manifests/api.pp:558:WARNING: line has more than 140 characters 2016-09-13 21:08:47.767929 | manifests/params.pp:35:WARNING: line has more than 140 characters 2016-09-13 21:08:47.767948 | tests/site.pp:6:WARNING: unquoted node name found Change-Id: I3a8a01057befa358867eb0396e19c9b763e2b13a
54 lines
1.4 KiB
Puppet
54 lines
1.4 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':
|
|
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 { '::glance::api':
|
|
debug => true,
|
|
auth_type => 'keystone',
|
|
keystone_tenant => 'services',
|
|
keystone_user => 'glance',
|
|
keystone_password => 'glance_password',
|
|
database_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':
|
|
debug => true,
|
|
auth_type => 'keystone',
|
|
keystone_tenant => 'services',
|
|
keystone_user => 'glance',
|
|
keystone_password => 'glance_password',
|
|
database_connection => 'mysql://glance:glance@127.0.0.1/glance',
|
|
}
|
|
class { '::glance::keystone::auth':
|
|
password => 'glance_pass',
|
|
}
|
|
}
|
|
|
|
node default {
|
|
fail("could not find a matching node entry for ${clientcert}")
|
|
}
|