1 # == Definition: openstacklib::db::postgresql
3 # This resource configures a postgresql database for an OpenStack service
8 # Password hash to use for the database user for this service;
12 # The name of the database
13 # string; optional; default to the $title of the resource, i.e. 'nova'
16 # The database user to create;
17 # string; optional; default to the $title of the resource, i.e. 'nova'
20 # The charset to use for the database;
21 # string; optional; default to undef
24 # Privileges given to the database user;
25 # string or array of strings; optional; default to 'ALL'
27 define openstacklib::db::postgresql (
35 if ((($::operatingsystem == 'RedHat' or $::operatingsystem == 'CentOS') and (versioncmp($::operatingsystemmajrelease, '6') <= 0))
36 or ($::operatingsystem == 'Fedora' and (versioncmp($::operatingsystemmajrelease, '14') <= 0))) {
37 warning('The system packages handling the postgresql infrastructure for OpenStack are out of date and should not be relied on for database migrations.')
40 postgresql::server::db { $dbname:
42 password => $password_hash,
43 encoding => $encoding,