Skip to content

Ohai plugin to get the AmazonProvidedDNS IP address from the EC2 meta-data

License

Notifications You must be signed in to change notification settings

tkuchiki/ohai-plugin-amazon-provided-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ohai-plugin-amazon-provided-dns

Ohai plugin to get the AmazonProvidedDNS IP address from the EC2 meta-data

Usage

ohai command

# VPC CIDR = 10.0.0.0/16
$ ohai -d /path/to/plugin/dir/ | jq .amazon_provided_dns
{
  "ip": "169.254.169.253",
  "vpc_ip": "10.0.0.2"
}

chef

# (client|solo).rb
Ohai::Config[:plugin_path] << '/path/to/plugins'
# in cookbook
node[:amazon_provided_dns][:ip]
node[:amazon_provided_dns][:vpc_ip]

About

Ohai plugin to get the AmazonProvidedDNS IP address from the EC2 meta-data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages