No commit activity in last 3 years
No release in over 3 years
A puppet-lint plugin to convert from ec2_* facts to ec2_metadata[].
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

puppet-ec2_facts-check

Build Status Gem Version Gem Downloads Coverage Status Gemnasium

A puppet-lint plugin to check for old ec2_* facts.

Installing

From the command line

$ gem install puppet-ec2_facts-check

In a Gemfile

gem 'puppet-ec2_facts-check', :require => false

Checks

Old ec2_ fact used

The old ec2\_\* facts are not available anymore in facter3 and thus should not be used anymore. You should you the new ec2_metadata fact.

What you have done

notice($::ec2_public_hostname)

What you should have done

notice($::ec2_metadata['hostname'])

Disabling the check

To disable this check, you can add --no-ec2_facts-check to your puppet-lint command line.

$ puppet-lint --no-ec2_facts-check path/to/file.pp

Alternatively, if you’re calling puppet-lint via the Rake task, you should insert the following line to your Rakefile.

PuppetLint.configuration.send('disable_ec2_facts')