Skip to content

Commit 69b1df5

Browse files
Merge pull request #1524 from craigcomstock/ENT-12432-2/master
Install python3-psycopg2 on ubuntu >= 20
2 parents acab42a + f4bfcf5 commit 69b1df5

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

ci/cfengine-build-host-setup.cf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bundle agent cfengine_build_host_setup
1111
packages:
1212
debian_9|debian_10|ubuntu_16::
1313
"python-psycopg2";
14-
debian_11|debian_12::
14+
debian_11|debian_12|ubuntu_20|ubuntu_22|ubuntu_24::
1515
"python3-psycopg2";
1616
ubuntu_16::
1717
"systemd-coredump" comment => "ubuntu_16 doesn't have systemd-coredump by default?";
@@ -191,12 +191,6 @@ bundle agent cfengine_build_host_setup
191191
"sed -i '/best=True/s/True/False/' /etc/yum.conf" contain => in_shell;
192192
(redhat_8|centos_8|redhat_9).!dnf_conf_ok::
193193
"sed -i '/best=True/s/True/False/' /etc/dnf/dnf.conf" contain => in_shell;
194-
ubuntu_20.!have_python2_pip::
195-
"sh $(this.promise_dirname)/install-python2-pip.sh" contain => in_shell,
196-
comment => "pip(2) is required for psycopg2 for nova/tests/reporting.";
197-
ubuntu_20.!have_python2_psycopg2::
198-
"pip install psycopg2-binary" contain => in_shell,
199-
comment => "Here we install psycopg2 as root because nova/tests/reporting runs as root.";
200194

201195

202196
classes:

0 commit comments

Comments
 (0)