openstack-manuals/doc/install-guide/section_debconf-preseeding.xml
Diane Fleming 42b23e8c84 Edits to install guide
Closes-Bug: #1249082

Change-Id: I9f68073da5ca25867b2b8c099cce5df34f6a3eec
author: diane fleming
2013-11-10 06:43:51 +01:00

28 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<section xml:id="debconf-preseeding"
xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
<title>Pre-seed debconf prompts</title>
<para>You can <firstterm>pre-seed</firstterm> all <systemitem
class="library">debconf</systemitem> prompts. To pre-seed means
to store responses in the <package>debconf</package> database so
that <package>debconf</package> does not prompt the user for
responses. Pre-seeding enables a hands-free installation for
users. The package maintainer creates scripts that automatically
configure the services.</para>
<para>The following example shows how to pre-seed an automated MySQL
Server installation:</para>
<programlisting language="bash">MYSQL_PASSWORD=<replaceable>MYSQL_PASSWORD</replaceable>
echo "mysql-server-5.5 mysql-server/root_password password ${<replaceable>MYSQL_PASSWORD</replaceable>}
mysql-server-5.5 mysql-server/root_password seen true
mysql-server-5.5 mysql-server/root_password_again password ${<replaceable>MYSQL_PASSWORD</replaceable>}
mysql-server-5.5 mysql-server/root_password_again seen true
" | debconf-set-selections
DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes mysql-server</programlisting>
<para>The <code>seen true</code> option tells
<package>debconf</package> that a specified screen was already
seen by the user so do not show it again. This option is useful
for upgrades.</para>
</section>