foreman_openscap 9.0.5 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_openscap/locale/cs_CZ/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/de/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/en/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/en_GB/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/es/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/fr/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/gl/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/it/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/ja/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/ka/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/ko/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/pt_BR/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/ru/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/sv_SE/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/zh_CN/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/zh_TW/foreman_openscap.js +0 -9
- data/app/controllers/api/v2/compliance/scap_contents_controller.rb +2 -0
- data/app/helpers/foreman_openscap_helper.rb +2 -18
- data/db/migrate/20201217161511_add_url_to_oval_content.rb +1 -1
- data/{app/services → lib}/foreman_openscap/bulk_upload.rb +7 -14
- data/lib/foreman_openscap/engine.rb +148 -155
- data/lib/foreman_openscap/version.rb +1 -1
- data/lib/tasks/foreman_openscap_tasks.rake +1 -0
- data/locale/cs_CZ/foreman_openscap.edit.po +1443 -0
- data/locale/cs_CZ/foreman_openscap.po +0 -9
- data/locale/cs_CZ/foreman_openscap.po.time_stamp +0 -0
- data/locale/de/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/de/foreman_openscap.edit.po +1468 -0
- data/locale/de/foreman_openscap.po +0 -9
- data/locale/de/foreman_openscap.po.time_stamp +0 -0
- data/locale/en/foreman_openscap.edit.po +1443 -0
- data/locale/en/foreman_openscap.po +0 -9
- data/locale/en/foreman_openscap.po.time_stamp +0 -0
- data/locale/en_GB/foreman_openscap.edit.po +1443 -0
- data/locale/en_GB/foreman_openscap.po +0 -9
- data/locale/en_GB/foreman_openscap.po.time_stamp +0 -0
- data/locale/es/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/es/foreman_openscap.edit.po +1463 -0
- data/locale/es/foreman_openscap.po +0 -9
- data/locale/es/foreman_openscap.po.time_stamp +0 -0
- data/locale/foreman_openscap.pot +47 -57
- data/locale/fr/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/fr/foreman_openscap.edit.po +1469 -0
- data/locale/fr/foreman_openscap.po +0 -9
- data/locale/fr/foreman_openscap.po.time_stamp +0 -0
- data/locale/gl/foreman_openscap.edit.po +1443 -0
- data/locale/gl/foreman_openscap.po +0 -9
- data/locale/gl/foreman_openscap.po.time_stamp +0 -0
- data/locale/it/foreman_openscap.edit.po +1445 -0
- data/locale/it/foreman_openscap.po +0 -9
- data/locale/it/foreman_openscap.po.time_stamp +0 -0
- data/locale/ja/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ja/foreman_openscap.edit.po +1460 -0
- data/locale/ja/foreman_openscap.po +0 -9
- data/locale/ja/foreman_openscap.po.time_stamp +0 -0
- data/locale/ka/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ka/foreman_openscap.edit.po +1449 -0
- data/locale/ka/foreman_openscap.po +0 -9
- data/locale/ka/foreman_openscap.po.time_stamp +0 -0
- data/locale/ko/foreman_openscap.edit.po +1443 -0
- data/locale/ko/foreman_openscap.po +0 -9
- data/locale/ko/foreman_openscap.po.time_stamp +0 -0
- data/locale/pt_BR/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/pt_BR/foreman_openscap.edit.po +1468 -0
- data/locale/pt_BR/foreman_openscap.po +0 -9
- data/locale/pt_BR/foreman_openscap.po.time_stamp +0 -0
- data/locale/ru/foreman_openscap.edit.po +1447 -0
- data/locale/ru/foreman_openscap.po +0 -9
- data/locale/ru/foreman_openscap.po.time_stamp +0 -0
- data/locale/sv_SE/foreman_openscap.edit.po +1443 -0
- data/locale/sv_SE/foreman_openscap.po +0 -9
- data/locale/sv_SE/foreman_openscap.po.time_stamp +0 -0
- data/locale/zh_CN/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/zh_CN/foreman_openscap.edit.po +1459 -0
- data/locale/zh_CN/foreman_openscap.po +0 -9
- data/locale/zh_CN/foreman_openscap.po.time_stamp +0 -0
- data/locale/zh_TW/foreman_openscap.edit.po +1444 -0
- data/locale/zh_TW/foreman_openscap.po +0 -9
- data/locale/zh_TW/foreman_openscap.po.time_stamp +0 -0
- data/test/lib/foreman_openscap/bulk_upload_test.rb +4 -3
- data/test/unit/message_cleaner_test.rb +1 -0
- metadata +36 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a4d3ac458d67a0eb92a2d7c826777976cffc2ab1b4e147aa6b50b8299676426
|
4
|
+
data.tar.gz: 142a02612a9db592e5ac24650d947c02d338f1cb7f3fb8474a0e067997275b3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1428428c823197a8432fd1ddb25127ec1ad216c1df1c438047b78db92caf42267cbefc332f197adaf0276d3a759d366651d964f89ea391078f27db53cc145f61
|
7
|
+
data.tar.gz: fa1a35d80ac115895ae8abec058f67936273fe77f7cba9c56851febc5cf979094567427208d3bce459f10d38b6671db3f1ae38bbd03eec2eb898fa22a76f63e5
|
@@ -903,12 +903,6 @@
|
|
903
903
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
904
904
|
""
|
905
905
|
],
|
906
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
907
|
-
""
|
908
|
-
],
|
909
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
910
|
-
""
|
911
|
-
],
|
912
906
|
"The identifier of the host": [
|
913
907
|
""
|
914
908
|
],
|
@@ -927,9 +921,6 @@
|
|
927
921
|
"There's no available report for this host": [
|
928
922
|
""
|
929
923
|
],
|
930
|
-
"This feature is temporarily disabled. ": [
|
931
|
-
""
|
932
|
-
],
|
933
924
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
934
925
|
""
|
935
926
|
],
|
@@ -903,12 +903,6 @@
|
|
903
903
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
904
904
|
"Die folgenden %{key_name} fehlten für %{item_name}: %{key_names}. Stellen Sie sicher, dass sie importiert wurden, bevor Sie fortfahren."
|
905
905
|
],
|
906
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
907
|
-
"Die folgenden Smart-Proxys müssen aktualisiert werden um das Feature freizuschalten: %s."
|
908
|
-
],
|
909
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
910
|
-
"Die folgenden Proxys konnten nicht erreicht werden: %s . Bitte stellen Sie sicher, dass sie verfügbar sind, damit Foreman ihre Versionen überprüfen kann."
|
911
|
-
],
|
912
906
|
"The identifier of the host": [
|
913
907
|
"Die Kennung des Hosts"
|
914
908
|
],
|
@@ -927,9 +921,6 @@
|
|
927
921
|
"There's no available report for this host": [
|
928
922
|
""
|
929
923
|
],
|
930
|
-
"This feature is temporarily disabled. ": [
|
931
|
-
"Dieses Feature ist temporär deaktiviert."
|
932
|
-
],
|
933
924
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
934
925
|
""
|
935
926
|
],
|
@@ -903,12 +903,6 @@
|
|
903
903
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
904
904
|
""
|
905
905
|
],
|
906
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
907
|
-
""
|
908
|
-
],
|
909
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
910
|
-
""
|
911
|
-
],
|
912
906
|
"The identifier of the host": [
|
913
907
|
""
|
914
908
|
],
|
@@ -927,9 +921,6 @@
|
|
927
921
|
"There's no available report for this host": [
|
928
922
|
""
|
929
923
|
],
|
930
|
-
"This feature is temporarily disabled. ": [
|
931
|
-
""
|
932
|
-
],
|
933
924
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
934
925
|
""
|
935
926
|
],
|
@@ -903,12 +903,6 @@
|
|
903
903
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
904
904
|
""
|
905
905
|
],
|
906
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
907
|
-
""
|
908
|
-
],
|
909
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
910
|
-
""
|
911
|
-
],
|
912
906
|
"The identifier of the host": [
|
913
907
|
""
|
914
908
|
],
|
@@ -927,9 +921,6 @@
|
|
927
921
|
"There's no available report for this host": [
|
928
922
|
""
|
929
923
|
],
|
930
|
-
"This feature is temporarily disabled. ": [
|
931
|
-
""
|
932
|
-
],
|
933
924
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
934
925
|
""
|
935
926
|
],
|
@@ -904,12 +904,6 @@
|
|
904
904
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
905
905
|
"Faltan los siguientes %{key_name} para %{item_name}: %{key_names}. Asegúrese de que se importan antes de continuar."
|
906
906
|
],
|
907
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
908
|
-
"Deben actualizarse los siguientes proxies inteligentes al desbloquear la funcionalidad: %s. "
|
909
|
-
],
|
910
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
911
|
-
"No se pudieron alcanzar los siguientes proxies: %s. Asegúrese de que estén disponibles para que Foreman pueda verificar sus versiones."
|
912
|
-
],
|
913
907
|
"The identifier of the host": [
|
914
908
|
"El identificador del host"
|
915
909
|
],
|
@@ -928,9 +922,6 @@
|
|
928
922
|
"There's no available report for this host": [
|
929
923
|
""
|
930
924
|
],
|
931
|
-
"This feature is temporarily disabled. ": [
|
932
|
-
"Esta función se encuentra temporalmente deshabilitada."
|
933
|
-
],
|
934
925
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
935
926
|
""
|
936
927
|
],
|
@@ -904,12 +904,6 @@
|
|
904
904
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
905
905
|
"Les %%s suivants étaient manquants pour %{class} : %{key_names}. Assurez-vous qu'ils aient bien été importés avant de poursuivre."
|
906
906
|
],
|
907
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
908
|
-
"Les smart proxies suivants doivent être mis à jour pour déverrouiller la fonction : %s "
|
909
|
-
],
|
910
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
911
|
-
"Impossible d'atteindre les proxies suivants : %s. Veillez à ce qu'ils soient disponibles de sorte que Foreman puisse vérifier leur version."
|
912
|
-
],
|
913
907
|
"The identifier of the host": [
|
914
908
|
"Identifiant de l’hôte"
|
915
909
|
],
|
@@ -928,9 +922,6 @@
|
|
928
922
|
"There's no available report for this host": [
|
929
923
|
""
|
930
924
|
],
|
931
|
-
"This feature is temporarily disabled. ": [
|
932
|
-
"Cette fonction est temporairement désactivée."
|
933
|
-
],
|
934
925
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
935
926
|
""
|
936
927
|
],
|
@@ -903,12 +903,6 @@
|
|
903
903
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
904
904
|
""
|
905
905
|
],
|
906
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
907
|
-
""
|
908
|
-
],
|
909
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
910
|
-
""
|
911
|
-
],
|
912
906
|
"The identifier of the host": [
|
913
907
|
""
|
914
908
|
],
|
@@ -927,9 +921,6 @@
|
|
927
921
|
"There's no available report for this host": [
|
928
922
|
""
|
929
923
|
],
|
930
|
-
"This feature is temporarily disabled. ": [
|
931
|
-
""
|
932
|
-
],
|
933
924
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
934
925
|
""
|
935
926
|
],
|
@@ -903,12 +903,6 @@
|
|
903
903
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
904
904
|
""
|
905
905
|
],
|
906
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
907
|
-
""
|
908
|
-
],
|
909
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
910
|
-
""
|
911
|
-
],
|
912
906
|
"The identifier of the host": [
|
913
907
|
""
|
914
908
|
],
|
@@ -927,9 +921,6 @@
|
|
927
921
|
"There's no available report for this host": [
|
928
922
|
""
|
929
923
|
],
|
930
|
-
"This feature is temporarily disabled. ": [
|
931
|
-
""
|
932
|
-
],
|
933
924
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
934
925
|
""
|
935
926
|
],
|
@@ -902,12 +902,6 @@
|
|
902
902
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
903
903
|
"以下の %{key_name} が %{item_name}: %{key_names} にありませんでした。続行前にインポートされていることを確認してください。"
|
904
904
|
],
|
905
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
906
|
-
"以下のスマートプロキシーを更新して機能のロックを解除する必要があります: %s "
|
907
|
-
],
|
908
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
909
|
-
"以下のプロキシーに到達できませんでした: %s。Foreman がバージョンを確認できるように、プロキシーが利用可能であることを確認してください。"
|
910
|
-
],
|
911
905
|
"The identifier of the host": [
|
912
906
|
"ホストの ID"
|
913
907
|
],
|
@@ -926,9 +920,6 @@
|
|
926
920
|
"There's no available report for this host": [
|
927
921
|
""
|
928
922
|
],
|
929
|
-
"This feature is temporarily disabled. ": [
|
930
|
-
"この機能は一時的に無効にされています。 "
|
931
|
-
],
|
932
923
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
933
924
|
""
|
934
925
|
],
|
@@ -903,12 +903,6 @@
|
|
903
903
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
904
904
|
""
|
905
905
|
],
|
906
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
907
|
-
"ფუნქციის ჩასართავად საჭიროა შემდეგი ჭკვიანი პროქსიების განახლება: %s. "
|
908
|
-
],
|
909
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
910
|
-
""
|
911
|
-
],
|
912
906
|
"The identifier of the host": [
|
913
907
|
"ჰოსტის იდენტიფიკატორი"
|
914
908
|
],
|
@@ -927,9 +921,6 @@
|
|
927
921
|
"There's no available report for this host": [
|
928
922
|
""
|
929
923
|
],
|
930
|
-
"This feature is temporarily disabled. ": [
|
931
|
-
"ფუნქცია დროებით გათიშულია. "
|
932
|
-
],
|
933
924
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
934
925
|
""
|
935
926
|
],
|
@@ -903,12 +903,6 @@
|
|
903
903
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
904
904
|
""
|
905
905
|
],
|
906
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
907
|
-
""
|
908
|
-
],
|
909
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
910
|
-
""
|
911
|
-
],
|
912
906
|
"The identifier of the host": [
|
913
907
|
""
|
914
908
|
],
|
@@ -927,9 +921,6 @@
|
|
927
921
|
"There's no available report for this host": [
|
928
922
|
""
|
929
923
|
],
|
930
|
-
"This feature is temporarily disabled. ": [
|
931
|
-
""
|
932
|
-
],
|
933
924
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
934
925
|
""
|
935
926
|
],
|
@@ -904,12 +904,6 @@
|
|
904
904
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
905
905
|
"Os seguintes %{key_name} estavam ausentes para %{item_name}: %{key_names}. Certifique-se de que eles sejam importados antes de prosseguir."
|
906
906
|
],
|
907
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
908
|
-
"Os proxies inteligentes a seguir precisam ser atualizados para desbloquear o recurso: %s. "
|
909
|
-
],
|
910
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
911
|
-
"Não foi possível alcançar os proxies a seguir: %s. Certifique-se de que eles estejam disponíveis para que o Foreman possa verificar suas versões."
|
912
|
-
],
|
913
907
|
"The identifier of the host": [
|
914
908
|
"O identificador do host"
|
915
909
|
],
|
@@ -928,9 +922,6 @@
|
|
928
922
|
"There's no available report for this host": [
|
929
923
|
""
|
930
924
|
],
|
931
|
-
"This feature is temporarily disabled. ": [
|
932
|
-
"Esse recurso está temporariamente desabilitado."
|
933
|
-
],
|
934
925
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
935
926
|
""
|
936
927
|
],
|
@@ -903,12 +903,6 @@
|
|
903
903
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
904
904
|
""
|
905
905
|
],
|
906
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
907
|
-
""
|
908
|
-
],
|
909
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
910
|
-
""
|
911
|
-
],
|
912
906
|
"The identifier of the host": [
|
913
907
|
""
|
914
908
|
],
|
@@ -927,9 +921,6 @@
|
|
927
921
|
"There's no available report for this host": [
|
928
922
|
""
|
929
923
|
],
|
930
|
-
"This feature is temporarily disabled. ": [
|
931
|
-
""
|
932
|
-
],
|
933
924
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
934
925
|
""
|
935
926
|
],
|
@@ -903,12 +903,6 @@
|
|
903
903
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
904
904
|
""
|
905
905
|
],
|
906
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
907
|
-
""
|
908
|
-
],
|
909
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
910
|
-
""
|
911
|
-
],
|
912
906
|
"The identifier of the host": [
|
913
907
|
""
|
914
908
|
],
|
@@ -927,9 +921,6 @@
|
|
927
921
|
"There's no available report for this host": [
|
928
922
|
""
|
929
923
|
],
|
930
|
-
"This feature is temporarily disabled. ": [
|
931
|
-
""
|
932
|
-
],
|
933
924
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
934
925
|
""
|
935
926
|
],
|
@@ -902,12 +902,6 @@
|
|
902
902
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
903
903
|
"%{item_name} 缺少以下 %{key_name}:%{key_names}。在继续操作之前,请确保已将其导入。"
|
904
904
|
],
|
905
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
906
|
-
"下列智能代理服务器需要更新,以便解锁功能:%s。 "
|
907
|
-
],
|
908
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
909
|
-
"无法访问下列代理服务器:%s。请确保它们可用,以便 Foreman 检查其版本。"
|
910
|
-
],
|
911
905
|
"The identifier of the host": [
|
912
906
|
"主机 ID"
|
913
907
|
],
|
@@ -926,9 +920,6 @@
|
|
926
920
|
"There's no available report for this host": [
|
927
921
|
""
|
928
922
|
],
|
929
|
-
"This feature is temporarily disabled. ": [
|
930
|
-
"此功能暂时被禁用。"
|
931
|
-
],
|
932
923
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
933
924
|
""
|
934
925
|
],
|
@@ -903,12 +903,6 @@
|
|
903
903
|
"The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding.": [
|
904
904
|
""
|
905
905
|
],
|
906
|
-
"The following Smart Proxies need to be updated to unlock the feature: %s. ": [
|
907
|
-
""
|
908
|
-
],
|
909
|
-
"The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions.": [
|
910
|
-
""
|
911
|
-
],
|
912
906
|
"The identifier of the host": [
|
913
907
|
""
|
914
908
|
],
|
@@ -927,9 +921,6 @@
|
|
927
921
|
"There's no available report for this host": [
|
928
922
|
""
|
929
923
|
],
|
930
|
-
"This feature is temporarily disabled. ": [
|
931
|
-
""
|
932
|
-
],
|
933
924
|
"This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports.": [
|
934
925
|
""
|
935
926
|
],
|
@@ -2,26 +2,10 @@ require 'foreman_openscap/version'
|
|
2
2
|
|
3
3
|
module ForemanOpenscapHelper
|
4
4
|
def scap_doc_button(section)
|
5
|
-
documentation_button(
|
5
|
+
documentation_button('Managing_Security_Compliance', type: 'docs', chapter: section)
|
6
6
|
end
|
7
7
|
|
8
8
|
def scap_doc_url(section = '')
|
9
|
-
|
10
|
-
|
11
|
-
documentation_url(section, root_url: scap_root_url)
|
12
|
-
end
|
13
|
-
|
14
|
-
private
|
15
|
-
|
16
|
-
def doc_flavor
|
17
|
-
ForemanOpenscap.with_katello? ? 'katello' : 'foreman-el'
|
18
|
-
end
|
19
|
-
|
20
|
-
def scap_root_url
|
21
|
-
@scap_root_url ||= begin
|
22
|
-
version = SETTINGS[:version]
|
23
|
-
version = version.tag == 'develop' ? 'nightly' : version.short
|
24
|
-
"https://docs.theforeman.org/#{version}/Managing_Security_Compliance/index-#{doc_flavor}.html#"
|
25
|
-
end
|
9
|
+
documentation_url('Managing_Security_Compliance', type: 'docs', chapter: section)
|
26
10
|
end
|
27
11
|
end
|
@@ -7,28 +7,21 @@ module ForemanOpenscap
|
|
7
7
|
@result = OpenStruct.new(:errors => [], :results => [])
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
11
|
-
|
10
|
+
def files_from_guide
|
11
|
+
`rpm -ql scap-security-guide | grep ds.xml`.split
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
15
|
-
`rpm -
|
16
|
-
end
|
17
|
-
|
18
|
-
def package_installed?(package)
|
19
|
-
`rpm -qa | grep #{package}`.present?
|
14
|
+
def scap_guide_installed?
|
15
|
+
`rpm -qa | grep scap-security-guide`.present?
|
20
16
|
end
|
21
17
|
|
22
18
|
def upload_from_scap_guide
|
23
|
-
|
24
|
-
|
25
|
-
joined_packages = security_guide_packages.join(', ')
|
26
|
-
msg = _("Can't find %{packages} RPM(s), are you sure it is installed on your server?")
|
27
|
-
@result.errors.push(msg % {packages: joined_packages})
|
19
|
+
unless scap_guide_installed?
|
20
|
+
@result.errors.push(_("Can't find scap-security-guide RPM, are you sure it is installed on your server?"))
|
28
21
|
return @result
|
29
22
|
end
|
30
23
|
|
31
|
-
upload_from_files(files_from_guide
|
24
|
+
upload_from_files(files_from_guide, true)
|
32
25
|
end
|
33
26
|
|
34
27
|
def upload_from_files(files_array, from_scap_guide = false)
|