c453d7f313
The puppet-lint requirement is now changed, so we can use puppet-lint plugins. Most of these plugins are for 4.x compat, but some just catch common errors. Change-Id: I988929331e3f0cbef5e10ec9116cdba9ded16967
69 lines
1.7 KiB
Puppet
69 lines
1.7 KiB
Puppet
Exec { logoutput => 'on_failure' }
|
|
|
|
package { 'curl': ensure => present }
|
|
|
|
# example of how to build a single node
|
|
# keystone instance backed by sqlite
|
|
# with all of the default admin roles
|
|
node 'keystone_sqlite' {
|
|
class { '::keystone':
|
|
verbose => true,
|
|
debug => true,
|
|
catalog_type => 'sql',
|
|
admin_token => 'admin_token',
|
|
}
|
|
class { '::keystone::roles::admin':
|
|
email => 'example@abc.com',
|
|
password => 'ChangeMe',
|
|
}
|
|
class { '::keystone::endpoint':
|
|
public_url => "http://${::fqdn}:5000/",
|
|
admin_url => "http://${::fqdn}:35357/",
|
|
}
|
|
}
|
|
|
|
node keystone_mysql {
|
|
class { '::mysql::server': }
|
|
class { '::keystone::db::mysql':
|
|
password => 'keystone',
|
|
}
|
|
class { '::keystone':
|
|
verbose => true,
|
|
debug => true,
|
|
database_connection => 'mysql://keystone:keystone@127.0.0.1/keystone',
|
|
catalog_type => 'sql',
|
|
admin_token => 'admin_token',
|
|
}
|
|
class { '::keystone::roles::admin':
|
|
email => 'test@puppetlabs.com',
|
|
password => 'ChangeMe',
|
|
}
|
|
}
|
|
|
|
|
|
# keystone with mysql on another node
|
|
node keystone {
|
|
class { '::keystone':
|
|
verbose => true,
|
|
debug => true,
|
|
database_connection => 'mysql://keystone:password@127.0.0.1/keystone',
|
|
catalog_type => 'sql',
|
|
admin_token => 'admin_token',
|
|
}
|
|
class { '::keystone::db::mysql':
|
|
password => 'keystone',
|
|
}
|
|
class { '::keystone::roles::admin':
|
|
email => 'example@abc.com',
|
|
password => 'ChangeMe',
|
|
}
|
|
class { '::keystone::endpoint':
|
|
public_url => "http://${::fqdn}:5000/",
|
|
admin_url => "http://${::fqdn}:35357/",
|
|
}
|
|
}
|
|
|
|
node default {
|
|
fail("could not find a matching node entry for ${clientcert}")
|
|
}
|