mirror of https://github.com/zulip/zulip.git
puppet: Rename local_server => enterprise.
(imported from commit 5faa269df5937f6db99098e44aaea7d0a4f2c14a)
This commit is contained in:
parent
21f1058fd2
commit
966fde261a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue