Puppet Class: virtualenv

Defined in:
puppet/modules/virtualenv/manifests/init.pp

Overview

Class virtualenv

Helper class to install python packages via virtualenv. Require this class, then use virtualenv::environment.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'puppet/modules/virtualenv/manifests/init.pp', line 5

class virtualenv {
    package { 'virtualenv':
        ensure   => present,
        provider => pip,
    }

    # https://people.debian.org/~paravoid/python-all/
    apt::repository { 'wikimedia-pyall':
        uri        => 'https://apt.wikimedia.org/wikimedia',
        dist       => "${::lsbdistcodename}-wikimedia",
        components => 'component/pyall',
        keyfile    => 'puppet:///modules/apt/wikimedia-pubkey.asc',
    }
}