Skip to content

Instantly share code, notes, and snippets.

@leifmadsen
Created October 19, 2012 15:16
Show Gist options
  • Save leifmadsen/3918769 to your computer and use it in GitHub Desktop.
Save leifmadsen/3918769 to your computer and use it in GitHub Desktop.
service "opensips" do
supports :status => true, :restart => true
action [ :enable, :start ]
end
## Post opensips start configuration
fs_list.each do |fs|
execute "trusted_fs" do
command "/usr/sbin/opensipsctl trusted add #{fs.va_public_ipaddress} any"
action :run
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment