#        
# Cookbook Name:: opentreemapper_install
# Recipe:: default
#
# Copyright 2012, City of Asheville
#
# All rights reserved - Do Not Redistribute
#

rightscale_marker :begin

#node[:app][:provider] = "opentreemapper_install"

#this overides RightScale recipe which dose not work for postgres client on ubuntu.  
#Ubuntu is better suited for the tree mapper. and some repositories are not available for centos 
log "  close postgres firewall on db server"
sys_firewall "Request database open port 5432 (PostgreSQL) to this server" do
  machine_tag  "database:active=true"
  port 5432
  enable false
  ip_addr  node[:cloud][:private_ips][0]
  action :update_request
end


rightscale_marker :end
