2013-11-05 21:21:00 +01:00
|
|
|
class zulip_internal::prod_app_frontend {
|
|
|
|
include zulip_internal::base
|
2013-11-10 15:58:10 +01:00
|
|
|
include zulip_internal::app_frontend
|
2013-05-29 00:22:56 +02:00
|
|
|
|
2013-09-25 20:34:37 +02:00
|
|
|
file { "/etc/nginx/sites-available/zulip":
|
2013-11-15 16:20:30 +01:00
|
|
|
require => Package["nginx-full"],
|
2013-05-29 00:22:56 +02:00
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/nginx/sites-available/zulip",
|
2013-12-12 23:58:05 +01:00
|
|
|
notify => Service["nginx"],
|
2013-05-29 00:22:56 +02:00
|
|
|
}
|
2013-09-25 20:34:37 +02:00
|
|
|
file { '/etc/nginx/sites-enabled/zulip':
|
2013-12-12 23:58:05 +01:00
|
|
|
require => Package["nginx-full"],
|
2013-05-29 00:22:56 +02:00
|
|
|
ensure => 'link',
|
2013-09-25 20:34:37 +02:00
|
|
|
target => '/etc/nginx/sites-available/zulip',
|
2013-12-12 23:58:05 +01:00
|
|
|
notify => Service["nginx"],
|
2013-05-29 00:22:56 +02:00
|
|
|
}
|
|
|
|
|
2013-06-18 18:13:15 +02:00
|
|
|
file { [ "/srv/www/", "/srv/www/dist/", "/srv/www/dist/api",
|
2013-06-28 20:40:05 +02:00
|
|
|
"/srv/www/dist/apps/", "/srv/www/dist/apps/mac/",
|
2013-11-13 21:25:56 +01:00
|
|
|
"/srv/www/dist/apps/win/", "/srv/www/enterprise/",
|
2013-11-21 01:12:53 +01:00
|
|
|
"/srv/www/enterprise/download/", "/srv/www/dist/apps/sso/",
|
2013-11-21 14:09:46 +01:00
|
|
|
"/srv/www/dist/apps/sso/mac/", "/srv/www/dist/apps/sso/win/" ]:
|
2013-06-18 18:13:15 +02:00
|
|
|
ensure => "directory",
|
2013-10-04 20:23:48 +02:00
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
2013-06-18 18:13:15 +02:00
|
|
|
mode => 644,
|
|
|
|
}
|
2013-05-29 00:22:56 +02:00
|
|
|
|
2013-06-18 18:13:15 +02:00
|
|
|
file { "/srv/www/dist/apps/mac/sparkle.xml":
|
|
|
|
ensure => file,
|
|
|
|
require => File['/srv/www/dist/apps/mac/'],
|
2013-10-04 20:23:48 +02:00
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
2013-06-18 18:13:15 +02:00
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/sparkle/mac/sparkle.xml",
|
2013-06-18 18:13:15 +02:00
|
|
|
}
|
|
|
|
file { "/srv/www/dist/apps/mac/sparkle-changelog.html":
|
|
|
|
ensure => file,
|
|
|
|
require => File['/srv/www/dist/apps/mac/'],
|
2013-10-04 20:23:48 +02:00
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
2013-06-18 18:13:15 +02:00
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/sparkle/mac/sparkle-changelog.html",
|
2013-06-28 20:40:05 +02:00
|
|
|
}
|
|
|
|
file { "/srv/www/dist/apps/win/sparkle.xml":
|
|
|
|
ensure => file,
|
|
|
|
require => File['/srv/www/dist/apps/win/'],
|
2013-10-04 20:23:48 +02:00
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
2013-06-28 20:40:05 +02:00
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/sparkle/win/sparkle.xml",
|
2013-06-28 20:40:05 +02:00
|
|
|
}
|
|
|
|
file { "/srv/www/dist/apps/win/sparkle-changelog.html":
|
|
|
|
ensure => file,
|
|
|
|
require => File['/srv/www/dist/apps/win/'],
|
2013-10-04 20:23:48 +02:00
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
2013-06-28 20:40:05 +02:00
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/sparkle/win/sparkle-changelog.html",
|
2013-06-18 18:13:15 +02:00
|
|
|
}
|
2013-11-14 15:59:50 +01:00
|
|
|
|
|
|
|
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",
|
|
|
|
}
|
2014-02-03 21:22:47 +01:00
|
|
|
|
2013-10-23 22:32:32 +02:00
|
|
|
# Prod has our Apple Push Notifications Service private key at
|
|
|
|
# /etc/ssl/django-private/apns-dist.pem
|
2013-05-29 00:22:56 +02:00
|
|
|
}
|