[icinga-checkins] icinga.org: chef-icinga2/master: Add setting a custom pki_ticket_salt

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


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

Author: Thomas Peitz <thomas.peitz at invision.de>
Date:   Thu Jun 16 11:19:42 2016 +0200

Add setting a custom pki_ticket_salt

---

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

diff --git a/libraries/resource_environment.rb b/libraries/resource_environment.rb
index edfb4bb..5210320 100644
--- a/libraries/resource_environment.rb
+++ b/libraries/resource_environment.rb
@@ -420,6 +420,14 @@ class Chef
           :default => nil
         )
       end
+
+      def pki_ticket_salt(arg = nil)
+        set_or_return(
+          :pki_ticket_salt, arg,
+          :kind_of => String,
+          :default => node['icinga2']['constants']['TicketSalt']
+        )
+      end
     end
   end
 end



More information about the icinga-checkins mailing list