From 7687c41a759f8a138a51f922b19d6ab4149df950 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Fri, 24 Feb 2017 17:01:05 -0500 Subject: Adjust README to show new parameter that's needed for preseeding. --- README.md | 19 +++++++++++++------ 1 file 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 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', } -- cgit v1.2.3