Skip to content

Write private IP address to /etc/hosts for a set of EC2 servers based on a tag key=>value combination

License

Notifications You must be signed in to change notification settings

continuent/continuent-puppet-ec2_hosts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ec2_hosts

Write private IP address to /etc/hosts for a set of EC2 servers based on a tag key=>value combination

Usage

This module uses Facter to load information about matching EC2 servers. Add these values to the facts passed into Puppet.

  • "aws_access_key" => "ACCESS_KEY"
  • "aws_secret_access_key" => "SECRET_ACCESS_KEY"
  • "ec2_tag_group_key" => "HostnameGroup"
  • "ec2_tag_group_value" => "DatabasesGroup"

Add the ec2_hosts class to your manifest. You can optionally include the first portion of the hostname in /etc/hosts.

class { "ec2_hosts": 
	include_short_hostname => true
}

About

Write private IP address to /etc/hosts for a set of EC2 servers based on a tag key=>value combination

Resources

License

Stars

Watchers

Forks

Packages

No packages published