diff options
author | Jonathan Tripathy <jonathan.tripathy@puppetlabs.com> | 2015-01-20 23:12:20 -0800 |
---|---|---|
committer | Jonathan Tripathy <jonathan.tripathy@puppetlabs.com> | 2015-01-21 16:59:18 -0800 |
commit | 5d6ef988af1ff90b4625b0426301cb6fad0268b8 (patch) | |
tree | 57944c10758755002e39b11bcbf4edef47e640bc /README.markdown | |
parent | d08d16bd71e10f439dfa3ff92626aeb38aa95303 (diff) | |
download | puppet-vcsrepo-5d6ef988af1ff90b4625b0426301cb6fad0268b8.tar.gz puppet-vcsrepo-5d6ef988af1ff90b4625b0426301cb6fad0268b8.tar.bz2 |
Implemented multiple remotes feature for git provider.
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown index 6c6f0a5..34a51e2 100644 --- a/README.markdown +++ b/README.markdown @@ -154,6 +154,20 @@ To clone the repository but skip initialiazing submodules, submodules => false, } +##### Using multiple remotes with a repository +Instead of specifying a single string in the 'source' property, you can specify a hash with multiple name => URL mappings, + + vcsrepo { "/path/to/repo": + ensure => present, + provider => git, + source => { + "origin" => "https://github.com/puppetlabs/puppetlabs-vcsrepo.git", + "other_remote" => "https://github.com/other_user/puppetlabs-vcsrepo.git" + }, + } + +It is important to note that you must specify a mapping for the remote that is specified in the 'remote' property - this is set to 'origin' by default. + #####Sources that use SSH When your source uses SSH, such as 'username@server:…', you can manage your SSH keys with Puppet using the [require](http://docs.puppetlabs.com/references/stable/metaparameter.html#require) metaparameter in `vcsrepo` to ensure they are present. |