Chef Infra Language: Checking Clouds

[edit on GitHub]

Chef Infra Client 15.8 and later include a number of helper methods for checking if a node is running in a public or private cloud.

cloud?

Determine if the current node is running a known public or private cloud.

ec2?

Determine if the current node is running in AWS EC2.

gce?

Determine if the current node is running in Google Compute Engine (GCE)

rackspace?

Determine if the current node is running in Rackspace.

eucalyptus?

Determine if the current node is running in Eucalyptus.

linode?

Determine if the current node is running in Linode.

openstack?

Determine if the current node is running in OpenStack.

azure?

Determine if the current node is running in Microsoft Azure.

digital_ocean?

Determine if the current node is running in DigitalOcean.

softlayer?

Determine if the current node is running in SoftLayer (IBM Cloud).

© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/infra_language/checking_clouds/