summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Filion <gabster@lelutin.ca>2017-02-24 17:01:05 -0500
committerGabriel Filion <gabster@lelutin.ca>2017-02-24 17:01:05 -0500
commit7687c41a759f8a138a51f922b19d6ab4149df950 (patch)
tree4852642d3cecccce5ec27fac75ca8f813b8f3141
parent1893f692dc430929240e5ec53480444d98055462 (diff)
Adjust README to show new parameter that's needed for preseeding.
-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',
}