katello 4.13.1 → 4.14.0.rc1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/javascripts/katello/hosts/host_and_hostgroup_edit.js +12 -8
- data/app/assets/javascripts/katello/locale/bn/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/bn_IN/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/ca/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/cs/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +275 -23
- data/app/assets/javascripts/katello/locale/de/katello.js +280 -28
- data/app/assets/javascripts/katello/locale/de_AT/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/de_DE/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/el/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/en/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/en_GB/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/en_US/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/es/katello.js +276 -24
- data/app/assets/javascripts/katello/locale/et_EE/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/fr/katello.js +283 -31
- data/app/assets/javascripts/katello/locale/gl/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/gu/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/he_IL/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/hi/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/id/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/it/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/ja/katello.js +283 -31
- data/app/assets/javascripts/katello/locale/ka/katello.js +280 -28
- data/app/assets/javascripts/katello/locale/kn/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/ko/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/ml_IN/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/mr/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/nl_NL/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/or/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/pa/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/pl/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/pl_PL/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/pt/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/pt_BR/katello.js +276 -24
- data/app/assets/javascripts/katello/locale/ro/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/ro_RO/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/ru/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/sl/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/sv_SE/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/ta/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/ta_IN/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/te/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/tr/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/vi/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/vi_VN/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/zh/katello.js +274 -22
- data/app/assets/javascripts/katello/locale/zh_CN/katello.js +283 -31
- data/app/assets/javascripts/katello/locale/zh_TW/katello.js +274 -22
- data/app/controllers/katello/api/registry/registry_proxies_controller.rb +118 -74
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +15 -10
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +1 -1
- data/app/controllers/katello/api/v2/api_controller.rb +7 -0
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +4 -4
- data/app/controllers/katello/api/v2/debs_controller.rb +3 -2
- data/app/controllers/katello/api/v2/environments_controller.rb +2 -4
- data/app/controllers/katello/api/v2/host_contents_controller.rb +8 -3
- data/app/controllers/katello/api/v2/host_errata_controller.rb +4 -4
- data/app/controllers/katello/api/v2/host_packages_controller.rb +2 -2
- data/app/controllers/katello/api/v2/organizations_controller.rb +1 -1
- data/app/controllers/katello/api/v2/packages_controller.rb +13 -3
- data/app/controllers/katello/api/v2/repositories_bulk_actions_controller.rb +6 -2
- data/app/controllers/katello/api/v2/repositories_controller.rb +3 -4
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +13 -14
- data/app/controllers/katello/api/v2/subscriptions_controller.rb +15 -9
- data/app/controllers/katello/api/v2/sync_controller.rb +2 -2
- data/app/controllers/katello/application_controller.rb +1 -1
- data/app/controllers/katello/concerns/api/v2/authorization.rb +3 -2
- data/app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb +28 -0
- data/app/controllers/katello/concerns/api/v2/registration_commands_controller_extensions.rb +1 -1
- data/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb +4 -0
- data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +4 -3
- data/app/controllers/katello/concerns/hosts_controller_extensions.rb +2 -4
- data/app/controllers/katello/remote_execution_controller.rb +53 -58
- data/app/helpers/katello/hosts_and_hostgroups_helper.rb +19 -2
- data/app/helpers/katello/katello_urls_helper.rb +1 -1
- data/app/lib/actions/katello/alternate_content_source/alternate_content_source_common.rb +1 -1
- data/app/lib/actions/katello/alternate_content_source/update.rb +2 -1
- data/app/lib/actions/katello/capsule_content/verify_checksum.rb +1 -2
- data/app/lib/actions/katello/content_view/publish.rb +1 -0
- data/app/lib/actions/katello/content_view_version/create_repos.rb +1 -0
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +3 -2
- data/app/lib/actions/katello/environment/{publish_repositories.rb → publish_container_repositories.rb} +10 -8
- data/app/lib/actions/katello/foreman/content_update.rb +4 -6
- data/app/lib/actions/katello/host/hypervisors_update.rb +6 -4
- data/app/lib/actions/katello/repository/create.rb +4 -4
- data/app/lib/actions/katello/repository/import_upload.rb +4 -6
- data/app/lib/actions/katello/repository/metadata_generate.rb +1 -0
- data/app/lib/actions/katello/repository/update.rb +3 -3
- data/app/lib/actions/katello/repository_set/enable_repository.rb +5 -6
- data/app/lib/actions/middleware/backend_services_check.rb +3 -2
- data/app/lib/actions/pulp3/abstract_async_task.rb +2 -4
- data/app/lib/actions/pulp3/capsule_content/verify_checksum.rb +1 -2
- data/app/lib/actions/pulp3/orchestration/repository/copy_all_units.rb +5 -1
- data/app/lib/actions/pulp3/orchestration/repository/delete.rb +5 -2
- data/app/lib/actions/pulp3/repository/save_version.rb +3 -5
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +5 -9
- data/app/lib/katello/errors.rb +1 -0
- data/app/lib/katello/http_resource.rb +1 -0
- data/app/lib/katello/lazy_accessor.rb +1 -1
- data/app/lib/katello/resources/candlepin/candlepin_ping.rb +0 -5
- data/app/lib/katello/resources/candlepin/owner.rb +1 -1
- data/app/lib/katello/resources/candlepin/pool.rb +1 -2
- data/app/lib/katello/resources/candlepin/upstream_job.rb +1 -1
- data/app/lib/katello/resources/cdn.rb +3 -2
- data/app/lib/katello/resources/discovery/yum.rb +3 -3
- data/app/lib/katello/util/cdn_var_substitutor.rb +5 -3
- data/app/lib/katello/util/data.rb +3 -2
- data/app/lib/katello/util/errata.rb +4 -3
- data/app/lib/katello/util/package.rb +3 -3
- data/app/lib/katello/util/path_with_substitutions.rb +1 -1
- data/app/lib/katello/util/report_table.rb +3 -2
- data/app/lib/katello/util/url_matcher.rb +1 -1
- data/app/lib/katello/validators/alternate_content_source_path_validator.rb +4 -3
- data/app/lib/katello/validators/alternate_content_source_products_validator.rb +5 -7
- data/app/lib/katello/validators/container_image_name_validator.rb +1 -1
- data/app/lib/katello/validators/katello_name_format_validator.rb +2 -2
- data/app/lib/katello/validators/no_trailing_space_validator.rb +2 -2
- data/app/lib/katello/validators/prior_validator.rb +2 -2
- data/app/lib/katello/validators/product_unique_attribute_validator.rb +2 -4
- data/app/models/katello/activation_key.rb +4 -6
- data/app/models/katello/alternate_content_source.rb +1 -1
- data/app/models/katello/authorization/host_tracer.rb +1 -2
- data/app/models/katello/authorization/product.rb +1 -1
- data/app/models/katello/candlepin/repository_mapper.rb +2 -2
- data/app/models/katello/concerns/host_managed_extensions.rb +41 -10
- data/app/models/katello/concerns/hostgroup_extensions.rb +2 -4
- data/app/models/katello/concerns/location_extensions.rb +2 -4
- data/app/models/katello/concerns/operatingsystem_extensions.rb +84 -16
- data/app/models/katello/concerns/smart_proxy_extensions.rb +4 -4
- data/app/models/katello/concerns/subscription_facet_host_extensions.rb +2 -0
- data/app/models/katello/content_view.rb +5 -1
- data/app/models/katello/content_view_environment.rb +19 -4
- data/app/models/katello/content_view_environment_content_facet.rb +11 -0
- data/app/models/katello/erratum.rb +1 -1
- data/app/models/katello/event.rb +1 -1
- data/app/models/katello/glue/provider.rb +1 -2
- data/app/models/katello/hash_util.rb +1 -1
- data/app/models/katello/host/content_facet.rb +16 -3
- data/app/models/katello/host/subscription_facet.rb +27 -4
- data/app/models/katello/host_collection.rb +12 -8
- data/app/models/katello/pool.rb +5 -1
- data/app/models/katello/product.rb +7 -4
- data/app/models/katello/provider.rb +1 -2
- data/app/models/katello/repository.rb +18 -4
- data/app/models/katello/root_repository.rb +19 -0
- data/app/models/katello/rpm.rb +2 -2
- data/app/models/katello/subscription_facet_pool.rb +1 -1
- data/app/models/katello/sync_plan.rb +5 -4
- data/app/models/katello/task_status.rb +18 -18
- data/app/presenters/katello/product_host_count_presenter.rb +10 -0
- data/app/services/katello/candlepin/consumer.rb +11 -11
- data/app/services/katello/candlepin/message_handler.rb +3 -2
- data/app/services/katello/content_unit_indexer.rb +6 -0
- data/app/services/katello/pulp3/alternate_content_source.rb +1 -3
- data/app/services/katello/pulp3/api/core.rb +1 -1
- data/app/services/katello/pulp3/api/docker.rb +10 -0
- data/app/services/katello/pulp3/content_view_version/export.rb +1 -0
- data/app/services/katello/pulp3/content_view_version/import.rb +6 -4
- data/app/services/katello/pulp3/content_view_version/importable_products.rb +1 -3
- data/app/services/katello/pulp3/repository/apt.rb +4 -16
- data/app/services/katello/pulp3/repository/yum.rb +9 -5
- data/app/services/katello/pulp3/repository.rb +2 -2
- data/app/services/katello/pulp3/repository_mirror.rb +2 -9
- data/app/services/katello/pulp3/task.rb +4 -2
- data/app/services/katello/registration_manager.rb +13 -3
- data/app/services/katello/smart_proxy_helper.rb +1 -0
- data/app/views/dashboard/_host_collection_widget.html.erb +5 -4
- data/app/views/foreman/job_templates/install_errata.erb +2 -0
- data/app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb +2 -0
- data/app/views/foreman/job_templates/install_errata_by_search_query.erb +2 -0
- data/app/views/foreman/job_templates/install_errata_by_search_query_-_katello_ansible_default.erb +3 -1
- data/app/views/foreman/job_templates/install_packages_by_search_query_-_katello_ansible_default.erb +1 -1
- data/app/views/foreman/job_templates/remove_packages_by_search_query_-_katello_ansible_default.erb +2 -2
- data/app/views/foreman/job_templates/resolve_traces.erb +5 -1
- data/app/views/foreman/job_templates/update_packages_by_search_query_-_katello_ansible_default.erb +1 -1
- data/app/views/foreman/job_templates/upload_profile.erb +2 -0
- data/app/views/foreman/smart_proxies/_reclaim_space.html.erb +7 -5
- data/app/views/katello/api/v2/content_facet/base.json.rabl +18 -2
- data/app/views/katello/api/v2/packages/thindex.json.rabl +6 -0
- data/app/views/katello/api/v2/repositories/show.json.rabl +8 -8
- data/app/views/katello/api/v2/repository_sets/show.json.rabl +1 -1
- data/app/views/katello/api/v2/subscription_facet/base.json.rabl +1 -1
- data/app/views/katello/api/v2/subscriptions/index.json.rabl +1 -0
- data/app/views/katello/api/v2/subscriptions/show.json.rabl +1 -0
- data/app/views/overrides/activation_keys/_host_environment_select.html.erb +14 -11
- data/app/views/overrides/activation_keys/_host_synced_content_select.html.erb +4 -4
- data/config/routes/api/v2.rb +3 -1
- data/config/routes.rb +1 -3
- data/db/migrate/20160114200145_add_mirror_on_sync_to_repositories.rb +1 -0
- data/db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb +1 -0
- data/db/migrate/20210119162528_delete_puppet_and_ostree_repos.rb +3 -0
- data/db/migrate/20240522165308_add_priority_to_content_view_environment_content_facet.rb +5 -0
- data/db/migrate/20240621121212_katello_repository_debs_id_bigint.rb +6 -0
- data/db/migrate/20240729192228_add_convert2rhel_to_host_facets.rb +9 -0
- data/db/seeds.d/102-organizations.rb +5 -7
- data/db/seeds.d/150-module_job_templates.rb +7 -9
- data/db/seeds.d/75-job_templates.rb +9 -16
- data/engines/bastion_katello/README.md +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/views/deb-info.html +6 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/erratum-content-hosts.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +4 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/package-info.html +6 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +28 -27
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +2 -2
- data/lib/katello/engine.rb +1 -8
- data/lib/katello/permission_creator.rb +3 -2
- data/lib/katello/plugin.rb +31 -27
- data/lib/katello/tasks/clean_old_file_repos.rake +2 -4
- data/lib/katello/tasks/reset.rake +3 -4
- data/lib/katello/version.rb +1 -1
- data/lib/katello.rb +0 -2
- data/lib/monkeys/ar_postgres_evr_t.rb +2 -0
- data/locale/action_names.rb +1 -1
- data/locale/bn/katello.po +274 -22
- data/locale/bn_IN/katello.po +274 -22
- data/locale/ca/katello.po +274 -22
- data/locale/cs/katello.po +274 -22
- data/locale/cs_CZ/katello.po +275 -23
- data/locale/de/katello.po +280 -28
- data/locale/de_AT/katello.po +274 -22
- data/locale/de_DE/katello.po +274 -22
- data/locale/el/katello.po +274 -22
- data/locale/en/katello.po +274 -22
- data/locale/en_GB/katello.po +274 -22
- data/locale/en_US/katello.po +274 -22
- data/locale/es/katello.po +276 -24
- data/locale/et_EE/katello.po +274 -22
- data/locale/fr/katello.po +283 -31
- data/locale/gl/katello.po +274 -22
- data/locale/gu/katello.po +274 -22
- data/locale/he_IL/katello.po +274 -22
- data/locale/hi/katello.po +274 -22
- data/locale/id/katello.po +274 -22
- data/locale/it/katello.po +274 -22
- data/locale/ja/katello.po +283 -31
- data/locale/ka/katello.po +280 -28
- data/locale/katello.pot +1001 -527
- data/locale/kn/katello.po +274 -22
- data/locale/ko/katello.po +274 -22
- data/locale/ml_IN/katello.po +274 -22
- data/locale/mr/katello.po +274 -22
- data/locale/nl_NL/katello.po +274 -22
- data/locale/or/katello.po +274 -22
- data/locale/pa/katello.po +274 -22
- data/locale/pl/katello.po +274 -22
- data/locale/pl_PL/katello.po +274 -22
- data/locale/pt/katello.po +274 -22
- data/locale/pt_BR/katello.po +276 -24
- data/locale/ro/katello.po +274 -22
- data/locale/ro_RO/katello.po +274 -22
- data/locale/ru/katello.po +274 -22
- data/locale/sl/katello.po +274 -22
- data/locale/sv_SE/katello.po +274 -22
- data/locale/ta/katello.po +274 -22
- data/locale/ta_IN/katello.po +274 -22
- data/locale/te/katello.po +274 -22
- data/locale/tr/katello.po +274 -22
- data/locale/vi/katello.po +274 -22
- data/locale/vi_VN/katello.po +274 -22
- data/locale/zh/katello.po +274 -22
- data/locale/zh_CN/katello.po +283 -31
- data/locale/zh_TW/katello.po +274 -22
- data/webpack/ForemanColumnExtensions/index.js +44 -1
- data/webpack/components/Table/TableWrapper.js +6 -0
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/ChangeHostCVModal.js +24 -3
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/ContentViewDetailsCard.js +124 -56
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/HostContentViewActions.js +2 -3
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/__tests__/contentViewDetailsCard.test.js +44 -10
- data/webpack/components/extensions/HostDetails/Tabs/RemoteExecutionActions.js +83 -31
- data/webpack/components/extensions/HostDetails/Tabs/RemoteExecutionConstants.js +1 -0
- data/webpack/components/extensions/HostDetails/Tabs/RemoteExecutionHooks.js +1 -1
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/remoteExecutionActions.test.js +44 -0
- data/webpack/components/extensions/HostDetails/Tabs/customizedRexUrlHelpers.js +22 -7
- data/webpack/components/extensions/Hosts/ActionsBar/ActionsBar.scss +14 -0
- data/webpack/components/extensions/Hosts/ActionsBar/index.js +82 -23
- data/webpack/components/extensions/Hosts/BulkActions/BulkChangeHostCVModal/index.js +5 -2
- data/webpack/components/extensions/Hosts/BulkActions/BulkErrataWizard/02_BulkErrataTable.js +171 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkErrataWizard/04_Review.js +160 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkErrataWizard/04_ReviewFooter.js +99 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkErrataWizard/BulkErrataWizard.js +157 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkErrataWizard/index.js +24 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkPackagesWizard/02_BulkPackagesTable.js +157 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkPackagesWizard/04_Review.js +168 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkPackagesWizard/04_ReviewFooter.js +141 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkPackagesWizard/BulkPackagesWizard.js +252 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkPackagesWizard/index.js +24 -0
- data/webpack/components/extensions/Hosts/BulkActions/HostReview.js +176 -0
- data/webpack/components/extensions/Hosts/TableRowActions/index.js +17 -0
- data/webpack/global_index.js +11 -3
- data/webpack/redux/actions/RedHatRepositories/repositorySetRepositories.js +5 -6
- data/webpack/redux/reducers/RedHatRepositories/__tests__/repositorySetRepositories.test.js +1 -1
- data/webpack/redux/reducers/RedHatRepositories/repositorySetRepositories.js +1 -1
- data/webpack/scenes/ContentViews/Copy/CopyContentViewModal.js +2 -1
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewAddModal.js +2 -1
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewBulkAddModal.js +2 -1
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +2 -1
- data/webpack/scenes/ContentViews/Details/ContentViewDetails.js +2 -1
- data/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js +2 -2
- data/webpack/scenes/ContentViews/Publish/CVPublishForm.js +2 -1
- data/webpack/scenes/ContentViews/Publish/CVPublishReview.js +3 -2
- data/webpack/scenes/ContentViews/Publish/PublishContentViewWizard.js +2 -1
- data/webpack/scenes/ContentViews/Table/ContentViewsTable.js +2 -1
- data/webpack/scenes/ContentViews/components/CVBreadCrumb.js +2 -1
- data/webpack/scenes/ContentViews/components/ContentViewSelect/ContentViewSelectOption.js +2 -2
- data/webpack/scenes/Subscriptions/Details/SubscriptionAttributes.js +1 -0
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailInfo.test.js.snap +10 -0
- data/webpack/scenes/Subscriptions/SubscriptionConstants.js +6 -0
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +2 -0
- data/webpack/scenes/Subscriptions/__tests__/subscriptions.fixtures.js +14 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableHelpers.js +1 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js +10 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js +1 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsToolbar/__snapshots__/SubscriptionsToolbar.test.js.snap +10 -0
- data/webpack/scenes/Tasks/helpers.js +1 -1
- metadata +25 -111
- data/app/assets/javascripts/katello/containers/container.js +0 -304
- data/app/lib/katello/util/http_helper.rb +0 -15
- data/app/models/732bd3db9f64c621c64d2be4f2a838727aac0845.patch +0 -61
- data/app/models/katello/repository.rb.bak +0 -978
- data/app/services/katello/pulp3/content_view_version/import_validator.rb.bak +0 -166
- data/app/services/katello/pulp3/content_view_version/importable_repositories.rb.bak +0 -164
- data/lib/katello/tasks/update_repository_expiry.rake +0 -114
- data/locale/bn/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn/katello.po.time_stamp +0 -0
- data/locale/bn_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn_IN/katello.po.time_stamp +0 -0
- data/locale/ca/LC_MESSAGES/katello.mo +0 -0
- data/locale/ca/katello.po.time_stamp +0 -0
- data/locale/cs/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs/katello.po.time_stamp +0 -0
- data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs_CZ/katello.po.time_stamp +0 -0
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/katello.po.time_stamp +0 -0
- data/locale/de_AT/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_AT/katello.po.time_stamp +0 -0
- data/locale/de_DE/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_DE/katello.po.time_stamp +0 -0
- data/locale/el/LC_MESSAGES/katello.mo +0 -0
- data/locale/el/katello.po.time_stamp +0 -0
- data/locale/en/LC_MESSAGES/katello.mo +0 -0
- data/locale/en/katello.po.time_stamp +0 -0
- data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_GB/katello.po.time_stamp +0 -0
- data/locale/en_US/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_US/katello.po.time_stamp +0 -0
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/katello.po.time_stamp +0 -0
- data/locale/et_EE/LC_MESSAGES/katello.mo +0 -0
- data/locale/et_EE/katello.po.time_stamp +0 -0
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/katello.po.time_stamp +0 -0
- data/locale/gl/LC_MESSAGES/katello.mo +0 -0
- data/locale/gl/katello.po.time_stamp +0 -0
- data/locale/gu/LC_MESSAGES/katello.mo +0 -0
- data/locale/gu/katello.po.time_stamp +0 -0
- data/locale/he_IL/LC_MESSAGES/katello.mo +0 -0
- data/locale/he_IL/katello.po.time_stamp +0 -0
- data/locale/hi/LC_MESSAGES/katello.mo +0 -0
- data/locale/hi/katello.po.time_stamp +0 -0
- data/locale/id/LC_MESSAGES/katello.mo +0 -0
- data/locale/id/katello.po.time_stamp +0 -0
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/katello.po.time_stamp +0 -0
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/katello.po.time_stamp +0 -0
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/katello.po.time_stamp +0 -0
- data/locale/kn/LC_MESSAGES/katello.mo +0 -0
- data/locale/kn/katello.po.time_stamp +0 -0
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/katello.po.time_stamp +0 -0
- data/locale/ml_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ml_IN/katello.po.time_stamp +0 -0
- data/locale/mr/LC_MESSAGES/katello.mo +0 -0
- data/locale/mr/katello.po.time_stamp +0 -0
- data/locale/nl_NL/LC_MESSAGES/katello.mo +0 -0
- data/locale/nl_NL/katello.po.time_stamp +0 -0
- data/locale/or/LC_MESSAGES/katello.mo +0 -0
- data/locale/or/katello.po.time_stamp +0 -0
- data/locale/pa/LC_MESSAGES/katello.mo +0 -0
- data/locale/pa/katello.po.time_stamp +0 -0
- data/locale/pl/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl/katello.po.time_stamp +0 -0
- data/locale/pl_PL/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl_PL/katello.po.time_stamp +0 -0
- data/locale/pt/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt/katello.po.time_stamp +0 -0
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/katello.po.time_stamp +0 -0
- data/locale/ro/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro/katello.po.time_stamp +0 -0
- data/locale/ro_RO/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro_RO/katello.po.time_stamp +0 -0
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/katello.po.time_stamp +0 -0
- data/locale/sl/LC_MESSAGES/katello.mo +0 -0
- data/locale/sl/katello.po.time_stamp +0 -0
- data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
- data/locale/sv_SE/katello.po.time_stamp +0 -0
- data/locale/ta/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta/katello.po.time_stamp +0 -0
- data/locale/ta_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta_IN/katello.po.time_stamp +0 -0
- data/locale/te/LC_MESSAGES/katello.mo +0 -0
- data/locale/te/katello.po.time_stamp +0 -0
- data/locale/tr/LC_MESSAGES/katello.mo +0 -0
- data/locale/tr/katello.po.time_stamp +0 -0
- data/locale/vi/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi/katello.po.time_stamp +0 -0
- data/locale/vi_VN/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi_VN/katello.po.time_stamp +0 -0
- data/locale/zh/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh/katello.po.time_stamp +0 -0
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/katello.po.time_stamp +0 -0
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/katello.po.time_stamp +0 -0
- data/webpack/global_test_setup.js.bak +0 -59
- data/webpack/utils/useKatelloDocUrl.js +0 -18
@@ -8,7 +8,7 @@
|
|
8
8
|
<dt translate>Name</dt>
|
9
9
|
<dd bst-edit-text="repository.name"
|
10
10
|
on-save="save(repository)"
|
11
|
-
readonly="product.redhat || denied('edit_products', product)">
|
11
|
+
readonly="product.redhat || denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
12
12
|
</dd>
|
13
13
|
|
14
14
|
<dt translate>Label</dt>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<dt translate>Description</dt>
|
18
18
|
<dd bst-edit-textarea="repository.description"
|
19
19
|
on-save="save(repository)"
|
20
|
-
readonly="product.redhat || denied('edit_products', product)">
|
20
|
+
readonly="product.redhat || denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
21
21
|
</dd>
|
22
22
|
|
23
23
|
<dt translate>Backend Identifier</dt>
|
@@ -54,7 +54,8 @@
|
|
54
54
|
</dd>
|
55
55
|
|
56
56
|
<dt ng-if="product.redhat != true" translate>Metadata Expiration (Seconds)</dt>
|
57
|
-
<dd bst-edit-number="repository.metadata_expire" on-save="save(repository)"
|
57
|
+
<dd bst-edit-number="repository.metadata_expire" on-save="save(repository)"
|
58
|
+
readonly="product.redhat || denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
58
59
|
deletable="repository.metadata_expire !== null"
|
59
60
|
on-delete="clearMetadataExpire()"
|
60
61
|
min="1"
|
@@ -72,7 +73,7 @@
|
|
72
73
|
<dt ng-show="repository.content_type === 'docker'" translate>Registry URL</dt>
|
73
74
|
<dd bst-edit-text="repository.url"
|
74
75
|
on-save="save(repository)"
|
75
|
-
readonly="product.redhat || denied('edit_products', product)">
|
76
|
+
readonly="product.redhat || denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
76
77
|
</dd>
|
77
78
|
|
78
79
|
<span ng-show="repository.generic_remote_options !== []">
|
@@ -93,21 +94,21 @@
|
|
93
94
|
<dt translate>Releases/Distributions</dt>
|
94
95
|
<dd bst-edit-text="repository.deb_releases"
|
95
96
|
on-save="save(repository)"
|
96
|
-
readonly="denied('edit_products', product)">
|
97
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
97
98
|
</dd>
|
98
99
|
</span>
|
99
100
|
<span ng-if="repository.content_type == 'deb'">
|
100
101
|
<dt translate>Components</dt>
|
101
102
|
<dd bst-edit-text="repository.deb_components"
|
102
103
|
on-save="save(repository)"
|
103
|
-
readonly="denied('edit_products', product)">
|
104
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
104
105
|
</dd>
|
105
106
|
</span>
|
106
107
|
<span ng-if="repository.content_type == 'deb'">
|
107
108
|
<dt translate>Architectures</dt>
|
108
109
|
<dd bst-edit-text="repository.deb_architectures"
|
109
110
|
on-save="save(repository)"
|
110
|
-
readonly="denied('edit_products', product)">
|
111
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
111
112
|
</dd>
|
112
113
|
</span>
|
113
114
|
|
@@ -115,7 +116,7 @@
|
|
115
116
|
<dt translate>Upstream Repository Name</dt>
|
116
117
|
<dd bst-edit-text="repository.docker_upstream_name"
|
117
118
|
on-save="save(repository)"
|
118
|
-
readonly="product.redhat || denied('edit_products', product)">
|
119
|
+
readonly="product.redhat || denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
119
120
|
</dd>
|
120
121
|
</span>
|
121
122
|
|
@@ -135,13 +136,13 @@
|
|
135
136
|
<dt translate>Requirements</dt>
|
136
137
|
<dd class="overflow-span" bst-edit-textarea="repository.ansible_collection_requirements"
|
137
138
|
on-save="save(repository)"
|
138
|
-
readonly="denied('edit_products', product)"
|
139
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
139
140
|
edit-trigger="uploadedFile">
|
140
141
|
</dd>
|
141
142
|
|
142
143
|
<dt translate>Ansible Collection Authorization</dt>
|
143
144
|
<dd bst-edit-custom="repository.ansible_collection_auth_exists"
|
144
|
-
readonly="denied('edit_products', product)"
|
145
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
145
146
|
on-save="save(repository)"
|
146
147
|
formatter="ansibleAuthFilter"
|
147
148
|
formatter-options="repository"
|
@@ -166,13 +167,13 @@
|
|
166
167
|
<dd bst-edit-checkbox="repository.verify_ssl_on_sync"
|
167
168
|
formatter="booleanToYesNo"
|
168
169
|
on-save="save(repository)"
|
169
|
-
readonly="denied('edit_products', product)">
|
170
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
170
171
|
</dd>
|
171
172
|
|
172
173
|
<span ng-if="!product.redhat">
|
173
174
|
<dt translate>Upstream Authorization</dt>
|
174
175
|
<dd bst-edit-custom="repository.upstream_auth_exists"
|
175
|
-
readonly="denied('edit_products', product)"
|
176
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
176
177
|
on-save="save(repository)"
|
177
178
|
formatter="upstreamPasswordFilter"
|
178
179
|
formatter-options="repository"
|
@@ -203,7 +204,7 @@
|
|
203
204
|
<span ng-show="repository.content_type === 'yum'">
|
204
205
|
<dt translate>Yum Metadata Checksum</dt>
|
205
206
|
<dd bst-edit-select="checksumTypeDisplay(repository.checksum_type)"
|
206
|
-
readonly="product.redhat || denied('edit_products', product)"
|
207
|
+
readonly="product.redhat || denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
207
208
|
selector="repository.checksum_type"
|
208
209
|
options="checksums"
|
209
210
|
on-save="save(repository)">
|
@@ -217,14 +218,14 @@
|
|
217
218
|
<dt translate>Retain package versions</dt>
|
218
219
|
<dd bst-edit-number="repository.retain_package_versions_count"
|
219
220
|
on-save="save(repository)"
|
220
|
-
readonly="denied('edit_products', product)">
|
221
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
221
222
|
</dd>
|
222
223
|
</span>
|
223
224
|
|
224
225
|
<span>
|
225
226
|
<dt translate>HTTP Proxy</dt>
|
226
227
|
<dd bst-edit-custom="repository.http_proxy_policy"
|
227
|
-
readonly="denied('edit_products', product)"
|
228
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
228
229
|
on-save="save(repository)"
|
229
230
|
formatter="httpProxyDetailsFilter"
|
230
231
|
formatter-options="repository"
|
@@ -264,7 +265,7 @@
|
|
264
265
|
<dd bst-edit-checkbox="repository.ignore_srpms"
|
265
266
|
formatter="booleanToYesNo"
|
266
267
|
on-save="save(repository)"
|
267
|
-
readonly="denied('edit_products', product)">
|
268
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
268
269
|
</dd>
|
269
270
|
</span>
|
270
271
|
|
@@ -273,7 +274,7 @@
|
|
273
274
|
<dd bst-edit-checkbox="repository.ignore_treeinfo"
|
274
275
|
formatter="booleanToYesNo"
|
275
276
|
on-save="save(repository)"
|
276
|
-
readonly="denied('edit_products', product)">
|
277
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
277
278
|
</dd>
|
278
279
|
</span>
|
279
280
|
|
@@ -282,7 +283,7 @@
|
|
282
283
|
<dd bst-edit-checkbox="repository.unprotected"
|
283
284
|
formatter="booleanToYesNo"
|
284
285
|
on-save="save(repository)"
|
285
|
-
readonly="product.redhat || denied('edit_products', product)">
|
286
|
+
readonly="product.redhat || denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
286
287
|
</dd>
|
287
288
|
</span>
|
288
289
|
|
@@ -301,7 +302,7 @@
|
|
301
302
|
<span ng-if="(repository.content_type === 'yum' && !product.redhat) || repository.content_type === 'deb'">
|
302
303
|
<dt translate>GPG Key</dt>
|
303
304
|
<dd bst-edit-select="repository.gpg_key.name"
|
304
|
-
readonly="product.redhat ||denied('edit_products', product)"
|
305
|
+
readonly="product.redhat ||denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
305
306
|
selector="repository.gpg_key_id"
|
306
307
|
options="gpgKeys()"
|
307
308
|
on-save="save(repository)">
|
@@ -309,21 +310,21 @@
|
|
309
310
|
</span>
|
310
311
|
<dt translate>SSL CA Cert</dt>
|
311
312
|
<dd bst-edit-select="repository.ssl_ca_cert.name"
|
312
|
-
readonly="product.redhat ||denied('edit_products', product)"
|
313
|
+
readonly="product.redhat ||denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
313
314
|
selector="repository.ssl_ca_cert_id"
|
314
315
|
options="certs()"
|
315
316
|
on-save="save(repository)">
|
316
317
|
</dd>
|
317
318
|
<dt translate>SSL Client Cert</dt>
|
318
319
|
<dd bst-edit-select="repository.ssl_client_cert.name"
|
319
|
-
readonly="product.redhat ||denied('edit_products', product)"
|
320
|
+
readonly="product.redhat ||denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
320
321
|
selector="repository.ssl_client_cert_id"
|
321
322
|
options="certs()"
|
322
323
|
on-save="save(repository)">
|
323
324
|
</dd>
|
324
325
|
<dt translate>SSL Client Key</dt>
|
325
326
|
<dd bst-edit-select="repository.ssl_client_key.name"
|
326
|
-
readonly="product.redhat ||denied('edit_products', product)"
|
327
|
+
readonly="product.redhat ||denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
327
328
|
selector="repository.ssl_client_key_id"
|
328
329
|
options="certs()"
|
329
330
|
on-save="save(repository)">
|
@@ -331,7 +332,7 @@
|
|
331
332
|
<span ng-if="repository.content_type == 'yum' || repository.content_type == 'deb' || repository.content_type == 'docker'">
|
332
333
|
<dt translate>Download Policy</dt>
|
333
334
|
<dd bst-edit-select="downloadPolicyDisplay(repository.download_policy)"
|
334
|
-
readonly="denied('edit_products', product)"
|
335
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
335
336
|
selector="repository.download_policy"
|
336
337
|
options="downloadPolicies"
|
337
338
|
options-format="id as name for (id, name) in options"
|
@@ -349,7 +350,7 @@
|
|
349
350
|
<dt translate>Mirroring Policy</dt>
|
350
351
|
|
351
352
|
<dd bst-edit-select="mirroringPolicyDisplay(repository.mirroring_policy, repository.content_type)"
|
352
|
-
readonly="denied('edit_products', product)"
|
353
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push"
|
353
354
|
selector="repository.mirroring_policy"
|
354
355
|
options="mirroringPolicies(repository.content_type)"
|
355
356
|
options-format="id as name for (id, name) in options"
|
@@ -360,12 +361,12 @@
|
|
360
361
|
<dt translate>Include Tags</dt>
|
361
362
|
<dd bst-edit-text="repository.commaIncludeTags"
|
362
363
|
on-save="save(repository)"
|
363
|
-
readonly="denied('edit_products', product)">
|
364
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
364
365
|
</dd>
|
365
366
|
<dt translate>Exclude Tags</dt>
|
366
367
|
<dd bst-edit-text="repository.commaExcludeTags"
|
367
368
|
on-save="save(repository)"
|
368
|
-
readonly="denied('edit_products', product)">
|
369
|
+
readonly="denied('edit_products', product) || !repository.allow_updates || repository.is_container_push">
|
369
370
|
</dd>
|
370
371
|
</span>
|
371
372
|
</dl>
|
@@ -524,7 +525,7 @@
|
|
524
525
|
|
525
526
|
<span ng-hide="(repository.content_type === 'deb' && repository.url)">
|
526
527
|
<section class="well" ng-if="permitted('edit_products', product) && !product.redhat && repository.content_type !== 'docker' && repository.content_type !== 'ostree' && repository.content_type !== 'ansible_collection'">
|
527
|
-
<h5 translate ng-show="repository.content_type === 'yum' || 'deb'">Upload Package</h5>
|
528
|
+
<h5 translate ng-show="repository.content_type === 'yum' || repository.content_type === 'deb'">Upload Package</h5>
|
528
529
|
<h5 translate ng-show="repository.content_type === 'file'">Upload File</h5>
|
529
530
|
|
530
531
|
<form role="form"
|
@@ -34,8 +34,8 @@ module BastionKatello
|
|
34
34
|
:config_generator => lambda do
|
35
35
|
{ 'consumerCertRPM' => consumer_cert_rpm,
|
36
36
|
'defaultDownloadPolicy' => !Foreman.in_rake? && db_migrated && Setting['default_download_policy'],
|
37
|
-
'remoteExecutionPresent' =>
|
38
|
-
'hostToolingEnabled' =>
|
37
|
+
'remoteExecutionPresent' => true,
|
38
|
+
'hostToolingEnabled' => true
|
39
39
|
}
|
40
40
|
end
|
41
41
|
)
|
data/lib/katello/engine.rb
CHANGED
@@ -202,9 +202,7 @@ module Katello
|
|
202
202
|
|
203
203
|
::AuditSearch::ClassMethods.prepend Katello::Concerns::AuditSearch
|
204
204
|
|
205
|
-
|
206
|
-
::RemoteExecutionProxySelector.prepend Katello::Concerns::RemoteExecutionProxySelectorExtensions
|
207
|
-
end
|
205
|
+
::RemoteExecutionProxySelector.prepend Katello::Concerns::RemoteExecutionProxySelectorExtensions
|
208
206
|
|
209
207
|
load 'katello/repository_types.rb'
|
210
208
|
load 'katello/scheduled_jobs.rb'
|
@@ -223,11 +221,6 @@ module Katello
|
|
223
221
|
end
|
224
222
|
end
|
225
223
|
|
226
|
-
# check whether foreman_remote_execution to integrate is available in the system
|
227
|
-
def self.with_remote_execution?
|
228
|
-
Foreman::Plugin.installed?("foreman_remote_execution")
|
229
|
-
end
|
230
|
-
|
231
224
|
def self.with_ansible?
|
232
225
|
Foreman::Plugin.installed?("foreman_ansible")
|
233
226
|
end
|
@@ -62,7 +62,8 @@ module Katello
|
|
62
62
|
@plugin.permission :view_capsule_content,
|
63
63
|
{
|
64
64
|
'katello/api/v2/capsule_content' => [:counts, :lifecycle_environments, :available_lifecycle_environments, :sync_status],
|
65
|
-
'smart_proxies' => [:pulp_storage, :pulp_status, :show_with_content]
|
65
|
+
'smart_proxies' => [:pulp_storage, :pulp_status, :show_with_content],
|
66
|
+
'katello/api/v2/capsules' => [:index, :show]
|
66
67
|
},
|
67
68
|
:resource_type => "SmartProxy"
|
68
69
|
end
|
@@ -243,7 +244,7 @@ module Katello
|
|
243
244
|
'katello/products' => [:auto_complete, :auto_complete_search],
|
244
245
|
'katello/api/v2/products' => [:index, :show, :auto_complete_search],
|
245
246
|
'katello/api/v2/repositories' => [:index, :show, :repository_types, :content_types, :auto_complete_search, :cancel],
|
246
|
-
'katello/api/v2/packages' => [:index, :show, :auto_complete_search, :auto_complete_name, :auto_complete_arch, :compare],
|
247
|
+
'katello/api/v2/packages' => [:index, :thindex, :show, :auto_complete_search, :auto_complete_name, :auto_complete_arch, :compare],
|
247
248
|
'katello/api/v2/srpms' => [:index, :show, :auto_complete_search, :compare],
|
248
249
|
'katello/api/v2/debs' => [:index, :show, :auto_complete_search, :auto_complete_name, :auto_complete_arch, :compare],
|
249
250
|
'katello/api/v2/package_groups' => [:index, :show, :auto_complete_search, :compare],
|
data/lib/katello/plugin.rb
CHANGED
@@ -363,7 +363,7 @@ Foreman::Plugin.register :katello do
|
|
363
363
|
type: :boolean,
|
364
364
|
default: false,
|
365
365
|
full_name: N_('Allow multiple content views'),
|
366
|
-
description: N_("Allow a host to be
|
366
|
+
description: N_("Allow a host to be assigned to multiple content view environments with 'subscription-manager register --environments' or 'subscription-manager environments --set'.") # TODO: update this description when AKs support this setting as well
|
367
367
|
|
368
368
|
setting 'content_default_http_proxy',
|
369
369
|
type: :string,
|
@@ -459,7 +459,7 @@ Foreman::Plugin.register :katello do
|
|
459
459
|
type: :boolean,
|
460
460
|
default: false,
|
461
461
|
full_name: N_('Generate errata status from directly-installable content'),
|
462
|
-
description: N_("If true, only errata that can be installed without an incremental update will affect the host's errata status.")
|
462
|
+
description: N_("If true, only errata that can be installed without an incremental update will affect the host's errata status. Also affects the Host Collections dashboard widget.")
|
463
463
|
|
464
464
|
setting 'restrict_composite_view',
|
465
465
|
type: :boolean,
|
@@ -643,8 +643,8 @@ Foreman::Plugin.register :katello do
|
|
643
643
|
setting 'remote_execution_prefer_registered_through_proxy',
|
644
644
|
type: :boolean,
|
645
645
|
default: false,
|
646
|
-
full_name: N_('Prefer registered through
|
647
|
-
description: N_('Prefer using a
|
646
|
+
full_name: N_('Prefer registered through Smart Proxy for remote execution'),
|
647
|
+
description: N_('Prefer using a Smart Proxy to which a host is registered when using remote execution')
|
648
648
|
|
649
649
|
setting 'delete_repo_across_cv',
|
650
650
|
type: :boolean,
|
@@ -663,32 +663,36 @@ Foreman::Plugin.register :katello do
|
|
663
663
|
default: true,
|
664
664
|
full_name: N_('Calculate content counts on smart proxies automatically'),
|
665
665
|
description: N_("If this is enabled, content counts on smart proxies will be updated automatically after content sync.")
|
666
|
+
|
667
|
+
setting 'hide_reclaim_space_warning',
|
668
|
+
type: :boolean,
|
669
|
+
default: false,
|
670
|
+
full_name: N_('Hide Reclaim Space Warning'),
|
671
|
+
description: N_('If this is enabled, the Smart Proxy page will suppress the warning message about reclaiming space.')
|
666
672
|
end
|
667
673
|
end
|
668
674
|
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
RemoteExecutionProvider.singleton_class.prepend(Katello::Concerns::RemoteExecutionProviderExtensions)
|
691
|
-
end
|
675
|
+
RemoteExecutionFeature.register(:katello_package_install, N_("Katello: Install Package"), :description => N_("Install package via Katello interface"), :provided_inputs => ['package'])
|
676
|
+
RemoteExecutionFeature.register(:katello_package_install_by_search, N_("Katello: Install packages by search query"), :description => N_("Install packages via Katello interface"), :provided_inputs => ['Package search query'])
|
677
|
+
RemoteExecutionFeature.register(:katello_package_update, N_("Katello: Update Package"), :description => N_("Update package via Katello interface"), :provided_inputs => ['package'])
|
678
|
+
RemoteExecutionFeature.register(:katello_packages_update_by_search, N_("Katello: Update Packages by search query"), :description => N_("Update packages via Katello interface"), :provided_inputs => ['Package search query'])
|
679
|
+
RemoteExecutionFeature.register(:katello_package_remove, N_("Katello: Remove Package"), :description => N_("Remove package via Katello interface"), :provided_inputs => ['package'])
|
680
|
+
RemoteExecutionFeature.register(:katello_packages_remove_by_search, N_("Katello: Remove Packages by search query"), :description => N_("Remove packages via Katello interface"), :provided_inputs => ['Package search query'])
|
681
|
+
RemoteExecutionFeature.register(:katello_group_install, N_("Katello: Install Package Group"), :description => N_("Install package group via Katello interface"), :provided_inputs => ['package'])
|
682
|
+
RemoteExecutionFeature.register(:katello_group_update, N_("Katello: Update Package Group"), :description => N_("Update package group via Katello interface"), :provided_inputs => ['package'])
|
683
|
+
RemoteExecutionFeature.register(:katello_group_remove, N_("Katello: Remove Package Group"), :description => N_("Remove package group via Katello interface"), :provided_inputs => ['package'])
|
684
|
+
RemoteExecutionFeature.register(:katello_errata_install, N_("Katello: Install Errata"), :description => N_("Install errata via Katello interface"), :provided_inputs => ['errata'])
|
685
|
+
RemoteExecutionFeature.register(:katello_errata_install_by_search, N_("Katello: Install errata by search query"), :description => N_("Install errata using scoped search query"), :provided_inputs => ['Errata search query'])
|
686
|
+
RemoteExecutionFeature.register(:katello_service_restart, N_("Katello: Service Restart"), :description => N_("Restart Services via Katello interface"), :provided_inputs => ['helpers'])
|
687
|
+
RemoteExecutionFeature.register(:katello_host_tracer_resolve, N_("Katello: Resolve Traces"), :description => N_("Resolve traces via Katello interface"), :provided_inputs => ['ids'])
|
688
|
+
RemoteExecutionFeature.register(:katello_change_content_source, N_("Katello: Configure host for new content source"), :description => N_("Replace content source on the target machine"), :provided_inputs => [])
|
689
|
+
RemoteExecutionFeature.register(:katello_upload_profile, N_("Katello: Upload Profile"), :description => N_("Upload package / repos profile"), :provided_inputs => [])
|
690
|
+
RemoteExecutionFeature.register(:katello_module_stream_action, N_("Katello: Module Stream Actions"),
|
691
|
+
:description => N_("Perform a module stream action via Katello interface"),
|
692
|
+
:provided_inputs => ['action', 'module_spec', 'options'])
|
693
|
+
allowed_template_helpers :errata
|
694
|
+
|
695
|
+
RemoteExecutionProvider.singleton_class.prepend(Katello::Concerns::RemoteExecutionProviderExtensions)
|
692
696
|
|
693
697
|
tests_to_skip("AccessPermissionsTest" => [
|
694
698
|
'foreman_tasks/api/tasks/callback should have a permission that grants access',
|
@@ -12,10 +12,8 @@ namespace :katello do
|
|
12
12
|
Dir.foreach(dir) do |entry|
|
13
13
|
# If directory is a file repo, then it was published using
|
14
14
|
# the UUID. It's a target for deletion.
|
15
|
-
if (repo = Katello::Repository.find_by(pulp_id: File.basename(entry)))
|
16
|
-
|
17
|
-
delete << "#{dir}#{entry}"
|
18
|
-
end
|
15
|
+
if (repo = Katello::Repository.find_by(pulp_id: File.basename(entry))) && (repo.content_type == Katello::Repository::FILE_TYPE)
|
16
|
+
delete << "#{dir}#{entry}"
|
19
17
|
end
|
20
18
|
end
|
21
19
|
end
|
@@ -30,10 +30,9 @@ namespace :katello do
|
|
30
30
|
puts "\e[33mStarting Candlepin Reset\e[0m\n\n"
|
31
31
|
|
32
32
|
system(service_stop.gsub("%s", 'tomcat'))
|
33
|
-
system("sudo
|
34
|
-
system("sudo
|
35
|
-
system("sudo /usr/share/candlepin/cpdb --
|
36
|
-
system("sudo /usr/share/candlepin/cpdb --update")
|
33
|
+
system("sudo /usr/share/candlepin/cpdb --drop -u postgres")
|
34
|
+
system("sudo /usr/share/candlepin/cpdb --create -u postgres")
|
35
|
+
system("sudo /usr/share/candlepin/cpdb --update-schema")
|
37
36
|
system(service_start.gsub("%s", 'tomcat'))
|
38
37
|
puts "\e[32mCandlepin Database Reset Complete\e[0m\n\n"
|
39
38
|
end
|
data/lib/katello/version.rb
CHANGED
data/lib/katello.rb
CHANGED
@@ -12,8 +12,6 @@ require "securerandom"
|
|
12
12
|
|
13
13
|
require "deface"
|
14
14
|
|
15
|
-
require "securerandom"
|
16
|
-
|
17
15
|
# to make Foreman#in_rake? helper available if Foreman's lib is available
|
18
16
|
lib_foreman = File.expand_path('lib/foreman', Rails.root)
|
19
17
|
require lib_foreman if Dir.exist?(lib_foreman)
|
@@ -9,6 +9,7 @@ if defined? ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
|
|
9
9
|
super
|
10
10
|
end
|
11
11
|
end
|
12
|
+
|
12
13
|
module ActiveRecord
|
13
14
|
module ConnectionAdapters
|
14
15
|
module PostgreSQL
|
@@ -16,6 +17,7 @@ if defined? ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
|
|
16
17
|
class EvrT < Type::String; end # :nodoc:
|
17
18
|
end
|
18
19
|
end
|
20
|
+
|
19
21
|
class PostgreSQLAdapter < AbstractAdapter
|
20
22
|
prepend PostgreSQLAdapterExtensions
|
21
23
|
end
|
data/locale/action_names.rb
CHANGED
@@ -51,7 +51,7 @@ _("Metadata generate")
|
|
51
51
|
_("Product Create")
|
52
52
|
_("Promote")
|
53
53
|
_("Promotion to Environment")
|
54
|
-
_("Publish Lifecycle Environment Repositories")
|
54
|
+
_("Publish Lifecycle Environment Container Repositories")
|
55
55
|
_("Publish")
|
56
56
|
_("Refresh Alternate Content Source")
|
57
57
|
_("Reindex subscriptions")
|