Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (33 sloc) 1.55 KB

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.


To run the script you need these gems:


Just replace placeholders in

EC2_ENDPOINT		  = ''

and set the right EC2 API endpoint. A simple


will do


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

Nice work, helped a lot.


The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( 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.