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

Commit

Permalink
Removing deprecated fields on apilistener resource
Browse files Browse the repository at this point in the history
  • Loading branch information
8la committed Aug 6, 2018
1 parent 752bce0 commit 6993800
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
3 changes: 0 additions & 3 deletions LWRP.md
Original file line number Diff line number Diff line change
Expand Up @@ -1368,9 +1368,6 @@ LWRP `apilistener` creates an icinga `ApiListener` object.

```ruby
icinga2_apilistener 'master' do
cert_path 'SysconfDir + "/icinga2/pki/" + NodeName + ".crt"'
key_path 'SysconfDir + "/icinga2/pki/" + NodeName + ".key"'
ca_path 'SysconfDir + "/icinga2/pki/ca.crt"'
bind_host 'host address'
bind_port '5665'
ticket_salt 'TicketSalt'
Expand Down
29 changes: 1 addition & 28 deletions libraries/resource_apilistener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,6 @@ def cookbook(arg = nil)
)
end

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

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

def ca_path(arg = nil)
set_or_return(
:ca_path, arg,
:kind_of => String,
:required => true,
:default => nil
)
end

def crl_path(arg = nil)
set_or_return(
:crl_path, arg,
Expand Down Expand Up @@ -110,7 +83,7 @@ def resource_properties(arg = nil)
set_or_return(
:resource_properties, arg,
:kind_of => Array,
:default => %w(cert_path key_path ca_path crl_path bind_host bind_port ticket_salt accept_config accept_commands)
:default => %w(crl_path bind_host bind_port ticket_salt accept_config accept_commands)
)
end
end
Expand Down

0 comments on commit 6993800

Please sign in to comment.