Deprecate classes with hyphens

Puppet does not recommend the use of hyphens in class names.

This change deprecates classes with hyphens and inform the users
to use the new ones. Backward compatibility is preserved.

Change-Id: I4991c956e297d76423a805558d9b6731473a4a51
This commit is contained in:
Mathieu Gagné 2013-08-28 20:19:14 -04:00
parent 943c2f0c6e
commit 0f7601a358
2 changed files with 17 additions and 17 deletions

View File

@ -1,20 +1,5 @@
#
# Configure swift proxy-logging.
#
# == Dependencies
#
# == Examples
#
# == Authors
#
# Joe Topjian joe@topjian.net
#
class swift::proxy::proxy-logging {
concat::fragment { 'swift_proxy-logging':
target => '/etc/swift/proxy-server.conf',
content => template('swift/proxy/proxy-logging.conf.erb'),
order => '27',
}
warning('swift::proxy::proxy-logging is deprecated. Use swift::proxy::proxy_logging instead.')
include swift::proxy::proxy_logging
}

View File

@ -0,0 +1,15 @@
#
# Configure swift proxy-logging.
#
# == Authors
#
# Joe Topjian joe@topjian.net
#
class swift::proxy::proxy_logging {
concat::fragment { 'swift_proxy-logging':
target => '/etc/swift/proxy-server.conf',
content => template('swift/proxy/proxy-logging.conf.erb'),
order => '27',
}
}