You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+12-2
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,15 @@ To keep the repository at the latest revision (**WARNING:** this will always ove
141
141
revision => 'master',
142
142
}
143
143
144
+
To clone the repository but skip initialiazing submodules,
145
+
146
+
vcsrepo { "/path/to/repo":
147
+
ensure => latest,
148
+
provider => git,
149
+
source => 'git://example.com/repo.git',
150
+
submodules => false,
151
+
}
152
+
144
153
#####Sources that use SSH
145
154
146
155
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.
@@ -479,6 +488,7 @@ The vcsrepo module is slightly unusual in that it is simply a type and providers
479
488
*`ssh_identity` - The provider supports a configurable SSH identity file. (Available with `git` and `hg`.)
480
489
*`user` - The provider can run as a different user. (Available with `git`, `hg` and `cvs`.)
481
490
*`p4config` - The provider support setting the P4CONFIG environment. (Available with `p4`.)
491
+
*`submodules` - The provider supports repository submodules which can be optionally initialized. (Available with `git`.)
482
492
483
493
####Parameters
484
494
@@ -507,9 +517,9 @@ The vcsrepo module is slightly unusual in that it is simply a type and providers
0 commit comments