Forge Home

findec2

Generate files based on machines found via EC2 tags

11,874 downloads

11,874 latest version

3.5 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.0 (latest)
released Feb 26th 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'bashtoni-findec2', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add bashtoni-findec2
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install bashtoni-findec2 --version 1.0.0

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
Tags: ec2, aws

Documentation

bashtoni/findec2 — version 1.0.0 Feb 26th 2014

#findec2

A small Puppet module to use the https://github.com/BashtonLtd/find-ec2/ utility.

We use this to generate Varnish config and PHP snippets where one might otherwise use PuppetDB and stored configuration.

Usage

To generate a Varnish VCL snippet with backends of all machines which have a tag 'machinetype' and value 'web':


  findec2::generate { 'web':
    template  => '/etc/find-ec2/templates/varnish.template',
    service   => 'varnish',
    output    => '/etc/varnish/web.vcl',
    frequency => '1',
    tagname   => 'machinetype',
    tagvalue  => 'web',
    dummy     => true,
  }

Contributing

Pull requests gratefully accepted. Basic tests have been provided; run rake test.