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:
parent
aa9dc23e73
commit
2b9e847b22
3 changed files with 30 additions and 9 deletions
|
@ -1,7 +1,6 @@
|
|||
|
||||
# Install Git client tools.
|
||||
# Install Git.
|
||||
#
|
||||
class git::client {
|
||||
class git {
|
||||
|
||||
package { "git":
|
||||
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
|
||||
#
|
||||
|
@ -23,7 +29,7 @@ class git::client {
|
|||
#
|
||||
class git::server {
|
||||
|
||||
include git::client
|
||||
include git
|
||||
|
||||
if $git_datadir {
|
||||
file { $git_datadir:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Install Mercurial.
|
||||
#
|
||||
class mercurial::client {
|
||||
class mercurial {
|
||||
|
||||
package { "mercurial":
|
||||
ensure => installed,
|
||||
|
@ -8,6 +8,14 @@ class mercurial::client {
|
|||
|
||||
}
|
||||
|
||||
class mercurial::client {
|
||||
|
||||
warning("mercurial::client is deprecated, include mercurial instead")
|
||||
include mercurial
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Clone repository.
|
||||
#
|
||||
# === Parameters
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Install svn client tools.
|
||||
# Install Subversion.
|
||||
#
|
||||
class svn::client {
|
||||
class svn {
|
||||
|
||||
package { "subversion":
|
||||
ensure => installed,
|
||||
|
@ -9,14 +9,21 @@ class svn::client {
|
|||
file { "/etc/subversion/servers":
|
||||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => root,
|
||||
group => root,
|
||||
owner => "root",
|
||||
group => "root",
|
||||
content => template("svn/servers.erb"),
|
||||
require => Package["subversion"],
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class svn::client {
|
||||
|
||||
warning("svn::client is deprecated, include svn instead")
|
||||
include svn
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Checkout working copy.
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue