Puppet module to manage VCS repositories
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenDev Sysadmins 9263900fd8 OpenDev Migration Patch 5 hours ago
examples Make Puppet DSL compliant with the style guides and puppet lint. 7 years ago
lib/puppet Checkout local revision if not tag/remote branch. 6 years ago
spec/acceptance/nodesets Depend on helper gem for spec_helper_acceptance 1 year ago
.gitignore Add Gemfile and puppet 4 checks 3 years ago
.gitreview OpenDev Migration Patch 5 hours ago
Gemfile Update Gemfile for Zuulv3 9 months ago
LICENSE Add GPL license (from Puppet core) 9 years ago
README.BZR.markdown Tweak markup 9 years ago
README.CVS.markdown Add pointer for Puppet SSH approach 9 years ago
README.GIT.markdown (#13062) Added clarification that 'revision' can also be used for branches. 7 years ago
README.HG.markdown Tweak markup 9 years ago
README.SVN.markdown Add pointer for Puppet SSH approach 9 years ago
README.markdown Convert bare repos to working copy repos and vice-versa 9 years ago
Rakefile Add Gemfile and puppet 4 checks 3 years ago
metadata.json Replace openstack.org git:// URLs with https:// 3 weeks ago

README.BZR.markdown

Using vcsrepo with Bazaar

To create a blank repository

Define a vcsrepo without a source or revision:

vcsrepo { "/path/to/repo":
  ensure   => present,
  provider => bzr
}

To branch from an existing repository

Provide the source location:

vcsrepo { "/path/to/repo":
    ensure   => present,
    provider => bzr,
    source   => 'lp:myproj'
}

For a specific revision, use revision with a valid revisionspec (see bzr help revisionspec for more information on formatting a revision):

vcsrepo { "/path/to/repo":
    ensure   => present,
    provider => bzr,
    source   => 'lp:myproj',
    revision => 'menesis@pov.lt-20100309191856-4wmfqzc803fj300x'
}

For sources that use SSH (eg, bzr+ssh://..., sftp://...)

Manage your SSH keys with Puppet and use require in your vcsrepo to ensure they are present. For more information, see the require metaparameter documentation1.

More Examples

For examples you can run, see examples/bzr/