Browse Source

Changing deprecation notice

James Fryman 9 years ago
parent
commit
487c8cae2c
3 changed files with 6 additions and 6 deletions
  1. 1 1
      manifests/init.pp
  2. 5 0
      manifests/notice/config.pp
  3. 0 5
      manifests/notice/puppet_module_data.pp

+ 1 - 1
manifests/init.pp

@@ -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 - 0
manifests/notice/config.pp

@@ -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: }
+}

+ 0 - 5
manifests/notice/puppet_module_data.pp

@@ -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: }
-}