X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fopenstacklib%2Fmanifests%2Fdb%2Fpostgresql.pp;fp=3rdparty%2Fmodules%2Fopenstacklib%2Fmanifests%2Fdb%2Fpostgresql.pp;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=febbb44055576c1e3ea36210620d6fb0a681ec9b;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/openstacklib/manifests/db/postgresql.pp b/3rdparty/modules/openstacklib/manifests/db/postgresql.pp deleted file mode 100644 index febbb4405..000000000 --- a/3rdparty/modules/openstacklib/manifests/db/postgresql.pp +++ /dev/null @@ -1,46 +0,0 @@ -# == Definition: openstacklib::db::postgresql -# -# This resource configures a postgresql database for an OpenStack service -# -# == Parameters: -# -# [*password_hash*] -# Password hash to use for the database user for this service; -# string; required -# -# [*dbname*] -# The name of the database -# string; optional; default to the $title of the resource, i.e. 'nova' -# -# [*user*] -# The database user to create; -# string; optional; default to the $title of the resource, i.e. 'nova' -# -# [*encoding*] -# The charset to use for the database; -# string; optional; default to undef -# -# [*privileges*] -# Privileges given to the database user; -# string or array of strings; optional; default to 'ALL' - -define openstacklib::db::postgresql ( - $password_hash, - $dbname = $title, - $user = $title, - $encoding = undef, - $privileges = 'ALL', -){ - - if ((($::operatingsystem == 'RedHat' or $::operatingsystem == 'CentOS') and (versioncmp($::operatingsystemmajrelease, '6') <= 0)) - or ($::operatingsystem == 'Fedora' and (versioncmp($::operatingsystemmajrelease, '14') <= 0))) { - warning('The system packages handling the postgresql infrastructure for OpenStack are out of date and should not be relied on for database migrations.') - } - - postgresql::server::db { $dbname: - user => $user, - password => $password_hash, - encoding => $encoding, - grant => $privileges, - } -}