Closed kadamwhite closed 5 years ago
The one open issue on this, which I don't think we need to fix now, is that currently the repository
class will change the remotes on an existing checkout if you use synced_folders to map it in. I don't know how to work around this because require
in Puppet is not behaving as I would have expected it to do.
As noted, I think we can leave this as tech debt for now; I've pinged @rmccue separately about whether there's a better way to ensure the vcsrepo
task does not run if the exec
is skipped.
Discussion with @rmccue indicates that puppet is not capable of behaving as I want in terms of not mutating existing repositories, which is likely to cause issues if an SVN repository is used in place of Git in the future. However, this feels more robust than #14 so I am going to merge and proceed.
This adapts #14 with an alternate approach, using the vcsrepo Puppet module. I've extracted all repo-specific tasks into their own class. That class does these things:
wordpress-develop
to the .git/info/exclude file in the parent Chassis repo (this was already done in master, it's just been moved)known_hosts
file so that GitHub checkouts will work if the user specifies an alternate mirror.wordpress-develop
Available configuration options: