Tag Archives: ruby

Puppet facts, json and max nesting

I use Puppet for both business and pleasure and my work often involves writing custom Puppet facts to expose various bits of information. Recently a fact I had written that worked on the development machines started throwing errors when run on our production … Continue reading

Tagged , , , , , , | Leave a comment

Ruby Net::HTTP & Proxies

I ran into a really annoying issue today with Ruby and the Net::HTTP class when trying to make requests out via the restrictive corporate proxy at the office. The documentation states that “Net::HTTP will automatically create a proxy from the … Continue reading

Tagged , , , , | 2 Comments

Exposing name servers with Puppet Facts

Carrying on from the last post, I needed a good reliable way to point my Nginx configuration at a DNS server to use for resolving backends. The issue is that I wanted my Puppet module to be portable across various … Continue reading

Tagged , , , , , , , , | 6 Comments

Nginx, reverse proxies and DNS resolution

Nginx is a pretty awesome high performance web server and reverse proxy. It’s often used in conjunction with other HTTP servers such as Java/Tomcat and Ruby/Unicorn, as it allows static content to be served directly from disk by Nginx and … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , | 9 Comments