katello 4.14.1 → 4.15.0.rc2
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/common/chosen.jquery.js +3 -3
- data/app/assets/javascripts/katello/common/env_select_scroll.js +3 -3
- data/app/assets/javascripts/katello/common/katello.js +8 -7
- data/app/assets/javascripts/katello/common/katello_object.js +3 -3
- data/app/assets/javascripts/katello/common/menu.js +7 -7
- data/app/assets/javascripts/katello/hosts/host_and_hostgroup_edit.js +6 -6
- data/app/assets/javascripts/katello/locale/bn/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/bn_IN/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/ca/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/cs/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/de/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/de_AT/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/de_DE/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/el/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/en/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/en_GB/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/en_US/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/es/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/et_EE/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/fr/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/gl/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/gu/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/he_IL/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/hi/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/id/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/it/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/ja/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/ka/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/kn/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/ko/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/ml_IN/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/mr/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/nl_NL/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/or/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/pa/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/pl/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/pl_PL/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/pt/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/pt_BR/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/ro/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/ro_RO/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/ru/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/sl/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/sv_SE/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/ta/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/ta_IN/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/te/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/tr/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/vi/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/vi_VN/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/zh/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/zh_CN/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/zh_TW/katello.js +259 -28
- data/app/assets/javascripts/katello/organizations/download_certificate.js +1 -1
- data/app/assets/javascripts/katello/sync_management/sync_management.js +9 -9
- data/app/assets/javascripts/katello/widgets/env_content_view_selector.js +5 -5
- data/app/assets/javascripts/katello/widgets/path_selector.js +6 -6
- data/app/assets/javascripts/katello/widgets/subpanel_new.js +1 -1
- data/app/controllers/katello/api/registry/registry_proxies_controller.rb +7 -7
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +6 -1
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +131 -59
- data/app/controllers/katello/api/v2/api_controller.rb +1 -1
- data/app/controllers/katello/api/v2/capsule_content_controller.rb +21 -10
- data/app/controllers/katello/api/v2/content_view_components_controller.rb +1 -1
- data/app/controllers/katello/api/v2/content_view_environments_controller.rb +54 -0
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +3 -3
- data/app/controllers/katello/api/v2/content_views_controller.rb +1 -1
- data/app/controllers/katello/api/v2/environments_controller.rb +1 -1
- data/app/controllers/katello/api/v2/exports_controller.rb +1 -1
- data/app/controllers/katello/api/v2/generic_content_units_controller.rb +2 -1
- data/app/controllers/katello/api/v2/host_collections_controller.rb +2 -2
- data/app/controllers/katello/api/v2/host_contents_controller.rb +1 -1
- data/app/controllers/katello/api/v2/host_errata_controller.rb +1 -1
- data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +1 -1
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +1 -4
- data/app/controllers/katello/api/v2/organizations_controller.rb +1 -1
- data/app/controllers/katello/api/v2/repositories_controller.rb +3 -2
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +1 -1
- data/app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb +10 -16
- data/app/controllers/katello/concerns/api/v2/multi_cv_params_handling.rb +24 -0
- data/app/controllers/katello/concerns/authorization/api/v2/content_views_controller.rb +2 -5
- data/app/controllers/katello/concerns/hosts_controller_extensions.rb +1 -1
- data/app/controllers/katello/concerns/registration_commands_controller_extensions.rb +1 -1
- data/app/helpers/katello/concerns/smart_proxy_helper_extensions.rb +5 -5
- data/app/helpers/katello/hosts_and_hostgroups_helper.rb +2 -2
- data/app/helpers/katello/katello_url_helper.rb +1 -1
- data/app/lib/actions/candlepin/product/content_create.rb +12 -1
- data/app/lib/actions/candlepin/product/content_update.rb +21 -4
- data/app/lib/actions/katello/activation_key/reassign.rb +4 -3
- data/app/lib/actions/katello/capsule_content/sync_capsule.rb +8 -3
- data/app/lib/actions/katello/capsule_content/update_content_counts.rb +21 -3
- data/app/lib/actions/katello/cdn_configuration/update.rb +1 -1
- data/app/lib/actions/katello/content_view/capsule_sync.rb +17 -1
- data/app/lib/actions/katello/content_view/incremental_updates.rb +1 -1
- data/app/lib/actions/katello/content_view/presenters/incremental_updates_presenter.rb +1 -1
- data/app/lib/actions/katello/content_view/remove.rb +8 -12
- data/app/lib/actions/katello/content_view_version/import.rb +1 -1
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +2 -2
- data/app/lib/actions/katello/flatpak/scan_remote.rb +62 -0
- data/app/lib/actions/katello/host/hypervisors.rb +1 -1
- data/app/lib/actions/katello/product/content_create.rb +28 -19
- data/app/lib/actions/katello/product/content_destroy.rb +6 -5
- data/app/lib/actions/katello/product/destroy.rb +1 -1
- data/app/lib/actions/katello/repository/clone_contents.rb +14 -0
- data/app/lib/actions/katello/repository/create.rb +24 -17
- data/app/lib/actions/katello/repository/create_container_push_root.rb +44 -0
- data/app/lib/actions/katello/repository/create_root.rb +5 -15
- data/app/lib/actions/katello/repository/destroy.rb +3 -3
- data/app/lib/actions/katello/repository/discover.rb +1 -1
- data/app/lib/actions/katello/repository/finish_upload.rb +13 -0
- data/app/lib/actions/katello/repository/import_upload.rb +1 -1
- data/app/lib/actions/katello/repository/sync.rb +16 -0
- data/app/lib/actions/katello/repository/update.rb +11 -20
- data/app/lib/actions/katello/repository/upload_files.rb +1 -1
- data/app/lib/actions/katello/repository_set/enable_repository.rb +1 -1
- data/app/lib/actions/katello/repository_set/scan_cdn.rb +1 -1
- data/app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb +1 -1
- data/app/lib/actions/pulp3/capsule_content/sync.rb +1 -1
- data/app/lib/actions/pulp3/orchestration/content_view_version/export_library.rb +1 -1
- data/app/lib/actions/pulp3/orchestration/repository/create.rb +6 -1
- data/app/lib/actions/pulp3/orchestration/repository/trigger_update_repo_cert_guard.rb +1 -1
- data/app/lib/actions/pulp3/repository/initialize.rb +17 -0
- data/app/lib/actions/pulp3/repository/refresh_distribution.rb +1 -1
- data/app/lib/katello/api/constraints/register_with_activation_key_constraint.rb +11 -0
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +1 -1
- data/app/lib/katello/http_resource.rb +6 -6
- data/app/lib/katello/messaging/stomp_connection.rb +4 -4
- data/app/lib/katello/resources/candlepin/activation_key.rb +1 -1
- data/app/lib/katello/resources/candlepin/owner.rb +1 -1
- data/app/lib/katello/resources/candlepin/product.rb +1 -1
- data/app/lib/katello/resources/candlepin.rb +1 -1
- data/app/lib/katello/resources/cdn/katello_cdn.rb +3 -3
- data/app/lib/katello/resources/cdn.rb +1 -1
- data/app/lib/katello/resources/discovery/container.rb +5 -3
- data/app/lib/katello/resources/discovery/yum.rb +3 -1
- data/app/lib/katello/resources/registry.rb +0 -3
- data/app/lib/katello/util/candlepin_repository_checker.rb +2 -2
- data/app/lib/katello/util/cveak_migrator.rb +38 -0
- data/app/lib/katello/util/deb.rb +9 -0
- data/app/lib/katello/util/deduplication_migrator.rb +8 -8
- data/app/lib/katello/util/model.rb +2 -2
- data/app/lib/katello/util/search.rb +5 -5
- data/app/lib/katello/util/task_status.rb +19 -19
- data/app/lib/katello/util/url_matcher.rb +3 -3
- data/app/lib/katello/validators/content_view_environment_org_validator.rb +2 -1
- data/app/lib/katello/validators/katello_url_format_validator.rb +2 -2
- data/app/mailers/katello/errata_mailer.rb +1 -4
- data/app/models/katello/activation_key.rb +123 -27
- data/app/models/katello/alternate_content_source.rb +5 -5
- data/app/models/katello/authorization/activation_key.rb +1 -1
- data/app/models/katello/authorization/content_view_environment.rb +7 -0
- data/app/models/katello/cdn_configuration.rb +1 -1
- data/app/models/katello/concerns/content_facet_host_extensions.rb +36 -38
- data/app/models/katello/concerns/host_managed_extensions.rb +19 -8
- data/app/models/katello/concerns/organization_extensions.rb +4 -4
- data/app/models/katello/concerns/redhat_extensions.rb +1 -1
- data/app/models/katello/concerns/smart_proxy_extensions.rb +84 -39
- data/app/models/katello/content.rb +3 -3
- data/app/models/katello/content_view.rb +15 -18
- data/app/models/katello/content_view_environment.rb +56 -15
- data/app/models/katello/content_view_environment_activation_key.rb +20 -0
- data/app/models/katello/content_view_erratum_filter_rule.rb +1 -1
- data/app/models/katello/content_view_filter.rb +2 -2
- data/app/models/katello/content_view_history.rb +1 -1
- data/app/models/katello/content_view_repository.rb +1 -1
- data/app/models/katello/content_view_version.rb +3 -3
- data/app/models/katello/content_view_version_export_history.rb +2 -2
- data/app/models/katello/content_view_version_import_history.rb +1 -1
- data/app/models/katello/events/delete_latest_content_view_version.rb +1 -1
- data/app/models/katello/flatpak_remote.rb +11 -0
- data/app/models/katello/flatpak_remote_repository.rb +12 -0
- data/app/models/katello/flatpak_remote_repository_manifest.rb +10 -0
- data/app/models/katello/glue/candlepin/activation_key.rb +1 -1
- data/app/models/katello/glue/candlepin/candlepin_object.rb +1 -1
- data/app/models/katello/glue/candlepin/pool.rb +1 -1
- data/app/models/katello/glue/pulp/repos.rb +1 -1
- data/app/models/katello/host/content_facet.rb +33 -17
- data/app/models/katello/host/info_provider.rb +2 -4
- data/app/models/katello/host/subscription_facet.rb +2 -2
- data/app/models/katello/host_available_module_stream.rb +1 -1
- data/app/models/katello/installed_product.rb +2 -2
- data/app/models/katello/kt_environment.rb +11 -6
- data/app/models/katello/ping.rb +2 -3
- data/app/models/katello/repository.rb +40 -6
- data/app/models/katello/rhel_lifecycle_status.rb +10 -10
- data/app/models/katello/root_repository.rb +14 -18
- data/app/models/katello/task_status.rb +1 -1
- data/app/models/katello/upstream_pool.rb +2 -2
- data/app/presenters/katello/product_content_presenter.rb +2 -2
- data/app/presenters/katello/repository_presenter.rb +3 -3
- data/app/presenters/katello/sync_status_presenter.rb +3 -3
- data/app/services/cert/certs.rb +6 -2
- data/app/services/katello/candlepin_event_listener.rb +1 -1
- data/app/services/katello/event_monitor/poller_thread.rb +1 -1
- data/app/services/katello/event_queue.rb +1 -1
- data/app/services/katello/product_content_finder.rb +10 -10
- data/app/services/katello/product_content_importer.rb +1 -1
- data/app/services/katello/pulp3/alternate_content_source.rb +2 -2
- data/app/services/katello/pulp3/ansible_collection.rb +1 -1
- data/app/services/katello/pulp3/api/apt.rb +4 -0
- data/app/services/katello/pulp3/content.rb +1 -0
- data/app/services/katello/pulp3/content_view_version/export.rb +3 -10
- data/app/services/katello/pulp3/content_view_version/export_validator.rb +1 -1
- data/app/services/katello/pulp3/content_view_version/import.rb +2 -2
- data/app/services/katello/pulp3/content_view_version/import_gpg_keys.rb +1 -1
- data/app/services/katello/pulp3/content_view_version/importable_products.rb +2 -2
- data/app/services/katello/pulp3/content_view_version/importable_repositories.rb +4 -4
- data/app/services/katello/pulp3/content_view_version/metadata_generator.rb +2 -2
- data/app/services/katello/pulp3/deb.rb +35 -1
- data/app/services/katello/pulp3/docker_manifest.rb +1 -1
- data/app/services/katello/pulp3/docker_manifest_list.rb +6 -2
- data/app/services/katello/pulp3/docker_tag.rb +1 -1
- data/app/services/katello/pulp3/erratum.rb +2 -2
- data/app/services/katello/pulp3/file_unit.rb +1 -1
- data/app/services/katello/pulp3/generic_content_unit.rb +1 -1
- data/app/services/katello/pulp3/module_stream.rb +2 -2
- data/app/services/katello/pulp3/repository/ansible_collection.rb +1 -1
- data/app/services/katello/pulp3/repository/apt.rb +22 -16
- data/app/services/katello/pulp3/repository/docker.rb +2 -2
- data/app/services/katello/pulp3/repository/file.rb +1 -1
- data/app/services/katello/pulp3/repository/generic.rb +1 -1
- data/app/services/katello/pulp3/repository/yum.rb +7 -7
- data/app/services/katello/pulp3/repository.rb +15 -9
- data/app/services/katello/pulp3/repository_mirror.rb +3 -3
- data/app/services/katello/registration_manager.rb +23 -6
- data/app/services/katello/repository_type.rb +3 -3
- data/app/services/katello/smart_proxy_helper.rb +3 -3
- data/app/services/katello/ui_notifications/content_view/delete_latest_version_failure.rb +1 -1
- data/app/services/katello/ui_notifications/subscriptions/expire_soon.rb +3 -3
- data/app/services/katello/ui_notifications/subscriptions/manifest_expire_soon_warning.rb +3 -3
- data/app/services/katello/ui_notifications/task_notification.rb +2 -2
- data/app/services/katello/upstream_connection_checker.rb +1 -1
- data/app/views/foreman/job_templates/resolve_traces.erb +8 -1
- data/app/views/foreman/job_templates/resolve_traces_-_katello_ansible_default.erb +4 -3
- data/app/views/foreman/job_templates/restart_services.erb +11 -3
- data/app/views/foreman/job_templates/restart_services_-_katello_ansible_default.erb +4 -3
- data/app/views/katello/api/v2/activation_keys/base.json.rabl +43 -8
- data/app/views/katello/api/v2/alternate_content_sources/base.json.rabl +1 -1
- data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +5 -5
- data/app/views/katello/api/v2/common/_metadata.json.rabl +1 -1
- data/app/views/katello/api/v2/content_credentials/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_facet/base.json.rabl +15 -6
- data/app/views/katello/api/v2/content_facet/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_environments/index.json.rabl +7 -0
- data/app/views/katello/api/v2/content_view_environments/show.json.rabl +33 -0
- data/app/views/katello/api/v2/content_view_filter_rules/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_filters/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_versions/base.json.rabl +3 -3
- data/app/views/katello/api/v2/content_views/base.json.rabl +3 -3
- data/app/views/katello/api/v2/content_views/show.json.rabl +1 -1
- data/app/views/katello/api/v2/debs/backend.json.rabl +7 -0
- data/app/views/katello/api/v2/debs/base.json.rabl +4 -0
- data/app/views/katello/api/v2/debs/show.json.rabl +2 -0
- data/app/views/katello/api/v2/docker_manifest_lists/show.json.rabl +1 -0
- data/app/views/katello/api/v2/docker_tags/_base.json.rabl +2 -2
- data/app/views/katello/api/v2/environments/show.json.rabl +4 -4
- data/app/views/katello/api/v2/gpg_keys/show.json.rabl +1 -1
- data/app/views/katello/api/v2/host_collections/base.json.rabl +1 -1
- data/app/views/katello/api/v2/hosts/base.json.rabl +2 -2
- data/app/views/katello/api/v2/package_groups/base.json.rabl +2 -2
- data/app/views/katello/api/v2/products/show.json.rabl +2 -2
- data/app/views/katello/api/v2/repositories/show.json.rabl +1 -1
- data/app/views/katello/api/v2/repository_sets/show.json.rabl +1 -1
- data/app/views/katello/api/v2/subscriptions/base.json.rabl +1 -1
- data/app/views/katello/api/v2/subscriptions/show.json.rabl +3 -3
- data/app/views/katello/api/v2/sync_plans/show.json.rabl +1 -1
- data/config/initializers/inflections.rb +11 -0
- data/config/katello.yaml.example +4 -10
- data/config/routes/api/registry.rb +0 -2
- data/config/routes/api/rhsm.rb +1 -4
- data/config/routes/api/v2.rb +2 -3
- data/db/migrate/20140716211853_repo_rename_feed_to_url.rb +1 -1
- data/db/migrate/20141003210742_add_docker_container_registry_url_to_providers.rb +1 -1
- data/db/migrate/20150224083608_remove_docker_registry_url.rb +1 -1
- data/db/migrate/20160808002834_add_files.rb +1 -1
- data/db/migrate/20161014133811_move_content_view_version_description_to_histories.rb +1 -1
- data/db/migrate/20200818192230_update_system_purpose_status.rb +1 -1
- data/db/migrate/20201012172713_remove_gpg_key_perms.rb +1 -1
- data/db/migrate/20210322142311_add_auth_url_token_to_root_repositories.rb +1 -1
- data/db/migrate/20211220185935_clean_duplicate_content_units.rb +2 -2
- data/db/migrate/20230717150442_change_change_content_source_job_template_name.rb +1 -1
- data/db/migrate/20240207191223_remove_entitlement_mode_host_statuses.rb +1 -1
- data/db/migrate/20240508100434_add_content_id_to_katello_repository.rb +5 -0
- data/db/migrate/20240730163043_add_content_view_environment_activation_key.rb +87 -0
- data/db/migrate/20240806130902_add_more_deb_fields.rb +15 -0
- data/db/migrate/20240903194428_add_priority_to_content_view_environment_activation_key.rb +5 -0
- data/db/migrate/20241007200316_add_fields_to_katello_docker_manifest_list.rb +8 -0
- data/db/migrate/20241007212705_add_bootc_facts_to_content_facet.rb +27 -0
- data/db/migrate/20241025151105_remove_pulp3_migrated_hrefs_from_content_tables.rb +10 -0
- data/db/migrate/20241030181402_create_katello_flatpak_tables.rb +41 -0
- data/db/seeds.d/106-mail_notifications.rb +9 -9
- data/db/seeds.d/108-subcription-bookmarks.rb +1 -1
- data/db/seeds.d/109-katello-notification-blueprints.rb +21 -21
- data/db/seeds.d/110-content-view-autopublish.rb +5 -5
- data/db/seeds.d/111-container-image-bookmarks.rb +1 -1
- data/db/seeds.d/111-upgrade_tasks.rb +1 -1
- data/engines/bastion/lib/bastion/engine.rb +1 -1
- data/engines/bastion/lib/bastion.rb +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-repository-sets.controller.js +16 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html +29 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-repository-sets.html +13 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys.html +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-host-collections-modal.controller.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-host-collections-modal.html +4 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/debs.routes.js +9 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/views/deb-dependencies.html +54 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/views/deb-info.html +13 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/views/deb.html +8 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +11 -0
- data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/activation_keys.scss +1 -1
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +1 -1
- data/lib/katello/engine.rb +17 -15
- data/lib/katello/permission_creator.rb +51 -49
- data/lib/katello/permissions/host_permissions.rb +4 -4
- data/lib/katello/permissions/organization_permissions.rb +4 -4
- data/lib/katello/permissions/registry_permissions.rb +1 -1
- data/lib/katello/permissions/roles_permissions.rb +1 -1
- data/lib/katello/permissions/user_permissions.rb +1 -1
- data/lib/katello/plugin.rb +14 -8
- data/lib/katello/repository_types/docker.rb +4 -2
- data/lib/katello/repository_types/ostree.rb +5 -3
- data/lib/katello/repository_types/python.rb +1 -1
- data/lib/katello/repository_types/yum.rb +2 -1
- data/lib/katello/scheduled_jobs.rb +1 -1
- data/lib/katello/tasks/migrate_structure_content_for_deb.rake +105 -0
- data/lib/katello/tasks/receptor/extract_orgs.rake +1 -1
- data/lib/katello/tasks/reimport.rake +1 -1
- data/lib/katello/tasks/repository.rake +19 -9
- data/lib/katello/tasks/upgrades/4.1/reupdate_content_import_export_perms.rake +1 -1
- data/lib/katello/tasks/upgrades/4.3/fix_url_auth.rake +1 -1
- data/lib/katello/version.rb +1 -1
- data/locale/action_names.rb +92 -1
- data/locale/bn/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn/katello.po +259 -28
- data/locale/bn_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn_IN/katello.po +258 -27
- data/locale/ca/LC_MESSAGES/katello.mo +0 -0
- data/locale/ca/katello.po +258 -27
- data/locale/cs/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs/katello.po +258 -30
- data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs_CZ/katello.po +258 -27
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/katello.po +259 -28
- data/locale/de_AT/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_AT/katello.po +258 -27
- data/locale/de_DE/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_DE/katello.po +258 -27
- data/locale/el/LC_MESSAGES/katello.mo +0 -0
- data/locale/el/katello.po +258 -27
- data/locale/en/LC_MESSAGES/katello.mo +0 -0
- data/locale/en/katello.po +258 -27
- data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_GB/katello.po +258 -27
- data/locale/en_US/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_US/katello.po +258 -27
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/katello.po +259 -28
- data/locale/et_EE/LC_MESSAGES/katello.mo +0 -0
- data/locale/et_EE/katello.po +258 -27
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/katello.po +259 -28
- data/locale/gl/LC_MESSAGES/katello.mo +0 -0
- data/locale/gl/katello.po +258 -27
- data/locale/gu/LC_MESSAGES/katello.mo +0 -0
- data/locale/gu/katello.po +258 -27
- data/locale/he_IL/LC_MESSAGES/katello.mo +0 -0
- data/locale/he_IL/katello.po +258 -27
- data/locale/hi/LC_MESSAGES/katello.mo +0 -0
- data/locale/hi/katello.po +258 -27
- data/locale/id/LC_MESSAGES/katello.mo +0 -0
- data/locale/id/katello.po +258 -27
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/katello.po +259 -28
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/katello.po +259 -28
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/katello.po +259 -28
- data/locale/katello.pot +1041 -696
- data/locale/kn/LC_MESSAGES/katello.mo +0 -0
- data/locale/kn/katello.po +258 -27
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/katello.po +259 -28
- data/locale/ml_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ml_IN/katello.po +258 -27
- data/locale/mr/LC_MESSAGES/katello.mo +0 -0
- data/locale/mr/katello.po +258 -27
- data/locale/nl_NL/LC_MESSAGES/katello.mo +0 -0
- data/locale/nl_NL/katello.po +258 -27
- data/locale/or/LC_MESSAGES/katello.mo +0 -0
- data/locale/or/katello.po +258 -27
- data/locale/pa/LC_MESSAGES/katello.mo +0 -0
- data/locale/pa/katello.po +258 -27
- data/locale/pl/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl/katello.po +258 -27
- data/locale/pl_PL/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl_PL/katello.po +258 -27
- data/locale/pt/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt/katello.po +258 -27
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/katello.po +259 -28
- data/locale/ro/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro/katello.po +258 -27
- data/locale/ro_RO/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro_RO/katello.po +258 -27
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/katello.po +259 -28
- data/locale/sl/LC_MESSAGES/katello.mo +0 -0
- data/locale/sl/katello.po +258 -27
- data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
- data/locale/sv_SE/katello.po +258 -27
- data/locale/ta/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta/katello.po +259 -28
- data/locale/ta_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta_IN/katello.po +258 -27
- data/locale/te/LC_MESSAGES/katello.mo +0 -0
- data/locale/te/katello.po +258 -27
- data/locale/tr/LC_MESSAGES/katello.mo +0 -0
- data/locale/tr/katello.po +258 -27
- data/locale/vi/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi/katello.po +258 -27
- data/locale/vi_VN/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi_VN/katello.po +258 -27
- data/locale/zh/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh/katello.po +258 -27
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/katello.po +259 -28
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/katello.po +259 -28
- data/vendor/assets/javascripts/katello/chosen.jquery.js +2 -2
- data/vendor/assets/javascripts/katello/jquery.ba-bbq.js +1 -1
- data/vendor/assets/javascripts/katello/jquery.hoverIntent.js +2 -2
- data/webpack/ForemanColumnExtensions/index.js +1 -1
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/ContentViewDetailsCard.js +113 -86
- data/webpack/components/extensions/HostDetails/DetailsTabCards/HwPropertiesCard.js +7 -2
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/DebsTab.js +31 -4
- data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +1 -1
- data/webpack/components/extensions/RegistrationCommands/fields/ActivationKeys.js +1 -7
- data/webpack/components/extensions/RegistrationCommands/helpers.js +15 -0
- data/webpack/components/extensions/RegistrationCommands/index.js +3 -9
- data/webpack/global_index.js +11 -4
- data/webpack/redux/actions/RedHatRepositories/helpers.js +2 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.js +4 -0
- data/webpack/scenes/ActivationKeys/Details/components/CVEDetailsCard.js +37 -0
- data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailConfig.js +1 -2
- data/webpack/scenes/Hosts/ChangeContentSource/helpers.js +2 -8
- data/webpack/scenes/SmartProxy/ExpandableCvDetails.js +22 -2
- data/webpack/scenes/SmartProxy/ExpandedSmartProxyRepositories.js +39 -20
- data/webpack/scenes/SmartProxy/SmartProxyContentActions.js +2 -1
- data/webpack/scenes/SmartProxy/SmartProxyExpandableTable.js +6 -4
- data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.js +62 -0
- metadata +134 -76
- data/app/lib/katello/api/constraints/activation_key_constraint.rb +0 -7
- /data/app/lib/katello/{api → routing}/mapper_extensions.rb +0 -0
@@ -3,7 +3,7 @@ blueprints = [
|
|
3
3
|
group: N_('Hosts'),
|
4
4
|
name: 'host_lifecycle_expire_soon',
|
5
5
|
message: N_('%{release}: %{number_of_hosts} hosts are approaching end of %{lifecycle} on %{end_date}. Please upgrade them before support expires. Check Report Host - Statuses for detail.'),
|
6
|
-
level: 'warning'
|
6
|
+
level: 'warning',
|
7
7
|
},
|
8
8
|
{
|
9
9
|
group: N_('Proxies'),
|
@@ -15,87 +15,87 @@ blueprints = [
|
|
15
15
|
links:
|
16
16
|
[
|
17
17
|
path_method: :smart_proxy_path,
|
18
|
-
title: N_('Details')
|
19
|
-
]
|
20
|
-
}
|
18
|
+
title: N_('Details'),
|
19
|
+
],
|
20
|
+
},
|
21
21
|
},
|
22
22
|
{
|
23
23
|
group: N_('Subscriptions'),
|
24
24
|
name: 'subs_expire_soon',
|
25
25
|
message: N_('%{expiring_subs} subscriptions in %{subject} are going to expire in less than %{days} days. Please renew them before they expire to guarantee your hosts will continue receiving content.'),
|
26
|
-
level: 'warning'
|
26
|
+
level: 'warning',
|
27
27
|
},
|
28
28
|
{
|
29
29
|
group: N_('Subscriptions'),
|
30
30
|
name: 'manifest_expire_soon_warning',
|
31
31
|
message: N_('Manifest in organization %{subject} has an identity certificate that will expire in %{days_remaining} days, on %{manifest_expire_date}. To extend the expiration date, please refresh your manifest.'),
|
32
|
-
level: 'info'
|
32
|
+
level: 'info',
|
33
33
|
},
|
34
34
|
{
|
35
35
|
group: N_('Subscriptions'),
|
36
36
|
name: 'manifest_expired_warning',
|
37
37
|
message: N_('The manifest imported within Organization %{subject} is no longer valid. Please import a new manifest.'),
|
38
|
-
level: 'warning'
|
38
|
+
level: 'warning',
|
39
39
|
},
|
40
40
|
{
|
41
41
|
group: N_('Subscriptions'),
|
42
42
|
name: 'manifest_import_success',
|
43
43
|
message: N_('Manifest in \'%{subject}\' imported.'),
|
44
|
-
level: 'info'
|
44
|
+
level: 'info',
|
45
45
|
},
|
46
46
|
{
|
47
47
|
group: N_('Subscriptions'),
|
48
48
|
name: 'manifest_import_error',
|
49
49
|
message: N_('Importing manifest into \'%{subject}\' failed.'),
|
50
|
-
level: 'error'
|
50
|
+
level: 'error',
|
51
51
|
},
|
52
52
|
{
|
53
53
|
group: N_('Subscriptions'),
|
54
54
|
name: 'manifest_refresh_success',
|
55
55
|
message: N_('Manifest in \'%{subject}\' refreshed.'),
|
56
|
-
level: 'info'
|
56
|
+
level: 'info',
|
57
57
|
},
|
58
58
|
{
|
59
59
|
group: N_('Subscriptions'),
|
60
60
|
name: 'manifest_refresh_error',
|
61
61
|
message: N_('Manifest in \'%{subject}\' failed to refresh.'),
|
62
|
-
level: 'error'
|
62
|
+
level: 'error',
|
63
63
|
},
|
64
64
|
{
|
65
65
|
group: N_('Subscriptions'),
|
66
66
|
name: 'manifest_delete_success',
|
67
67
|
message: N_('Manifest in \'%{subject}\' deleted.'),
|
68
|
-
level: 'info'
|
68
|
+
level: 'info',
|
69
69
|
},
|
70
70
|
{
|
71
71
|
group: N_('Subscriptions'),
|
72
72
|
name: 'manifest_delete_error',
|
73
73
|
message: N_('Deleting manifest in \'%{subject}\' failed.'),
|
74
|
-
level: 'error'
|
74
|
+
level: 'error',
|
75
75
|
},
|
76
76
|
{
|
77
77
|
group: N_('Subscriptions'),
|
78
78
|
name: 'sca_enable_success',
|
79
79
|
message: N_('Simple Content Access has been enabled for \'%{subject}\'.'),
|
80
|
-
level: 'info'
|
80
|
+
level: 'info',
|
81
81
|
},
|
82
82
|
{
|
83
83
|
group: N_('Subscriptions'),
|
84
84
|
name: 'sca_enable_error',
|
85
85
|
message: N_('Enabling Simple Content Access failed for \'%{subject}\'.'),
|
86
|
-
level: 'error'
|
86
|
+
level: 'error',
|
87
87
|
},
|
88
88
|
{
|
89
89
|
group: N_('Subscriptions'),
|
90
90
|
name: 'sca_disable_success',
|
91
91
|
message: N_('Simple Content Access has been disabled for \'%{subject}\'.'),
|
92
|
-
level: 'info'
|
92
|
+
level: 'info',
|
93
93
|
},
|
94
94
|
{
|
95
95
|
group: N_('Subscriptions'),
|
96
96
|
name: 'sca_disable_error',
|
97
97
|
message: N_('Disabling Simple Content Access failed for \'%{subject}\'.'),
|
98
|
-
level: 'error'
|
98
|
+
level: 'error',
|
99
99
|
},
|
100
100
|
{
|
101
101
|
group: N_('System Status'),
|
@@ -105,10 +105,10 @@ blueprints = [
|
|
105
105
|
actions: {
|
106
106
|
links: [
|
107
107
|
path_method: :about_index_path,
|
108
|
-
title: N_('About page')
|
109
|
-
]
|
110
|
-
}
|
111
|
-
}
|
108
|
+
title: N_('About page'),
|
109
|
+
],
|
110
|
+
},
|
111
|
+
},
|
112
112
|
]
|
113
113
|
|
114
114
|
blueprints.each { |blueprint| UINotifications::Seed.new(blueprint).configure }
|
@@ -7,7 +7,7 @@
|
|
7
7
|
User.as_anonymous_admin do
|
8
8
|
Bookmark.without_auditing do
|
9
9
|
bookmarks = [
|
10
|
-
{:name => "Without a Tag", :query => 'not has tag', :controller => "katello_docker_manifests"}
|
10
|
+
{:name => "Without a Tag", :query => 'not has tag', :controller => "katello_docker_manifests"},
|
11
11
|
]
|
12
12
|
|
13
13
|
bookmarks.each do |input|
|
@@ -10,6 +10,6 @@ UpgradeTask.define_tasks(:katello) do
|
|
10
10
|
{:name => 'katello:upgrades:4.4:publish_import_cvvs'},
|
11
11
|
{:name => 'katello:upgrades:4.8:fix_incorrect_providers'},
|
12
12
|
{:name => 'katello:upgrades:4.8:regenerate_imported_repository_metadata'},
|
13
|
-
{:name => 'katello:upgrades:4.12:update_content_access_modes'}
|
13
|
+
{:name => 'katello:upgrades:4.12:update_content_access_modes'},
|
14
14
|
]
|
15
15
|
end
|
@@ -23,7 +23,7 @@ module Bastion
|
|
23
23
|
|
24
24
|
SETTINGS[:bastion][:assets][:precompile] = [
|
25
25
|
'bastion/bastion.css',
|
26
|
-
'bastion/bastion.js'
|
26
|
+
'bastion/bastion.js',
|
27
27
|
]
|
28
28
|
|
29
29
|
locale_files = Dir.glob("#{Bastion::Engine.root}/vendor/assets/javascripts/#{Bastion.localization_path("*")}")
|
@@ -20,7 +20,7 @@ module Bastion
|
|
20
20
|
url_root = ENV['RAILS_RELATIVE_URL_ROOT']
|
21
21
|
base_config = {
|
22
22
|
'markTranslated' => SETTINGS[:mark_translated] || false,
|
23
|
-
'relativeUrlRoot' => url_root ? url_root + '/' : '/'
|
23
|
+
'relativeUrlRoot' => url_root ? url_root + '/' : '/',
|
24
24
|
}
|
25
25
|
|
26
26
|
Bastion.plugins.each do |_name, plugin|
|
@@ -38,6 +38,14 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyRepositorySet
|
|
38
38
|
|
39
39
|
$scope.repositoryType = {};
|
40
40
|
|
41
|
+
$scope.repositoryStatuses = {
|
42
|
+
enabled: translate("Enabled"),
|
43
|
+
disabled: translate("Disabled"),
|
44
|
+
overridden: translate("Overridden")
|
45
|
+
};
|
46
|
+
|
47
|
+
$scope.repositoryStatus = {};
|
48
|
+
|
41
49
|
$scope.contentAccessModes = {
|
42
50
|
contentAccessModeAll: true,
|
43
51
|
contentAccessModeEnv: true
|
@@ -51,6 +59,14 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyRepositorySet
|
|
51
59
|
$scope.nutupane.refresh();
|
52
60
|
};
|
53
61
|
|
62
|
+
$scope.selectRepositoryStatus = function () {
|
63
|
+
delete $scope.nutupane.table.params.status;
|
64
|
+
if (!_.isEmpty($scope.repositoryStatus.value)) {
|
65
|
+
$scope.nutupane.table.params.status = $scope.repositoryStatus.value;
|
66
|
+
}
|
67
|
+
$scope.nutupane.refresh();
|
68
|
+
};
|
69
|
+
|
54
70
|
$scope.toggleFilters = function () {
|
55
71
|
$scope.nutupane.table.params['content_access_mode_env'] = $scope.contentAccessModes.contentAccessModeEnv;
|
56
72
|
$scope.nutupane.table.params['content_access_mode_all'] = true;
|
@@ -6,6 +6,12 @@
|
|
6
6
|
</span>
|
7
7
|
</div>
|
8
8
|
|
9
|
+
<div bst-alert="warning" ng-if="activationKey.multi_content_view_environment">
|
10
|
+
<span translate>
|
11
|
+
This activation key has multiple content view environments, which cannot yet be edited in the web UI. To change this key's content view environments, update the activation key via Hammer.
|
12
|
+
</span>
|
13
|
+
</div>
|
14
|
+
|
9
15
|
<div data-extend-template="layouts/two-column-details.html">
|
10
16
|
<div data-block="left-column">
|
11
17
|
<h4 translate>Basic Information</h4>
|
@@ -51,7 +57,6 @@
|
|
51
57
|
</div>
|
52
58
|
</dd>
|
53
59
|
|
54
|
-
|
55
60
|
<div class="divider"></div>
|
56
61
|
<h4 translate>System Purpose</h4>
|
57
62
|
|
@@ -117,17 +122,18 @@
|
|
117
122
|
on-delete="clearReleaseVersion()"
|
118
123
|
on-save="save(activationKey)">
|
119
124
|
</dd>
|
120
|
-
|
125
|
+
</dl>
|
126
|
+
<dl class="dl-horizontal dl-horizontal-left" ng-if="!activationKey.multi_content_view_environment">
|
121
127
|
<dt bst-feature-flag="lifecycle_environments">
|
122
128
|
<span translate>Environment</span>
|
123
129
|
</dt>
|
124
130
|
<dd bst-feature-flag="lifecycle_environments">
|
125
131
|
<div path-selector="environments"
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
132
|
+
ng-model="activationKey.environment"
|
133
|
+
mode="singleSelect"
|
134
|
+
selection-required="selectionRequired"
|
135
|
+
disabled="denied('edit_activation_keys', activationKey)"
|
136
|
+
disable-trigger="disableEnvironmentSelection">
|
131
137
|
</div>
|
132
138
|
</dd>
|
133
139
|
|
@@ -136,14 +142,14 @@
|
|
136
142
|
</dt>
|
137
143
|
<dd bst-feature-flag="lifecycle_environments">
|
138
144
|
<div bst-edit-select="activationKey.content_view.name"
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
145
|
+
readonly="denied('edit_activation_keys', activationKey) || activationKey.environment === undefined || activationKey.environment === null"
|
146
|
+
selector="activationKey.content_view.id"
|
147
|
+
options="contentViews()"
|
148
|
+
on-cancel="cancelContentViewUpdate()"
|
149
|
+
on-save="saveContentView(activationKey)"
|
150
|
+
deletable="activationKey.content_view"
|
151
|
+
on-delete="resetEnvironment(activationKey)"
|
152
|
+
edit-trigger="editContentView">
|
147
153
|
</div>
|
148
154
|
|
149
155
|
<div bst-alert="info" ng-show="editEnvironment">
|
@@ -154,6 +160,14 @@
|
|
154
160
|
</div>
|
155
161
|
</dd>
|
156
162
|
</dl>
|
163
|
+
<dl class="dl-horizontal dl-horizontal-left">
|
164
|
+
<span id="ak-cve-details" data-ak-details="{{ activationKey }}" class="hidden"></span>
|
165
|
+
<foreman-react-component
|
166
|
+
name="CVEDetailsCard"
|
167
|
+
data-props=""
|
168
|
+
ng-if="activationKey.multi_content_view_environment"
|
169
|
+
></foreman-react-component>
|
170
|
+
</dl>
|
157
171
|
</div>
|
158
172
|
</div>
|
159
173
|
|
@@ -33,6 +33,19 @@
|
|
33
33
|
<option value="">{{'All' | translate}}</option>
|
34
34
|
</select>
|
35
35
|
</label>
|
36
|
+
|
37
|
+
<label class="repository-status-label">
|
38
|
+
<span translate>Status</span>
|
39
|
+
<select
|
40
|
+
id="repositoryStatuses"
|
41
|
+
name="repositoryStatuses"
|
42
|
+
ng-model="repositoryStatus.value"
|
43
|
+
ng-options="id as name for (id, name) in repositoryStatuses"
|
44
|
+
ng-change="selectRepositoryStatus()"
|
45
|
+
>
|
46
|
+
<option value="">{{'All' | translate}}</option>
|
47
|
+
</select>
|
48
|
+
</label>
|
36
49
|
</div>
|
37
50
|
|
38
51
|
<div data-block="list-actions">
|
@@ -29,6 +29,7 @@
|
|
29
29
|
<th bst-table-column="consumed"><span translate>Host Limit</span></th>
|
30
30
|
<th bst-table-column="environment"><span translate>Environment</span></th>
|
31
31
|
<th bst-table-column="contentView"><span translate>Content View</span></th>
|
32
|
+
<th bst-table-column="multi-cv"><span translate>Multi Content View Environment</span></th>
|
32
33
|
</tr>
|
33
34
|
</thead>
|
34
35
|
|
@@ -48,6 +49,7 @@
|
|
48
49
|
<td bst-table-cell>{{ activationKey | activationKeyConsumedFilter }}</td>
|
49
50
|
<td bst-table-cell>{{ activationKey.environment.name || "" }}</td>
|
50
51
|
<td bst-table-cell>{{ activationKey.content_view.name || "" }}</td>
|
52
|
+
<td bst-table-cell>{{ activationKey.multi_content_view_environment ? 'Yes' : 'No' }}</td>
|
51
53
|
</tr>
|
52
54
|
</tbody>
|
53
55
|
</table>
|
@@ -69,8 +69,10 @@ angular.module('Bastion.content-hosts').controller('ContentHostsBulkHostCollecti
|
|
69
69
|
|
70
70
|
if (action === 'add') {
|
71
71
|
HostBulkAction.addHostCollections(params, success, error);
|
72
|
+
$scope.ok();
|
72
73
|
} else if (action === 'remove') {
|
73
74
|
HostBulkAction.removeHostCollections(params, success, error);
|
75
|
+
$scope.ok();
|
74
76
|
}
|
75
77
|
};
|
76
78
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
<div bst-alert="info" ng-show="hostCollections.action == 'add'">
|
12
12
|
<span translate>
|
13
|
-
Are you sure you want to add the
|
13
|
+
Are you sure you want to add the content host(s) selected to the host collection(s) chosen?
|
14
14
|
</span>
|
15
15
|
<div>
|
16
16
|
<button type="button" class="btn btn-default" ng-click="performHostCollectionAction()" translate>Yes</button>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
<div bst-alert="info" ng-show="hostCollections.action == 'remove'">
|
22
22
|
<span translate>
|
23
|
-
Are you sure you want to remove the
|
23
|
+
Are you sure you want to remove the content host(s) selected from the host collection(s) chosen?
|
24
24
|
</span>
|
25
25
|
<div>
|
26
26
|
<button type="button" class="btn btn-default" ng-click="performHostCollectionAction()" translate>Yes</button>
|
@@ -84,8 +84,8 @@
|
|
84
84
|
</div>
|
85
85
|
|
86
86
|
<div data-block="modal-footer">
|
87
|
-
<button type="button" class="btn btn-
|
88
|
-
|
87
|
+
<button type="button" class="btn btn-default" ng-click="ok()" translate>
|
88
|
+
Cancel
|
89
89
|
</button>
|
90
90
|
</div>
|
91
91
|
</div>
|
@@ -40,6 +40,15 @@
|
|
40
40
|
parent: 'debs'
|
41
41
|
}
|
42
42
|
})
|
43
|
+
.state('deb.dependencies', {
|
44
|
+
url: '/dependencies',
|
45
|
+
permission: ['view_products', 'view_content_views'],
|
46
|
+
templateUrl: 'debs/details/views/deb-dependencies.html',
|
47
|
+
ncyBreadcrumb: {
|
48
|
+
label: "{{ 'Dependencies' | translate }}",
|
49
|
+
parent: 'deb.info'
|
50
|
+
}
|
51
|
+
})
|
43
52
|
.state('deb.repositories', {
|
44
53
|
url: '/repositories',
|
45
54
|
permission: ['view_products'],
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<span page-title ng-model="deb">{{ 'Deb: ' | translate }} {{ deb.nva }}</span>
|
2
|
+
|
3
|
+
<section>
|
4
|
+
|
5
|
+
<div ng-if="deb.depends.length > 0" class="details fl">
|
6
|
+
<h4 translate><b>Depends</b></h4>
|
7
|
+
<div ng-repeat="item in deb.depends | orderBy:'toString()'">
|
8
|
+
{{ item }}
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<div ng-if="deb.pre_depends.length > 0" class="details fl">
|
13
|
+
<h4 translate><b>Pre-Depends</b></h4>
|
14
|
+
<div ng-repeat="item in deb.pre_depends | orderBy:'toString()'">
|
15
|
+
{{ item }}
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div ng-if="deb.recommends.length > 0" class="details fl">
|
20
|
+
<h4 translate><b>Recommends</b></h4>
|
21
|
+
<div ng-repeat="item in deb.recommends | orderBy:'toString()'">
|
22
|
+
{{ item }}
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div ng-if="deb.suggests.length > 0" class="details fl">
|
27
|
+
<h4 translate><b>Suggests</b></h4>
|
28
|
+
<div ng-repeat="item in deb.suggests | orderBy:'toString()'">
|
29
|
+
{{ item }}
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div ng-if="deb.enhances.length > 0" class="details fl">
|
34
|
+
<h4 translate><b>Enhances</b></h4>
|
35
|
+
<div ng-repeat="item in deb.enhances | orderBy:'toString()'">
|
36
|
+
{{ item }}
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<div ng-if="deb.breaks.length > 0" class="details fl">
|
41
|
+
<h4 translate><b>Breaks</b></h4>
|
42
|
+
<div ng-repeat="item in deb.breaks | orderBy:'toString()'">
|
43
|
+
{{ item }}
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div ng-if="deb.conflicts.length > 0" class="details fl">
|
48
|
+
<h4 translate><b>Conflicts</b></h4>
|
49
|
+
<div ng-repeat="item in deb.conflicts | orderBy:'toString()'">
|
50
|
+
{{ item }}
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</section>
|
data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/views/deb-info.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<div data-extend-template="layouts/full-page-details.html">
|
4
4
|
<div data-block="content">
|
5
|
-
<h4 translate>
|
5
|
+
<h4 translate>Package Information</h4>
|
6
6
|
|
7
7
|
<dl class="dl-horizontal dl-horizontal-left">
|
8
8
|
<dt translate>Installed On</dt>
|
@@ -46,6 +46,18 @@
|
|
46
46
|
|
47
47
|
<dt translate>Description</dt>
|
48
48
|
<dd>{{ deb.description }}</dd>
|
49
|
+
|
50
|
+
<dt translate>Section</dt>
|
51
|
+
<dd>{{ deb.section }}</dd>
|
52
|
+
|
53
|
+
<dt translate>Maintainer</dt>
|
54
|
+
<dd>{{ deb.maintainer }}</dd>
|
55
|
+
|
56
|
+
<dt translate>Homepage</dt>
|
57
|
+
<dd>{{ deb.homepage }}</dd>
|
58
|
+
|
59
|
+
<dt translate>Installed size</dt>
|
60
|
+
<dd>{{ deb.installed_size }} kB</dd>
|
49
61
|
</dl>
|
50
62
|
<div class="divider"></div>
|
51
63
|
|
data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/views/deb.html
CHANGED
@@ -14,6 +14,13 @@
|
|
14
14
|
</span>
|
15
15
|
</a>
|
16
16
|
</li>
|
17
|
+
<li ng-class="{active: isState('deb.dependencies')}">
|
18
|
+
<a ui-sref="deb.dependencies">
|
19
|
+
<span translate>
|
20
|
+
Dependencies
|
21
|
+
</span>
|
22
|
+
</a>
|
23
|
+
</li>
|
17
24
|
<li ng-show="permitted('view_products')" ng-class="{active: isState('deb.repositories')}">
|
18
25
|
<a ui-sref="deb.repositories">
|
19
26
|
<span translate>
|
@@ -34,4 +41,4 @@
|
|
34
41
|
<div data-block="content">
|
35
42
|
<section ui-view></section>
|
36
43
|
</div>
|
37
|
-
</div>
|
44
|
+
</div>
|
@@ -119,7 +119,7 @@
|
|
119
119
|
<div class="checkbox" ng-show="updates.length > 0">
|
120
120
|
<label>
|
121
121
|
<input name="noDepSolve" ng-model="noDepSolve" type="checkbox"/>
|
122
|
-
<span translate>Skip dependency solving for a significant speed increase. If the update cannot be applied to the host, delete the incremental content view version and retry the application with dependency solving turned on.</span>
|
122
|
+
<b><span translate>Skip dependency solving for a significant speed increase. If the update cannot be applied to the host, delete the incremental content view version and retry the application with dependency solving turned on.</span></b>
|
123
123
|
</label>
|
124
124
|
</div>
|
125
125
|
|
@@ -160,6 +160,8 @@ angular.module('Bastion.repositories').controller('NewRepositoryController',
|
|
160
160
|
$scope.genericRemoteOptions.forEach(function(option) {
|
161
161
|
if (option.type === "Array" && option.value !== "") {
|
162
162
|
repository[option.name] = option.value.split(option.delimiter);
|
163
|
+
} else if (option.type === "number" && option.value === "") {
|
164
|
+
repository[option.name] = option.default;
|
163
165
|
} else {
|
164
166
|
repository[option.name] = option.value;
|
165
167
|
}
|
@@ -283,6 +283,17 @@
|
|
283
283
|
{{option.description}}
|
284
284
|
</p>
|
285
285
|
</div>
|
286
|
+
<div ng-if='option.input_type=="number"' bst-form-group label="{{ option.title | translate }}">
|
287
|
+
<input
|
288
|
+
name="option_name"
|
289
|
+
ng-model="genericRemoteOptions[$index].value"
|
290
|
+
type="number"
|
291
|
+
min="0"
|
292
|
+
placeholder="default value is {{ option.default }}"/>
|
293
|
+
<p class="help-block" translate>
|
294
|
+
{{option.description}}
|
295
|
+
</p>
|
296
|
+
</div>
|
286
297
|
</div>
|
287
298
|
|
288
299
|
<div bst-form-group label="{{ 'Download Policy' | translate }}" ng-if="repository.content_type === 'yum' || repository.content_type === 'deb' || repository.content_type === 'docker'">
|
@@ -35,7 +35,7 @@ module BastionKatello
|
|
35
35
|
{ 'consumerCertRPM' => consumer_cert_rpm,
|
36
36
|
'defaultDownloadPolicy' => !Foreman.in_rake? && db_migrated && Setting['default_download_policy'],
|
37
37
|
'remoteExecutionPresent' => true,
|
38
|
-
'hostToolingEnabled' => true
|
38
|
+
'hostToolingEnabled' => true,
|
39
39
|
}
|
40
40
|
end
|
41
41
|
)
|
data/lib/katello/engine.rb
CHANGED
@@ -33,29 +33,29 @@ module Katello
|
|
33
33
|
:consumer_cert_rpm => 'katello-ca-consumer-latest.noarch.rpm',
|
34
34
|
:consumer_cert_sh => 'katello-rhsm-consumer',
|
35
35
|
:event_daemon => {
|
36
|
-
enabled: true
|
36
|
+
enabled: true,
|
37
37
|
},
|
38
38
|
:pulp => {
|
39
39
|
:default_login => 'admin',
|
40
40
|
:skip_checksum_validation => false,
|
41
41
|
:upload_chunk_size => 1_048_575, # upload size in bytes to pulp. see SSLRenegBufferSize in apache
|
42
42
|
:sync_threads => 4,
|
43
|
-
:sync_KBlimit => nil
|
43
|
+
:sync_KBlimit => nil,
|
44
44
|
},
|
45
45
|
:candlepin => {
|
46
46
|
:url => 'https://localhost:8443/candlepin',
|
47
47
|
:oauth_key => 'katello',
|
48
48
|
:oauth_secret => 'katello',
|
49
49
|
:ca_cert_file => nil,
|
50
|
-
:bulk_load_size => 1000
|
50
|
+
:bulk_load_size => 1000,
|
51
51
|
},
|
52
52
|
:candlepin_events => {
|
53
53
|
:broker_host => 'localhost',
|
54
54
|
:broker_port => 61_613,
|
55
55
|
:queue_name => 'katello.candlepin',
|
56
56
|
:subscription_name => 'candlepin_events',
|
57
|
-
:client_id => 'katello_candlepin_event_monitor'
|
58
|
-
}
|
57
|
+
:client_id => 'katello_candlepin_event_monitor',
|
58
|
+
},
|
59
59
|
}
|
60
60
|
|
61
61
|
SETTINGS[:katello] = default_settings.deep_merge(SETTINGS[:katello] || {})
|
@@ -79,12 +79,14 @@ module Katello
|
|
79
79
|
|
80
80
|
# make sure the Katello plugin is initialized before `after_initialize`
|
81
81
|
# hook so that the resumed Dynflow tasks can rely on everything ready.
|
82
|
-
initializer 'katello.register_plugin', :before => :finisher_hook, :after => 'foreman_remote_execution.register_plugin' do
|
83
|
-
|
84
|
-
|
82
|
+
initializer 'katello.register_plugin', :before => :finisher_hook, :after => 'foreman_remote_execution.register_plugin' do |app|
|
83
|
+
app.reloader.to_prepare do
|
84
|
+
::Foreman::AccessControl::Permission.prepend ::Katello::Concerns::PermissionExtensions
|
85
|
+
require 'katello/plugin'
|
85
86
|
|
86
|
-
|
87
|
-
|
87
|
+
# extend builtin permissions from core with new actions
|
88
|
+
require 'katello/permissions'
|
89
|
+
end
|
88
90
|
end
|
89
91
|
|
90
92
|
initializer "katello.set_dynflow_middlewares", :before => :finisher_hook do |_app|
|
@@ -185,11 +187,11 @@ module Katello
|
|
185
187
|
# We need to explicitly load this files because Foreman has
|
186
188
|
# similar strucuture and if the Foreman files are loaded first,
|
187
189
|
# autoloading doesn't work.
|
188
|
-
require_dependency "#{Katello::Engine.root}/app/lib/katello/api/v2/rendering"
|
189
|
-
require_dependency "#{Katello::Engine.root}/app/controllers/katello/api/api_controller"
|
190
|
-
require_dependency "#{Katello::Engine.root}/app/controllers/katello/api/v2/api_controller"
|
191
|
-
require_dependency "#{Katello::Engine.root}/app/services/katello/proxy_status/pulp"
|
192
|
-
require_dependency "#{Katello::Engine.root}/app/services/katello/proxy_status/pulp_node"
|
190
|
+
# require_dependency "#{Katello::Engine.root}/app/lib/katello/api/v2/rendering"
|
191
|
+
# require_dependency "#{Katello::Engine.root}/app/controllers/katello/api/api_controller"
|
192
|
+
# require_dependency "#{Katello::Engine.root}/app/controllers/katello/api/v2/api_controller"
|
193
|
+
# require_dependency "#{Katello::Engine.root}/app/services/katello/proxy_status/pulp"
|
194
|
+
# require_dependency "#{Katello::Engine.root}/app/services/katello/proxy_status/pulp_node"
|
193
195
|
|
194
196
|
#Api controller extensions
|
195
197
|
::Api::V2::HostsController.include Katello::Concerns::Api::V2::HostsControllerExtensions
|