What it is?

Set of scripts that are present in AMIs that serves as basis for nodes that are spun up via Dtk. Below is manual usage of these scripts (if you want to install Puppet Omnibus on nodes, burn new AMIs that will be used by Dtk) but that step is not necessary for everyday usage of Dtk

Manual usage

Build the gem:

gem build dtk-node-agent.gemspec

Intalling the node agent on a running machine (without puppet omnibus)

sudo dtk-node-agent

Intalling the node agent on a running machine (with puppet omnibus)

sudo ./install_agent.sh [--sanitize]

Build all supported AMI images with packer

export AWS_ACCESS_KEY="your aws access key"
export AWS_SECRET_KEY="your aws secret key"

packer build template.json

This will also copy images to all AWS regions.

To get yaml output of new images, first, add .fog file on your home directory (with valid aws credentials) and then run following ruby script:

ruby get_amis.rb <AMI_TIMESTAMPS>

AMI_TIMESTAMPS can be one timestamp or array of timestamps separated with delimiter (,)

Note: Output of get_amis.rb script execution needs to be pasted instead of the old dtk.model.yaml inside aws:image_aws component module. Change needs to be pushed to server then and also to repo manager so everyone has access to new aws images


dtk-node-agent is copyright (C) 2010-2016 dtk contributors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:


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.