Commit 9876c31
Add support for deb822 APT sources (#1167)
* Initial testing for deb822 APT sources
* Added defined type for generating deb822 apt sources
Should be roughly drop-in alternative to the existing apt::source type
Does not currently support inline ascii gpg key
* Add puppet strings documentation
* Replace example with generic content
* Initial testing of apt::source with deb822 support
* Fix setting_type and signed_by
Use 'sources' instead of 'source' as the setting_type parsed to
apt::setting
Fix the data type of apt::source::signed_by
* Fix source_deb822.epp template
Correctly handle newline/whitespace trimming for `signed_by` parameter.
* Remove link from components to repos
* Add logic for deb822 sources
* Update documentation for deb822 sources
* Update source_format parameter
Match the possible values to the file suffix of the created source
files.
* Add forward-compatibility with deb822
Allow array values for certain parameters to allow easy switching between .list and .sources formats.
* Add backward-compatibility for deb822 sources
Convert string values to arrays where possible and warn the user.
* Fix logic
* Revert "Add forward-compatibility with deb822"
This reverts commit 9d88e93.
* Fix deb822 backward compatibility
Correctly compare data type when generating deb822 sources
Remove unused class parameters and descriptions
* Update puppet-strings and logic
Remove references to unused deb822 parameters
Update parameter descriptions
Update deb822 example
Update warnings for $pin and $key usage with deb822. Currently
unsupported
Don't fail if $location is missing unless $ensure is 'present'
* Remove unused spec test
* Add unit testing for deb822 sources
* Update README.md with deb822 sources example
* Fix unit test syntax
* Re-apply commit 2faa817
eliminate params.pp and create_resources()
params.pp and create_resources() are obsolete.
This module was converted to non-params.pp style #667, but was
reverted in #680. Using Hiera in modules and no params.pp are the
preferred styles these days.
* Update apt::config_files hash
Add support for deb822 .sources files
* Update data types and documentation
Re-apply data-type changes for apt::source::pin from 1e1baad
Regenerate puppet strings to match.
* Update source_deb822.epp template
Remove leading whitespace
* Update manifests/setting.pp
Simplify apt::setting logic
Co-authored-by: Tim Meusel <[email protected]>
---------
Co-authored-by: James Paton-Smith <[email protected]>
Co-authored-by: Tim Meusel <[email protected]>1 parent 30e8065 commit 9876c31
File tree
7 files changed
+439
-154
lines changed- manifests
- spec/defines
- templates
7 files changed
+439
-154
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
228 | 249 | | |
229 | 250 | | |
230 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
405 | 409 | | |
406 | 410 | | |
407 | 411 | | |
| |||
1088 | 1092 | | |
1089 | 1093 | | |
1090 | 1094 | | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1091 | 1106 | | |
1092 | 1107 | | |
1093 | 1108 | | |
1094 | 1109 | | |
| 1110 | + | |
1095 | 1111 | | |
| 1112 | + | |
| 1113 | + | |
1096 | 1114 | | |
1097 | 1115 | | |
1098 | 1116 | | |
| |||
1107 | 1125 | | |
1108 | 1126 | | |
1109 | 1127 | | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1110 | 1136 | | |
1111 | 1137 | | |
1112 | | - | |
| 1138 | + | |
1113 | 1139 | | |
1114 | | - | |
| 1140 | + | |
| 1141 | + | |
1115 | 1142 | | |
1116 | 1143 | | |
1117 | 1144 | | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
1118 | 1161 | | |
1119 | 1162 | | |
1120 | 1163 | | |
| |||
1133 | 1176 | | |
1134 | 1177 | | |
1135 | 1178 | | |
1136 | | - | |
| 1179 | + | |
1137 | 1180 | | |
1138 | 1181 | | |
| 1182 | + | |
1139 | 1183 | | |
1140 | 1184 | | |
1141 | 1185 | | |
1142 | 1186 | | |
1143 | 1187 | | |
1144 | | - | |
| 1188 | + | |
1145 | 1189 | | |
1146 | 1190 | | |
| 1191 | + | |
1147 | 1192 | | |
1148 | 1193 | | |
1149 | 1194 | | |
| |||
1194 | 1239 | | |
1195 | 1240 | | |
1196 | 1241 | | |
1197 | | - | |
| 1242 | + | |
1198 | 1243 | | |
1199 | 1244 | | |
1200 | 1245 | | |
1201 | 1246 | | |
| 1247 | + | |
1202 | 1248 | | |
1203 | 1249 | | |
1204 | 1250 | | |
1205 | 1251 | | |
1206 | 1252 | | |
1207 | | - | |
| 1253 | + | |
1208 | 1254 | | |
1209 | 1255 | | |
1210 | 1256 | | |
1211 | | - | |
| 1257 | + | |
1212 | 1258 | | |
1213 | 1259 | | |
1214 | 1260 | | |
1215 | | - | |
| 1261 | + | |
1216 | 1262 | | |
1217 | 1263 | | |
1218 | 1264 | | |
1219 | | - | |
| 1265 | + | |
1220 | 1266 | | |
1221 | 1267 | | |
1222 | 1268 | | |
| |||
1228 | 1274 | | |
1229 | 1275 | | |
1230 | 1276 | | |
1231 | | - | |
| 1277 | + | |
1232 | 1278 | | |
1233 | 1279 | | |
1234 | 1280 | | |
1235 | | - | |
| 1281 | + | |
1236 | 1282 | | |
1237 | 1283 | | |
1238 | 1284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
216 | 220 | | |
217 | 221 | | |
218 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments