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,
|
ensure => present,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package { 'yui-compressor':
|
||||||
|
ensure => present,
|
||||||
|
}
|
||||||
|
|
||||||
file { '/srv/static/status/index.html':
|
file { '/srv/static/status/index.html':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
source => 'puppet:///modules/openstack_project/status/index.html',
|
source => 'puppet:///modules/openstack_project/status/index.html',
|
||||||
@ -245,11 +249,13 @@ class openstack_project::static (
|
|||||||
source => 'https://github.com/mathiasbynens/jquery-visibility.git',
|
source => 'https://github.com/mathiasbynens/jquery-visibility.git',
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/srv/static/status/jquery-visibility.min.js':
|
exec { 'install_jquery-visibility' :
|
||||||
ensure => link,
|
command => 'yui-compressor -o /srv/static/status/jquery-visibility.min.js /opt/jquery-visibility/jquery-visibility.js',
|
||||||
target => '/opt/jquery-visibility/jquery-visibility.min.js',
|
path => '/bin:/usr/bin',
|
||||||
require => [File['/srv/static/status'],
|
refreshonly => true,
|
||||||
Vcsrepo['/opt/jquery-visibility']],
|
subscribe => Vcsrepo['/opt/jquery-visibility'],
|
||||||
|
require => [File['/srv/static/status'],
|
||||||
|
Vcsrepo['/opt/jquery-visibility']],
|
||||||
}
|
}
|
||||||
|
|
||||||
vcsrepo { '/opt/jquery-graphite':
|
vcsrepo { '/opt/jquery-graphite':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user