Merge "Make storyboard idempotent"
This commit is contained in:
commit
b6e774be83
@ -166,11 +166,12 @@ class storyboard (
|
||||
group => 'storyboard',
|
||||
}
|
||||
|
||||
# Using -z here to only download when the tarball has changed.
|
||||
# Checking last modified time versus mtime on the file
|
||||
exec { 'get-webclient':
|
||||
command => "curl ${storyboard_webclient_url} -z ./${tarball} -o ${tarball}",
|
||||
path => '/bin:/usr/bin',
|
||||
cwd => '/var/lib/storyboard',
|
||||
onlyif => "curl -I ${storyboard_webclient_url} -z ./${tarball} | grep '200 OK'",
|
||||
require => [
|
||||
File['/var/lib/storyboard'],
|
||||
Package['curl'],
|
||||
@ -181,7 +182,8 @@ class storyboard (
|
||||
command => "tar -xzf ${tarball}",
|
||||
path => '/bin:/usr/bin',
|
||||
cwd => '/var/lib/storyboard',
|
||||
require => Exec['get-webclient'],
|
||||
refreshonly => true,
|
||||
subscribe => Exec['get-webclient'],
|
||||
}
|
||||
|
||||
file { '/var/lib/storyboard/www':
|
||||
|
Loading…
Reference in New Issue
Block a user