Skip to content

Commit

Permalink
puppet: Remove hardcoding of /root/zulip from puppet path.
Browse files Browse the repository at this point in the history
This is an important prerequisite to being able to remove dependence
on the /root/zulip symlink altogether.
  • Loading branch information
timabbott committed Feb 8, 2017
1 parent 0e0584a commit 609082c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/zulip-puppet-apply
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 609082c

Please sign in to comment.