Sha256: ea8445120353c54940c441dfd24d509a39c71a140e068fe28bb5729ee98253c3
Contents?: true
Size: 1.87 KB
Versions: 4
Compression:
Stored size: 1.87 KB
Contents
# # Copyright (c) 2011 RightScale Inc # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # eucalyptus can use any DNS name for host but port is known and we are # constrained to requiring a specific DNS name by default. EUCA_HOST = 'euca-metadata' EUCA_PORT = 8773 # set abbreviation for env var generation to be same as ec2 for scripters. abbreviation :ec2 # preserve any initial hosts option. initial_hosts = option('metadata_source/hosts') # override metadata soures. Using only HTTP source metadata_source 'metadata_sources/http_metadata_source' # extend EC2 cloud definition. extend_cloud :ec2 # defaults. unless initial_hosts # eucalyptus hosts supercede ec2 hosts in search order. metadata_source_options = default_option(:metadata_source, {}) ec2_hosts = metadata_source_options[:hosts] || [] metadata_source_options[:hosts] = [:host => EUCA_HOST, :port => EUCA_PORT] + ec2_hosts end
Version data entries
4 entries across 4 versions & 1 rubygems