mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	puppet: Add CentOS packages to static_asset_compiler.pp.
This commit is contained in:
		@@ -1,4 +1,7 @@
 | 
			
		||||
class zulip::static_asset_compiler {
 | 
			
		||||
  include zulip::common
 | 
			
		||||
  case $::osfamily {
 | 
			
		||||
    'debian': {
 | 
			
		||||
      if $zulip::base::release_name == 'trusty' {
 | 
			
		||||
        $closure_compiler_package = 'libclosure-compiler-java'
 | 
			
		||||
      } else {
 | 
			
		||||
@@ -11,6 +14,18 @@ class zulip::static_asset_compiler {
 | 
			
		||||
        # Used by makemessages i18n
 | 
			
		||||
        'gettext',
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
    'redhat': {
 | 
			
		||||
      $static_asset_compiler_packages = [
 | 
			
		||||
        # TODO CentOS doesn't have closure-compiler
 | 
			
		||||
        'yuicompressor',
 | 
			
		||||
        'gettext',
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
    default: {
 | 
			
		||||
      fail('osfamily not supported')
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  zulip::safepackage { $static_asset_compiler_packages: ensure => 'installed' }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user