Puppet Function: ssh::ssh_ca_key_available

Defined in:
modules/ssh/lib/puppet/functions/ssh/ssh_ca_key_available.rb
Function type:
Ruby 4.x API

Overview

ssh::ssh_ca_key_available()Any

SPDX-License-Identifier: Apache-2.0 frozen_string_literal: true

Returns:

  • (Any)


4
5
6
7
8
9
10
11
# File 'modules/ssh/lib/puppet/functions/ssh/ssh_ca_key_available.rb', line 4

Puppet::Functions.create_function(:'ssh::ssh_ca_key_available') do
  dispatch :ssh_ca_key_available do
  end

  def ssh_ca_key_available
    File.exist?('/etc/ssh/ca')
  end
end