summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPaul Allen <pallen@perforce.com>2014-06-12 17:49:19 +0100
committerPaul Allen <pallen@perforce.com>2014-06-20 12:16:29 +0100
commitb16e4c0f9251279fe2211f651459654e0759dbf0 (patch)
tree65e42b1d797f657167565f8b3ab982813b33e919 /examples
parentd2bb24e33860090a7051ce9ef6dfbb695cf23447 (diff)
Markdown and examples
Diffstat (limited to 'examples')
-rw-r--r--examples/p4/create_client.pp5
-rw-r--r--examples/p4/delete_client.pp5
-rw-r--r--examples/p4/latest_client.pp6
-rw-r--r--examples/p4/sync_client.pp7
4 files changed, 23 insertions, 0 deletions
diff --git a/examples/p4/create_client.pp b/examples/p4/create_client.pp
new file mode 100644
index 0000000..f7605e6
--- /dev/null
+++ b/examples/p4/create_client.pp
@@ -0,0 +1,5 @@
+vcsrepo { "/tmp/vcstest-p4-create_client":
+ ensure => present,
+ provider => p4,
+ p4client => "puppet-test001"
+} \ No newline at end of file
diff --git a/examples/p4/delete_client.pp b/examples/p4/delete_client.pp
new file mode 100644
index 0000000..315222f
--- /dev/null
+++ b/examples/p4/delete_client.pp
@@ -0,0 +1,5 @@
+vcsrepo { "/tmp/vcstest-p4-create_client":
+ ensure => absent,
+ provider => p4,
+ p4client => "puppet-test001"
+} \ No newline at end of file
diff --git a/examples/p4/latest_client.pp b/examples/p4/latest_client.pp
new file mode 100644
index 0000000..719e180
--- /dev/null
+++ b/examples/p4/latest_client.pp
@@ -0,0 +1,6 @@
+vcsrepo { "/tmp/vcstest-p4-create_client":
+ ensure => latest,
+ provider => p4,
+ p4client => "puppet-test001",
+ source => "//depot/..."
+} \ No newline at end of file
diff --git a/examples/p4/sync_client.pp b/examples/p4/sync_client.pp
new file mode 100644
index 0000000..c1128bc
--- /dev/null
+++ b/examples/p4/sync_client.pp
@@ -0,0 +1,7 @@
+vcsrepo { "/tmp/vcstest-p4-create_client":
+ ensure => present,
+ provider => p4,
+ p4client => "puppet-test001",
+ source => "//depot/..."
+ revision => "30"
+} \ No newline at end of file