Minify jquery visibility
The upstream git repo removed the minified version of the js lib, so do it ourselves on update. Change-Id: I7ff4a19387483332216cb91960b31fd9bb420e25
This commit is contained in:
parent
40a4ec0a16
commit
088f735202
@ -213,6 +213,10 @@ class openstack_project::static (
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
package { 'yui-compressor':
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
file { '/srv/static/status/index.html':
|
||||
ensure => present,
|
||||
source => 'puppet:///modules/openstack_project/status/index.html',
|
||||
@ -245,11 +249,13 @@ class openstack_project::static (
|
||||
source => 'https://github.com/mathiasbynens/jquery-visibility.git',
|
||||
}
|
||||
|
||||
file { '/srv/static/status/jquery-visibility.min.js':
|
||||
ensure => link,
|
||||
target => '/opt/jquery-visibility/jquery-visibility.min.js',
|
||||
require => [File['/srv/static/status'],
|
||||
Vcsrepo['/opt/jquery-visibility']],
|
||||
exec { 'install_jquery-visibility' :
|
||||
command => 'yui-compressor -o /srv/static/status/jquery-visibility.min.js /opt/jquery-visibility/jquery-visibility.js',
|
||||
path => '/bin:/usr/bin',
|
||||
refreshonly => true,
|
||||
subscribe => Vcsrepo['/opt/jquery-visibility'],
|
||||
require => [File['/srv/static/status'],
|
||||
Vcsrepo['/opt/jquery-visibility']],
|
||||
}
|
||||
|
||||
vcsrepo { '/opt/jquery-graphite':
|
||||
|
Loading…
Reference in New Issue
Block a user