File: ssh_host_key_certs_list.rb

package info (click to toggle)
openstack-cluster-installer 43.0.22
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 4,544 kB
  • sloc: php: 19,169; sh: 18,137; ruby: 75; makefile: 31; xml: 8
file content (11 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
# module_name/lib/facter/ssh_host_cert.rb
Facter.add(:oci_ssh_host_key_certs_list) do
  setcode do
    Dir.chdir("/etc/ssh")
    files = Dir.glob("ssh_host_*_key-cert.pub")
    files.each_with_index do |file, index|
      files[index] = "/etc/ssh/" + file
    end
    files
  end
end