Fix exec idempotency
The install-reviewday-dependencies exec doesn't need to be executed on every puppet run, only when the source repo is updated, so add a refreshonly => true to ensure it only reacts to changes in the source repository. Change-Id: Id3a747e49416398e3fdde9aeb843370890dbe572
This commit is contained in:
parent
cb806fc80b
commit
3d9839bfa4
@ -83,10 +83,11 @@ define reviewday::site(
|
||||
}
|
||||
|
||||
exec { 'install-reviewday-dependencies':
|
||||
command => 'pip install -r /var/lib/reviewday/reviewday/requirements.txt',
|
||||
path => '/usr/local/bin/:/bin/',
|
||||
subscribe => Vcsrepo['/var/lib/reviewday/reviewday'],
|
||||
require => Class['pip'],
|
||||
command => 'pip install -r /var/lib/reviewday/reviewday/requirements.txt',
|
||||
path => '/usr/local/bin/:/bin/',
|
||||
subscribe => Vcsrepo['/var/lib/reviewday/reviewday'],
|
||||
refreshonly => true,
|
||||
require => Class['pip'],
|
||||
}
|
||||
|
||||
file { $httproot:
|
||||
|
Loading…
x
Reference in New Issue
Block a user