mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 05:23:35 +00:00 
			
		
		
		
	Previously, even though the Zulip digest emails were documented in the settings, the cron job to run the script that actually sends the daily digest emails wasn't included in the non-zulip.com part of the Zulip production distribution. The overall consequence is that digest emails didn't work for non-zulip.com users. This fixes that issue by moving that cron job into the zulip manifests. [commit message details expanded by tabbott]
		
			
				
	
	
		
			101 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			101 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
class zulip_internal::prod_app_frontend {
 | 
						|
  include zulip_internal::base
 | 
						|
  include zulip_internal::app_frontend
 | 
						|
 | 
						|
  file { "/etc/nginx/sites-available/zulip":
 | 
						|
    require => Package["nginx-full"],
 | 
						|
    ensure => file,
 | 
						|
    owner  => "root",
 | 
						|
    group  => "root",
 | 
						|
    mode => 644,
 | 
						|
    source => "puppet:///modules/zulip_internal/nginx/sites-available/zulip",
 | 
						|
    notify => Service["nginx"],
 | 
						|
  }
 | 
						|
  file { '/etc/nginx/sites-enabled/zulip':
 | 
						|
    require => Package["nginx-full"],
 | 
						|
    ensure => 'link',
 | 
						|
    target => '/etc/nginx/sites-available/zulip',
 | 
						|
    notify => Service["nginx"],
 | 
						|
  }
 | 
						|
 | 
						|
  file { [ "/srv/www/", "/srv/www/dist/", "/srv/www/dist/api",
 | 
						|
           "/srv/www/dist/apps/", "/srv/www/dist/apps/mac/",
 | 
						|
           "/srv/www/dist/apps/win/", "/srv/www/enterprise/",
 | 
						|
           "/srv/www/enterprise/download/", "/srv/www/dist/apps/sso/",
 | 
						|
           "/srv/www/dist/apps/sso/mac/", "/srv/www/dist/apps/sso/win/" ]:
 | 
						|
    ensure => "directory",
 | 
						|
    owner      => "zulip",
 | 
						|
    group      => "zulip",
 | 
						|
    mode       => 644,
 | 
						|
  }
 | 
						|
 | 
						|
  file { "/srv/www/dist/apps/mac/sparkle.xml":
 | 
						|
    ensure => file,
 | 
						|
    require    => File['/srv/www/dist/apps/mac/'],
 | 
						|
    owner  => "zulip",
 | 
						|
    group  => "zulip",
 | 
						|
    mode => 644,
 | 
						|
    source => "puppet:///modules/zulip_internal/sparkle/mac/sparkle.xml",
 | 
						|
  }
 | 
						|
  file { "/srv/www/dist/apps/mac/sparkle-changelog.html":
 | 
						|
    ensure => file,
 | 
						|
    require    => File['/srv/www/dist/apps/mac/'],
 | 
						|
    owner  => "zulip",
 | 
						|
    group  => "zulip",
 | 
						|
    mode => 644,
 | 
						|
    source => "puppet:///modules/zulip_internal/sparkle/mac/sparkle-changelog.html",
 | 
						|
  }
 | 
						|
  file { "/srv/www/dist/apps/win/sparkle.xml":
 | 
						|
    ensure => file,
 | 
						|
    require    => File['/srv/www/dist/apps/win/'],
 | 
						|
    owner  => "zulip",
 | 
						|
    group  => "zulip",
 | 
						|
    mode => 644,
 | 
						|
    source => "puppet:///modules/zulip_internal/sparkle/win/sparkle.xml",
 | 
						|
  }
 | 
						|
  file { "/srv/www/dist/apps/win/sparkle-changelog.html":
 | 
						|
    ensure => file,
 | 
						|
    require    => File['/srv/www/dist/apps/win/'],
 | 
						|
    owner  => "zulip",
 | 
						|
    group  => "zulip",
 | 
						|
    mode => 644,
 | 
						|
    source => "puppet:///modules/zulip_internal/sparkle/win/sparkle-changelog.html",
 | 
						|
  }
 | 
						|
 | 
						|
  file { "/srv/www/dist/apps/sso/mac/sparkle.xml":
 | 
						|
    ensure => file,
 | 
						|
    require    => File['/srv/www/dist/apps/sso/mac/'],
 | 
						|
    owner  => "zulip",
 | 
						|
    group  => "zulip",
 | 
						|
    mode => 644,
 | 
						|
    source => "puppet:///modules/zulip_internal/sparkle/sso/mac/sparkle.xml",
 | 
						|
  }
 | 
						|
  file { "/srv/www/dist/apps/sso/mac/sparkle-changelog.html":
 | 
						|
    ensure => file,
 | 
						|
    require    => File['/srv/www/dist/apps/sso/mac/'],
 | 
						|
    owner  => "zulip",
 | 
						|
    group  => "zulip",
 | 
						|
    mode => 644,
 | 
						|
    source => "puppet:///modules/zulip_internal/sparkle/sso/mac/sparkle-changelog.html",
 | 
						|
  }
 | 
						|
  file { "/srv/www/dist/apps/sso/win/sparkle.xml":
 | 
						|
    ensure => file,
 | 
						|
    require    => File['/srv/www/dist/apps/sso/win/'],
 | 
						|
    owner  => "zulip",
 | 
						|
    group  => "zulip",
 | 
						|
    mode => 644,
 | 
						|
    source => "puppet:///modules/zulip_internal/sparkle/sso/win/sparkle.xml",
 | 
						|
  }
 | 
						|
  file { "/srv/www/dist/apps/sso/win/sparkle-changelog.html":
 | 
						|
    ensure => file,
 | 
						|
    require    => File['/srv/www/dist/apps/sso/win/'],
 | 
						|
    owner  => "zulip",
 | 
						|
    group  => "zulip",
 | 
						|
    mode => 644,
 | 
						|
    source => "puppet:///modules/zulip_internal/sparkle/sso/win/sparkle-changelog.html",
 | 
						|
  }
 | 
						|
 | 
						|
  # Prod has our Apple Push Notifications Service private key at
 | 
						|
  # /etc/ssl/django-private/apns-dist.pem
 | 
						|
}
 |