Sha256: be30af63816c232f7228f948ab3b41cab20bf51c3b022500e1e58a453f14e3de
Contents?: true
Size: 460 Bytes
Versions: 55
Compression:
Stored size: 460 Bytes
Contents
#!/usr/bin/env ruby require 'uri' require 'net/http' # this is used for external node lookup in celestial puppet std provider node = ARGV[0] host = node.split('.').first if(File.exists?("#{host}.yml")) File.open("#{host}.yml").lines.each {|l| puts l} else ip = ENV['SSH_CONNECTION'].split(' ').first httpcall = Net::HTTP.new(ip, 8082) resp, data = httpcall.get2("/registry/host/type/#{node}", 'Accept' => 'application/x-yaml') puts resp.body end
Version data entries
55 entries across 55 versions & 1 rubygems