Skip to content
Example Puppet external node classifier (ENC) which determines the classification from the Amazon EC2 security groups (and tags)
Ruby Shell
Latest commit 7c1c062 Feb 10, 2013 @niclasmeier added register script
Failed to load latest commit information.
README.md added README.md Feb 10, 2013
ec2_enc.rb initial commit Feb 10, 2013
install-puppet.sh initial commit Feb 10, 2013
node_groups.yml initial commit Feb 10, 2013
register_at_elb.rb added register script Feb 10, 2013

README.md

Example Puppet ENC

Very simple external node classifier which determines the class by the security group(s) of the node. Also merges the EC2 tags into the parameter section of the classification.

Installation

To run the script you need these gems:

Run

Just replace placeholders in

ACCESS_KEY_ID     = '<YOUR_ACCESS_KEY>'
SECRET_ACCESS_KEY = '<YOUR_SECRET_ACCESS_KEY>'
EC2_ENDPOINT          = 'eu-west-1.ec2.amazonaws.com'

and set the right EC2 API endpoint. A simple

./ec2_enc ip-10-10-10-10.eu-west-1.compute.internal 

will do

Acknowledgment

The implementation was heavily inspired by a blog post on the Gowalla engineering blog by Kevin Lord.

Nice work, helped a lot.

License

The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Something went wrong with that request. Please try again.