Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameter to support system packages in venv #313

Merged
merged 1 commit into from Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions REFERENCE.md
Expand Up @@ -268,6 +268,14 @@ HTTP index server to use for pip/virtualenv.

Default value: ``undef``

##### <a name="python_systempkgs"></a>`python_systempkgs`

Data type: `Boolean`

Python system packages available in virtualenv.

Default value: ``false``

##### <a name="default_environment"></a>`default_environment`

Data type: `String[1]`
Expand Down
4 changes: 3 additions & 1 deletion manifests/init.pp
Expand Up @@ -21,6 +21,7 @@
# @param python_loglevel Python logging module log level.
# @param python_proxy HTTP proxy server to use for pip/virtualenv.
# @param python_index HTTP index server to use for pip/virtualenv.
# @param python_systempkgs Python system packages available in virtualenv.
# @param default_environment set the default environment
# @param revision Commit, tag, or branch from Puppetboard's Git repo to be used
# @param version PyPI package version to be installed
Expand Down Expand Up @@ -81,6 +82,7 @@
Puppetboard::Syslogpriority $python_loglevel = 'info',
Optional[String[1]] $python_proxy = undef,
Optional[String[1]] $python_index = undef,
Boolean $python_systempkgs = false,
smortex marked this conversation as resolved.
Show resolved Hide resolved
Optional[String] $revision = undef,
Boolean $manage_user = true,
Boolean $manage_group = true,
Expand Down Expand Up @@ -157,7 +159,7 @@
python::pyvenv { $virtualenv_dir:
ensure => present,
version => $python_version,
systempkgs => false,
systempkgs => $python_systempkgs,
owner => $user,
group => $group,
require => File[$basedir],
Expand Down