From fe05551a4b0e8ab8396a9f217f673674446a4414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Mon, 21 Aug 2023 15:14:35 -0400 Subject: [PATCH] Add command to upgrade portal venv pip version --- site/profile/manifests/userportal.pp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/site/profile/manifests/userportal.pp b/site/profile/manifests/userportal.pp index 13dab544e..74069e874 100644 --- a/site/profile/manifests/userportal.pp +++ b/site/profile/manifests/userportal.pp @@ -213,6 +213,18 @@ require => Package['python38'], } + exec { 'userportal_upgrade_pip': + command => 'pip3 install --upgrade pip', + path => [ + '/opt/software/userportal-env/bin', + '/usr/bin', + ], + refreshonly => true, + subscribe => [ + Exec['userportal_venv'], + ], + } + file { '/var/www/userportal/': ensure => 'directory', owner => 'apache', @@ -244,6 +256,7 @@ ], require => [ Exec['userportal_venv'], + Exec['userportal_upgrade_pip'], Package['python38-devel'], Package['mariadb-devel'], Package['openldap-devel'], @@ -258,6 +271,9 @@ '/usr/bin', ], creates => '/opt/software/userportal-env/lib/python3.8/site-packages/django_pam/__init__.py', - require => [Exec['userportal_venv']], + require => [ + Exec['userportal_venv'], + Exec['userportal_upgrade_pip'], + ], } }