Created
December 22, 2011 14:39
-
-
Save johntdyer/1510507 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template "#{path}/conf/sipmethod.xml" do | |
| source "sipmethod.xml.erb" | |
| owner u | |
| group g | |
| variables( | |
| :mrcp_ip => node["ec2"]["public_ipv4"], # Ticket: 1615349 node["prism"]["config"]["MRCPSRV"]["IP"], | |
| :mrcp_port => node["prism"]["config"]["MRCPSRV"]["Port"], | |
| :address => node["prism"]["sipmethod"]["address"], | |
| :relay_address => node["prism"]["sipmethod"]["relay_address"], | |
| :relay_port => node["prism"]["sipmethod"]["relay_port"], | |
| :udp_network_access_points => node["prism"]["sipmethod"]["NetworkAccessPoint"]["udp"], | |
| :tcp_network_access_points => node["prism"]["sipmethod"]["NetworkAccessPoint"]["tcp"], | |
| :xmpp_client_port => node["prism"]["sipmethod"]["xmpp_client_port"], | |
| :xmpp_server_port => node["prism"]["sipmethod"]["xmpp_server_port"], | |
| :http_port => node["prism"]["sipmethod"]["http_port"], | |
| :use_loop_back_address => node["prism"]["sipmethod"]["useLoopBackAddress"], | |
| :peers => search(:node, "role:#{node.roles.include?('rayo_gateway') ? 'rayo_gateway' : 'rayo_node'} AND chef_environment:#{node.chef_environment} NOT name:#{node.name}") | |
| ) | |
| mode 0644 | |
| notifies :restart, resources(:service => "voxeo-as") | |
| notifies :restart, resources(:service => "voxeo-ms") | |
| only_if{ Prism.mrcp_sessions(node["ipaddress"]) == 0 } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment