[icinga-checkins] icinga.org: chef-icinga2/master: Add new endpoint/ zone options for env resource

git at icinga.org git at icinga.org
Sat Jul 16 19:49:34 CEST 2016


Module: chef-icinga2
Branch: master
Commit: e1e464b7e4589c0d262a545ecbecea1fc851da9b
URL:    https://git.icinga.org/?p=chef-icinga2.git;a=commit;h=e1e464b7e4589c0d262a545ecbecea1fc851da9b

Author: Thomas Peitz <thomas.peitz at invision.de>
Date:   Wed Jun  1 12:11:35 2016 +0200

Add new endpoint/zone options for env resource

---

 libraries/resource_environment.rb |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/libraries/resource_environment.rb b/libraries/resource_environment.rb
index b7beab7..533df2f 100644
--- a/libraries/resource_environment.rb
+++ b/libraries/resource_environment.rb
@@ -396,6 +396,30 @@ class Chef
           :default => nil
         )
       end
+
+      def endpoint_port(arg = nil)
+        set_or_return(
+          :endpoint_port, arg,
+          :kind_of => Integer,
+          :default => node['icinga2']['endpoint_port']
+        )
+      end
+
+      def endpoint_log_duration(arg = nil)
+        set_or_return(
+          :log_duration, arg,
+          :kind_of => String,
+          :default => nil
+        )
+      end
+
+      def zone_parent(arg = nil)
+        set_or_return(
+          :log_duration, arg,
+          :kind_of => String,
+          :default => nil
+        )
+      end
     end
   end
 end



More information about the icinga-checkins mailing list