mirror of https://github.com/zulip/zulip.git
upgrade: Adjust puppet class names even with --skip-puppet.
The class names need to be renamed even if we are not about to run puppet ourselves; otherwise, deployments which rely on running puppet themselves will still have the wrong class names.
This commit is contained in:
parent
ac6a40e262
commit
2332113c97
|
@ -256,7 +256,6 @@ if (not args.skip_puppet or migrations_needed) and IS_SERVER_UP:
|
|||
# state.
|
||||
shutdown_server()
|
||||
|
||||
if not args.skip_puppet:
|
||||
# Adjust Puppet class names for the rename after 3.x
|
||||
class_renames = {
|
||||
'zulip::app_frontend': 'zulip::profile::app_frontend',
|
||||
|
@ -274,6 +273,8 @@ if not args.skip_puppet:
|
|||
subprocess.check_call(["crudini", "--set", "/etc/zulip/zulip.conf",
|
||||
"machine", "puppet_classes", ", ".join(new_classes)])
|
||||
|
||||
|
||||
if not args.skip_puppet:
|
||||
logging.info("Applying Puppet changes...")
|
||||
subprocess.check_call(["./scripts/zulip-puppet-apply", "--force"])
|
||||
subprocess.check_call(["apt-get", "-y", "upgrade"])
|
||||
|
|
Loading…
Reference in New Issue