Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-11-16 Thread Rajasree Talla (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Rajasree Talla updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1441 
 
 
 
  Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 

Change By:
 
 Rajasree Talla 
 
 
 

Sprint:
 
 Analytics 2016-10-19, Analytics 2016-11-02, Analytics 2016-11-16 , Analytics 2016-11-30 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-11-04 Thread Garrett Guillotte (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Garrett Guillotte commented on  FACT-1441 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 
 
For cloud platforms/providers, we don't use platform or provider as core fact names, but I imagine those would be at least as likely to collide with custom facts. We also don't use stack, which Azure and AWS both use to describe broad collections of tools and infrastructure that comprise a cloud service, though not in a consistent way (for instance, the more specific use of stack w/r/t OpsWorks, or Microsoft's "Azure Stack" on-premises product that's distinct from Azure as a cloud service). 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-11-04 Thread Gareth Rushgrove (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Gareth Rushgrove commented on  FACT-1441 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 
 
So, naming is hard. 
This issues goes from a specific need "We should add a fact that determines whether or not a VM is running in Azure" to a general solution: 
 
 
 
 
 
 
"virtualization": { 
 
 
 
 
 "hypervisor": "kvm", 
 
 
 
 
 "cloud": { 
 
 
 
 
"provider": "azure", 
 
 
 
 
"metadata": ... 
 
 
 
 
 }
 
 
 
 
 
 
 
But I think their is an assumption in the proposed structure which isn't explicit, and which I think is wrong. It assumes that a cloud provider is providing virtual machines running on top of a hypervisor. That's not 100% true of, for instance, Packet or Softlayer or Oracle Cloud. For instance the following would not make sense, because Packet isn't using virtualization. 
 
 
 
 
 
 
"virtualization": { 
 
 
 
 
 "cloud": { 
 
   

Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-11-03 Thread Brian Cain (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Brian Cain commented on  FACT-1441 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 
 
Branan Riley do you know a good solution for this? ^ 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-11-02 Thread Scott McClellan (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Scott McClellan commented on  FACT-1441 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 
 
I'm not clear on the best method forward for a Windows implementation of the Azure check. Apparently, shelling out to a Powershell script within a core Facter fact is a performance no-no, but I'm not finding a way to convert these Powershell commands into Boost/C++. What is the right path forward here? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-11-02 Thread Patrick Carlisle (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Patrick Carlisle updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1441 
 
 
 
  Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 

Change By:
 
 Patrick Carlisle 
 
 
 

Sprint:
 
 Analytics 2016-10-19, Analytics 2016-11-02 , Analytics 2016-11-16 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-10-27 Thread Scott McClellan (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Scott McClellan updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1441 
 
 
 
  Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 

Change By:
 
 Scott McClellan 
 
 
 
 
 
 
 
 
 
 We should add a fact that determines whether or not a VM is running in Azure.Fact structure:{code}"virtualization": { "hypervisor": "kvm", "cloud": {"provider": "azure" }}{code}Note that {{hypervisor}} above is the same as the {{virtual}} fact.**How to calculate whether a machine is running in Azure***Windows* {code}$systemEnclosure = Get-WmiObject -class Win32_SystemEnclosure -namespace root\CIMV2$computerSystemProduct = Get-WmiObject -class Win32_ComputerSystemProduct -namespace root\CIMV2'ChassisAssetTag:   "{0}"' -f $systemEnclosure.SMBIOSAssetTag{code}*Expected Results*{code}"7783-7084-3265-9085-8269-3286-77"{code}*Linux*{code}sudo  dmidecode |  grep  "Asset Tag: 7783-7084-3265-9085-8269-3286-77"  /var/lib/dhcp/dhclient.eth0.leases {code}*Expected Results*{code}Asset Tag: 7783-7084-3265-9085-8269-3286-77{code} 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-10-25 Thread Brian Cain (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Brian Cain commented on  FACT-1441 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 
 
Sweet! That works for me. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-10-25 Thread Kenaz Kwa (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kenaz Kwa commented on  FACT-1441 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 
 
Brian Cain The DHCP 245 option is the only one that Microsoft has officially sanctioned as the way to determine whether a VM is running in Azure: 
https://gallery.technet.microsoft.com/scriptcenter/Detect-Windows-Azure-aed06d51 
It's true that they might change the implementation – but that's what they've documented so far. The FACT-1383 ticket refers to an instance metadata feature with is currently in private preview on the Azure team (I have one of my VMs enabled to use it). It's not documented anywhere and we shouldn't trust it until it's gone officially GA.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-10-24 Thread Brian Cain (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Brian Cain commented on  FACT-1441 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 
 
How reliable is it for us to build these methods into facter? Will grepping for unknown-245 in var/lib/dhcp/dhclient.eth0.leases always work for us in the future? Or curling for FullConfig in /var/lib/waagent/GoalState.1.xml? None of these seem like solid future proof ways for determining Azure. What happens if those change? 
From the original ticket FACT-1383, we have an endpoint that we can query but it will only return data if it's about to go under maintenance (otherwise it returns empty). It also claims there's an InstanceInfo endpoint but I haven't seen much documentation on that endpoint or if it exists. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-10-19 Thread Patrick Carlisle (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Patrick Carlisle updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1441 
 
 
 
  Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 

Change By:
 
 Patrick Carlisle 
 
 
 

Sprint:
 
 Triage,  Analytics 2016-10-19 , Analytics 2016-11-02 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-10-19 Thread Patrick Carlisle (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Patrick Carlisle updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1441 
 
 
 
  Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 

Change By:
 
 Patrick Carlisle 
 
 
 

Sprint:
 
 Triage, Analytics 2016-10-19 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-10-17 Thread Branan Riley (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Branan Riley commented on  FACT-1441 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 
 
Scott McClellan I'd duplicate the virtual fact, yeah. And also the EC2 metadata when it's running in that environment. We may also want to look at the virtual fact and ensure that it's really reporting hypervisors, and not cloud systems - I think it kinda-sorta does both in some cases. Now that we have separate fields we should fix that up if needed for the hypervisor fact (while maintaining the old idea of the "virtual" fact) 
I think the "right way" to do this is to move the virtual and ec2 fact data into the new virtualization fact, and from there make the require legacy bits (the virtual fact and the ec2_metadata) available at the top level. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-10-14 Thread Scott McClellan (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Scott McClellan commented on  FACT-1441 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 
 
What should this new fact look like if the node is not running in Azure? This ticket doesn't describe how to check for AWS, so I assume that is a separate ticket. For non-Azure, I guess the fact would be blank like this: 
 
 
 
 
 
 
virtualization: {}
 
 
 
 
 
 
 
I'm not clear on where the virtualization.cloud.metadata value in Eric Sorenson's earlier comment is calculated. 
To clarify, the hypervisor is duplicated in both the virtual fact and virtualization.hypervisor? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1441) Add "virtualization" fact that identifies AWS, Azure, etc

2016-10-13 Thread Scott McClellan (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Scott McClellan updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1441 
 
 
 
  Add "virtualization" fact that identifies AWS, Azure, etc  
 
 
 
 
 
 
 
 
 

Change By:
 
 Scott McClellan 
 
 
 

Summary:
 
 Add " cloud virtualization "  or similar  fact that identifies AWS, Azure, etc 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.