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 { 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 = [ $static_asset_compiler_packages = [
# Needed for minify-js # Needed for minify-js
"closure-compiler", $closure_compiler_package,
"nodejs", "nodejs",
"nodejs-legacy", "nodejs-legacy",
"npm", "npm",
@ -9,6 +14,7 @@ class zulip::static_asset_compiler {
# Used by makemessages i18n # Used by makemessages i18n
"gettext", "gettext",
] ]
define safepackage ( $ensure = present ) { define safepackage ( $ensure = present ) {
if !defined(Package[$title]) { if !defined(Package[$title]) {
package { $title: ensure => $ensure } package { $title: ensure => $ensure }