Skip to content
Snippets Groups Projects
Commit 2e9b85d2 authored by Henry Fröcklin's avatar Henry Fröcklin
Browse files

Minor fixes.

parent b7dfff69
No related branches found
No related tags found
No related merge requests found
# well ... # well ...
class vlc::python () { class vlc::python () {
package { 'python3.12':
ensure => 'installed',
}
package { 'python3.11': package { 'python3.11':
ensure => 'installed', ensure => 'installed',
} }
package { 'python3.9': package { 'python3.9':
ensure => 'installed', ensure => 'installed',
} }
$packages = ['python3-gunicorn', 'python3-django3', 'python3-virtualenv']
$packages = ['python3.12-pip', 'python3.11-pip', 'python3-pip', 'python3-django3', 'python3-virtualenv']
package { $packages: package { $packages:
ensure => 'installed', ensure => 'installed',
require => Package['python3.11'], require => Package['python3.12', 'python3.11', 'python3.9'],
} }
} }
#Creates virtual environment, clones repo and installs python dependencies for vlc applications #Creates virtual environment, clones repo and installs python dependencies for vlc applications
class vlc::vlc { class vlc::vlc {
exec { 'creat_venv': exec { 'creat_venv_vlc':
command => 'python3.9 -m venv venv-django-vlc', command => 'python3.9 -m venv venv-django-vlc',
path => ['/usr/bin', '/bin'], path => ['/usr/bin', '/bin'],
cwd => '/home/henfr13', cwd => '/home/henfr13',
......
#Creates virtual environment, clones repo and installs python dependencies for vlcinv applications #Creates virtual environment, clones repo and installs python dependencies for vlcinv applications
class vlc::vlcinv { class vlc::vlcinv {
exec { 'creat_venv': exec { 'creat_venv_vlcpublib':
command => 'python3.11 -m venv venv-django-vlcinv', command => 'python3.11 -m venv venv-django-vlcinv',
path => ['/usr/bin', '/bin'], path => ['/usr/bin', '/bin'],
cwd => '/home/henfr13', cwd => '/home/henfr13',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment