From 18a2525b7ab8f25790942e72774f118f94dbb0d1 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Sat, 6 Dec 2014 12:14:50 -0500 Subject: Update the README to show that .list is optional for sources --- README | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README b/README index 0057d87..0dec9d3 100644 --- a/README +++ b/README @@ -440,11 +440,13 @@ apt::sources_list Creates a file in the apt/sources.list.d directory to easily add additional apt sources. One can use either the 'source' meta-parameter to specify a list of static files to include from the puppet fileserver or the 'content' -meta-parameter to define content inline or with the help of a template. +meta-parameter to define content inline or with the help of a template. Ending +the resource name in '.list' is optional since this extension will +automatically be added to the created file. Example: - apt::sources_list { 'company_internals.list': + apt::sources_list { 'company_internals': source => [ "puppet:///modules/site_apt/${::fqdn}/company_internals.list", 'puppet:///modules/site_apt/company_internals.list' ], } -- cgit v1.2.3 From 54532e917965cba5989b3781071dd54af702752e Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Sat, 6 Dec 2014 21:55:20 -0500 Subject: rephrase documentation of option .list as suggested during review --- README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index 0dec9d3..2ebc1b7 100644 --- a/README +++ b/README @@ -441,8 +441,8 @@ Creates a file in the apt/sources.list.d directory to easily add additional apt sources. One can use either the 'source' meta-parameter to specify a list of static files to include from the puppet fileserver or the 'content' meta-parameter to define content inline or with the help of a template. Ending -the resource name in '.list' is optional since this extension will -automatically be added to the created file. +the resource name in '.list' is optional: it will be automatically added to the +file name if not present in the resource name. Example: -- cgit v1.2.3