Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2021.7.x
- Puppet >= 7.24 < 9.0.0
- ,
Start using this module
Add this module to your Puppetfile:
mod 'sbitio-pipx', '1.0.1'
Learn more about managing modules with a PuppetfileDocumentation
pipx
Table of Contents
- Description
- Setup - The basics of getting started with pipx
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Description
This module provides a puppet solution to overcome the implications of PEP 668 – Marking Python base environments as “externally managed” by leveraging pipx.
For such a thing, it provides a pipx
package provider enabled to (optionally)
install python dependencies system-wide. The provider code is based
on Puppet's pip provider.
Due to pipx
doesn't provide an option to install packages system-wide (ref),
this module also provides the pipx-global
wrapper script installed to /usr/local/bin
.
You can use this wrapper to directly manage pip packages system-wide.
Usage
The most basic thing to do is to just include the main class and use the package provider:
include python_pipx
package { certbot:
provider: pipx
}
It will perform:
- Install
pipx
package via OS default provider - Install
/usr/local/bin/pipx-global
script - Install
certbot
viapipx
to/opt/pipx
and binaries symlinked from/usr/local/bin
You can tweak this default behaviour with the main class parameters. See Code documentation for reference.
Limitations
This module requires Puppet 4.x or above, and is compatible with the following OSes/versions:
- Debian 10, 11, 12
- Ubuntu 18.04, 20.04, 22.04
It may work for other versions and OSes. Please report us if you are using it on another envinment.
Development
Development happens on GitHub.
Please log issues for any bug report, feature or support request.
Pull requests are welcome.
Disclaimer
A note on quality score
This module has a poor quality score. We're not fixing it because it comes from Puppet's pip package provider code it is based. It makes no sense to us to address lint warnings and diverge from the base code.
License
MIT License, see LICENSE file
Contact
Use contact form on http://sbit.io
Changelog
1.0.0 (2023-10-16)
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 4.14.0 < 10.0.0)
MIT License Copyright (c) 2023 sbit.io Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.