I've written a Puppet module to install Git on Windows. The Puppet Master is Linux.
Is it possible to write a Puppet manifest to clone a GitHub repo using just puppet resources (i.e. without a script or exec)?
This is a private repo, so the solution needs to include secure credentials.
It is indeed possible on Windows! You can use the puppetlabs-vcsrepo module
Code I used in the example:
To keep the repository at the latest revision, set ensure to 'latest'. However, this overwrites any local changes to the repository.
To control what ref, tag, or branch the git repo is on, use the ref parameter: