rackspace.rb

Path: lib/ohai/plugins/rackspace.rb
Last Update: Fri Jul 02 02:40:12 +0000 2010
Author:Cary Penniman (<cary@rightscale.com>)
License:Apache License, Version 2.0

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

www.apache.org/licenses/LICENSE-2.0

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.

Methods

Public Instance methods

Names rackspace ip address

Parameters

name<Symbol>:Use :public_ip or :private_ip
eth<Symbol>:Interface name of public or private ip

Checks for matching rackspace kernel name

Return

true:If kernel name matches
false:Otherwise

Checks for matching rackspace arp mac

Return

true:If mac address matches
false:Otherwise

Identifies the rackspace cloud

Return

true:If the rackspace cloud can be identified
false:Otherwise

[Validate]