zulip/puppet/zulip-internal/manifests/prod_app_frontend.pp

62 lines
1.9 KiB
ObjectPascal
Raw Normal View History

class zulip-internal::prod_app_frontend {
include zulip-internal::base
include zulip::app_frontend
file { "/etc/nginx/sites-available/zulip":
require => Package[nginx],
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/zulip-internal/nginx/sites-available/zulip",
}
file { '/etc/nginx/sites-enabled/zulip':
ensure => 'link',
target => '/etc/nginx/sites-available/zulip',
}
file { [ "/srv/www/", "/srv/www/dist/", "/srv/www/dist/api",
"/srv/www/dist/apps/", "/srv/www/dist/apps/mac/",
"/srv/www/dist/apps/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",
}
# Prod has our Apple Push Notifications Service private key at
# /etc/ssl/django-private/apns-dist.pem
}