AppController/djinn.rb
# An Array of DjinnJobData objects, each of which containing information about
# a node in the currently running AppScale deployment.
An Array of DjinnJobData objects, each of which containing information about
a node in the currently running AppScale deployment.
An Array of DjinnJobData objects each of which containing information about a node in the currently running AppScale deployment .
def update_firewall()
    all_ips = []
    @nodes.each { |node|
      (all_ips << node.private_ip) unless all_ips.include? node.private_ip
    }
    all_ips << "\n"
    HelperFunctions.write_file("#{APPSCALE_CONFIG_DIR}/all_ips", all_ips.join("\n"))
    Djinn.log_debug("Letting the following IPs through the firewall: " +
      all_ips.join(', '))
    if FIREWALL_IS_ON
      Djinn.log_run("bash #{APPSCALE_HOME}/firewall.conf")
    end
  end
def update_firewall ( ) all_ips = [ ] @nodes . each { | node | ( all_ips << node . private_ip ) unless all_ips . include? node . private_ip } all_ips << "\n" HelperFunctions . write_file ( "#{APPSCALE_CONFIG_DIR}/all_ips" , all_ips . join ( "\n" ) ) Djinn . log_debug ( "Letting the following IPs through the firewall: " + all_ips . join ( ', ' ) ) if FIREWALL_IS_ON Djinn . log_run ( "bash #{APPSCALE_HOME}/firewall.conf" ) end end
An Array of DjinnJobData objects, each of which containing information about
a node in the currently running AppScale deployment.
An Array of DjinnJobData objects each of which containing information about a node in the currently running AppScale deployment .
# Re-run the filewall script here since we just wrote the all_ips file