class zulip_ops::prod_app_frontend { include zulip_ops::base include zulip_ops::app_frontend include zulip::analytics file { "/etc/nginx/sites-available/zulip": require => Package["nginx-full"], ensure => file, owner => "root", group => "root", mode => 644, source => "puppet:///modules/zulip_ops/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_ops/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_ops/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_ops/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_ops/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_ops/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_ops/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_ops/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_ops/sparkle/sso/win/sparkle-changelog.html", } file { "/usr/lib/nagios/plugins/zulip_zephyr_mirror": require => Package[nagios-plugins-basic], recurse => true, purge => true, owner => "root", group => "root", mode => 755, source => "puppet:///modules/zulip_ops/nagios_plugins/zulip_zephyr_mirror", } # Prod has our Apple Push Notifications Service private key at # /etc/ssl/django-private/apns-dist.pem }