Install bandersnatch under python3

If the bandersnatch source is set to pip3 then install bandersnatch from
pip under python3. This will allow us to install current bandersnatch and
use newer features like package blacklisting.

Change-Id: I97d8e0ef5a1fb75c513b7f87d6f015f57cd42df6
This commit is contained in:
Clark Boylan 2018-04-16 11:28:05 -07:00
parent d364bf6738
commit 546a73ba0c
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,11 @@ class bandersnatch (
ensure => '1.11',
provider => openstack_pip,
}
} elsif ($bandersnatch_source == 'pip3') {
package { 'bandersnatch':
ensure => '2.2.0',
provider => pip3,
}
} else {
vcsrepo { '/opt/bandersnatch':
ensure => latest,