Changing deprecation notice

This commit is contained in:
James Fryman 2014-11-08 17:38:06 +01:00
parent ef5f04d474
commit 487c8cae2c
3 changed files with 6 additions and 6 deletions

View file

@ -201,7 +201,7 @@ class nginx (
$sites_available_owner or $sites_available_owner or
$sites_available_group or $sites_available_group or
$sites_available_mode { $sites_available_mode {
include nginx::notice::puppet_module_data include nginx::notice::config
} }
### END DEPRECATION WARNING ### ### END DEPRECATION WARNING ###

View file

@ -0,0 +1,5 @@
class nginx::notice::config {
$message = "[nginx] *** DEPRECATION WARNING***: HI! I notice that you're declaring some attributes in Class[nginx]. It is highly recommended to set these values via Hiera going forward. This will become mandatory in the near future. Please check out https://github.com/jfryman/puppet-nginx/blob/master/docs/hiera.md for more information."
notify { $message: }
}

View file

@ -1,5 +0,0 @@
class nginx::notice::puppet_module_data {
$message = "[nginx] *** DEPRECATION WARNING***: HI! I notice that you're declaring some attributes in Class[nginx]. We are in the process of moving all of these attributes to Hiera with puppet-module-tool. Please check out https://github.com/jfryman/puppet-nginx/blob/master/docs/hiera.md for more information."
notify { $message: }
}