Skip to content

Instantly share code, notes, and snippets.

@pjkelly
Created July 7, 2011 17:04
Show Gist options
  • Save pjkelly/1069985 to your computer and use it in GitHub Desktop.
Save pjkelly/1069985 to your computer and use it in GitHub Desktop.
Unattended interactive installers with Puppet/Moonshine

Three options:

  1. If an apt-get package is available, use it, then tweak configuration files after installation.
  2. If no package is available, see if the installer has a "noninteractive" mode. For instance, apt-get can be forced to auto-answer all questions with the defaults using ENV['DEBIAN_FRONTEND'] = "noninteractive".
  3. If a noninteractive mode is not available, try feeding the installer an answer file. e.g.
pecl install apc < answers.txt 

Creating an answer file can be done manually, or you can try to use autoexpect to generate an installer script.

credit: thanks to Jesse Newland for ideas and info. Originally discussed on the Moonshine mailing list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment