Jira (FACT-716) Puppet 3.7.1 Agent on Windows blocks for 20 seconds trying to connect to ec2 metadata service on xen hypervisors

2015-02-06 Thread Jason Greathouse (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jason Greathouse commented on  FACT-716 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: Puppet 3.7.1 Agent on Windows blocks for 20 seconds trying to connect to ec2 metadata service on xen hypervisors  
 
 
 
 
 
 
 
 
 
 
I've found two workarounds to this. 
1.) Create a firewall rule to block outbound traffic to the user-data url: New-NetFirewallRule -DisplayName Block EC2 Magic Address -Action Block -Direction Outbound -Enabled True -InterfaceAlias private0 -RemoteAddress 169.254.169.254/32 
This didn't work long term for me because our provider, Rackspace manages the firewall configuration with their Rackconnect automation. 
2.) Remove the ec2 factor script: Remove-Item C:\Program Files\Puppet Labs\Puppet\factor\lib\facter\ec2.rb 
I don't like modifying a installed package like this. I would prefer if there was a way to blacklist built in factor scripts. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-176) facter as not-root user doesn't run scripts in /etc/facter/facts.d

2013-12-23 Thread Jason Greathouse (JIRA)
Title: Message Title










 

 Jason Greathouse created an issue


















 Facter /  FACT-176



  facter as not-root user doesn't run scripts in /etc/facter/facts.d  










Issue Type:

  Bug




Affects Versions:


 1.7.4




Assignee:

 Eric Sorenson




Created:


 23/Dec/13 11:49 AM




Environment:


Ubuntu 10.04 and 12.04 x86_64




Priority:

  Normal




Reporter:

 Jason Greathouse










Running facter as non-root no longer seems to run scripts in /etc/facter/facts.d  Permissions are readable and executable:



jgreat@ec2:/etc/facter/facts.d$ ls -alR /etc/facter
/etc/facter:
total 12
drwxr-xr-x  3 root root 4096 2013-12-23 17:39 .
drwxr-xr-x 85 root root 4096 2013-12-23 18:57 ..
drwxr-xr-x  2 root root 4096 2013-12-23 17:39 facts.d

/etc/facter/facts.d:
total 12
drwxr-xr-x 2 root root 4096 2013-12-23 17:39 .
drwxr-xr-x 3 root root 4096 2013-12-23 17:39 ..
-rwxr-xr-x 1 root root   48 2013-12-23 17:39 mt-facts.sh



A simple script to echo a key and value:



#!/bin/bash
echo mt_mode=fact