Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

kandra: Ensure that we have a snakeoil cert for nginx.

Alex Vandivere62398400c22
diff --git a/puppet/kandra/manifests/app_frontend.pp b/puppet/kandra/manifests/app_frontend.pp
index 0fb9d7b5f13..98bf95e309d 100644
--- a/puppet/kandra/manifests/app_frontend.pp
+++ b/puppet/kandra/manifests/app_frontend.pp
@@ -1,4 +1,5 @@
class kandra::app_frontend {
+ include zulip::snakeoil
include zulip::app_frontend_base
include zulip::profile::memcached
include zulip::profile::rabbitmq
diff --git a/puppet/kandra/manifests/profile/prod_app_frontend.pp b/puppet/kandra/manifests/profile/prod_app_frontend.pp
index 5405ae5f23f..5b913058149 100644
--- a/puppet/kandra/manifests/profile/prod_app_frontend.pp
+++ b/puppet/kandra/manifests/profile/prod_app_frontend.pp
@@ -17,7 +17,7 @@ class kandra::profile::prod_app_frontend inherits kandra::profile::base {
file { '/etc/nginx/sites-available/zulip':
ensure => file,
- require => Package['nginx-full'],
+ require => [Package['nginx-full'], Exec['generate-default-snakeoil']],
owner => 'root',
group => 'root',
mode => '0644',
diff --git a/puppet/kandra/manifests/profile/staging_app_frontend.pp b/puppet/kandra/manifests/profile/staging_app_frontend.pp
index 4ceebea7847..ca2cdd5a3b5 100644
--- a/puppet/kandra/manifests/profile/staging_app_frontend.pp
+++ b/puppet/kandra/manifests/profile/staging_app_frontend.pp
@@ -4,7 +4,7 @@ class kandra::profile::staging_app_frontend inherits kandra::profile::base {
file { '/etc/nginx/sites-available/zulip-staging':
ensure => file,
- require => Package['nginx-full'],
+ require => [Package['nginx-full'], Exec['generate-default-snakeoil']],
owner => 'root',
group => 'root',
mode => '0644',