Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1441

Add "cloud" fact that identifies Azure on Linux

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • FACT 3.6.0
    • None
    • None
    • Analytics
    • 5
    • Analytics 2016-10-19, Analytics 2016-11-02, Analytics 2016-11-16, Analytics 2016-11-30, Analytics 2016-12-14
    • New Feature
    • Hide
      The addition of a new top-level fact, cloud, intended for discovering whether a node is running on a given public cloud provider. In this first release this currently detects whether a linux-based node is running in Azure, and provides that information in the cloud.provider fact.

      No other cloud providers are currently detected.

      {code}
      "cloud": {
          "provider": "azure"
      }
      {code}
      Show
      The addition of a new top-level fact, cloud, intended for discovering whether a node is running on a given public cloud provider. In this first release this currently detects whether a linux-based node is running in Azure, and provides that information in the cloud.provider fact. No other cloud providers are currently detected. {code} "cloud": {     "provider": "azure" } {code}
    • No Action
    • resource limitations

    Description

      We should add a fact that determines whether or not a VM is running in Azure.

      Fact structure:

      "cloud": {
          "provider": "azure"
      }
      

      *How to calculate whether a machine is running in Azure*

      Linux

      cat /var/lib/dhcp/dhclient.eth0.leases | grep "option 245"
      

      Expected Results
      Return value is not empty

      ****

      Note: Other platforms will be implemented in other tickets. For historical tracking, this was included in the original ticket:

      Windows

      $systemEnclosure = Get-WmiObject -class Win32_SystemEnclosure -namespace root\CIMV2
       
      $computerSystemProduct = Get-WmiObject -class Win32_ComputerSystemProduct -namespace root\CIMV2
       
      'ChassisAssetTag:       "{0}"' -f $systemEnclosure.SMBIOSAssetTag
      

      Expected Results

      "7783-7084-3265-9085-8269-3286-77"
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kenaz Kenaz Kwa
              Votes:
              3 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support