testing adding ssh rule

This commit is contained in:
Maria Haider 2022-03-21 22:22:11 +01:00
parent b7a77614a1
commit dfcc118521
Signed by: mariah
GPG key ID: 7414A760CA747E57
2 changed files with 1 additions and 15 deletions

View file

@ -543,6 +543,7 @@ natpub-test-1.komreg.net:
autoupdate:
md_publisher:
keyname: natpub-test-1.komreg.net_infra
signer_ip_adress: '89.45.236.215'
mdsl_publisher:
sunet::frontend::register_sites:
sites:
@ -551,7 +552,6 @@ natpub-test-1.komreg.net:
- 'fe-fre-1.test.komreg.net'
- 'fe-tug-1.test.komreg.net'
port: '443'
eid::ssh_rules:
eupub-1.komreg.net:
autoupdate:

View file

@ -1,14 +0,0 @@
# dnsLookup.rb
# does a DNS lookup and returns an array of strings of the results
# from http://geek.jasonhancock.com/2011/04/20/doing-a-dns-lookup-inside-your-puppet-manifest/
require 'resolv'
module Eid::Functions
newfunction(:dnsLookup, :type => :rvalue) do |args|
result = []
result = Resolv.new.getaddresses(args[0])
debug("resolving #{args[0]} to #{result}")
return result
end
end