File tree 8 files changed +31
-1
lines changed
8 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,7 @@ profiles_root: "./profiles"
9
9
pkg_system : " rpm"
10
10
11
11
init_system : " systemd"
12
+
13
+ # Mapping of CPE platform to package
14
+ platform_package_overrides :
15
+ login_defs : " shadow-utils"
Original file line number Diff line number Diff line change @@ -20,3 +20,7 @@ aux_pkg_version: "2fa658e0"
20
20
21
21
release_key_fingerprint : " 567E347AD0044ADE55BA8A5F199E2F91FD431D51"
22
22
auxiliary_key_fingerprint : " 43A6E49C4A38F4BE9ABF2A5345689C882FA658E0"
23
+
24
+ # Mapping of CPE platform to package
25
+ platform_package_overrides :
26
+ login_defs : " shadow-utils"
Original file line number Diff line number Diff line change @@ -18,3 +18,7 @@ aux_pkg_version: "2fa658e0"
18
18
19
19
release_key_fingerprint : " 567E347AD0044ADE55BA8A5F199E2F91FD431D51"
20
20
auxiliary_key_fingerprint : " 43A6E49C4A38F4BE9ABF2A5345689C882FA658E0"
21
+
22
+ # Mapping of CPE platform to package
23
+ platform_package_overrides :
24
+ login_defs : " shadow-utils"
Original file line number Diff line number Diff line change @@ -19,3 +19,6 @@ aux_pkg_version: "d4082792"
19
19
release_key_fingerprint : " 567E347AD0044ADE55BA8A5F199E2F91FD431D51"
20
20
auxiliary_key_fingerprint : " 6A6AA7C97C8890AEC6AEBFE2F76F66C3D4082792"
21
21
22
+ # Mapping of CPE platform to package
23
+ platform_package_overrides :
24
+ login_defs : " shadow-utils"
Original file line number Diff line number Diff line change @@ -10,3 +10,6 @@ pkg_manager: "yum"
10
10
11
11
init_system : " systemd"
12
12
13
+ # Mapping of CPE platform to package
14
+ platform_package_overrides :
15
+ login_defs : " shadow-utils"
Original file line number Diff line number Diff line change @@ -9,3 +9,7 @@ profiles_root: "./profiles"
9
9
pkg_manager : " yum"
10
10
11
11
init_system : " systemd"
12
+
13
+ # Mapping of CPE platform to package
14
+ platform_package_overrides :
15
+ login_defs : " shadow-utils"
Original file line number Diff line number Diff line change @@ -18,3 +18,7 @@ aux_pkg_version: "d4082792"
18
18
19
19
release_key_fingerprint : " 567E347AD0044ADE55BA8A5F199E2F91FD431D51"
20
20
auxiliary_key_fingerprint : " 6A6AA7C97C8890AEC6AEBFE2F76F66C3D4082792"
21
+
22
+ # Mapping of CPE platform to package
23
+ platform_package_overrides :
24
+ login_defs : " shadow-utils"
Original file line number Diff line number Diff line change 10
10
11
11
from .jinja import load_macros , process_file
12
12
from .constants import (PKG_MANAGER_TO_SYSTEM ,
13
- PKG_MANAGER_TO_CONFIG_FILE )
13
+ PKG_MANAGER_TO_CONFIG_FILE ,
14
+ XCCDF_PLATFORM_TO_PACKAGE )
14
15
from .constants import DEFAULT_UID_MIN
15
16
16
17
try :
@@ -138,6 +139,9 @@ def open_raw(yaml_file):
138
139
139
140
def open_environment (build_config_yaml , product_yaml ):
140
141
contents = open_raw (build_config_yaml )
142
+ # Load common platform package mappings,
143
+ # any specific mapping in product_yaml will override the default
144
+ contents ["platform_package_overrides" ] = XCCDF_PLATFORM_TO_PACKAGE
141
145
contents .update (open_raw (product_yaml ))
142
146
contents .update (_get_implied_properties (contents ))
143
147
return contents
You can’t perform that action at this time.
0 commit comments