]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Issue #54: Getting started with cfn-init
authorGreg Blomquist <gblomqui@redhat.com>
Tue, 3 Apr 2012 23:45:20 +0000 (19:45 -0400)
committerGreg Blomquist <gblomqui@redhat.com>
Mon, 9 Apr 2012 17:37:04 +0000 (13:37 -0400)
commitc51273efaaf74f59cef72d01ac9a39f36046ae3b
treee3e5fd6bbc919ec08c8855d6b03874a93773aba8
parent56e8d806303a8d2437940a432750b8a649e79ae0
Issue #54: Getting started with cfn-init

Implemented features:
  * sysv and systemd service handling
  * yum package management

Running the script:
  e.g., sudo python cfn-init -f resource-metadata.json

Example resource metadata file contents:
{
    "AWS::CloudFormation::Init": {
        "config": {
            "packages": {
                "yum": {
                    "rubygem-fattr" : []
                }
            },
            "services": {
                "sysvinit": {
                    "httpd": {
                        "enabled" : "true",
                        "ensureRunning" : "true"
                    }
                }
            }
        }
    }
}
cftools/cfn-init