From 0f7601a3587511b633d0a04ffa24f42f19b3786c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Gagne=CC=81?= Date: Wed, 28 Aug 2013 20:19:14 -0400 Subject: [PATCH] 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 --- manifests/proxy/proxy-logging.pp | 19 ++----------------- manifests/proxy/proxy_logging.pp | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 manifests/proxy/proxy_logging.pp diff --git a/manifests/proxy/proxy-logging.pp b/manifests/proxy/proxy-logging.pp index 07ebb5b7..7f07a0f8 100644 --- a/manifests/proxy/proxy-logging.pp +++ b/manifests/proxy/proxy-logging.pp @@ -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 } diff --git a/manifests/proxy/proxy_logging.pp b/manifests/proxy/proxy_logging.pp new file mode 100644 index 00000000..d9d353a5 --- /dev/null +++ b/manifests/proxy/proxy_logging.pp @@ -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', + } +}