1 Exec { logoutput => 'on_failure' }
3 package { 'curl': ensure => present }
5 # example of how to build a single node
6 # keystone instance backed by sqlite
7 # with all of the default admin roles
8 node 'keystone_sqlite' {
12 catalog_type => 'sql',
13 admin_token => 'admin_token',
15 class { '::keystone::roles::admin':
16 email => 'example@abc.com',
17 password => 'ChangeMe',
19 class { '::keystone::endpoint':
20 public_url => "http://${::fqdn}:5000/",
21 admin_url => "http://${::fqdn}:35357/",
26 class { '::mysql::server': }
27 class { '::keystone::db::mysql':
28 password => 'keystone',
33 database_connection => 'mysql://keystone:keystone@127.0.0.1/keystone',
34 catalog_type => 'sql',
35 admin_token => 'admin_token',
37 class { '::keystone::roles::admin':
38 email => 'test@puppetlabs.com',
39 password => 'ChangeMe',
44 # keystone with mysql on another node
49 database_connection => 'mysql://keystone:password@127.0.0.1/keystone',
50 catalog_type => 'sql',
51 admin_token => 'admin_token',
53 class { '::keystone::db::mysql':
54 password => 'keystone',
56 class { '::keystone::roles::admin':
57 email => 'example@abc.com',
58 password => 'ChangeMe',
60 class { '::keystone::endpoint':
61 public_url => "http://${::fqdn}:5000/",
62 admin_url => "http://${::fqdn}:35357/",
67 fail("could not find a matching node entry for ${clientcert}")