summaryrefslogtreecommitdiff
path: root/puppet/modules/vcsrepo/examples/hg
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/vcsrepo/examples/hg')
-rw-r--r--puppet/modules/vcsrepo/examples/hg/clone.pp6
-rw-r--r--puppet/modules/vcsrepo/examples/hg/clone_basic_auth.pp7
-rw-r--r--puppet/modules/vcsrepo/examples/hg/init_repo.pp4
3 files changed, 17 insertions, 0 deletions
diff --git a/puppet/modules/vcsrepo/examples/hg/clone.pp b/puppet/modules/vcsrepo/examples/hg/clone.pp
new file mode 100644
index 00000000..be2d955d
--- /dev/null
+++ b/puppet/modules/vcsrepo/examples/hg/clone.pp
@@ -0,0 +1,6 @@
+vcsrepo { '/tmp/vcstest-hg-clone':
+ ensure => present,
+ provider => hg,
+ source => 'http://hg.basho.com/riak',
+ revision => 'riak-0.5.3',
+}
diff --git a/puppet/modules/vcsrepo/examples/hg/clone_basic_auth.pp b/puppet/modules/vcsrepo/examples/hg/clone_basic_auth.pp
new file mode 100644
index 00000000..984f8eaf
--- /dev/null
+++ b/puppet/modules/vcsrepo/examples/hg/clone_basic_auth.pp
@@ -0,0 +1,7 @@
+vcsrepo { '/path/to/repo':
+ ensure => latest,
+ provider => 'hg',
+ source => 'http://hg.example.com/myrepo',
+ basic_auth_username => 'hgusername',
+ basic_auth_password => 'hgpassword',
+}
diff --git a/puppet/modules/vcsrepo/examples/hg/init_repo.pp b/puppet/modules/vcsrepo/examples/hg/init_repo.pp
new file mode 100644
index 00000000..a8908040
--- /dev/null
+++ b/puppet/modules/vcsrepo/examples/hg/init_repo.pp
@@ -0,0 +1,4 @@
+vcsrepo { '/tmp/vcstest-hg-init':
+ ensure => present,
+ provider => hg,
+}