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