AppController/djinn.rb
# Create the system user used to start and run system's applications.
Create the system user used to start and run system's applications.
Create the system user used to start and run system ' s applications .
def create_appscale_user()
    uac = UserAppClient.new(my_node.private_ip, @@secret)
    password = SecureRandom.base64
    begin
      result = uac.commit_new_user(APPSCALE_USER, password, "app")
      Djinn.log_info("Created/confirmed system user: (#{result})")
    rescue FailedNodeException
      Djinn.log_warn("Failed to talk to the UserAppServer while committing " +
        "the system user.")
    end
  end
def create_appscale_user ( ) uac = UserAppClient . new ( my_node . private_ip , @@secret ) password = SecureRandom . base64 begin result = uac . commit_new_user ( APPSCALE_USER , password , "app" ) Djinn . log_info ( "Created/confirmed system user: (#{result})" ) rescue FailedNodeException Djinn . log_warn ( "Failed to talk to the UserAppServer while committing " + "the system user." ) end end
Create the system user used to start and run system's applications.
Create the system user used to start and run system ' s applications .