summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md19
1 files changed, 13 insertions, 6 deletions
diff --git a/README.md b/README.md
index 49110ba..eb83437 100644
--- a/README.md
+++ b/README.md
@@ -511,18 +511,25 @@ From apt_preferences(5):
## apt::package<a name="apt-package"></a>
This simplifies installation of packages for which you wish to preseed the
-answers to debconf. For example, if you wish to provide a preseed file for the
-locales package, you would place the `locales.seed` file in
+answers to debconf. To use preseeding you need to set the `use_seed` parameter
+to true. For example, if you wish to provide a preseed file for the locales
+package, you would place the `locales.seed` file in
`site_apt/templates/${::lsbdistcodename}/locales.seeds` and then include the
following in your manifest:
- apt::package { locales: }
+ apt::package { 'locales':
+ use_seed => true,
+ }
+
+You can change what template is used by setting `seedfile_template` to a
+template path (same as you would pass to the template() function).
-You can also specify the content of the seed via the content parameter,
-for example:
+You can also specify the content of the seed via the content parameter instead
+of using a template, for example:
apt::package { 'apticron':
- content => 'apticron apticron/notification string root@example.com',
+ use_seed => true,
+ content => 'apticron apticron/notification string root@example.com',
}