module ChefUtils::DSL::Cloud

def alibaba?(node = __getnode)

Returns:
  • (Boolean) -

Other tags:
    Since: - 17.0

Parameters:
  • node (Chef::Node) -- the node to check
def alibaba?(node = __getnode)
  node.key?("alibaba")
end

def azure?(node = __getnode)

Returns:
  • (Boolean) -

Other tags:
    Since: - 15.8

Parameters:
  • node (Chef::Node) -- the node to check
def azure?(node = __getnode)
  node.key?("azure")
end

def cloud?(node = __getnode)

Returns:
  • (Boolean) -

Other tags:
    Since: - 15.8

Parameters:
  • node (Chef::Node) -- the node to check
def cloud?(node = __getnode)
  # cloud is always present, but nil if not on a cloud
  !node["cloud"].nil?
end

def digital_ocean?(node = __getnode)

Returns:
  • (Boolean) -

Other tags:
    Since: - 15.8

Parameters:
  • node (Chef::Node) -- the node to check
def digital_ocean?(node = __getnode)
  node.key?("digital_ocean")
end

def ec2?(node = __getnode)

Returns:
  • (Boolean) -

Other tags:
    Since: - 15.8

Parameters:
  • node (Chef::Node) -- the node to check
def ec2?(node = __getnode)
  node.key?("ec2")
end

def eucalyptus?(node = __getnode)

Returns:
  • (Boolean) -

Other tags:
    Since: - 15.8

Parameters:
  • node (Chef::Node) -- the node to check
def eucalyptus?(node = __getnode)
  node.key?("eucalyptus")
end

def gce?(node = __getnode)

Returns:
  • (Boolean) -

Other tags:
    Since: - 15.8

Parameters:
  • node (Chef::Node) -- the node to check
def gce?(node = __getnode)
  node.key?("gce")
end

def linode?(node = __getnode)

Returns:
  • (Boolean) -

Other tags:
    Since: - 15.8

Parameters:
  • node (Chef::Node) -- the node to check
def linode?(node = __getnode)
  node.key?("linode")
end

def openstack?(node = __getnode)

Returns:
  • (Boolean) -

Other tags:
    Since: - 15.8

Parameters:
  • node (Chef::Node) -- the node to check
def openstack?(node = __getnode)
  node.key?("openstack")
end

def rackspace?(node = __getnode)

Returns:
  • (Boolean) -

Other tags:
    Since: - 15.8

Parameters:
  • node (Chef::Node) -- the node to check
def rackspace?(node = __getnode)
  node.key?("rackspace")
end

def softlayer?(node = __getnode)

Returns:
  • (Boolean) -

Other tags:
    Since: - 15.8

Parameters:
  • node (Chef::Node) -- the node to check
def softlayer?(node = __getnode)
  node.key?("softlayer")
end