From b16e4c0f9251279fe2211f651459654e0759dbf0 Mon Sep 17 00:00:00 2001 From: Paul Allen Date: Thu, 12 Jun 2014 17:49:19 +0100 Subject: Markdown and examples --- examples/p4/create_client.pp | 5 +++++ examples/p4/delete_client.pp | 5 +++++ examples/p4/latest_client.pp | 6 ++++++ examples/p4/sync_client.pp | 7 +++++++ 4 files changed, 23 insertions(+) create mode 100644 examples/p4/create_client.pp create mode 100644 examples/p4/delete_client.pp create mode 100644 examples/p4/latest_client.pp create mode 100644 examples/p4/sync_client.pp (limited to 'examples') 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 -- cgit v1.2.3 From 24e2f91ffb0091bc6f67b4d90f9702690bc1179f Mon Sep 17 00:00:00 2001 From: Paul Allen Date: Fri, 20 Jun 2014 09:59:42 +0100 Subject: Detab to 2 spaces. --- examples/p4/create_client.pp | 6 +++--- examples/p4/delete_client.pp | 6 +++--- examples/p4/latest_client.pp | 8 ++++---- examples/p4/sync_client.pp | 10 +++++----- 4 files changed, 15 insertions(+), 15 deletions(-) (limited to 'examples') diff --git a/examples/p4/create_client.pp b/examples/p4/create_client.pp index f7605e6..94017bc 100644 --- a/examples/p4/create_client.pp +++ b/examples/p4/create_client.pp @@ -1,5 +1,5 @@ vcsrepo { "/tmp/vcstest-p4-create_client": - ensure => present, - provider => p4, - p4client => "puppet-test001" + 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 index 315222f..20bdd47 100644 --- a/examples/p4/delete_client.pp +++ b/examples/p4/delete_client.pp @@ -1,5 +1,5 @@ vcsrepo { "/tmp/vcstest-p4-create_client": - ensure => absent, - provider => p4, - p4client => "puppet-test001" + 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 index 719e180..54f9062 100644 --- a/examples/p4/latest_client.pp +++ b/examples/p4/latest_client.pp @@ -1,6 +1,6 @@ vcsrepo { "/tmp/vcstest-p4-create_client": - ensure => latest, - provider => p4, - p4client => "puppet-test001", - source => "//depot/..." + 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 index c1128bc..e22f6b0 100644 --- a/examples/p4/sync_client.pp +++ b/examples/p4/sync_client.pp @@ -1,7 +1,7 @@ vcsrepo { "/tmp/vcstest-p4-create_client": - ensure => present, - provider => p4, - p4client => "puppet-test001", - source => "//depot/..." - revision => "30" + ensure => present, + provider => p4, + p4client => "puppet-test001", + source => "//depot/..." + revision => "30" } \ No newline at end of file -- cgit v1.2.3 From 319f9fbe1954fd172da638f3ccd76e58c3ec8c7f Mon Sep 17 00:00:00 2001 From: Paul Allen Date: Mon, 23 Jun 2014 15:51:28 +0100 Subject: Added support for p4config. - Removed p4port, p4client, p4user to keep name space clean. - Changed notify to Puppet.debug - Updated markdown and examples - Updated unit tests --- examples/p4/create_client.pp | 5 ++--- examples/p4/delete_client.pp | 5 ++--- examples/p4/latest_client.pp | 3 +-- examples/p4/sync_client.pp | 5 ++--- 4 files changed, 7 insertions(+), 11 deletions(-) (limited to 'examples') diff --git a/examples/p4/create_client.pp b/examples/p4/create_client.pp index 94017bc..f491701 100644 --- a/examples/p4/create_client.pp +++ b/examples/p4/create_client.pp @@ -1,5 +1,4 @@ -vcsrepo { "/tmp/vcstest-p4-create_client": +vcsrepo { "/tmp/vcstest/p4_client_root": ensure => present, - provider => p4, - p4client => "puppet-test001" + provider => p4 } \ No newline at end of file diff --git a/examples/p4/delete_client.pp b/examples/p4/delete_client.pp index 20bdd47..239349b 100644 --- a/examples/p4/delete_client.pp +++ b/examples/p4/delete_client.pp @@ -1,5 +1,4 @@ -vcsrepo { "/tmp/vcstest-p4-create_client": +vcsrepo { "/tmp/vcstest/p4_client_root": ensure => absent, - provider => p4, - p4client => "puppet-test001" + provider => p4 } \ No newline at end of file diff --git a/examples/p4/latest_client.pp b/examples/p4/latest_client.pp index 54f9062..9dcd68e 100644 --- a/examples/p4/latest_client.pp +++ b/examples/p4/latest_client.pp @@ -1,6 +1,5 @@ -vcsrepo { "/tmp/vcstest-p4-create_client": +vcsrepo { "/tmp/vcstest/p4_client_root": 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 index e22f6b0..55dc9dc 100644 --- a/examples/p4/sync_client.pp +++ b/examples/p4/sync_client.pp @@ -1,7 +1,6 @@ -vcsrepo { "/tmp/vcstest-p4-create_client": +vcsrepo { "/tmp/vcstest/p4_client_root": ensure => present, provider => p4, - p4client => "puppet-test001", - source => "//depot/..." + source => "//depot/...", revision => "30" } \ No newline at end of file -- cgit v1.2.3 From 2ff03cff1795d3e43c922f7bceb235ce69175013 Mon Sep 17 00:00:00 2001 From: Stuart Whelan Date: Sat, 21 Jun 2014 17:26:14 +1200 Subject: Added support for basic authentication to hg provider Updated unit tests Updated hg readme and added examples --- examples/hg/clone_basic_auth.pp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 examples/hg/clone_basic_auth.pp (limited to 'examples') diff --git a/examples/hg/clone_basic_auth.pp b/examples/hg/clone_basic_auth.pp new file mode 100644 index 0000000..1931e1f --- /dev/null +++ b/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', +} -- cgit v1.2.3 From 9872c6dec02a50e886a5dd622fd0fa32143cccdb Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Fri, 11 Jul 2014 14:45:10 -0700 Subject: Fix lint errors --- examples/hg/clone_basic_auth.pp | 6 +++--- examples/p4/create_client.pp | 6 +++--- examples/p4/delete_client.pp | 6 +++--- examples/p4/latest_client.pp | 8 ++++---- examples/p4/sync_client.pp | 10 +++++----- 5 files changed, 18 insertions(+), 18 deletions(-) (limited to 'examples') diff --git a/examples/hg/clone_basic_auth.pp b/examples/hg/clone_basic_auth.pp index 1931e1f..984f8ea 100644 --- a/examples/hg/clone_basic_auth.pp +++ b/examples/hg/clone_basic_auth.pp @@ -1,7 +1,7 @@ vcsrepo { '/path/to/repo': - ensure => latest, - provider => hg, - source => 'http://hg.example.com/myrepo', + ensure => latest, + provider => 'hg', + source => 'http://hg.example.com/myrepo', basic_auth_username => 'hgusername', basic_auth_password => 'hgpassword', } diff --git a/examples/p4/create_client.pp b/examples/p4/create_client.pp index f491701..0f8233a 100644 --- a/examples/p4/create_client.pp +++ b/examples/p4/create_client.pp @@ -1,4 +1,4 @@ -vcsrepo { "/tmp/vcstest/p4_client_root": +vcsrepo { '/tmp/vcstest/p4_client_root': ensure => present, - provider => p4 -} \ No newline at end of file + provider => 'p4', +} diff --git a/examples/p4/delete_client.pp b/examples/p4/delete_client.pp index 239349b..1e305f1 100644 --- a/examples/p4/delete_client.pp +++ b/examples/p4/delete_client.pp @@ -1,4 +1,4 @@ -vcsrepo { "/tmp/vcstest/p4_client_root": +vcsrepo { '/tmp/vcstest/p4_client_root': ensure => absent, - provider => p4 -} \ No newline at end of file + provider => 'p4', +} diff --git a/examples/p4/latest_client.pp b/examples/p4/latest_client.pp index 9dcd68e..a7caeb6 100644 --- a/examples/p4/latest_client.pp +++ b/examples/p4/latest_client.pp @@ -1,5 +1,5 @@ -vcsrepo { "/tmp/vcstest/p4_client_root": +vcsrepo { '/tmp/vcstest/p4_client_root': ensure => latest, - provider => p4, - source => "//depot/..." -} \ No newline at end of file + provider => 'p4', + source => '//depot/...', +} diff --git a/examples/p4/sync_client.pp b/examples/p4/sync_client.pp index 55dc9dc..fc0e29c 100644 --- a/examples/p4/sync_client.pp +++ b/examples/p4/sync_client.pp @@ -1,6 +1,6 @@ -vcsrepo { "/tmp/vcstest/p4_client_root": +vcsrepo { '/tmp/vcstest/p4_client_root': ensure => present, - provider => p4, - source => "//depot/...", - revision => "30" -} \ No newline at end of file + provider => 'p4', + source => '//depot/...', + revision => '30', +} -- cgit v1.2.3 From a618f2be009b44df5fe91a1d6863bb55bc50020f Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Mon, 6 Apr 2015 12:23:22 -0700 Subject: Clean up puppet lint warnings There were puppet lint warnings due to indentation in several examples. This commit cleans up the warnings. Signed-off-by: Andrew Grimberg --- examples/p4/create_client.pp | 4 ++-- examples/p4/delete_client.pp | 4 ++-- examples/p4/latest_client.pp | 6 +++--- examples/p4/sync_client.pp | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) (limited to 'examples') diff --git a/examples/p4/create_client.pp b/examples/p4/create_client.pp index 0f8233a..3cf9160 100644 --- a/examples/p4/create_client.pp +++ b/examples/p4/create_client.pp @@ -1,4 +1,4 @@ vcsrepo { '/tmp/vcstest/p4_client_root': - ensure => present, - provider => 'p4', + ensure => present, + provider => 'p4', } diff --git a/examples/p4/delete_client.pp b/examples/p4/delete_client.pp index 1e305f1..82c9c95 100644 --- a/examples/p4/delete_client.pp +++ b/examples/p4/delete_client.pp @@ -1,4 +1,4 @@ vcsrepo { '/tmp/vcstest/p4_client_root': - ensure => absent, - provider => 'p4', + ensure => absent, + provider => 'p4', } diff --git a/examples/p4/latest_client.pp b/examples/p4/latest_client.pp index a7caeb6..106ef9e 100644 --- a/examples/p4/latest_client.pp +++ b/examples/p4/latest_client.pp @@ -1,5 +1,5 @@ vcsrepo { '/tmp/vcstest/p4_client_root': - ensure => latest, - provider => 'p4', - source => '//depot/...', + ensure => latest, + provider => 'p4', + source => '//depot/...', } diff --git a/examples/p4/sync_client.pp b/examples/p4/sync_client.pp index fc0e29c..33e4731 100644 --- a/examples/p4/sync_client.pp +++ b/examples/p4/sync_client.pp @@ -1,6 +1,6 @@ vcsrepo { '/tmp/vcstest/p4_client_root': - ensure => present, - provider => 'p4', - source => '//depot/...', - revision => '30', + ensure => present, + provider => 'p4', + source => '//depot/...', + revision => '30', } -- cgit v1.2.3 From dc1f92fe2b4e3dd9a54f3e45e1ae052b9f8e921e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Gajda?= Date: Wed, 26 Aug 2015 17:10:56 +0200 Subject: Example how to create a shallow clone with just one commit --- examples/git/shallow-clone-with-just-one-commit.pp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 examples/git/shallow-clone-with-just-one-commit.pp (limited to 'examples') diff --git a/examples/git/shallow-clone-with-just-one-commit.pp b/examples/git/shallow-clone-with-just-one-commit.pp new file mode 100644 index 0000000..cd5a05d --- /dev/null +++ b/examples/git/shallow-clone-with-just-one-commit.pp @@ -0,0 +1,7 @@ +vcsrepo { '/tmp/git': + ensure => 'present', + provider => 'git', + source => 'https://github.com/git/git.git', + branch => 'v2.2.0', + depth => 1, +} -- cgit v1.2.3