1313
1414#### Private Classes
1515
16+ * ` apt::params ` : Provides defaults for the Apt module parameters.
1617* ` apt::update ` : Updates the list of available packages using apt-get update.
1718
1819### Defined types
@@ -1093,10 +1094,9 @@ apt::source { 'puppetlabs':
10931094``` puppet
10941095apt::source { 'puppetlabs':
10951096 source_format => 'sources'
1096- uris => ['http://apt.puppetlabs.com'],
1097- suites => [$facts['os']['distro']['codename']],
1098- components => ['puppet8'],
1099- signed_by => '/etc/apt/keyrings/puppetlabs.gpg',
1097+ location => ['http://apt.puppetlabs.com'],
1098+ repos => ['puppet8'],
1099+ keyring => '/etc/apt/keyrings/puppetlabs.gpg',
11001100}
11011101```
11021102
@@ -1107,23 +1107,17 @@ The following parameters are available in the `apt::source` defined type:
11071107* [ ` source_format ` ] ( #-apt--source--source_format )
11081108* [ ` location ` ] ( #-apt--source--location )
11091109* [ ` types ` ] ( #-apt--source--types )
1110- * [ ` uris ` ] ( #-apt--source--uris )
11111110* [ ` enabled ` ] ( #-apt--source--enabled )
11121111* [ ` comment ` ] ( #-apt--source--comment )
11131112* [ ` ensure ` ] ( #-apt--source--ensure )
11141113* [ ` release ` ] ( #-apt--source--release )
1115- * [ ` suites ` ] ( #-apt--source--suites )
11161114* [ ` repos ` ] ( #-apt--source--repos )
1117- * [ ` components ` ] ( #-apt--source--components )
11181115* [ ` include ` ] ( #-apt--source--include )
11191116* [ ` key ` ] ( #-apt--source--key )
11201117* [ ` keyring ` ] ( #-apt--source--keyring )
1121- * [ ` signed_by ` ] ( #-apt--source--signed_by )
11221118* [ ` pin ` ] ( #-apt--source--pin )
11231119* [ ` architecture ` ] ( #-apt--source--architecture )
1124- * [ ` architectures ` ] ( #-apt--source--architectures )
11251120* [ ` allow_unsigned ` ] ( #-apt--source--allow_unsigned )
1126- * [ ` repo_trusted ` ] ( #-apt--source--repo_trusted )
11271121* [ ` allow_insecure ` ] ( #-apt--source--allow_insecure )
11281122* [ ` notify_update ` ] ( #-apt--source--notify_update )
11291123* [ ` check_valid_until ` ] ( #-apt--source--check_valid_until )
@@ -1138,9 +1132,10 @@ Default value: `'list'`
11381132
11391133##### <a name =" -apt--source--location " ></a >` location `
11401134
1141- Data type: ` Optional[String[1]] `
1135+ Data type: ` Optional[Variant[ String[1], Array[String[1]] ]] `
11421136
1143- Required, unless ensure is set to 'absent'. Specifies an Apt repository.
1137+ Required, unless ensure is set to 'absent'. Specifies an Apt repository. Valid options: a string containing a repository URL.
1138+ DEB822: Supports an array of URL values
11441139
11451140Default value: ` undef `
11461141
@@ -1152,14 +1147,6 @@ DEB822: The package types this source manages.
11521147
11531148Default value: ` ['deb'] `
11541149
1155- ##### <a name =" -apt--source--uris " ></a >` uris `
1156-
1157- Data type: ` Optional[Array[String]] `
1158-
1159- DEB822: A list of URIs for the APT source.
1160-
1161- Default value: ` undef `
1162-
11631150##### <a name =" -apt--source--enabled " ></a >` enabled `
11641151
11651152Data type: ` Boolean `
@@ -1186,36 +1173,22 @@ Default value: `present`
11861173
11871174##### <a name =" -apt--source--release " ></a >` release `
11881175
1189- Data type: ` Optional[String[0]] `
1176+ Data type: ` Optional[Variant[ String[0], Array[String[0]] ]] `
11901177
11911178Specifies a distribution of the Apt repository.
1192-
1193- Default value: ` undef `
1194-
1195- ##### <a name =" -apt--source--suites " ></a >` suites `
1196-
1197- Data type: ` Optional[Array[String]] `
1198-
1199- DEB822: A list of suites for the APT source ('jammy-updates', 'bookworm', 'stable', etc.).
1179+ DEB822: Supports an array of values
12001180
12011181Default value: ` undef `
12021182
12031183##### <a name =" -apt--source--repos " ></a >` repos `
12041184
1205- Data type: ` String[1] `
1185+ Data type: ` Variant[ String[1], Array[String[1]] ]`
12061186
12071187Specifies a component of the Apt repository.
1188+ DEB822: Supports an array of values
12081189
12091190Default value: ` 'main' `
12101191
1211- ##### <a name =" -apt--source--components " ></a >` components `
1212-
1213- Data type: ` Optional[Array[String]] `
1214-
1215- DEB822: A list of components for the APT source ('main', 'contrib', 'non-free', etc.).
1216-
1217- Default value: ` undef `
1218-
12191192##### <a name =" -apt--source--include " ></a >` include `
12201193
12211194Data type: ` Hash `
@@ -1252,17 +1225,9 @@ See https://wiki.debian.org/DebianRepository/UseThirdParty for details.
12521225
12531226Default value: ` undef `
12541227
1255- ##### <a name =" -apt--source--signed_by " ></a >` signed_by `
1256-
1257- Data type: ` Optional[Variant[Stdlib::AbsolutePath,Array[String]]] `
1258-
1259- DEB822: Either an absolute path to a PGP keyring file used to sign this repository OR a list of key fingerprints to trust.
1260-
1261- Default value: ` undef `
1262-
12631228##### <a name =" -apt--source--pin " ></a >` pin `
12641229
1265- Data type: ` Optional[Variant[Hash, Integer , String[1] ]] `
1230+ Data type: ` Optional[Variant[Hash, Numeric , String]] `
12661231
12671232Creates a declaration of the apt::pin defined type. Valid options: a number or string to be passed to the ` priority ` parameter of the
12681233` apt::pin ` defined type, or a hash of ` parameter => value ` pairs to be passed to ` apt::pin ` 's corresponding parameters.
@@ -1271,19 +1236,12 @@ Default value: `undef`
12711236
12721237##### <a name =" -apt--source--architecture " ></a >` architecture `
12731238
1274- Data type: ` Optional[String[1]] `
1239+ Data type: ` Optional[Variant[ String[1], Array[String[1]] ]] `
12751240
12761241Tells Apt to only download information for specified architectures. Valid options: a string containing one or more architecture names,
12771242separated by commas (e.g., 'i386' or 'i386,alpha,powerpc').
12781243(if unspecified, Apt downloads information for all architectures defined in the Apt::Architectures option)
1279-
1280- Default value: ` undef `
1281-
1282- ##### <a name =" -apt--source--architectures " ></a >` architectures `
1283-
1284- Data type: ` Optional[Array[String]] `
1285-
1286- DEB822: A list of supported architectures for the APT source ('amd64', 'i386', etc.).
1244+ DEB822: Supports an array of values
12871245
12881246Default value: ` undef `
12891247
@@ -1295,14 +1253,6 @@ Specifies whether to authenticate packages from this release, even if the Releas
12951253
12961254Default value: ` undef `
12971255
1298- ##### <a name =" -apt--source--repo_trusted " ></a >` repo_trusted `
1299-
1300- Data type: ` Optional[Boolean] `
1301-
1302- DEB822: Consider the APT source trusted, even if authentication checks fail.
1303-
1304- Default value: ` undef `
1305-
13061256##### <a name =" -apt--source--allow_insecure " ></a >` allow_insecure `
13071257
13081258Data type: ` Optional[Boolean] `
0 commit comments