Add pip as requirement

We actually need to make sure pip is installed before we try using pip
to install ptgbot.

Change-Id: If86758e9b8d20a9d7c1d8de851206ad143f476f2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-12-11 19:00:21 -05:00
parent a375ebe749
commit 85373c31d5
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ class ptgbot(
$pads = 'https://wiki.openstack.org/wiki/PTG/Queens/Etherpads',
$sheet = 'Queens-PTG-Discussion-Rooms',
) {
include ::pip
user { 'ptgbot':
ensure => present,
@ -34,6 +35,7 @@ class ptgbot(
command => 'pip3 install /opt/ptgbot',
path => '/usr/local/bin:/usr/bin:/bin/',
refreshonly => true,
require => Class['pip'],
subscribe => Vcsrepo['/opt/ptgbot'],
}