Changing deprecation notice
This commit is contained in:
parent
ef5f04d474
commit
487c8cae2c
3 changed files with 6 additions and 6 deletions
|
@ -201,7 +201,7 @@ class nginx (
|
|||
$sites_available_owner or
|
||||
$sites_available_group or
|
||||
$sites_available_mode {
|
||||
include nginx::notice::puppet_module_data
|
||||
include nginx::notice::config
|
||||
}
|
||||
|
||||
### END DEPRECATION WARNING ###
|
||||
|
|
5
manifests/notice/config.pp
Normal file
5
manifests/notice/config.pp
Normal 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: }
|
||||
}
|
|
@ -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: }
|
||||
}
|
Loading…
Reference in a new issue