@@ -1040,10 +1040,9 @@ apt::source { 'puppetlabs':
1040
1040
``` puppet
1041
1041
apt::source { 'puppetlabs':
1042
1042
source_format => 'sources'
1043
- uris => ['http://apt.puppetlabs.com'],
1044
- suites => [$facts['os']['distro']['codename']],
1045
- components => ['puppet8'],
1046
- signed_by => '/etc/apt/keyrings/puppetlabs.gpg',
1043
+ location => ['http://apt.puppetlabs.com'],
1044
+ repos => ['puppet8'],
1045
+ keyring => '/etc/apt/keyrings/puppetlabs.gpg',
1047
1046
}
1048
1047
```
1049
1048
@@ -1054,23 +1053,17 @@ The following parameters are available in the `apt::source` defined type:
1054
1053
* [ ` source_format ` ] ( #-apt--source--source_format )
1055
1054
* [ ` location ` ] ( #-apt--source--location )
1056
1055
* [ ` types ` ] ( #-apt--source--types )
1057
- * [ ` uris ` ] ( #-apt--source--uris )
1058
1056
* [ ` enabled ` ] ( #-apt--source--enabled )
1059
1057
* [ ` comment ` ] ( #-apt--source--comment )
1060
1058
* [ ` ensure ` ] ( #-apt--source--ensure )
1061
1059
* [ ` release ` ] ( #-apt--source--release )
1062
- * [ ` suites ` ] ( #-apt--source--suites )
1063
1060
* [ ` repos ` ] ( #-apt--source--repos )
1064
- * [ ` components ` ] ( #-apt--source--components )
1065
1061
* [ ` include ` ] ( #-apt--source--include )
1066
1062
* [ ` key ` ] ( #-apt--source--key )
1067
1063
* [ ` keyring ` ] ( #-apt--source--keyring )
1068
- * [ ` signed_by ` ] ( #-apt--source--signed_by )
1069
1064
* [ ` pin ` ] ( #-apt--source--pin )
1070
1065
* [ ` architecture ` ] ( #-apt--source--architecture )
1071
- * [ ` architectures ` ] ( #-apt--source--architectures )
1072
1066
* [ ` allow_unsigned ` ] ( #-apt--source--allow_unsigned )
1073
- * [ ` repo_trusted ` ] ( #-apt--source--repo_trusted )
1074
1067
* [ ` allow_insecure ` ] ( #-apt--source--allow_insecure )
1075
1068
* [ ` notify_update ` ] ( #-apt--source--notify_update )
1076
1069
* [ ` check_valid_until ` ] ( #-apt--source--check_valid_until )
@@ -1085,9 +1078,10 @@ Default value: `'list'`
1085
1078
1086
1079
##### <a name =" -apt--source--location " ></a >` location `
1087
1080
1088
- Data type: ` Optional[String] `
1081
+ Data type: ` Optional[Variant[ String, Array[String]] ] `
1089
1082
1090
1083
Required, unless ensure is set to 'absent'. Specifies an Apt repository. Valid options: a string containing a repository URL.
1084
+ DEB822: Supports an array of URL values
1091
1085
1092
1086
Default value: ` undef `
1093
1087
@@ -1099,14 +1093,6 @@ DEB822: The package types this source manages.
1099
1093
1100
1094
Default value: ` ['deb'] `
1101
1095
1102
- ##### <a name =" -apt--source--uris " ></a >` uris `
1103
-
1104
- Data type: ` Optional[Array[String]] `
1105
-
1106
- DEB822: A list of URIs for the APT source.
1107
-
1108
- Default value: ` undef `
1109
-
1110
1096
##### <a name =" -apt--source--enabled " ></a >` enabled `
1111
1097
1112
1098
Data type: ` Boolean `
@@ -1133,36 +1119,22 @@ Default value: `present`
1133
1119
1134
1120
##### <a name =" -apt--source--release " ></a >` release `
1135
1121
1136
- Data type: ` Optional[String] `
1122
+ Data type: ` Optional[Variant[ String, Array[String]] ] `
1137
1123
1138
1124
Specifies a distribution of the Apt repository.
1139
-
1140
- Default value: ` undef `
1141
-
1142
- ##### <a name =" -apt--source--suites " ></a >` suites `
1143
-
1144
- Data type: ` Optional[Array[String]] `
1145
-
1146
- DEB822: A list of suites for the APT source ('jammy-updates', 'bookworm', 'stable', etc.).
1125
+ DEB822: Supports an array of values
1147
1126
1148
1127
Default value: ` undef `
1149
1128
1150
1129
##### <a name =" -apt--source--repos " ></a >` repos `
1151
1130
1152
- Data type: ` String `
1131
+ Data type: ` Variant[ String, Array[String]] `
1153
1132
1154
1133
Specifies a component of the Apt repository.
1134
+ DEB822: Supports an array of values
1155
1135
1156
1136
Default value: ` 'main' `
1157
1137
1158
- ##### <a name =" -apt--source--components " ></a >` components `
1159
-
1160
- Data type: ` Optional[Array[String]] `
1161
-
1162
- DEB822: A list of components for the APT source ('main', 'contrib', 'non-free', etc.).
1163
-
1164
- Default value: ` undef `
1165
-
1166
1138
##### <a name =" -apt--source--include " ></a >` include `
1167
1139
1168
1140
Data type: ` Variant[Hash] `
@@ -1199,14 +1171,6 @@ See https://wiki.debian.org/DebianRepository/UseThirdParty for details.
1199
1171
1200
1172
Default value: ` undef `
1201
1173
1202
- ##### <a name =" -apt--source--signed_by " ></a >` signed_by `
1203
-
1204
- Data type: ` Optional[Variant[Stdlib::AbsolutePath,Array[String]]] `
1205
-
1206
- DEB822: Either an absolute path to a PGP keyring file used to sign this repository OR a list of key fingerprints to trust.
1207
-
1208
- Default value: ` undef `
1209
-
1210
1174
##### <a name =" -apt--source--pin " ></a >` pin `
1211
1175
1212
1176
Data type: ` Optional[Variant[Hash, Numeric, String]] `
@@ -1218,19 +1182,12 @@ Default value: `undef`
1218
1182
1219
1183
##### <a name =" -apt--source--architecture " ></a >` architecture `
1220
1184
1221
- Data type: ` Optional[String] `
1185
+ Data type: ` Optional[Variant[ String, Array[String]] ] `
1222
1186
1223
1187
Tells Apt to only download information for specified architectures. Valid options: a string containing one or more architecture names,
1224
1188
separated by commas (e.g., 'i386' or 'i386,alpha,powerpc').
1225
1189
(if unspecified, Apt downloads information for all architectures defined in the Apt::Architectures option)
1226
-
1227
- Default value: ` undef `
1228
-
1229
- ##### <a name =" -apt--source--architectures " ></a >` architectures `
1230
-
1231
- Data type: ` Optional[Array[String]] `
1232
-
1233
- DEB822: A list of supported architectures for the APT source ('amd64', 'i386', etc.).
1190
+ DEB822: Supports an array of values
1234
1191
1235
1192
Default value: ` undef `
1236
1193
@@ -1242,14 +1199,6 @@ Specifies whether to authenticate packages from this release, even if the Releas
1242
1199
1243
1200
Default value: ` undef `
1244
1201
1245
- ##### <a name =" -apt--source--repo_trusted " ></a >` repo_trusted `
1246
-
1247
- Data type: ` Optional[Boolean] `
1248
-
1249
- DEB822: Consider the APT source trusted, even if authentication checks fail.
1250
-
1251
- Default value: ` undef `
1252
-
1253
1202
##### <a name =" -apt--source--allow_insecure " ></a >` allow_insecure `
1254
1203
1255
1204
Data type: ` Optional[Boolean] `
0 commit comments