mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	puppet: Rename local_server => enterprise.
(imported from commit 5faa269df5937f6db99098e44aaea7d0a4f2c14a)
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
class zulip::local_server {
 | 
			
		||||
class zulip::enterprise {
 | 
			
		||||
  include zulip::base
 | 
			
		||||
  include zulip::app_frontend
 | 
			
		||||
  include zulip::postgres_appdb
 | 
			
		||||
@@ -20,7 +20,7 @@ apt-get install -y puppet git
 | 
			
		||||
cp -a /root/zulip/puppet/zulip/files/puppet.conf /etc/puppet/
 | 
			
		||||
 | 
			
		||||
mkdir -p /etc/zulip
 | 
			
		||||
echo -e "[machine]\npuppet_classes = zulip::local_server\ndeploy_type = local" > /etc/zulip/zulip.conf
 | 
			
		||||
echo -e "[machine]\npuppet_classes = zulip::enterprise\ndeploy_type = enterprise" > /etc/zulip/zulip.conf
 | 
			
		||||
/root/zulip/scripts/zulip-puppet-apply -f
 | 
			
		||||
 | 
			
		||||
# These server restarting bits should be moveable into puppet-land, ideally
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ DEPLOYED = config_file.has_option('machine', 'deploy_type')
 | 
			
		||||
STAGING_DEPLOYED = DEPLOYED and config_file.get('machine', 'deploy_type') == 'staging'
 | 
			
		||||
TESTING_DEPLOYED = DEPLOYED and config_file.get('machine', 'deploy_type') == 'test'
 | 
			
		||||
 | 
			
		||||
ENTERPRISE = DEPLOYED and config_file.get('machine', 'deploy_type') == 'local'
 | 
			
		||||
ENTERPRISE = DEPLOYED and config_file.get('machine', 'deploy_type') == 'enterprise'
 | 
			
		||||
 | 
			
		||||
SESSION_SERIALIZER = "django.contrib.sessions.serializers.PickleSerializer"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,7 @@ DEPLOYED = config_file.has_option('machine', 'deploy_type')
 | 
			
		||||
STAGING_DEPLOYED = DEPLOYED and config_file.get('machine', 'deploy_type') == 'staging'
 | 
			
		||||
TESTING_DEPLOYED = DEPLOYED and config_file.get('machine', 'deploy_type') == 'test'
 | 
			
		||||
 | 
			
		||||
ENTERPRISE = DEPLOYED and config_file.get('machine', 'deploy_type') == 'local'
 | 
			
		||||
ENTERPRISE = DEPLOYED and config_file.get('machine', 'deploy_type') == 'enterprise'
 | 
			
		||||
 | 
			
		||||
# Import variables like secrets from the local_settings file
 | 
			
		||||
# Import local_settings after determining the deployment/machine type
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user