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:
Alex Vandiver 2020-10-28 14:30:59 -07:00 committed by Tim Abbott
parent ac6a40e262
commit 2332113c97
1 changed files with 18 additions and 17 deletions

View File

@ -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"])