A collection of task oriented solutions in Puppet


Install Python PyPi packages


You want to install a Python package from PyPi


class pypackage {

  package { 'pySMART':
    ensure   => 'installed',
    provider => 'pip',



Installing a Python package from PyPi is very similar to installing a package using your systems package manager. However in this case you need to explicitly state that the pip provider will handle the install.

Much like a package installed via the default system provider, Puppet will not track new versions of the package unless ensure => 'latest' is also specified.

See also