ec2_hosts

contributions requested
Module for writing hosts entries based on EC2 tags

10,281 downloads

10,011 latest version

2.3 quality score

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.5 (latest)
  • 0.1.0
released Apr 3rd 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'continuent-ec2_hosts', '0.1.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add continuent-ec2_hosts
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install continuent-ec2_hosts --version 0.1.5

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

continuent/ec2_hosts — version 0.1.5 Apr 3rd 2014

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 }