cloudamatic/mu

View on GitHub
bin/mu-firewall-allow-clients

Summary

Maintainability
Test Coverage
#!/usr/local/ruby-current/bin/ruby
# Copyright:: Copyright (c) 2014 eGlobalTech, Inc., all rights reserved
#
# Licensed under the BSD-3 license (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License in the root of the project or at
#
#     http://egt-labs.com/mu/LICENSE.html
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Manages network access to our syslog port (10514) for clients, by harvesting
# a list of IPs from Chef (and assuming that we're in EC2).

if ARGV.size > 0
  puts "#{$0}: Freshen the Mu Master's security groups to allow client nodes to connect back."
  exit 1
end

require 'rubygems'
require 'bundler/setup'
require 'mu'

# XXX this should be rolled into mu-aws-setup

MU::Cloud::AWS.openFirewallForClients