Skip to content

Commit

Permalink
Add command to upgrade portal venv pip version
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Aug 21, 2023
1 parent 2218930 commit fe05551
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion site/profile/manifests/userportal.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -244,6 +256,7 @@
],
require => [
Exec['userportal_venv'],
Exec['userportal_upgrade_pip'],
Package['python38-devel'],
Package['mariadb-devel'],
Package['openldap-devel'],
Expand All @@ -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'],
],
}
}

0 comments on commit fe05551

Please sign in to comment.