Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppet: Split out certbot into its own module.
Alex Vandiver84658e747a80
diff --git a/puppet/zulip/manifests/certbot.pp b/puppet/zulip/manifests/certbot.ppnew file mode 100644index 00000000000..fbf97bb2a0c--- /dev/null+++ b/puppet/zulip/manifests/certbot.pp@@ -0,0 +1,12 @@+class zulip::certbot {+ package { 'certbot':+ ensure => installed,+ }+ file { ['/etc/letsencrypt/renewal-hooks', '/etc/letsencrypt/renewal-hooks/deploy']:+ ensure => directory,+ owner => 'root',+ group => 'root',+ mode => '0755',+ require => Package[certbot],+ }+}diff --git a/puppet/zulip/manifests/nginx.pp b/puppet/zulip/manifests/nginx.ppindex 5d3d2d062e1..f3de142c671 100644--- a/puppet/zulip/manifests/nginx.pp+++ b/puppet/zulip/manifests/nginx.pp@@ -1,4 +1,5 @@class zulip::nginx {+ include zulip::certbot$web_packages = [# Needed to run nginx with the modules we use$zulip::common::nginx,@@ -97,9 +98,6 @@ class zulip::nginx {mode => '0644',content => template('zulip/logrotate/nginx.template.erb'),}- package { 'certbot':- ensure => installed,- }file { ['/var/lib/zulip', '/var/lib/zulip/certbot-webroot']:ensure => directory,owner => 'zulip',diff --git a/puppet/zulip/manifests/profile/app_frontend.pp b/puppet/zulip/manifests/profile/app_frontend.ppindex 8839b054ea9..16a4a4912a0 100644--- a/puppet/zulip/manifests/profile/app_frontend.pp+++ b/puppet/zulip/manifests/profile/app_frontend.pp@@ -31,24 +31,16 @@ class zulip::profile::app_frontend {}# Reload nginx after deploying a new cert.- file { ['/etc/letsencrypt/renewal-hooks', '/etc/letsencrypt/renewal-hooks/deploy']:- ensure => directory,- owner => 'root',- group => 'root',- mode => '0755',- require => Package[certbot],- }file { '/etc/letsencrypt/renewal-hooks/deploy/001-nginx.sh':# This was renumberedensure => absent,}file { '/etc/letsencrypt/renewal-hooks/deploy/050-nginx.sh':- ensure => file,- owner => 'root',- group => 'root',- mode => '0755',- source => 'puppet:///modules/zulip/letsencrypt/050-nginx.sh',- require => Package[certbot],+ ensure => file,+ owner => 'root',+ group => 'root',+ mode => '0755',+ source => 'puppet:///modules/zulip/letsencrypt/050-nginx.sh',}# Restart the server regularly to avoid potential memory leak problems.