Sha256: ffd1aedd2dd090b420f1b3ae14fc692ffac8624a58ff4c6f521e4eb37aacb9bb

Contents?: true

Size: 1.32 KB

Versions: 3

Compression:

Stored size: 1.32 KB

Contents

#!/usr/bin/env ruby

$:.unshift(File.dirname(__FILE__))
$:.unshift File.absolute_path("#{File.dirname(__FILE__)}/../lib")
require 'bundler/setup'
require 'aws/cfn/dsl/template'

template do

  value :AWSTemplateFormatVersion => '2010-09-09'

  value :Description => 'Sample template to bring up an Opscode Chef Server using the Opscode debian files for installation. This configuration creates and starts the Chef Server with the WebUI enabled, initializes knife and uploads specified cookbooks and roles to the chef server. A WaitCondition is used to hold up the stack creation until the application is deployed. **WARNING** This template creates one or more Amazon EC2 instances. You will be billed for the AWS resources used if you create a stack from this template.'

  # Mappings
  mapping 'AWSRegion2AMI'

  # Parameters
  parameter 'KeyName'
  parameter 'CookbookLocation'
  parameter 'RoleLocation'
  parameter 'InstanceType'
  parameter 'SSHLocation'

  # Resources
  resource 'ChefServerUser'
  resource 'HostKeys'
  resource 'ChefServer'
  resource 'ChefServerSecurityGroup'
  resource 'ChefClientSecurityGroup'
  resource 'PrivateKeyBucket'
  resource 'BucketPolicy'
  resource 'ChefServerWaitHandle'
  resource 'ChefServerWaitCondition'

  # Outputs
  output 'ServerURL'
  output 'ChefSecurityGroup'
  output 'ValidationKeyBucket'

end.exec!

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aws-cfn-dsl-0.5.0 test/chef-server.rb
aws-cfn-dsl-0.2.0 test/chef-server.rb
aws-cfn-dsl-0.1.0 test/chef-server.rb