puppet: Create static_asset_compiler manifest.

This commit is contained in:
Tim Abbott 2016-07-19 15:35:03 -07:00
parent 601ab24d2a
commit d0dcc8bf26
2 changed files with 20 additions and 4 deletions

View File

@ -0,0 +1,18 @@
class zulip::static_asset_compiler {
$static_asset_compiler_packages = [
# Needed for minify-js
"closure-compiler",
"nodejs",
"nodejs-legacy",
"npm",
"yui-compressor",
# Used by makemessages i18n
"gettext",
]
define safepackage ( $ensure = present ) {
if !defined(Package[$title]) {
package { $title: ensure => $ensure }
}
}
safepackage { $static_asset_compiler_packages: ensure => "installed" }
}

View File

@ -3,10 +3,8 @@ class zulip_internal::app_frontend {
include zulip::memcached include zulip::memcached
include zulip::rabbit include zulip::rabbit
include zulip::postfix_localmail include zulip::postfix_localmail
$app_packages = [# Needed for minify-js include zulip::static_asset_compiler
"yui-compressor", $app_packages = [# Needed for the ssh tunnel to the redis server
"nodejs",
# Needed for the ssh tunnel to the redis server
"autossh", "autossh",
] ]
package { $app_packages: ensure => "installed" } package { $app_packages: ensure => "installed" }