Unattended installation

I need to be able to provide a turnkey installation - where I can install openfire with no input from the user, and have a set of defaults (like xmpp.client.idle set to -1, certain plugins like the userservice installed, and the secret set, the domain set to the name of the machine) etc

Is there anyway of doing this from the command line, or is there a script that i can create to modify the default values.

Basically, I need to install openfire with a set of defaults and have it up and running with no user input.

Any help would be appreciated.

Julian