summaryrefslogtreecommitdiff
path: root/puppet/modules/site_static/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-06-17 09:23:47 +0200
committervarac <varacanero@zeromail.org>2016-06-17 09:23:47 +0200
commitc97e6bc17aceee86b561a15c6055c582e6401d8c (patch)
tree3f9557b05e915023b22d8205fa77a09b105bc8d2 /puppet/modules/site_static/manifests
parentcb96aa6eaf9dfd0c018d9f0397134c80e6c57b3c (diff)
parent7becc465d726a1dbc1733db5c02c343cdac53d15 (diff)
Merge tag '0.8.1'
Tagging 0.8.1
Diffstat (limited to 'puppet/modules/site_static/manifests')
-rw-r--r--puppet/modules/site_static/manifests/location.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/puppet/modules/site_static/manifests/location.pp b/puppet/modules/site_static/manifests/location.pp
index d116de2f..ab2b7494 100644
--- a/puppet/modules/site_static/manifests/location.pp
+++ b/puppet/modules/site_static/manifests/location.pp
@@ -23,6 +23,19 @@ define site_static::location($path, $format, $source) {
}
}
+ if ($format == 'rack') {
+ # Run bundler if there is a Gemfile
+ exec { 'bundler_update':
+ cwd => $file_path,
+ command => '/bin/bash -c "/usr/bin/bundle check --path vendor/bundle || /usr/bin/bundle install --path vendor/bundle --without test development debug"',
+ unless => '/usr/bin/bundle check --path vendor/bundle',
+ onlyif => 'test -f Gemfile',
+ user => 'www-data',
+ timeout => 600,
+ require => [Class['bundler::install'], Class['site_config::ruby::dev']];
+ }
+ }
+
vcsrepo { $file_path:
ensure => present,
force => true,