puppet: Remove hardcoding of /root/zulip from puppet path.

This is an important prerequisite to being able to remove dependence
on the /root/zulip symlink altogether.
This commit is contained in:
Tim Abbott
2017-02-08 11:05:20 -08:00
parent 0e0584aeaa
commit 609082c475

View File

@@ -29,7 +29,9 @@ include apt
for pclass in re.split(r'\s*,\s*', config.get('machine', 'puppet_classes')):
puppet_config += "include %s\n" % (pclass,)
puppet_cmd = ["puppet", "apply", "--modulepath=/root/zulip/puppet", "-e", puppet_config]
# We use the puppet configuration from the same Zulip checkout as this script
puppet_module_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "puppet")
puppet_cmd = ["puppet", "apply", "--modulepath", puppet_module_path, "-e", puppet_config]
puppet_cmd += extra_args
if not force: