Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

certificates in apilistener depricated #333

Open
dvzunderd opened this issue Jan 30, 2019 · 0 comments
Open

certificates in apilistener depricated #333

dvzunderd opened this issue Jan 30, 2019 · 0 comments

Comments

@dvzunderd
Copy link

Expected Behavior

According the icinga2 documentation apilistener the following parameters are depricated:

  • cert_path
  • key_path
  • ca_path

Within the resource_apilistener.rb library these are mandatory.

Possible Solution

Change the :required parameter to false in resource_apilistener.rb like this:

      def cert_path(arg = nil)
        set_or_return(
          :cert_path, arg,
          :kind_of => String,
          :required => false,
          :default => nil
        )
      end

      def key_path(arg = nil)
        set_or_return(
          :key_path, arg,
          :kind_of => String,
          :required => false,
          :default => nil
        )
      end

      def ca_path(arg = nil)
        set_or_return(
          :ca_path, arg,
          :kind_of => String,
          :required => false,
          :default => nil
        )
      end   
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant