mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	puppet: Detect CentOS for release_name.
This commit is contained in:
		@@ -20,6 +20,8 @@ class zulip::base {
 | 
			
		||||
  ]
 | 
			
		||||
  package { $base_packages: ensure => 'installed' }
 | 
			
		||||
 | 
			
		||||
  case $::osfamily {
 | 
			
		||||
    'debian': {
 | 
			
		||||
      $release_name = $::operatingsystemrelease ? {
 | 
			
		||||
        # Debian releases
 | 
			
		||||
        /^7.[0-9]*/ => 'wheezy',
 | 
			
		||||
@@ -33,6 +35,11 @@ class zulip::base {
 | 
			
		||||
        '16.04' => 'xenial',
 | 
			
		||||
        '18.04' => 'bionic',
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    'redhat': {
 | 
			
		||||
      $release_name = "${::operatingsystem}${::operatingsystemmajrelease}"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  $postgres_version = $release_name ? {
 | 
			
		||||
    'wheezy'  => '9.1',
 | 
			
		||||
@@ -44,6 +51,7 @@ class zulip::base {
 | 
			
		||||
    'wily'    => '9.4',
 | 
			
		||||
    'xenial'  => '9.5',
 | 
			
		||||
    'bionic'  => '10',
 | 
			
		||||
    'CentOS7' => '10',
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  $normal_queues = [
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user