diff --git a/manifests/db/postgresql.pp b/manifests/db/postgresql.pp index 18fc3059..febbb440 100644 --- a/manifests/db/postgresql.pp +++ b/manifests/db/postgresql.pp @@ -32,8 +32,8 @@ define openstacklib::db::postgresql ( $privileges = 'ALL', ){ - if ((($::operatingsystem == 'RedHat' or $::operatingsystem == 'CentOS') and $::operatingsystemmajrelease <= 6) - or ($::operatingsystem == 'Fedora' and $::operatingsystemmajrelease <= 14)) { + 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.') }