File: site.pp

package info (click to toggle)
puppet-module-keystone 13.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,576 kB
  • sloc: ruby: 10,066; pascal: 916; python: 40; makefile: 17; sh: 15
file content (65 lines) | stat: -rw-r--r-- 1,665 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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':
    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':
    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':
    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}")
}