static_asset_compiler: Use correct package name on trusty.

This commit is contained in:
Tim Abbott 2016-08-22 23:45:22 -07:00
parent 97b622dffa
commit 1c40df9363
1 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,12 @@
class zulip::static_asset_compiler {
if $zulip::base::release_name == "trusty" {
$closure_compiler_package = "libclosure-compiler-java"
} elsif $zulip::base::release_name == "xenial" {
$closure_compiler_package = "closure-compiler"
}
$static_asset_compiler_packages = [
# Needed for minify-js
"closure-compiler",
$closure_compiler_package,
"nodejs",
"nodejs-legacy",
"npm",
@ -9,6 +14,7 @@ class zulip::static_asset_compiler {
# Used by makemessages i18n
"gettext",
]
define safepackage ( $ensure = present ) {
if !defined(Package[$title]) {
package { $title: ensure => $ensure }