From b9c84a3071a12322eb9676e0efc57cca25236054 Mon Sep 17 00:00:00 2001 From: Christos Papageorgiou Date: Thu, 26 Aug 2021 16:37:17 +0300 Subject: [PATCH] Release 6.2.0 --- CHANGELOG.md | 12 ++ README.md | 6 +- REFERENCE.md | 388 ++++++++++++++++++++++++++++++++++---------------- metadata.json | 2 +- 4 files changed, 282 insertions(+), 126 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86374eb8..9ba619d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file. Each new release typically also includes the latest modulesync defaults. These should not affect the functionality of the module. +## [v6.2.0](https://github.com/voxpupuli/puppet-python/tree/v6.2.0) (2021-08-26) + +[Full Changelog](https://github.com/voxpupuli/puppet-python/compare/v6.1.0...v6.2.0) + +**Implemented enhancements:** + +- Add support for Debian 11 [\#621](https://github.com/voxpupuli/puppet-python/pull/621) ([smortex](https://github.com/smortex)) + +**Merged pull requests:** + +- Allow stdlib 8.0.0 [\#622](https://github.com/voxpupuli/puppet-python/pull/622) ([smortex](https://github.com/smortex)) + ## [v6.1.0](https://github.com/voxpupuli/puppet-python/tree/v6.1.0) (2021-06-05) [Full Changelog](https://github.com/voxpupuli/puppet-python/compare/v6.0.1...v6.1.0) diff --git a/README.md b/README.md index dcfafdb2..a91504ca 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ # puppet-python -[![License](https://img.shields.io/github/license/voxpupuli/puppet-python.svg)](https://github.com/voxpupuli/puppet-python/blob/master/LICENSE) -[![Build Status](https://travis-ci.org/voxpupuli/puppet-python.png?branch=master)](https://travis-ci.org/voxpupuli/puppet-python) +[![Build Status](https://github.com/voxpupuli/puppet-python/workflows/CI/badge.svg)](https://github.com/voxpupuli/puppet-python/actions?query=workflow%3ACI) +[![Release](https://github.com/voxpupuli/puppet-python/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/puppet-python/actions/workflows/release.yml) [![Puppet Forge](https://img.shields.io/puppetforge/v/puppet/python.svg)](https://forge.puppetlabs.com/puppet/python) [![Puppet Forge - downloads](https://img.shields.io/puppetforge/dt/puppet/python.svg)](https://forge.puppetlabs.com/puppet/python) [![Puppet Forge - endorsement](https://img.shields.io/puppetforge/e/puppet/python.svg)](https://forge.puppetlabs.com/puppet/python) [![Puppet Forge - scores](https://img.shields.io/puppetforge/f/puppet/python.svg)](https://forge.puppetlabs.com/puppet/python) +[![puppetmodule.info docs](http://www.puppetmodule.info/images/badge.png)](http://www.puppetmodule.info/m/puppet-python) +[![License](https://img.shields.io/github/license/voxpupuli/puppet-python.svg)](https://github.com/voxpupuli/puppet-python/blob/master/LICENSE) Puppet module for installing and managing python, pip, virtualenvs and Gunicorn virtual hosts. diff --git a/REFERENCE.md b/REFERENCE.md index a12a230c..8a84e95d 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -31,11 +31,12 @@ * [`Python::Package::Ensure`](#pythonpackageensure): A version type to match all valid package ensures for python * [`Python::Provider`](#pythonprovider): A version type to match all valid provider for python * [`Python::Umask`](#pythonumask): A version type to match valid umask for python +* [`Python::Venv::PipVersion`](#pythonvenvpipversion): A version type to ensure a specific Pip version in a virtual env. * [`Python::Version`](#pythonversion): A version type to match all valid versions for python ## Classes -### `python` +### `python` Installs and manages python, python-dev and gunicorn. @@ -64,9 +65,30 @@ class { 'python' : #### Parameters -The following parameters are available in the `python` class. - -##### `ensure` +The following parameters are available in the `python` class: + +* [`ensure`](#ensure) +* [`version`](#version) +* [`pip`](#pip) +* [`dev`](#dev) +* [`gunicorn`](#gunicorn) +* [`manage_gunicorn`](#manage_gunicorn) +* [`provider`](#provider) +* [`use_epel`](#use_epel) +* [`manage_scl`](#manage_scl) +* [`umask`](#umask) +* [`manage_python_package`](#manage_python_package) +* [`manage_pip_package`](#manage_pip_package) +* [`gunicorn_package_name`](#gunicorn_package_name) +* [`python_pips`](#python_pips) +* [`python_pyvenvs`](#python_pyvenvs) +* [`python_requirements`](#python_requirements) +* [`python_dotfiles`](#python_dotfiles) +* [`rhscl_use_public_repository`](#rhscl_use_public_repository) +* [`anaconda_installer_url`](#anaconda_installer_url) +* [`anaconda_install_path`](#anaconda_install_path) + +##### `ensure` Data type: `Python::Package::Ensure` @@ -74,7 +96,7 @@ Desired installation state for the Python package. Default value: `$python::params::ensure` -##### `version` +##### `version` Data type: `Python::Version` @@ -89,7 +111,7 @@ Allowed values: Default value: `'3'` -##### `pip` +##### `pip` Data type: `Python::Package::Ensure` @@ -97,7 +119,7 @@ Desired installation state for the python-pip package. Default value: `$python::params::pip` -##### `dev` +##### `dev` Data type: `Python::Package::Ensure` @@ -105,7 +127,7 @@ Desired installation state for the python-dev package. Default value: `$python::params::dev` -##### `gunicorn` +##### `gunicorn` Data type: `Python::Package::Ensure` @@ -113,7 +135,7 @@ Desired installation state for Gunicorn. Default value: `$python::params::gunicorn` -##### `manage_gunicorn` +##### `manage_gunicorn` Data type: `Boolean` @@ -121,7 +143,7 @@ Allow Installation / Removal of Gunicorn. Default value: `$python::params::manage_gunicorn` -##### `provider` +##### `provider` Data type: `Optional[Python::Provider]` @@ -129,7 +151,7 @@ What provider to use for installation of the packages, except gunicorn and Pytho Default value: `$python::params::provider` -##### `use_epel` +##### `use_epel` Data type: `Boolean` @@ -137,7 +159,7 @@ to determine if the epel class is used. Default value: `$python::params::use_epel` -##### `manage_scl` +##### `manage_scl` Data type: `Boolean` @@ -145,7 +167,7 @@ Whether to manage core SCL packages or not. Default value: `$python::params::manage_scl` -##### `umask` +##### `umask` Data type: `Optional[Python::Umask]` @@ -153,7 +175,7 @@ The default umask for invoked exec calls. Default value: ``undef`` -##### `manage_python_package` +##### `manage_python_package` Data type: `Boolean` @@ -161,7 +183,7 @@ Data type: `Boolean` Default value: `$python::params::manage_python_package` -##### `manage_pip_package` +##### `manage_pip_package` Data type: `Boolean` @@ -169,7 +191,7 @@ Data type: `Boolean` Default value: `$python::params::manage_pip_package` -##### `gunicorn_package_name` +##### `gunicorn_package_name` Data type: `String[1]` @@ -177,7 +199,7 @@ Data type: `String[1]` Default value: `$python::params::gunicorn_package_name` -##### `python_pips` +##### `python_pips` Data type: `Hash` @@ -185,7 +207,7 @@ Data type: `Hash` Default value: `{}` -##### `python_pyvenvs` +##### `python_pyvenvs` Data type: `Hash` @@ -193,7 +215,7 @@ Data type: `Hash` Default value: `{}` -##### `python_requirements` +##### `python_requirements` Data type: `Hash` @@ -201,7 +223,7 @@ Data type: `Hash` Default value: `{}` -##### `python_dotfiles` +##### `python_dotfiles` Data type: `Hash` @@ -209,7 +231,7 @@ Data type: `Hash` Default value: `{}` -##### `rhscl_use_public_repository` +##### `rhscl_use_public_repository` Data type: `Boolean` @@ -217,7 +239,7 @@ Data type: `Boolean` Default value: `$python::params::rhscl_use_public_repository` -##### `anaconda_installer_url` +##### `anaconda_installer_url` Data type: `Stdlib::Httpurl` @@ -225,7 +247,7 @@ Data type: `Stdlib::Httpurl` Default value: `$python::params::anaconda_installer_url` -##### `anaconda_install_path` +##### `anaconda_install_path` Data type: `Stdlib::Absolutepath` @@ -233,7 +255,7 @@ Data type: `Stdlib::Absolutepath` Default value: `$python::params::anaconda_install_path` -### `python::pip::bootstrap` +### `python::pip::bootstrap` allow to bootstrap pip when python is managed from other module @@ -249,9 +271,14 @@ class { 'python::pip::bootstrap': #### Parameters -The following parameters are available in the `python::pip::bootstrap` class. +The following parameters are available in the `python::pip::bootstrap` class: + +* [`version`](#version) +* [`manage_python`](#manage_python) +* [`http_proxy`](#http_proxy) +* [`exec_provider`](#exec_provider) -##### `version` +##### `version` Data type: `Enum['pip', 'pip3']` @@ -259,7 +286,7 @@ should be pip or pip3 Default value: `'pip'` -##### `manage_python` +##### `manage_python` Data type: `Variant[Boolean, String]` @@ -267,7 +294,7 @@ if python module will manage deps Default value: ``false`` -##### `http_proxy` +##### `http_proxy` Data type: `Optional[Stdlib::HTTPUrl]` @@ -275,7 +302,7 @@ Proxy server to use for outbound connections. Default value: ``undef`` -##### `exec_provider` +##### `exec_provider` Data type: `String[1]` @@ -285,7 +312,7 @@ Default value: `'shell'` ## Defined types -### `python::dotfile` +### `python::dotfile` Manages any python dotfiles with a simple config hash. @@ -309,9 +336,16 @@ python::dotfile { '/var/lib/jenkins/.pip/pip.conf': #### Parameters -The following parameters are available in the `python::dotfile` defined type. +The following parameters are available in the `python::dotfile` defined type: + +* [`ensure`](#ensure) +* [`filename`](#filename) +* [`mode`](#mode) +* [`owner`](#owner) +* [`group`](#group) +* [`config`](#config) -##### `ensure` +##### `ensure` Data type: `Enum['absent', 'present']` @@ -319,7 +353,7 @@ Data type: `Enum['absent', 'present']` Default value: `'present'` -##### `filename` +##### `filename` Data type: `Stdlib::Absolutepath` @@ -327,7 +361,7 @@ Filename. Default value: `$title` -##### `mode` +##### `mode` Data type: `Stdlib::Filemode` @@ -335,7 +369,7 @@ File mode. Default value: `'0644'` -##### `owner` +##### `owner` Data type: `String[1]` @@ -343,7 +377,7 @@ user owner of dotfile Default value: `'root'` -##### `group` +##### `group` Data type: `String[1]` @@ -351,7 +385,7 @@ group owner of dotfile Default value: `'root'` -##### `config` +##### `config` Data type: `Hash` @@ -359,7 +393,7 @@ Config hash. This will be expanded to an ini-file. Default value: `{}` -### `python::gunicorn` +### `python::gunicorn` Manages Gunicorn virtual hosts. @@ -386,9 +420,30 @@ python::gunicorn { 'vhost': #### Parameters -The following parameters are available in the `python::gunicorn` defined type. - -##### `ensure` +The following parameters are available in the `python::gunicorn` defined type: + +* [`ensure`](#ensure) +* [`config_dir`](#config_dir) +* [`manage_config_dir`](#manage_config_dir) +* [`virtualenv`](#virtualenv) +* [`mode`](#mode) +* [`dir`](#dir) +* [`bind`](#bind) +* [`environment`](#environment) +* [`appmodule`](#appmodule) +* [`osenv`](#osenv) +* [`timeout`](#timeout) +* [`template`](#template) +* [`args`](#args) +* [`owner`](#owner) +* [`group`](#group) +* [`workers`](#workers) +* [`access_log_format`](#access_log_format) +* [`accesslog`](#accesslog) +* [`errorlog`](#errorlog) +* [`log_level`](#log_level) + +##### `ensure` Data type: `Enum['present', 'absent']` @@ -396,7 +451,7 @@ Data type: `Enum['present', 'absent']` Default value: `present` -##### `config_dir` +##### `config_dir` Data type: `Stdlib::Absolutepath` @@ -404,7 +459,7 @@ Configure the gunicorn config directory path. Default value: `'/etc/gunicorn.d'` -##### `manage_config_dir` +##### `manage_config_dir` Data type: `Boolean` @@ -412,7 +467,7 @@ Set if the gunicorn config directory should be created. Default value: ``false`` -##### `virtualenv` +##### `virtualenv` Data type: `Variant[Boolean,Stdlib::Absolutepath]` @@ -420,7 +475,7 @@ Run in virtualenv, specify directory. Default value: ``false`` -##### `mode` +##### `mode` Data type: `Enum['wsgi', 'django']` @@ -428,13 +483,13 @@ Gunicorn mode. Default value: `'wsgi'` -##### `dir` +##### `dir` Data type: `Stdlib::Absolutepath` Application directory. -##### `bind` +##### `bind` Data type: `Variant[String[1],Boolean]` @@ -444,7 +499,7 @@ Default: system-wide: unix:/tmp/gunicorn-$name.socket Default value: ``false`` -##### `environment` +##### `environment` Data type: `Variant[String[1],Boolean]` @@ -452,7 +507,7 @@ Set ENVIRONMENT variable. Default value: ``false`` -##### `appmodule` +##### `appmodule` Data type: `String[1]` @@ -460,7 +515,7 @@ Set the application module name for gunicorn to load when not using Django. Default value: `'app:app'` -##### `osenv` +##### `osenv` Data type: `Variant[Boolean,Hash]` @@ -468,7 +523,7 @@ Allows setting environment variables for the gunicorn service. Accepts a hash of Default value: ``false`` -##### `timeout` +##### `timeout` Data type: `Integer` @@ -476,7 +531,7 @@ Allows setting the gunicorn idle worker process time before being killed. The un Default value: `30` -##### `template` +##### `template` Data type: `String[1]` @@ -484,7 +539,7 @@ Which ERB template to use. Default value: `'python/gunicorn.erb'` -##### `args` +##### `args` Data type: `Array` @@ -492,7 +547,7 @@ Custom arguments to add in gunicorn config file. Default value: `[]` -##### `owner` +##### `owner` Data type: `String[1]` @@ -500,7 +555,7 @@ Data type: `String[1]` Default value: `'www-data'` -##### `group` +##### `group` Data type: `String[1]` @@ -508,7 +563,7 @@ Data type: `String[1]` Default value: `'www-data'` -##### `workers` +##### `workers` Data type: `Variant[Boolean,Integer]` @@ -516,7 +571,7 @@ Data type: `Variant[Boolean,Integer]` Default value: ``false`` -##### `access_log_format` +##### `access_log_format` Data type: `Variant[Boolean,String[1]]` @@ -524,7 +579,7 @@ Data type: `Variant[Boolean,String[1]]` Default value: ``false`` -##### `accesslog` +##### `accesslog` Data type: `Variant[Boolean,Stdlib::Absolutepath]` @@ -532,7 +587,7 @@ Data type: `Variant[Boolean,Stdlib::Absolutepath]` Default value: ``false`` -##### `errorlog` +##### `errorlog` Data type: `Variant[Boolean,Stdlib::Absolutepath]` @@ -540,7 +595,7 @@ Data type: `Variant[Boolean,Stdlib::Absolutepath]` Default value: ``false`` -##### `log_level` +##### `log_level` Data type: `Python::Loglevel` @@ -548,7 +603,7 @@ Data type: `Python::Loglevel` Default value: `'error'` -### `python::pip` +### `python::pip` Installs and manages packages from pip. @@ -594,13 +649,35 @@ python::pip { 'requests' : #### Parameters -The following parameters are available in the `python::pip` defined type. - -##### `name` +The following parameters are available in the `python::pip` defined type: + +* [`name`](#name) +* [`pkgname`](#pkgname) +* [`ensure`](#ensure) +* [`virtualenv`](#virtualenv) +* [`pip_provider`](#pip_provider) +* [`url`](#url) +* [`owner`](#owner) +* [`group`](#group) +* [`index`](#index) +* [`proxy`](#proxy) +* [`editable`](#editable) +* [`environment`](#environment) +* [`extras`](#extras) +* [`timeout`](#timeout) +* [`install_args`](#install_args) +* [`uninstall_args`](#uninstall_args) +* [`log_dir`](#log_dir) +* [`egg`](#egg) +* [`umask`](#umask) +* [`path`](#path) +* [`exec_provider`](#exec_provider) + +##### `name` must be unique -##### `pkgname` +##### `pkgname` Data type: `String[1]` @@ -608,7 +685,7 @@ the name of the package. Default value: `$name` -##### `ensure` +##### `ensure` Data type: `Variant[Enum[present, absent, latest], String[1]]` @@ -616,7 +693,7 @@ Require pip to be available. Default value: `present` -##### `virtualenv` +##### `virtualenv` Data type: `Variant[Enum['system'], Stdlib::Absolutepath]` @@ -624,7 +701,7 @@ virtualenv to run pip in. Default value: `'system'` -##### `pip_provider` +##### `pip_provider` Data type: `String[1]` @@ -632,7 +709,7 @@ version of pip you wish to use. Default value: `'pip'` -##### `url` +##### `url` Data type: `Variant[Boolean, String]` @@ -640,7 +717,7 @@ URL to install from. Default value: ``false`` -##### `owner` +##### `owner` Data type: `String[1]` @@ -648,7 +725,7 @@ The owner of the virtualenv being manipulated. Default value: `'root'` -##### `group` +##### `group` Data type: `Optional[String[1]]` @@ -656,7 +733,7 @@ The group of the virtualenv being manipulated. Default value: `getvar('python::params::group')` -##### `index` +##### `index` Data type: `Variant[Boolean,String[1]]` @@ -664,7 +741,7 @@ Base URL of Python package index. Default value: ``false`` -##### `proxy` +##### `proxy` Data type: `Optional[Stdlib::HTTPUrl]` @@ -672,7 +749,7 @@ Proxy server to use for outbound connections. Default value: ``undef`` -##### `editable` +##### `editable` Data type: `Boolean` @@ -680,7 +757,7 @@ If true the package is installed as an editable resource. Default value: ``false`` -##### `environment` +##### `environment` Data type: `Array` @@ -688,7 +765,7 @@ Additional environment variables required to install the packages. Default value: `[]` -##### `extras` +##### `extras` Data type: `Array` @@ -696,7 +773,7 @@ Extra features provided by the package which should be installed. Default value: `[]` -##### `timeout` +##### `timeout` Data type: `Numeric` @@ -704,7 +781,7 @@ The maximum time in seconds the "pip install" command should take. Default value: `1800` -##### `install_args` +##### `install_args` Data type: `String` @@ -712,7 +789,7 @@ Any additional installation arguments that will be supplied when running pip ins Default value: `''` -##### `uninstall_args` +##### `uninstall_args` Data type: `String` @@ -720,7 +797,7 @@ Any additional arguments that will be supplied when running pip uninstall. Default value: `''` -##### `log_dir` +##### `log_dir` Data type: `String[1]` @@ -728,7 +805,7 @@ Log directory Default value: `'/tmp'` -##### `egg` +##### `egg` Data type: `Any` @@ -736,7 +813,7 @@ The egg name to use Default value: ``false`` -##### `umask` +##### `umask` Data type: `Optional[Python::Umask]` @@ -744,7 +821,7 @@ Data type: `Optional[Python::Umask]` Default value: ``undef`` -##### `path` +##### `path` Data type: `Array[String]` @@ -752,7 +829,7 @@ Data type: `Array[String]` Default value: `['/usr/local/bin','/usr/bin','/bin', '/usr/sbin']` -##### `exec_provider` +##### `exec_provider` Data type: `String[1]` @@ -760,7 +837,7 @@ Data type: `String[1]` Default value: `'shell'` -### `python::pyvenv` +### `python::pyvenv` Create a Python3 virtualenv using pyvenv. @@ -781,9 +858,20 @@ python::pyvenv { '/var/www/project1' : #### Parameters -The following parameters are available in the `python::pyvenv` defined type. +The following parameters are available in the `python::pyvenv` defined type: -##### `ensure` +* [`ensure`](#ensure) +* [`version`](#version) +* [`systempkgs`](#systempkgs) +* [`venv_dir`](#venv_dir) +* [`owner`](#owner) +* [`group`](#group) +* [`mode`](#mode) +* [`path`](#path) +* [`environment`](#environment) +* [`pip_version`](#pip_version) + +##### `ensure` Data type: `Python::Package::Ensure` @@ -791,7 +879,7 @@ Data type: `Python::Package::Ensure` Default value: `present` -##### `version` +##### `version` Data type: `Python::Version` @@ -799,7 +887,7 @@ Python version to use. Default value: `'system'` -##### `systempkgs` +##### `systempkgs` Data type: `Boolean` @@ -807,7 +895,7 @@ Copy system site-packages into virtualenv Default value: ``false`` -##### `venv_dir` +##### `venv_dir` Data type: `Stdlib::Absolutepath` @@ -815,7 +903,7 @@ Directory to install virtualenv to Default value: `$name` -##### `owner` +##### `owner` Data type: `String[1]` @@ -823,7 +911,7 @@ The owner of the virtualenv being manipulated Default value: `'root'` -##### `group` +##### `group` Data type: `String[1]` @@ -831,7 +919,7 @@ The group relating to the virtualenv being manipulated Default value: `'root'` -##### `mode` +##### `mode` Data type: `Stdlib::Filemode` @@ -839,7 +927,7 @@ Optionally specify directory mode Default value: `'0755'` -##### `path` +##### `path` Data type: `Array[Stdlib::Absolutepath]` @@ -847,7 +935,7 @@ Specifies the PATH variable. Default value: `['/bin', '/usr/bin', '/usr/sbin', '/usr/local/bin',]` -##### `environment` +##### `environment` Data type: `Array` @@ -855,7 +943,15 @@ Optionally specify environment variables for pyvenv Default value: `[]` -### `python::requirements` +##### `pip_version` + +Data type: `Python::Venv::PipVersion` + + + +Default value: `'latest'` + +### `python::requirements` Installs and manages Python packages from requirements file. @@ -874,9 +970,25 @@ python::requirements { '/var/www/project1/requirements.txt' : #### Parameters -The following parameters are available in the `python::requirements` defined type. - -##### `requirements` +The following parameters are available in the `python::requirements` defined type: + +* [`requirements`](#requirements) +* [`virtualenv`](#virtualenv) +* [`pip_provider`](#pip_provider) +* [`owner`](#owner) +* [`group`](#group) +* [`proxy`](#proxy) +* [`src`](#src) +* [`environment`](#environment) +* [`forceupdate`](#forceupdate) +* [`cwd`](#cwd) +* [`extra_pip_args`](#extra_pip_args) +* [`manage_requirements`](#manage_requirements) +* [`fix_requirements_owner`](#fix_requirements_owner) +* [`log_dir`](#log_dir) +* [`timeout`](#timeout) + +##### `requirements` Data type: `Stdlib::Absolutepath` @@ -884,7 +996,7 @@ Path to the requirements file. Default value: `$name` -##### `virtualenv` +##### `virtualenv` Data type: `Variant[Enum['system'],Stdlib::Absolutepath]` @@ -892,7 +1004,7 @@ virtualenv to run pip in. Default value: `'system'` -##### `pip_provider` +##### `pip_provider` Data type: `Enum['pip', 'pip3']` @@ -900,7 +1012,7 @@ version of pip you wish to use. Default value: `'pip'` -##### `owner` +##### `owner` Data type: `String[1]` @@ -908,7 +1020,7 @@ The owner of the virtualenv being manipulated. Default value: `'root'` -##### `group` +##### `group` Data type: `String[1]` @@ -916,7 +1028,7 @@ The group relating to the virtualenv being manipulated. Default value: `'root'` -##### `proxy` +##### `proxy` Data type: `Optional[Stdlib::HTTPUrl]` @@ -924,7 +1036,7 @@ Proxy server to use for outbound connections. Default value: ``undef`` -##### `src` +##### `src` Data type: `Any` @@ -932,7 +1044,7 @@ Pip --src parameter to; if the requirements file contains --editable resources, Default value: ``false`` -##### `environment` +##### `environment` Data type: `Array` @@ -940,7 +1052,7 @@ Additional environment variables required to install the packages. Default value: `[]` -##### `forceupdate` +##### `forceupdate` Data type: `Boolean` @@ -948,7 +1060,7 @@ Run a pip install requirements even if we don't receive an event from the requir Default value: ``false`` -##### `cwd` +##### `cwd` Data type: `Optional[Stdlib::Absolutepath]` @@ -956,7 +1068,7 @@ The directory from which to run the "pip install" command. Default value: ``undef`` -##### `extra_pip_args` +##### `extra_pip_args` Data type: `String` @@ -964,7 +1076,7 @@ Extra arguments to pass to pip after the requirements file Default value: `''` -##### `manage_requirements` +##### `manage_requirements` Data type: `Boolean` @@ -972,7 +1084,7 @@ Create the requirements file if it doesn't exist. Default value: ``true`` -##### `fix_requirements_owner` +##### `fix_requirements_owner` Data type: `Boolean` @@ -980,7 +1092,7 @@ Change owner and group of requirements file. Default value: ``true`` -##### `log_dir` +##### `log_dir` Data type: `Stdlib::Absolutepath` @@ -988,7 +1100,7 @@ Log directory. Default value: `'/tmp'` -##### `timeout` +##### `timeout` Data type: `Integer` @@ -998,33 +1110,63 @@ Default value: `1800` ## Data types -### `Python::Loglevel` +### `Python::Loglevel` A version type to match all valid loglevels for python -Alias of `Enum['debug', 'info', 'warning', 'error', 'critical']` +Alias of + +```puppet +Enum['debug', 'info', 'warning', 'error', 'critical'] +``` -### `Python::Package::Ensure` +### `Python::Package::Ensure` A version type to match all valid package ensures for python -Alias of `Enum['absent', 'present', 'latest']` +Alias of -### `Python::Provider` +```puppet +Enum['absent', 'present', 'latest'] +``` + +### `Python::Provider` A version type to match all valid provider for python -Alias of `Enum['pip', 'scl', 'rhscl', 'anaconda', '']` +Alias of + +```puppet +Enum['pip', 'scl', 'rhscl', 'anaconda', ''] +``` -### `Python::Umask` +### `Python::Umask` A version type to match valid umask for python -Alias of `Pattern[/[0-7]{1,4}/]` +Alias of + +```puppet +Pattern[/[0-7]{1,4}/] +``` + +### `Python::Venv::PipVersion` -### `Python::Version` +A version type to ensure a specific Pip version in a virtual env. + +Alias of + +```puppet +Pattern[/^(<|>|<=|>=|==) [0-9]*(\.[0-9]+)*$/, /\Alatest\Z/] +``` + +### `Python::Version` A version type to match all valid versions for python -Alias of `Pattern[/\A(python)?[0-9](\.?[0-9])*/, /\Apypy\Z/, /\Asystem\Z/, /\Arh-python[0-9]{2}(?:-python)?\Z/]` +Alias of + +```puppet +Pattern[/\A(python)?[0-9](\.?[0-9])*/, /\Apypy\Z/, /\Asystem\Z/, /\Arh-python[0-9]{2}(?:-python)?\Z/] +``` diff --git a/metadata.json b/metadata.json index b86bb557..865dfbb4 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "puppet-python", - "version": "6.1.1-rc0", + "version": "6.2.0", "author": "Vox Pupuli", "summary": "Python Module", "license": "Apache-2.0",