Renamed {git,mercurial,svn}::client as git, mercurial and svn

Added {git,mercurial,svn}::client classes with deprecation warning for
backwards compatilibity.
This commit is contained in:
Ossi Salmi 2012-12-05 13:05:33 +02:00
parent aa9dc23e73
commit 2b9e847b22
3 changed files with 30 additions and 9 deletions

View file

@ -1,7 +1,6 @@
# Install Git.
# Install Git client tools.
# #
class git::client { class git {
package { "git": package { "git":
name => $::operatingsystem ? { name => $::operatingsystem ? {
@ -13,6 +12,13 @@ class git::client {
} }
class git::client {
warning("git::client is deprecated, include git instead")
include git
}
# Install prequisites for serving Git repositories # Install prequisites for serving Git repositories
# #
@ -23,7 +29,7 @@ class git::client {
# #
class git::server { class git::server {
include git::client include git
if $git_datadir { if $git_datadir {
file { $git_datadir: file { $git_datadir:

View file

@ -1,6 +1,6 @@
# Install Mercurial. # Install Mercurial.
# #
class mercurial::client { class mercurial {
package { "mercurial": package { "mercurial":
ensure => installed, ensure => installed,
@ -8,6 +8,14 @@ class mercurial::client {
} }
class mercurial::client {
warning("mercurial::client is deprecated, include mercurial instead")
include mercurial
}
# Clone repository. # Clone repository.
# #
# === Parameters # === Parameters

View file

@ -1,6 +1,6 @@
# Install svn client tools. # Install Subversion.
# #
class svn::client { class svn {
package { "subversion": package { "subversion":
ensure => installed, ensure => installed,
@ -9,14 +9,21 @@ class svn::client {
file { "/etc/subversion/servers": file { "/etc/subversion/servers":
ensure => present, ensure => present,
mode => "0644", mode => "0644",
owner => root, owner => "root",
group => root, group => "root",
content => template("svn/servers.erb"), content => template("svn/servers.erb"),
require => Package["subversion"], require => Package["subversion"],
} }
} }
class svn::client {
warning("svn::client is deprecated, include svn instead")
include svn
}
# Checkout working copy. # Checkout working copy.
# #