Browse Source

Merge "Fix exec idempotency"

changes/98/646998/1
Zuul 11 months ago
parent
commit
f639f9fe4a
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