Report abuse


			
# a simple ssh_host_key example
class ssh_host_keys {
file { "/etc/ssh/host_keys":
  contents => template("ssh_host_keys.erb"),
  owner => root,
  group => root,
  mode => 644,
}
}

# ssh_host_keys.erb
<% require '/srv/icagent/lib/iclassify' -%>
<% ic = IClassify::Client.new("https://iclassify", iclassify_user, iclassify_password) -%>
<% ic.search("ssh_host_key:*", [ "ssh_host_key" ]).each do |n| -%>
<%= n.attrib?(:ssh_host_key) %>
<% end -%>