Fix path for reviewday dependencies

Currently puppet is failing because it cannot find pip.
That is because the exec path is set to reviewday directory.
Add /usr/local/bin and /bin as valid directories in the path
as well.

Change-Id: I3dc47004f1ace03ffa78fabdc13158dbcc16bb28
This commit is contained in:
Yolanda Robla 2016-04-13 12:26:05 +02:00
parent dee4cb5373
commit 8eb5a620b8
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ define reviewday::site(
}
exec { 'install-reviewday-dependencies':
command => 'pip install -r requirements.txt',
path => '/var/lib/reviewday/reviewday',
command => 'pip install -r /var/lib/reviewday/reviewday/requirements.txt',
path => '/usr/local/bin/:/bin/',
subscribe => Vcsrepo['/var/lib/reviewday/reviewday'],
require => Class['pip'],
}