mirror of https://github.com/zulip/zulip.git
puppet: Create static_asset_compiler manifest.
This commit is contained in:
parent
601ab24d2a
commit
d0dcc8bf26
|
@ -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" }
|
||||||
|
}
|
|
@ -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" }
|
||||||
|
|
Loading…
Reference in New Issue