Browse Source

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
master
Colleen Murphy 10 months ago
parent
commit
3d9839bfa4
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      manifests/site.pp

+ 5
- 4
manifests/site.pp View File

@@ -83,10 +83,11 @@ define reviewday::site(
83 83
   }
84 84
 
85 85
   exec { 'install-reviewday-dependencies':
86
-    command   => 'pip install -r /var/lib/reviewday/reviewday/requirements.txt',
87
-    path      => '/usr/local/bin/:/bin/',
88
-    subscribe => Vcsrepo['/var/lib/reviewday/reviewday'],
89
-    require   => Class['pip'],
86
+    command     => 'pip install -r /var/lib/reviewday/reviewday/requirements.txt',
87
+    path        => '/usr/local/bin/:/bin/',
88
+    subscribe   => Vcsrepo['/var/lib/reviewday/reviewday'],
89
+    refreshonly => true,
90
+    require     => Class['pip'],
90 91
   }
91 92
 
92 93
   file { $httproot:

Loading…
Cancel
Save