You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by se...@apache.org on 2020/12/02 10:47:49 UTC

[bigtop] branch master updated: BIGTOP-3459. Deploying GPDB fails on ARM64 CentOS 7. (#707)

This is an automated email from the ASF dual-hosted git repository.

sekikn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/master by this push:
     new 67df377  BIGTOP-3459. Deploying GPDB fails on ARM64 CentOS 7. (#707)
67df377 is described below

commit 67df377ab7c9f708916b2952018eb3acf72e9870
Author: Kengo Seki <se...@apache.org>
AuthorDate: Wed Dec 2 19:47:43 2020 +0900

    BIGTOP-3459. Deploying GPDB fails on ARM64 CentOS 7. (#707)
---
 bigtop-deploy/puppet/modules/gpdb/manifests/init.pp | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/bigtop-deploy/puppet/modules/gpdb/manifests/init.pp b/bigtop-deploy/puppet/modules/gpdb/manifests/init.pp
index 4ada967..97c7822 100644
--- a/bigtop-deploy/puppet/modules/gpdb/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/gpdb/manifests/init.pp
@@ -100,14 +100,17 @@ class gpdb {
             if (versioncmp($operatingsystemmajrelease, '8') < 0) {
               $base_url = 'http://download.fedoraproject.org/pub/epel/$releasever/$basearch'
               $python_devel = 'python-devel'
+              $python_lockfile = 'python-lockfile'
             } else {
               $base_url = 'http://download.fedoraproject.org/pub/epel/$releasever/Everything/$basearch'
               $python_devel = 'python2-devel'
+              $python_lockfile = 'python2-lockfile'
             }
           } else {
             # Looks like it works, at least with Fedora 31
             $base_url = 'http://download.fedoraproject.org/pub/epel/7/$basearch'
             $python_devel = 'python2-devel'
+            $python_lockfile = 'python2-lockfile'
           }
           yumrepo { "epel":
             baseurl  => $base_url,
@@ -124,7 +127,7 @@ class gpdb {
           package { ["openssl-devel"]:
             ensure => latest,
           }
-          package { ["python2-lockfile"]:
+          package { [$python_lockfile]:
             ensure => latest,
           }
           package { ["gcc"]:
@@ -139,6 +142,16 @@ class gpdb {
           package { ["paramiko"]:
             ensure   => latest,
             provider => pip,
+            require  => Package["setuptools"],
+          }
+          package { ["setuptools"]:
+            ensure   => latest,
+            provider => pip,
+            require  => Package["pip"],
+          }
+          package { ["pip"]:
+            ensure   => latest,
+            provider => pip,
             require  => File["/usr/bin/pip-python"],
           }
           package { ["python2-pip"]:
@@ -147,7 +160,7 @@ class gpdb {
               Yumrepo["epel"],
               Package["libffi-devel"],
               Package["openssl-devel"],
-              Package["python2-lockfile"],
+              Package[$python_lockfile],
             ],
           }
 	  file { '/usr/bin/pip-python':