Sha256: 774eba51d4fa05ae0f1043b5d119172b12cf62389631132c983a456ab19fa9a2

Contents?: true

Size: 1.4 KB

Versions: 4

Compression:

Stored size: 1.4 KB

Contents

module StackConfig
    Stacks = Hash.new

    Stacks['apache-cloud-init'] = {
      # (we can access environment variable via ENV['foo'] instead of hard coding u/p here)
      'REGION'      => ENV['OS_REGION_NAME'],
      'USERNAME'    => ENV['OS_USERNAME'],
      'PASSWORD'    => ENV['OS_PASSWORD'],
      'AUTH_URL'    => ENV['OS_AUTH_URL'],
      'TENANT_NAME' => ENV['OS_TENANT_NAME'],

       # generic instance info
       'flavor_id'  => 103,
       'image_id'   => 78265, # CentOS 6.3 64bit
       # per-az image_id's
       'az-2.region-a.geo-1' => { 'image_id' => 78265 },

       # provisioning info
       :key_pair => ENV['USER'],
       :key_public => '~/.ssh/id_rsa.pub',

       :name_template => '%s-%s-%s%04d',   # service-site-role0001
       :global_service_name => 'webci',
       :site_template => '%s',

       # role specification
       # role names & chef roles should match
       :roles => {
         :web => {  :count => 1,
                    # use the default security group
                    :security_group => 'default',
                    # don't use chef as the second-stage provisioner
                    :skip_chef_prereg => true,
                    :bootstrap => 'cloud-init.sh',
                    # use the yaml template that supports configuring the ephemeral space early in the boot process
                    :cloud_config_yaml => 'cloud-init.yaml',
         }
       }
    }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stack-kicker-0.0.26 doc/examples/apache-via-cloud-init-centos/Stackfile
stack-kicker-0.0.25 doc/examples/apache-via-cloud-init-centos/Stackfile
stack-kicker-0.0.24 doc/examples/apache-via-cloud-init-centos/Stackfile
stack-kicker-0.0.23 doc/examples/apache-via-cloud-init-centos/Stackfile