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

certificates in apilistener depricated #333

@dvzunderd

Description

@dvzunderd

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   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions