katello 3.1.0.1 → 3.2.0.rc1
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/README.md +8 -47
- data/app/assets/javascripts/katello/common/index.js +0 -1
- data/app/assets/javascripts/katello/providers/redhat/index.js +0 -1
- data/app/assets/stylesheets/katello/_katello_colors.scss +0 -2
- data/app/assets/stylesheets/katello/katello.scss +0 -2
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +45 -42
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +7 -19
- data/app/controllers/katello/api/v2/api_controller.rb +3 -3
- data/app/controllers/katello/api/v2/capsule_content_controller.rb +3 -3
- data/app/controllers/katello/api/v2/content_uploads_controller.rb +2 -2
- data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +29 -18
- data/app/controllers/katello/api/v2/content_view_filters_controller.rb +2 -2
- data/app/controllers/katello/api/v2/content_view_histories_controller.rb +1 -1
- data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +2 -2
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +10 -8
- data/app/controllers/katello/api/v2/content_views_controller.rb +5 -5
- data/app/controllers/katello/api/v2/environments_controller.rb +10 -9
- data/app/controllers/katello/api/v2/file_units_controller.rb +16 -0
- data/app/controllers/katello/api/v2/gpg_keys_controller.rb +4 -4
- data/app/controllers/katello/api/v2/host_autocomplete_controller.rb +2 -2
- data/app/controllers/katello/api/v2/host_collections_controller.rb +41 -13
- data/app/controllers/katello/api/v2/host_errata_controller.rb +12 -5
- data/app/controllers/katello/api/v2/host_packages_controller.rb +4 -4
- data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +9 -9
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +52 -13
- data/app/controllers/katello/api/v2/organizations_controller.rb +3 -3
- data/app/controllers/katello/api/v2/packages_controller.rb +1 -1
- data/app/controllers/katello/api/v2/ping_controller.rb +2 -2
- data/app/controllers/katello/api/v2/products_bulk_actions_controller.rb +2 -2
- data/app/controllers/katello/api/v2/products_controller.rb +6 -16
- data/app/controllers/katello/api/v2/repositories_bulk_actions_controller.rb +1 -1
- data/app/controllers/katello/api/v2/repositories_controller.rb +60 -21
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +3 -3
- data/app/controllers/katello/api/v2/root_controller.rb +2 -2
- data/app/controllers/katello/api/v2/subscriptions_controller.rb +19 -10
- data/app/controllers/katello/api/v2/sync_controller.rb +3 -3
- data/app/controllers/katello/api/v2/sync_plans_controller.rb +2 -2
- data/app/controllers/katello/api/v2/uebercerts_controller.rb +1 -1
- data/app/controllers/katello/application_controller.rb +7 -7
- data/app/controllers/katello/auto_complete_search_controller.rb +1 -1
- data/app/controllers/katello/concerns/api/api_controller.rb +1 -1
- data/app/controllers/katello/concerns/api/v2/hostgroups_controller_extensions.rb +19 -16
- data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +8 -6
- data/app/controllers/katello/concerns/authorization/api/v2/content_views_controller.rb +10 -6
- data/app/controllers/katello/concerns/organizations_controller_extensions.rb +1 -1
- data/app/controllers/katello/concerns/smart_proxies_controller_extensions.rb +1 -1
- data/app/controllers/katello/errors_controller.rb +2 -2
- data/app/controllers/katello/organizations_controller.rb +1 -1
- data/app/controllers/katello/products_controller.rb +4 -4
- data/app/controllers/katello/providers_controller.rb +2 -2
- data/app/helpers/katello/application_helper.rb +0 -240
- data/app/helpers/katello/concerns/hosts_and_hostgroups_helper_extensions.rb +19 -0
- data/app/lib/actions/candlepin/import_pool_handler.rb +11 -6
- data/app/lib/actions/katello/capsule_content/create_repos.rb +3 -3
- data/app/lib/actions/katello/capsule_content/sync.rb +23 -9
- data/app/lib/actions/katello/content_view/add_to_environment.rb +1 -1
- data/app/lib/actions/katello/content_view/errata_mail.rb +2 -2
- data/app/lib/actions/katello/content_view/incremental_updates.rb +60 -1
- data/app/lib/actions/katello/content_view/remove.rb +2 -2
- data/app/lib/actions/katello/content_view_environment/destroy.rb +1 -1
- data/app/lib/actions/katello/content_view_environment/reassign_objects.rb +2 -2
- data/app/lib/actions/katello/content_view_puppet_environment/create.rb +3 -1
- data/app/lib/actions/katello/host/attach_subscriptions.rb +13 -6
- data/app/lib/actions/katello/host/destroy.rb +0 -19
- data/app/lib/actions/katello/host/generate_applicability.rb +8 -3
- data/app/lib/actions/katello/host/hypervisors.rb +17 -9
- data/app/lib/actions/katello/host/hypervisors_update.rb +19 -44
- data/app/lib/actions/katello/host/reassign.rb +14 -0
- data/app/lib/actions/katello/host/register.rb +3 -22
- data/app/lib/actions/katello/host/remove_subscriptions.rb +15 -2
- data/app/lib/actions/katello/host/update.rb +0 -6
- data/app/lib/actions/katello/organization/destroy.rb +2 -2
- data/app/lib/actions/katello/product/content_destroy.rb +7 -9
- data/app/lib/actions/katello/product/destroy.rb +23 -7
- data/app/lib/actions/katello/repository/clear.rb +1 -0
- data/app/lib/actions/katello/repository/clone_file_content.rb +17 -0
- data/app/lib/actions/katello/repository/clone_to_environment.rb +2 -0
- data/app/lib/actions/katello/repository/clone_to_version.rb +2 -0
- data/app/lib/actions/katello/repository/create.rb +2 -1
- data/app/lib/actions/katello/repository/destroy.rb +20 -10
- data/app/lib/actions/katello/repository/errata_mail.rb +2 -2
- data/app/lib/actions/katello/repository/filtered_index_content.rb +2 -0
- data/app/lib/actions/katello/repository/import_upload.rb +6 -2
- data/app/lib/actions/katello/repository/{refresh_repostiory.rb → refresh_repository.rb} +0 -0
- data/app/lib/actions/katello/repository/remove_content.rb +2 -0
- data/app/lib/actions/katello/repository/sync.rb +8 -12
- data/app/lib/actions/katello/repository_set/disable_repository.rb +6 -5
- 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/pulp/abstract_async_task.rb +1 -1
- data/app/lib/actions/pulp/consumer/unassociate_units.rb +20 -0
- data/app/lib/actions/pulp/repository/copy_files.rb +11 -0
- data/app/lib/actions/pulp/repository/create.rb +5 -1
- data/app/lib/actions/pulp/repository/presenters/file_presenter.rb +1 -1
- data/app/lib/actions/pulp/repository/refresh.rb +4 -2
- data/app/lib/actions/pulp/repository/remove_file.rb +15 -0
- data/app/lib/actions/pulp/repository/sync.rb +3 -1
- data/app/lib/actions/pulp/repository_group/export.rb +1 -1
- data/app/lib/katello/errors.rb +1 -1
- data/app/lib/katello/lazy_accessor.rb +1 -1
- data/app/lib/katello/resources/candlepin.rb +14 -0
- data/app/lib/katello/util/cdn_var_substitutor.rb +5 -2
- data/app/lib/katello/util/model.rb +1 -2
- data/app/lib/katello/util/package.rb +2 -2
- data/app/models/katello/activation_key.rb +0 -49
- data/app/models/katello/authorization/content_view_version.rb +7 -0
- data/app/models/katello/candlepin/content.rb +15 -3
- data/app/models/katello/concerns/container_extensions.rb +1 -2
- data/app/models/katello/concerns/content_facet_host_extensions.rb +11 -1
- data/app/models/katello/concerns/host_managed_extensions.rb +4 -13
- data/app/models/katello/concerns/hostgroup_extensions.rb +0 -2
- data/app/models/katello/concerns/medium_extensions.rb +2 -2
- data/app/models/katello/concerns/organization_extensions.rb +0 -5
- data/app/models/katello/concerns/pulp_database_unit.rb +5 -1
- data/app/models/katello/concerns/smart_proxy_extensions.rb +21 -1
- data/app/models/katello/concerns/subscription_facet_host_extensions.rb +1 -2
- data/app/models/katello/content_view.rb +12 -6
- data/app/models/katello/content_view_component.rb +0 -3
- data/app/models/katello/content_view_environment.rb +2 -2
- data/app/models/katello/content_view_package_filter_rule.rb +13 -0
- data/app/models/katello/content_view_puppet_environment.rb +2 -2
- data/app/models/katello/content_view_repository.rb +2 -1
- data/app/models/katello/content_view_version.rb +9 -2
- data/app/models/katello/erratum.rb +1 -5
- data/app/models/katello/file_unit.rb +41 -0
- data/app/models/katello/glue/candlepin/activation_key.rb +2 -2
- data/app/models/katello/glue/candlepin/pool.rb +19 -14
- data/app/models/katello/glue/pulp/repo.rb +44 -10
- data/app/models/katello/host/content_facet.rb +6 -6
- data/app/models/katello/host/subscription_facet.rb +6 -8
- data/app/models/katello/kt_environment.rb +3 -5
- data/app/models/katello/package_group.rb +1 -3
- data/app/models/katello/pool.rb +7 -2
- data/app/models/katello/pool_with_quantities.rb +12 -0
- data/app/models/katello/product.rb +6 -0
- data/app/models/katello/provider.rb +1 -1
- data/app/models/katello/puppet_module.rb +1 -2
- data/app/models/katello/repository.rb +7 -3
- data/app/models/katello/repository_file.rb +9 -0
- data/app/models/katello/rpm.rb +1 -1
- data/app/models/katello/subscription_status.rb +1 -1
- data/app/models/katello/sync_plan.rb +2 -1
- data/app/models/katello/task_status.rb +3 -36
- data/app/models/setting/content.rb +4 -1
- data/app/overrides/add_activation_keys_input.rb +2 -2
- data/app/presenters/katello/activation_key_subscriptions_presenter.rb +10 -0
- data/app/services/katello/candlepin/consumer.rb +5 -1
- data/app/services/katello/pulp/file_unit.rb +13 -0
- data/app/views/dashboard/_errata_widget.html.erb +1 -1
- data/app/views/dashboard/_subscription_widget.html.erb +30 -8
- data/app/views/foreman/job_templates/install_errata.erb +1 -1
- data/app/views/katello/api/v2/activation_keys/product_content.json.rabl +1 -0
- data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +2 -2
- data/app/views/katello/api/v2/content_facet/base.json.rabl +2 -4
- data/app/views/katello/api/v2/{systems → content_facet}/erratum.json.rabl +0 -0
- data/app/views/katello/api/v2/content_facet/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_versions/base.json.rabl +5 -4
- data/app/views/katello/api/v2/environments/show.json.rabl +1 -1
- data/app/views/katello/api/v2/file_units/base.json.rabl +7 -0
- data/app/views/katello/api/v2/{systems → file_units}/index.json.rabl +1 -1
- data/app/views/katello/api/v2/file_units/show.json.rabl +3 -0
- data/app/views/katello/api/v2/host_errata/index.json.rabl +1 -1
- data/app/views/katello/api/v2/host_errata/show.json.rabl +1 -1
- data/app/views/katello/api/v2/package_groups/base.json.rabl +1 -1
- data/app/views/katello/api/v2/ping/show.json.rabl +1 -1
- data/app/views/katello/api/v2/repositories/base.json.rabl +2 -1
- data/app/views/katello/api/v2/repositories/show.json.rabl +1 -1
- data/app/views/katello/api/v2/subscription_facet/base.json.rabl +1 -1
- data/app/views/katello/api/v2/subscription_facet/base_with_root.json.rabl +0 -4
- data/app/views/katello/api/v2/subscription_facet/show.json.rabl +1 -5
- data/app/views/katello/api/v2/subscriptions/base.json.rabl +3 -3
- data/app/views/katello/api/v2/subscriptions/index.json.rabl +1 -0
- data/app/views/katello/api/v2/tasks/task_status_show.json.rabl +0 -1
- data/app/views/katello/providers/redhat/show.html.erb +1 -1
- data/app/views/katello/sync_management/_products.html.erb +5 -1
- data/app/views/overrides/activation_keys/_host_environment_select.html.erb +1 -9
- data/app/views/overrides/activation_keys/_host_synced_content_select.html.erb +1 -0
- data/config/routes/api/v2.rb +9 -2
- data/config/routes/overrides.rb +9 -0
- data/db/migrate/20150930183738_migrate_content_hosts.rb +1 -1
- data/db/migrate/20160617124149_remove_duplicate_view_filters.rb +38 -0
- data/db/migrate/20160627125310_delete_system.rb +7 -0
- data/db/migrate/20160722193256_add_verify_ssl_on_sync_to_repository.rb +9 -0
- data/db/migrate/20160727144242_add_registered_through_to_katello_subscription_facets.rb +5 -0
- data/db/migrate/20160808002834_add_files.rb +30 -0
- data/db/migrate/20160906181923_add_puppet_path_to_smart_proxy.rb +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +7 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-add-subscriptions.html +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-details.html +101 -102
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-subscriptions-list.html +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/views/activation-key-new.html +82 -83
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/capsule-content.module.js +3 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsules/capsules.module.js +4 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/common.module.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/registration.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-subscriptions.controller.js +46 -72
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action.controller.js +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-errata.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-host-collections.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-subscriptions.html +79 -33
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +10 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +27 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages.html +57 -45
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-base-subscriptions.controller.js +2 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +117 -118
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +13 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +26 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-content-hosts.controller.js +11 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-environments.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/content-view-deletion.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-content-hosts.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-environments.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-file-repositories.controller.js +47 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js +8 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-file-repositories-list.controller.js +45 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/errata-filter-details.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter-details.html +6 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-names.html +6 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-modules.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-composite-available-content-views.html +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-composite-content-views-list.html +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +151 -140
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-file-repositories.html +118 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-ostree-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +13 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +8 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-versions.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-details.html +8 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-file.html +22 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version.html +6 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-manifests/docker-manifests.module.js +6 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/views/docker-tags-details.html +59 -61
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.module.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/views/docker-tags.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-docker.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-errata.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-ostree.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-packages.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-puppet-modules.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-repositories.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-content-hosts.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-content-hosts.html +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-repositories.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details.html +44 -45
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.module.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details-info.controller.js +11 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-details.html +52 -48
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-info.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-products.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/views/gpg-key-new.html +62 -63
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/views/gpg-keys.html +6 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-add-hosts.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-details.html +85 -86
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-hosts-list.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/views/host-collection-new.html +16 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/views/host-collections.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-bulk-action.factory.js +28 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host.factory.js +1 -27
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/hosts.module.js +3 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization.factory.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.module.js +4 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/ostree-branches-details-repositories.controller.js +60 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/ostree-branches-details.controller.js +31 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details-info.html +23 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details-repositories.html +83 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details.html +43 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.controller.js +67 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.module.js +5 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.routes.js +53 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches-table-collapsed.html +19 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches-table-full.html +21 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches.html +19 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-groups.module.js +7 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details.controller.js +17 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-info.html +10 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-repositories.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details.html +51 -52
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.module.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +72 -73
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-repositories.html +19 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery-create.html +144 -145
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new.html +17 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details.html +44 -40
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.module.js +7 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/repository-details-info.controller.js +11 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-info.html +343 -324
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/new/new-repository.controller.js +4 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/new/views/repository-new.html +10 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repositories.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/settings/settings.module.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-associations-content-hosts.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-details.html +46 -47
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-import.controller.js +10 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest.html +41 -42
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions-helper.service.js +15 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-details.html +54 -55
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.module.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks.module.js +3 -1
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +1 -0
- data/lib/katello/engine.rb +11 -1
- data/lib/katello/permissions/host_permissions.rb +13 -1
- data/lib/katello/plugin.rb +20 -1
- data/lib/katello/tasks/reimport.rake +1 -0
- data/lib/katello/tasks/test.rake +8 -0
- data/lib/katello/tasks/unify_hosts.rake +91 -0
- data/lib/katello/tasks/upgrade_check.rake +3 -2
- data/lib/katello/tasks/upgrades/3.0/update_subscription_facet_backend_data.rake +2 -4
- data/lib/katello/version.rb +1 -1
- data/lib/proxy_api/pulp.rb +7 -0
- data/lib/proxy_api/pulp_node.rb +7 -0
- metadata +79 -67
- data/app/assets/javascripts/katello/common/jquery.jeditable.custominputs.js +0 -180
- data/app/assets/javascripts/katello/widgets/jquery.jeditable.helpers.js +0 -247
- data/app/assets/stylesheets/katello/widgets/_scrollpane.scss +0 -66
- data/app/controllers/katello/api/v2/systems_controller.rb +0 -213
- data/app/helpers/katello/activation_keys_helper.rb +0 -4
- data/app/helpers/katello/host_collection_events_helper.rb +0 -7
- data/app/helpers/katello/katello_form_builder.rb +0 -150
- data/app/helpers/katello/packages_helper.rb +0 -67
- data/app/helpers/katello/subscriptions_helper.rb +0 -32
- data/app/helpers/katello/system_events_helper.rb +0 -4
- data/app/helpers/katello/system_packages_helper.rb +0 -42
- data/app/lib/actions/katello/repository/incremental_import.rb +0 -61
- data/app/lib/actions/katello/subscription/subscribe.rb +0 -26
- data/app/lib/actions/katello/system/destroy.rb +0 -17
- data/app/lib/actions/katello/system/reassign.rb +0 -14
- data/app/models/katello/authorization/system.rb +0 -53
- data/app/models/katello/glue/candlepin/consumer.rb +0 -386
- data/app/models/katello/glue/pulp/consumer.rb +0 -171
- data/app/models/katello/hypervisor.rb +0 -15
- data/app/models/katello/system.rb +0 -283
- data/app/models/katello/system_activation_key.rb +0 -8
- data/app/models/katello/system_repository.rb +0 -8
- data/app/presenters/katello/activation_key_subscription_presenter.rb +0 -10
- data/app/views/katello/api/v2/errata/_applicable_errata.json.rabl +0 -3
- data/app/views/katello/api/v2/subscriptions/create.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/_pool.json.rabl +0 -6
- data/app/views/katello/api/v2/systems/activate.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/add_host_collections.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/available_host_collections.json.rabl +0 -5
- data/app/views/katello/api/v2/systems/base.json.rabl +0 -35
- data/app/views/katello/api/v2/systems/enabled_repos.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/events.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/package.json.rabl +0 -5
- data/app/views/katello/api/v2/systems/package_profile.json.rabl +0 -7
- data/app/views/katello/api/v2/systems/pools.json.rabl +0 -7
- data/app/views/katello/api/v2/systems/regenerate_identity_certificates.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/remove_host_collections.json.rabl +0 -3
- data/app/views/katello/api/v2/systems/show.json.rabl +0 -64
- data/app/views/katello/api/v2/systems/subscriptions.json.rabl +0 -8
- data/app/views/katello/api/v2/systems/upload_package_profile.json.rabl +0 -3
- data/db/seeds.d/105-roles_permissions.rb +0 -71
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host.factory.js +0 -25
- data/lib/katello/permissions/content_host_permissions.rb +0 -30
- data/lib/katello/tasks/yard.rake +0 -9
- data/vendor/assets/stylesheets/katello/jquery.jscrollpane.css +0 -120
data/lib/katello/engine.rb
CHANGED
@@ -12,7 +12,6 @@ module Katello
|
|
12
12
|
:use_cp => true,
|
13
13
|
:rest_client_timeout => 30,
|
14
14
|
:gpg_strict_validation => false,
|
15
|
-
:puppet_repo_root => '/etc/puppet/environments/',
|
16
15
|
:redhat_repository_url => 'https://cdn.redhat.com',
|
17
16
|
:post_sync_url => 'http://localhost:3000/katello/api/v2/repositories/sync_complete?token=katello',
|
18
17
|
:consumer_cert_rpm => 'katello-ca-consumer-latest.noarch.rpm',
|
@@ -122,6 +121,7 @@ module Katello
|
|
122
121
|
end
|
123
122
|
|
124
123
|
initializer "katello.load_app_instance_data" do |app|
|
124
|
+
app.config.filter_parameters += [:_json] #package profile parameter
|
125
125
|
Katello::Engine.paths['db/migrate'].existent.each do |path|
|
126
126
|
app.config.paths['db/migrate'] << path
|
127
127
|
end
|
@@ -218,6 +218,7 @@ module Katello
|
|
218
218
|
# We need to explicitly load this files because Foreman has
|
219
219
|
# similar strucuture and if the Foreman files are loaded first,
|
220
220
|
# autoloading doesn't work.
|
221
|
+
require_dependency "#{Katello::Engine.root}/app/lib/katello/api/v2/rendering"
|
221
222
|
require_dependency "#{Katello::Engine.root}/app/controllers/katello/api/api_controller"
|
222
223
|
require_dependency "#{Katello::Engine.root}/app/controllers/katello/api/v2/api_controller"
|
223
224
|
require_dependency "#{Katello::Engine.root}/app/services/katello/proxy_status/pulp"
|
@@ -245,6 +246,14 @@ module Katello
|
|
245
246
|
|
246
247
|
Katello::EventQueue.register_event(Katello::Events::ImportHostErrata::EVENT_TYPE, Katello::Events::ImportHostErrata)
|
247
248
|
|
249
|
+
::HostsController.class_eval do
|
250
|
+
helper Katello::Concerns::HostsAndHostgroupsHelperExtensions
|
251
|
+
end
|
252
|
+
|
253
|
+
::HostgroupsController.class_eval do
|
254
|
+
helper Katello::Concerns::HostsAndHostgroupsHelperExtensions
|
255
|
+
end
|
256
|
+
|
248
257
|
load 'katello/repository_types.rb'
|
249
258
|
end
|
250
259
|
|
@@ -257,6 +266,7 @@ module Katello
|
|
257
266
|
load "#{Katello::Engine.root}/lib/katello/tasks/reimport.rake"
|
258
267
|
load "#{Katello::Engine.root}/lib/katello/tasks/rubocop.rake"
|
259
268
|
load "#{Katello::Engine.root}/lib/katello/tasks/clean_backend_objects.rake"
|
269
|
+
load "#{Katello::Engine.root}/lib/katello/tasks/unify_hosts.rake"
|
260
270
|
load "#{Katello::Engine.root}/lib/katello/tasks/upgrade_check.rake"
|
261
271
|
|
262
272
|
load "#{Katello::Engine.root}/lib/katello/tasks/upgrades/2.4/import_package_groups.rake"
|
@@ -3,6 +3,7 @@ require 'katello/plugin.rb'
|
|
3
3
|
Foreman::AccessControl.permission(:edit_hosts).actions.concat [
|
4
4
|
'api/v2/hosts/host_collections',
|
5
5
|
'katello/api/v2/host_errata/apply',
|
6
|
+
'katello/api/v2/host_errata/applicability',
|
6
7
|
'katello/api/v2/host_packages/install',
|
7
8
|
'katello/api/v2/host_packages/upgrade',
|
8
9
|
'katello/api/v2/host_packages/upgrade_all',
|
@@ -16,7 +17,10 @@ Foreman::AccessControl.permission(:edit_hosts).actions.concat [
|
|
16
17
|
'katello/api/v2/hosts_bulk_actions/install_content',
|
17
18
|
'katello/api/v2/hosts_bulk_actions/update_content',
|
18
19
|
'katello/api/v2/hosts_bulk_actions/remove_content',
|
19
|
-
'katello/api/v2/hosts_bulk_actions/environment_content_view'
|
20
|
+
'katello/api/v2/hosts_bulk_actions/environment_content_view',
|
21
|
+
'katello/api/rhsm/candlepin_proxies/upload_package_profile',
|
22
|
+
'katello/api/rhsm/candlepin_proxies/regenerate_identity_certificates',
|
23
|
+
'katello/api/rhsm/candlepin_proxies/hypervisors_update'
|
20
24
|
]
|
21
25
|
|
22
26
|
Foreman::AccessControl.permission(:view_hosts).actions.concat [
|
@@ -34,5 +38,13 @@ Foreman::AccessControl.permission(:view_hosts).actions.concat [
|
|
34
38
|
]
|
35
39
|
|
36
40
|
Foreman::AccessControl.permission(:destroy_hosts).actions.concat [
|
41
|
+
'katello/api/v2/host_subscriptions/destroy',
|
37
42
|
'katello/api/v2/hosts_bulk_actions/destroy_hosts'
|
38
43
|
]
|
44
|
+
|
45
|
+
Foreman::AccessControl.permission(:create_hosts).actions.concat [
|
46
|
+
'katello/api/v2/host_subscriptions/create',
|
47
|
+
'katello/api/rhsm/candlepin_proxies/consumer_create',
|
48
|
+
'katello/api/rhsm/candlepin_proxies/consumer_show',
|
49
|
+
'katello/api/rhsm/candlepin_proxies/hypervisors_update'
|
50
|
+
]
|
data/lib/katello/plugin.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
Foreman::Plugin.register :katello do
|
2
|
-
requires_foreman '>= 1.
|
2
|
+
requires_foreman '>= 1.13'
|
3
3
|
|
4
4
|
sub_menu :top_menu, :content_menu, :caption => N_('Content'), :after => :monitor_menu do
|
5
5
|
menu :top_menu,
|
@@ -117,6 +117,15 @@ Foreman::Plugin.register :katello do
|
|
117
117
|
:action => 'index'},
|
118
118
|
:engine => Katello::Engine,
|
119
119
|
:turbolinks => false
|
120
|
+
|
121
|
+
menu :top_menu,
|
122
|
+
:ostree_branches,
|
123
|
+
:caption => N_('OSTree Branches'),
|
124
|
+
:url => '/ostree_branches',
|
125
|
+
:url_hash => {:controller => 'katello/api/v2/ostree_branches',
|
126
|
+
:action => 'index'},
|
127
|
+
:engine => Katello::Engine,
|
128
|
+
:turbolinks => false
|
120
129
|
end
|
121
130
|
|
122
131
|
menu :top_menu,
|
@@ -148,6 +157,16 @@ Foreman::Plugin.register :katello do
|
|
148
157
|
apipie_documented_controllers ["#{Katello::Engine.root}/app/controllers/katello/api/v2/*.rb"]
|
149
158
|
apipie_ignored_controllers %w(::Api::V2::OrganizationsController)
|
150
159
|
|
160
|
+
parameter_filter ::Host::Managed, :content_source_id, :host_collection_ids => [],
|
161
|
+
:content_facet_attributes => [:content_view_id, :lifecycle_environment_id,
|
162
|
+
:host, :kickstart_repository_id],
|
163
|
+
:subscription_facet_attributes => [:release_version, :autoheal, :service_level, :host,
|
164
|
+
{:installed_products => [:product_id, :product_name, :arch, :version]}, :facts, :hypervisor_guest_uuids => []]
|
165
|
+
parameter_filter Hostgroup, :content_view_id, :lifecycle_environment_id, :content_source_id,
|
166
|
+
:kickstart_repository_id
|
167
|
+
parameter_filter Organization, :label, :service_level
|
168
|
+
parameter_filter SmartProxy, :lifecycle_environment_ids => []
|
169
|
+
|
151
170
|
logger :glue, :enabled => true
|
152
171
|
logger :pulp_rest, :enabled => true
|
153
172
|
logger :cp_rest, :enabled => true
|
data/lib/katello/tasks/test.rake
CHANGED
@@ -10,6 +10,7 @@ namespace :test do
|
|
10
10
|
"#{Katello::Engine.root}/spec/**/*_spec.rb"
|
11
11
|
]
|
12
12
|
t.verbose = true
|
13
|
+
t.warning = false
|
13
14
|
end
|
14
15
|
|
15
16
|
Rake::Task[spec_task.name].invoke
|
@@ -24,6 +25,7 @@ namespace :test do
|
|
24
25
|
"#{Katello::Engine.root}/spec/routing/**/*_spec.rb"
|
25
26
|
]
|
26
27
|
t.verbose = true
|
28
|
+
t.warning = false
|
27
29
|
end
|
28
30
|
|
29
31
|
Rake::Task[spec_task.name].invoke
|
@@ -40,6 +42,7 @@ namespace :test do
|
|
40
42
|
"#{Katello::Engine.root}/test/**/*_test.rb"
|
41
43
|
]
|
42
44
|
t.verbose = true
|
45
|
+
t.warning = false
|
43
46
|
end
|
44
47
|
|
45
48
|
Rake::Task[test_task.name].invoke
|
@@ -54,6 +57,7 @@ namespace :test do
|
|
54
57
|
"#{Katello::Engine.root}/test/models/**/*_test.rb"
|
55
58
|
]
|
56
59
|
t.verbose = true
|
60
|
+
t.warning = false
|
57
61
|
end
|
58
62
|
|
59
63
|
Rake::Task[test_task.name].invoke
|
@@ -67,6 +71,7 @@ namespace :test do
|
|
67
71
|
"#{Katello::Engine.root}/test/actions/**/*_test.rb"
|
68
72
|
]
|
69
73
|
t.verbose = true
|
74
|
+
t.warning = false
|
70
75
|
end
|
71
76
|
|
72
77
|
Rake::Task[test_task.name].invoke
|
@@ -80,6 +85,7 @@ namespace :test do
|
|
80
85
|
"#{Katello::Engine.root}/test/controllers/**/*_test.rb"
|
81
86
|
]
|
82
87
|
t.verbose = true
|
88
|
+
t.warning = false
|
83
89
|
end
|
84
90
|
|
85
91
|
Rake::Task[test_task.name].invoke
|
@@ -93,6 +99,7 @@ namespace :test do
|
|
93
99
|
"#{Katello::Engine.root}/test/glue/**/*_test.rb"
|
94
100
|
]
|
95
101
|
t.verbose = true
|
102
|
+
t.warning = false
|
96
103
|
end
|
97
104
|
|
98
105
|
Rake::Task[test_task.name].invoke
|
@@ -106,6 +113,7 @@ namespace :test do
|
|
106
113
|
"#{Katello::Engine.root}/test/lib/**/*_test.rb"
|
107
114
|
]
|
108
115
|
t.verbose = true
|
116
|
+
t.warning = false
|
109
117
|
end
|
110
118
|
|
111
119
|
Rake::Task[test_task.name].invoke
|
@@ -0,0 +1,91 @@
|
|
1
|
+
namespace :katello do
|
2
|
+
desc "Unify hosts that have registered with both fqdn and shortname.\
|
3
|
+
Run with HOSTS=foobar.example.com,foobar to run for specific hosts."
|
4
|
+
task :unify_hosts => :environment do
|
5
|
+
def main
|
6
|
+
hostnames = ENV['HOSTS'].try(:split, ',')
|
7
|
+
if hostnames.blank?
|
8
|
+
unify_all
|
9
|
+
elsif hostnames.count == 2
|
10
|
+
unify_two(hostnames[0], hostnames[1])
|
11
|
+
else
|
12
|
+
puts "HOSTS specified but did not receive two. Usage: HOSTS=foobar.example.com,foobar"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def unify_all
|
17
|
+
::Host.unscoped.where("name like '%.%'").find_each do |host|
|
18
|
+
short_host = find_match(host)
|
19
|
+
unify(host, short_host) if short_host
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def unify_two(name1, name2)
|
24
|
+
fail _("#{name1} specified twice") if name1 == name2
|
25
|
+
host1 = Host.find_by(:name => name1)
|
26
|
+
host2 = Host.find_by(:name => name2)
|
27
|
+
if host1.nil? || host2.nil?
|
28
|
+
puts "Could not find both hosts #{host1} and #{host2}\n"
|
29
|
+
elsif name1.starts_with?(name2)
|
30
|
+
unify(host1, host2)
|
31
|
+
elsif name2.starts_with?(name1)
|
32
|
+
unify(host2, host1)
|
33
|
+
else
|
34
|
+
puts "#{host1} and #{host2} do not share a host shortname\n"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def find_match(host)
|
39
|
+
#first look based off mac address
|
40
|
+
mac = host.primary_interface.try(:mac)
|
41
|
+
if mac.blank?
|
42
|
+
puts "Skipping #{host.name} due to blank primary interface mac\n"
|
43
|
+
return
|
44
|
+
end
|
45
|
+
|
46
|
+
possible_match = Nic::Base.where("host_id != #{host.id}").where(:mac => mac).first.try(:host)
|
47
|
+
if possible_match && host.name.starts_with?(possible_match.name)
|
48
|
+
possible_match
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def unify(fqdn_host, short_host)
|
53
|
+
if fqdn_host.subscription_facet.try(:uuid).nil? && fqdn_host.content_facet.try(:uuid).nil?
|
54
|
+
puts "Unifying #{fqdn_host.name} with #{short_host.name}\n"
|
55
|
+
fqdn_host.subscription_facet.try(:destroy!)
|
56
|
+
fqdn_host.content_facet.try(:destroy!)
|
57
|
+
|
58
|
+
content_facet = short_host.content_facet
|
59
|
+
sub_facet = short_host.subscription_facet
|
60
|
+
|
61
|
+
if content_facet
|
62
|
+
content_facet.host = fqdn_host
|
63
|
+
content_facet.save!
|
64
|
+
content_facet.update_errata_status
|
65
|
+
end
|
66
|
+
|
67
|
+
if sub_facet
|
68
|
+
sub_facet.host = fqdn_host
|
69
|
+
sub_facet.save!
|
70
|
+
sub_facet.update_subscription_status
|
71
|
+
end
|
72
|
+
|
73
|
+
unify_arf_reports(fqdn_host, short_host)
|
74
|
+
short_host.reload.destroy!
|
75
|
+
else
|
76
|
+
puts "#{fqdn_host.name} has a registered consumer, skipping"
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def unify_arf_reports(fqdn_host, short_host)
|
81
|
+
if short_host.try(:arf_reports)
|
82
|
+
short_host.arf_reports.each do |report|
|
83
|
+
report.host = fqdn_host
|
84
|
+
report.save!
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
main
|
90
|
+
end
|
91
|
+
end
|
@@ -11,8 +11,9 @@ namespace :katello do
|
|
11
11
|
|
12
12
|
# check for any running tasks
|
13
13
|
task_count = ::ForemanTasks::Task.active.where("label != '#{CP_LISTEN_ACTION}'").count
|
14
|
-
task_status = task_count >
|
14
|
+
task_status = task_count > 0 ? fail : success
|
15
15
|
puts "Checking for running tasks..."
|
16
|
-
puts "[#{task_status}] - There are #{task_count} active tasks
|
16
|
+
puts "[#{task_status}] - There are #{task_count} active tasks. "
|
17
|
+
puts " Please wait for these to complete or cancel them from the Monitor tab.\n\n"
|
17
18
|
end
|
18
19
|
end
|
@@ -46,10 +46,8 @@ namespace :katello do
|
|
46
46
|
subscription_facet.save!
|
47
47
|
|
48
48
|
host = subscription_facet.host
|
49
|
-
|
50
|
-
|
51
|
-
host.save!
|
52
|
-
end
|
49
|
+
host.name = ::Katello::Host::SubscriptionFacet.sanitize_name(host.name)
|
50
|
+
host.save! if host.name_changed?
|
53
51
|
|
54
52
|
Katello::Host::SubscriptionFacet.update_facts(subscription_facet.host, candlepin_attrs[:facts])
|
55
53
|
rescue StandardError => exception
|
data/lib/katello/version.rb
CHANGED
data/lib/proxy_api/pulp.rb
CHANGED
@@ -11,5 +11,12 @@ module ProxyAPI
|
|
11
11
|
rescue => e
|
12
12
|
raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to detect pulp storage"))
|
13
13
|
end
|
14
|
+
|
15
|
+
def capsule_puppet_path
|
16
|
+
@url += "/puppet"
|
17
|
+
@capsule_puppet_path ||= parse(get)
|
18
|
+
rescue => e
|
19
|
+
raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to detect puppet path"))
|
20
|
+
end
|
14
21
|
end
|
15
22
|
end
|
data/lib/proxy_api/pulp_node.rb
CHANGED
@@ -11,5 +11,12 @@ module ProxyAPI
|
|
11
11
|
rescue => e
|
12
12
|
raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to detect pulp storage"))
|
13
13
|
end
|
14
|
+
|
15
|
+
def capsule_puppet_path
|
16
|
+
@url += "/puppet"
|
17
|
+
@capsule_puppet_path ||= parse(get)
|
18
|
+
rescue => e
|
19
|
+
raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to detect puppet path"))
|
20
|
+
end
|
14
21
|
end
|
15
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: katello
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- N/A
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.8.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.8.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: foreman_docker
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,9 +101,6 @@ dependencies:
|
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: 0.2.0
|
104
|
-
- - "<"
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
version: 3.0.0
|
107
104
|
type: :runtime
|
108
105
|
prerelease: false
|
109
106
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -111,9 +108,6 @@ dependencies:
|
|
111
108
|
- - ">="
|
112
109
|
- !ruby/object:Gem::Version
|
113
110
|
version: 0.2.0
|
114
|
-
- - "<"
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: 3.0.0
|
117
111
|
- !ruby/object:Gem::Dependency
|
118
112
|
name: qpid_messaging
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,7 +142,7 @@ dependencies:
|
|
148
142
|
requirements:
|
149
143
|
- - ">="
|
150
144
|
- !ruby/object:Gem::Version
|
151
|
-
version: 1.
|
145
|
+
version: 1.8.0
|
152
146
|
- - "<"
|
153
147
|
- !ruby/object:Gem::Version
|
154
148
|
version: 2.0.0
|
@@ -158,7 +152,7 @@ dependencies:
|
|
158
152
|
requirements:
|
159
153
|
- - ">="
|
160
154
|
- !ruby/object:Gem::Version
|
161
|
-
version: 1.
|
155
|
+
version: 1.8.0
|
162
156
|
- - "<"
|
163
157
|
- !ruby/object:Gem::Version
|
164
158
|
version: 2.0.0
|
@@ -182,7 +176,7 @@ dependencies:
|
|
182
176
|
requirements:
|
183
177
|
- - ">="
|
184
178
|
- !ruby/object:Gem::Version
|
185
|
-
version: 1.0.
|
179
|
+
version: 1.0.2
|
186
180
|
- - "<"
|
187
181
|
- !ruby/object:Gem::Version
|
188
182
|
version: 2.0.0
|
@@ -192,7 +186,7 @@ dependencies:
|
|
192
186
|
requirements:
|
193
187
|
- - ">="
|
194
188
|
- !ruby/object:Gem::Version
|
195
|
-
version: 1.0.
|
189
|
+
version: 1.0.2
|
196
190
|
- - "<"
|
197
191
|
- !ruby/object:Gem::Version
|
198
192
|
version: 2.0.0
|
@@ -216,7 +210,7 @@ dependencies:
|
|
216
210
|
requirements:
|
217
211
|
- - ">="
|
218
212
|
- !ruby/object:Gem::Version
|
219
|
-
version: 3.
|
213
|
+
version: 3.3.4
|
220
214
|
- - "<"
|
221
215
|
- !ruby/object:Gem::Version
|
222
216
|
version: 4.0.0
|
@@ -226,7 +220,7 @@ dependencies:
|
|
226
220
|
requirements:
|
227
221
|
- - ">="
|
228
222
|
- !ruby/object:Gem::Version
|
229
|
-
version: 3.
|
223
|
+
version: 3.3.4
|
230
224
|
- - "<"
|
231
225
|
- !ruby/object:Gem::Version
|
232
226
|
version: 4.0.0
|
@@ -314,6 +308,34 @@ dependencies:
|
|
314
308
|
- - ">="
|
315
309
|
- !ruby/object:Gem::Version
|
316
310
|
version: '0'
|
311
|
+
- !ruby/object:Gem::Dependency
|
312
|
+
name: simplecov
|
313
|
+
requirement: !ruby/object:Gem::Requirement
|
314
|
+
requirements:
|
315
|
+
- - ">="
|
316
|
+
- !ruby/object:Gem::Version
|
317
|
+
version: '0'
|
318
|
+
type: :development
|
319
|
+
prerelease: false
|
320
|
+
version_requirements: !ruby/object:Gem::Requirement
|
321
|
+
requirements:
|
322
|
+
- - ">="
|
323
|
+
- !ruby/object:Gem::Version
|
324
|
+
version: '0'
|
325
|
+
- !ruby/object:Gem::Dependency
|
326
|
+
name: simplecov-rcov
|
327
|
+
requirement: !ruby/object:Gem::Requirement
|
328
|
+
requirements:
|
329
|
+
- - ">="
|
330
|
+
- !ruby/object:Gem::Version
|
331
|
+
version: '0'
|
332
|
+
type: :development
|
333
|
+
prerelease: false
|
334
|
+
version_requirements: !ruby/object:Gem::Requirement
|
335
|
+
requirements:
|
336
|
+
- - ">="
|
337
|
+
- !ruby/object:Gem::Version
|
338
|
+
version: '0'
|
317
339
|
description: Content and Subscription Management plugin for Foreman
|
318
340
|
email:
|
319
341
|
- katello-devel@redhat.com
|
@@ -384,7 +406,6 @@ files:
|
|
384
406
|
- app/assets/javascripts/katello/common/env_select_scroll.js
|
385
407
|
- app/assets/javascripts/katello/common/experimental/katello-globals.module.js
|
386
408
|
- app/assets/javascripts/katello/common/index.js
|
387
|
-
- app/assets/javascripts/katello/common/jquery.jeditable.custominputs.js
|
388
409
|
- app/assets/javascripts/katello/common/katello.common.js
|
389
410
|
- app/assets/javascripts/katello/common/katello.global.js
|
390
411
|
- app/assets/javascripts/katello/common/katello.js
|
@@ -405,7 +426,6 @@ files:
|
|
405
426
|
- app/assets/javascripts/katello/sync_management/sync_management.js
|
406
427
|
- app/assets/javascripts/katello/widgets/auto_complete.js
|
407
428
|
- app/assets/javascripts/katello/widgets/env_content_view_selector.js
|
408
|
-
- app/assets/javascripts/katello/widgets/jquery.jeditable.helpers.js
|
409
429
|
- app/assets/javascripts/katello/widgets/path_selector.js
|
410
430
|
- app/assets/javascripts/katello/widgets/subpanel_new.js
|
411
431
|
- app/assets/javascripts/katello/widgets/tabs.js
|
@@ -425,7 +445,6 @@ files:
|
|
425
445
|
- app/assets/stylesheets/katello/katello_sprites.scss
|
426
446
|
- app/assets/stylesheets/katello/notifications.scss
|
427
447
|
- app/assets/stylesheets/katello/widgets/_chosen.scss
|
428
|
-
- app/assets/stylesheets/katello/widgets/_scrollpane.scss
|
429
448
|
- app/assets/stylesheets/katello/widgets/tabs.scss
|
430
449
|
- app/controllers/katello/api/api_controller.rb
|
431
450
|
- app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb
|
@@ -444,6 +463,7 @@ files:
|
|
444
463
|
- app/controllers/katello/api/v2/docker_tags_controller.rb
|
445
464
|
- app/controllers/katello/api/v2/environments_controller.rb
|
446
465
|
- app/controllers/katello/api/v2/errata_controller.rb
|
466
|
+
- app/controllers/katello/api/v2/file_units_controller.rb
|
447
467
|
- app/controllers/katello/api/v2/gpg_keys_controller.rb
|
448
468
|
- app/controllers/katello/api/v2/host_autocomplete_controller.rb
|
449
469
|
- app/controllers/katello/api/v2/host_collections_controller.rb
|
@@ -467,7 +487,6 @@ files:
|
|
467
487
|
- app/controllers/katello/api/v2/subscriptions_controller.rb
|
468
488
|
- app/controllers/katello/api/v2/sync_controller.rb
|
469
489
|
- app/controllers/katello/api/v2/sync_plans_controller.rb
|
470
|
-
- app/controllers/katello/api/v2/systems_controller.rb
|
471
490
|
- app/controllers/katello/api/v2/uebercerts_controller.rb
|
472
491
|
- app/controllers/katello/application_controller.rb
|
473
492
|
- app/controllers/katello/auto_complete_search_controller.rb
|
@@ -492,25 +511,19 @@ files:
|
|
492
511
|
- app/controllers/katello/remote_execution_controller.rb
|
493
512
|
- app/controllers/katello/sort_column_list.rb
|
494
513
|
- app/controllers/katello/sync_management_controller.rb
|
495
|
-
- app/helpers/katello/activation_keys_helper.rb
|
496
514
|
- app/helpers/katello/application_helper.rb
|
497
515
|
- app/helpers/katello/concerns/foreman_docker/container_steps_helper_extensions.rb
|
516
|
+
- app/helpers/katello/concerns/hosts_and_hostgroups_helper_extensions.rb
|
498
517
|
- app/helpers/katello/concerns/settings_helper_extensions.rb
|
499
518
|
- app/helpers/katello/concerns/smart_proxy_helper_extensions.rb
|
500
519
|
- app/helpers/katello/errata_mailer_helper.rb
|
501
|
-
- app/helpers/katello/host_collection_events_helper.rb
|
502
520
|
- app/helpers/katello/hosts_and_hostgroups_helper.rb
|
503
|
-
- app/helpers/katello/katello_form_builder.rb
|
504
521
|
- app/helpers/katello/katello_url_helper.rb
|
505
522
|
- app/helpers/katello/katello_urls_helper.rb
|
506
523
|
- app/helpers/katello/layout_helper.rb
|
507
524
|
- app/helpers/katello/organizations_helper.rb
|
508
|
-
- app/helpers/katello/packages_helper.rb
|
509
525
|
- app/helpers/katello/providers_helper.rb
|
510
|
-
- app/helpers/katello/subscriptions_helper.rb
|
511
526
|
- app/helpers/katello/sync_management_helper.rb
|
512
|
-
- app/helpers/katello/system_events_helper.rb
|
513
|
-
- app/helpers/katello/system_packages_helper.rb
|
514
527
|
- app/helpers/katello/taxonomy_helper.rb
|
515
528
|
- app/helpers/katello/translation_helper.rb
|
516
529
|
- app/lib/actions/abstract_async_task.rb
|
@@ -607,6 +620,7 @@ files:
|
|
607
620
|
- app/lib/actions/katello/host/package/update.rb
|
608
621
|
- app/lib/actions/katello/host/package_group/install.rb
|
609
622
|
- app/lib/actions/katello/host/package_group/remove.rb
|
623
|
+
- app/lib/actions/katello/host/reassign.rb
|
610
624
|
- app/lib/actions/katello/host/register.rb
|
611
625
|
- app/lib/actions/katello/host/remove_subscriptions.rb
|
612
626
|
- app/lib/actions/katello/host/unregister.rb
|
@@ -631,6 +645,7 @@ files:
|
|
631
645
|
- app/lib/actions/katello/repository/capsule_generate_and_sync.rb
|
632
646
|
- app/lib/actions/katello/repository/clear.rb
|
633
647
|
- app/lib/actions/katello/repository/clone_docker_content.rb
|
648
|
+
- app/lib/actions/katello/repository/clone_file_content.rb
|
634
649
|
- app/lib/actions/katello/repository/clone_ostree_content.rb
|
635
650
|
- app/lib/actions/katello/repository/clone_to_environment.rb
|
636
651
|
- app/lib/actions/katello/repository/clone_to_version.rb
|
@@ -646,12 +661,11 @@ files:
|
|
646
661
|
- app/lib/actions/katello/repository/finish_upload.rb
|
647
662
|
- app/lib/actions/katello/repository/import_applicability.rb
|
648
663
|
- app/lib/actions/katello/repository/import_upload.rb
|
649
|
-
- app/lib/actions/katello/repository/incremental_import.rb
|
650
664
|
- app/lib/actions/katello/repository/index_content.rb
|
651
665
|
- app/lib/actions/katello/repository/index_errata.rb
|
652
666
|
- app/lib/actions/katello/repository/index_package_groups.rb
|
653
667
|
- app/lib/actions/katello/repository/metadata_generate.rb
|
654
|
-
- app/lib/actions/katello/repository/
|
668
|
+
- app/lib/actions/katello/repository/refresh_repository.rb
|
655
669
|
- app/lib/actions/katello/repository/remove_content.rb
|
656
670
|
- app/lib/actions/katello/repository/sync.rb
|
657
671
|
- app/lib/actions/katello/repository/update.rb
|
@@ -661,13 +675,10 @@ files:
|
|
661
675
|
- app/lib/actions/katello/repository_set/disable_repository.rb
|
662
676
|
- app/lib/actions/katello/repository_set/enable_repository.rb
|
663
677
|
- app/lib/actions/katello/repository_set/scan_cdn.rb
|
664
|
-
- app/lib/actions/katello/subscription/subscribe.rb
|
665
678
|
- app/lib/actions/katello/sync_plan/add_products.rb
|
666
679
|
- app/lib/actions/katello/sync_plan/destroy.rb
|
667
680
|
- app/lib/actions/katello/sync_plan/remove_products.rb
|
668
681
|
- app/lib/actions/katello/sync_plan/update.rb
|
669
|
-
- app/lib/actions/katello/system/destroy.rb
|
670
|
-
- app/lib/actions/katello/system/reassign.rb
|
671
682
|
- app/lib/actions/middleware/backend_services_check.rb
|
672
683
|
- app/lib/actions/middleware/candlepin_services_check.rb
|
673
684
|
- app/lib/actions/middleware/execute_if_contents_changed.rb
|
@@ -688,6 +699,7 @@ files:
|
|
688
699
|
- app/lib/actions/pulp/consumer/destroy.rb
|
689
700
|
- app/lib/actions/pulp/consumer/generate_applicability.rb
|
690
701
|
- app/lib/actions/pulp/consumer/sync_capsule.rb
|
702
|
+
- app/lib/actions/pulp/consumer/unassociate_units.rb
|
691
703
|
- app/lib/actions/pulp/consumer/update.rb
|
692
704
|
- app/lib/actions/pulp/content_view_puppet_environment/index_content.rb
|
693
705
|
- app/lib/actions/pulp/expect_one_task.rb
|
@@ -700,6 +712,7 @@ files:
|
|
700
712
|
- app/lib/actions/pulp/repository/copy_docker_manifest.rb
|
701
713
|
- app/lib/actions/pulp/repository/copy_docker_tag.rb
|
702
714
|
- app/lib/actions/pulp/repository/copy_errata.rb
|
715
|
+
- app/lib/actions/pulp/repository/copy_files.rb
|
703
716
|
- app/lib/actions/pulp/repository/copy_ostree_branch.rb
|
704
717
|
- app/lib/actions/pulp/repository/copy_package_group.rb
|
705
718
|
- app/lib/actions/pulp/repository/copy_puppet_module.rb
|
@@ -727,6 +740,7 @@ files:
|
|
727
740
|
- app/lib/actions/pulp/repository/remove_distribution.rb
|
728
741
|
- app/lib/actions/pulp/repository/remove_docker_manifest.rb
|
729
742
|
- app/lib/actions/pulp/repository/remove_errata.rb
|
743
|
+
- app/lib/actions/pulp/repository/remove_file.rb
|
730
744
|
- app/lib/actions/pulp/repository/remove_package_group.rb
|
731
745
|
- app/lib/actions/pulp/repository/remove_puppet_module.rb
|
732
746
|
- app/lib/actions/pulp/repository/remove_rpm.rb
|
@@ -806,7 +820,6 @@ files:
|
|
806
820
|
- app/models/katello/authorization/repository.rb
|
807
821
|
- app/models/katello/authorization/subscription.rb
|
808
822
|
- app/models/katello/authorization/sync_plan.rb
|
809
|
-
- app/models/katello/authorization/system.rb
|
810
823
|
- app/models/katello/candlepin/content.rb
|
811
824
|
- app/models/katello/candlepin/product_content.rb
|
812
825
|
- app/models/katello/capsule_lifecycle_environment.rb
|
@@ -856,10 +869,10 @@ files:
|
|
856
869
|
- app/models/katello/event.rb
|
857
870
|
- app/models/katello/events/import_host_errata.rb
|
858
871
|
- app/models/katello/ext/label_from_name.rb
|
872
|
+
- app/models/katello/file_unit.rb
|
859
873
|
- app/models/katello/glue.rb
|
860
874
|
- app/models/katello/glue/candlepin/activation_key.rb
|
861
875
|
- app/models/katello/glue/candlepin/candlepin_object.rb
|
862
|
-
- app/models/katello/glue/candlepin/consumer.rb
|
863
876
|
- app/models/katello/glue/candlepin/content.rb
|
864
877
|
- app/models/katello/glue/candlepin/environment.rb
|
865
878
|
- app/models/katello/glue/candlepin/owner.rb
|
@@ -868,7 +881,6 @@ files:
|
|
868
881
|
- app/models/katello/glue/candlepin/product.rb
|
869
882
|
- app/models/katello/glue/candlepin/subscription.rb
|
870
883
|
- app/models/katello/glue/provider.rb
|
871
|
-
- app/models/katello/glue/pulp/consumer.rb
|
872
884
|
- app/models/katello/glue/pulp/pulp_errors.rb
|
873
885
|
- app/models/katello/glue/pulp/repo.rb
|
874
886
|
- app/models/katello/glue/pulp/repos.rb
|
@@ -879,7 +891,6 @@ files:
|
|
879
891
|
- app/models/katello/host_collection.rb
|
880
892
|
- app/models/katello/host_collection_hosts.rb
|
881
893
|
- app/models/katello/host_installed_package.rb
|
882
|
-
- app/models/katello/hypervisor.rb
|
883
894
|
- app/models/katello/installed_package.rb
|
884
895
|
- app/models/katello/key_host_collection.rb
|
885
896
|
- app/models/katello/kt_environment.rb
|
@@ -899,6 +910,7 @@ files:
|
|
899
910
|
- app/models/katello/repository.rb
|
900
911
|
- app/models/katello/repository_docker_manifest.rb
|
901
912
|
- app/models/katello/repository_erratum.rb
|
913
|
+
- app/models/katello/repository_file.rb
|
902
914
|
- app/models/katello/repository_ostree_branch.rb
|
903
915
|
- app/models/katello/repository_package_group.rb
|
904
916
|
- app/models/katello/repository_puppet_module.rb
|
@@ -912,9 +924,6 @@ files:
|
|
912
924
|
- app/models/katello/subscription_product.rb
|
913
925
|
- app/models/katello/subscription_status.rb
|
914
926
|
- app/models/katello/sync_plan.rb
|
915
|
-
- app/models/katello/system.rb
|
916
|
-
- app/models/katello/system_activation_key.rb
|
917
|
-
- app/models/katello/system_repository.rb
|
918
927
|
- app/models/katello/task_status.rb
|
919
928
|
- app/models/setting/content.rb
|
920
929
|
- app/overrides/add_about_page.rb
|
@@ -924,7 +933,7 @@ files:
|
|
924
933
|
- app/overrides/add_subscription_status.rb
|
925
934
|
- app/overrides/disable_turbolinks_on_proxies_index.rb
|
926
935
|
- app/overrides/override_taxonomy_actions.rb
|
927
|
-
- app/presenters/katello/
|
936
|
+
- app/presenters/katello/activation_key_subscriptions_presenter.rb
|
928
937
|
- app/presenters/katello/content_view_version_compare_presenter.rb
|
929
938
|
- app/presenters/katello/host_subscription_presenter.rb
|
930
939
|
- app/presenters/katello/product_content_presenter.rb
|
@@ -943,6 +952,7 @@ files:
|
|
943
952
|
- app/services/katello/pulp/content_counts_calculator.rb
|
944
953
|
- app/services/katello/pulp/docker_manifest.rb
|
945
954
|
- app/services/katello/pulp/erratum.rb
|
955
|
+
- app/services/katello/pulp/file_unit.rb
|
946
956
|
- app/services/katello/pulp/ostree_branch.rb
|
947
957
|
- app/services/katello/pulp/package_group.rb
|
948
958
|
- app/services/katello/pulp/pulp_content_unit.rb
|
@@ -998,6 +1008,7 @@ files:
|
|
998
1008
|
- app/views/katello/api/v2/common/update.json.rabl
|
999
1009
|
- app/views/katello/api/v2/content_facet/base.json.rabl
|
1000
1010
|
- app/views/katello/api/v2/content_facet/base_with_root.json.rabl
|
1011
|
+
- app/views/katello/api/v2/content_facet/erratum.json.rabl
|
1001
1012
|
- app/views/katello/api/v2/content_facet/show.json.rabl
|
1002
1013
|
- app/views/katello/api/v2/content_view_filter_rules/index.json.rabl
|
1003
1014
|
- app/views/katello/api/v2/content_view_filter_rules/show.json.rabl
|
@@ -1028,12 +1039,14 @@ files:
|
|
1028
1039
|
- app/views/katello/api/v2/environments/releases.json.rabl
|
1029
1040
|
- app/views/katello/api/v2/environments/repositories.json.rabl
|
1030
1041
|
- app/views/katello/api/v2/environments/show.json.rabl
|
1031
|
-
- app/views/katello/api/v2/errata/_applicable_errata.json.rabl
|
1032
1042
|
- app/views/katello/api/v2/errata/_attributes.json.rabl
|
1033
1043
|
- app/views/katello/api/v2/errata/_counts.json.rabl
|
1034
1044
|
- app/views/katello/api/v2/errata/compare.json.rabl
|
1035
1045
|
- app/views/katello/api/v2/errata/index.json.rabl
|
1036
1046
|
- app/views/katello/api/v2/errata/show.json.rabl
|
1047
|
+
- app/views/katello/api/v2/file_units/base.json.rabl
|
1048
|
+
- app/views/katello/api/v2/file_units/index.json.rabl
|
1049
|
+
- app/views/katello/api/v2/file_units/show.json.rabl
|
1037
1050
|
- app/views/katello/api/v2/gpg_keys/index.json.rabl
|
1038
1051
|
- app/views/katello/api/v2/gpg_keys/show.json.rabl
|
1039
1052
|
- app/views/katello/api/v2/host_collection_errata/index.json.rabl
|
@@ -1111,7 +1124,6 @@ files:
|
|
1111
1124
|
- app/views/katello/api/v2/subscription_facet/base_with_root.json.rabl
|
1112
1125
|
- app/views/katello/api/v2/subscription_facet/show.json.rabl
|
1113
1126
|
- app/views/katello/api/v2/subscriptions/base.json.rabl
|
1114
|
-
- app/views/katello/api/v2/subscriptions/create.json.rabl
|
1115
1127
|
- app/views/katello/api/v2/subscriptions/destroy.json.rabl
|
1116
1128
|
- app/views/katello/api/v2/subscriptions/destroy_all.json.rabl
|
1117
1129
|
- app/views/katello/api/v2/subscriptions/destroy_by_serial.json.rabl
|
@@ -1124,23 +1136,6 @@ files:
|
|
1124
1136
|
- app/views/katello/api/v2/sync_plans/available_products.json.rabl
|
1125
1137
|
- app/views/katello/api/v2/sync_plans/index.json.rabl
|
1126
1138
|
- app/views/katello/api/v2/sync_plans/show.json.rabl
|
1127
|
-
- app/views/katello/api/v2/systems/_pool.json.rabl
|
1128
|
-
- app/views/katello/api/v2/systems/activate.json.rabl
|
1129
|
-
- app/views/katello/api/v2/systems/add_host_collections.json.rabl
|
1130
|
-
- app/views/katello/api/v2/systems/available_host_collections.json.rabl
|
1131
|
-
- app/views/katello/api/v2/systems/base.json.rabl
|
1132
|
-
- app/views/katello/api/v2/systems/enabled_repos.json.rabl
|
1133
|
-
- app/views/katello/api/v2/systems/erratum.json.rabl
|
1134
|
-
- app/views/katello/api/v2/systems/events.json.rabl
|
1135
|
-
- app/views/katello/api/v2/systems/index.json.rabl
|
1136
|
-
- app/views/katello/api/v2/systems/package.json.rabl
|
1137
|
-
- app/views/katello/api/v2/systems/package_profile.json.rabl
|
1138
|
-
- app/views/katello/api/v2/systems/pools.json.rabl
|
1139
|
-
- app/views/katello/api/v2/systems/regenerate_identity_certificates.json.rabl
|
1140
|
-
- app/views/katello/api/v2/systems/remove_host_collections.json.rabl
|
1141
|
-
- app/views/katello/api/v2/systems/show.json.rabl
|
1142
|
-
- app/views/katello/api/v2/systems/subscriptions.json.rabl
|
1143
|
-
- app/views/katello/api/v2/systems/upload_package_profile.json.rabl
|
1144
1139
|
- app/views/katello/api/v2/tasks/index.json.rabl
|
1145
1140
|
- app/views/katello/api/v2/tasks/show.json.rabl
|
1146
1141
|
- app/views/katello/api/v2/tasks/task_status_show.json.rabl
|
@@ -1344,13 +1339,18 @@ files:
|
|
1344
1339
|
- db/migrate/20160605160933_remove_jobs.rb
|
1345
1340
|
- db/migrate/20160605162929_remove_system_smart_proxy.rb
|
1346
1341
|
- db/migrate/20160613150922_add_event_queue.rb
|
1342
|
+
- db/migrate/20160617124149_remove_duplicate_view_filters.rb
|
1347
1343
|
- db/migrate/20160619223332_fix_viewer_role.rb
|
1344
|
+
- db/migrate/20160627125310_delete_system.rb
|
1348
1345
|
- db/migrate/20160701180402_add_sortable_version_to_puppet_modules.rb
|
1346
|
+
- db/migrate/20160722193256_add_verify_ssl_on_sync_to_repository.rb
|
1347
|
+
- db/migrate/20160727144242_add_registered_through_to_katello_subscription_facets.rb
|
1348
|
+
- db/migrate/20160808002834_add_files.rb
|
1349
|
+
- db/migrate/20160906181923_add_puppet_path_to_smart_proxy.rb
|
1349
1350
|
- db/seeds.d/101-locations.rb
|
1350
1351
|
- db/seeds.d/102-organizations.rb
|
1351
1352
|
- db/seeds.d/103-provisioning_templates.rb
|
1352
1353
|
- db/seeds.d/104-proxy.rb
|
1353
|
-
- db/seeds.d/105-roles_permissions.rb
|
1354
1354
|
- db/seeds.d/106-mail_notifications.rb
|
1355
1355
|
- db/seeds.d/107-enable_dynflow.rb
|
1356
1356
|
- db/seeds.d/108-ensure_sync_notification.rb
|
@@ -1413,7 +1413,6 @@ files:
|
|
1413
1413
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-events.controller.js
|
1414
1414
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register.controller.js
|
1415
1415
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-status.controller.js
|
1416
|
-
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host.factory.js
|
1417
1416
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js
|
1418
1417
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js
|
1419
1418
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.module.js
|
@@ -1462,6 +1461,7 @@ files:
|
|
1462
1461
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-content-hosts.html
|
1463
1462
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-environments.html
|
1464
1463
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-docker-repositories.controller.js
|
1464
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-file-repositories.controller.js
|
1465
1465
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-ostree-repositories.controller.js
|
1466
1466
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-puppet-modules.controller.js
|
1467
1467
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-repositories.controller.js
|
@@ -1469,6 +1469,7 @@ files:
|
|
1469
1469
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-composite-content-views-list.controller.js
|
1470
1470
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js
|
1471
1471
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-docker-repositories-list.controller.js
|
1472
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-file-repositories-list.controller.js
|
1472
1473
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-ostree-repositories-list.controller.js
|
1473
1474
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-promotion.controller.js
|
1474
1475
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-publish.controller.js
|
@@ -1523,6 +1524,7 @@ files:
|
|
1523
1524
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details-tasks.html
|
1524
1525
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html
|
1525
1526
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html
|
1527
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-file-repositories.html
|
1526
1528
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-info.html
|
1527
1529
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-ostree-repositories.html
|
1528
1530
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-promotion.html
|
@@ -1539,6 +1541,7 @@ files:
|
|
1539
1541
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-details.html
|
1540
1542
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-docker.html
|
1541
1543
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-errata.html
|
1544
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-file.html
|
1542
1545
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-ostree-branches.html
|
1543
1546
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-package-groups.html
|
1544
1547
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-packages.html
|
@@ -1636,6 +1639,7 @@ files:
|
|
1636
1639
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/views/host-collections-table-collapsed.html
|
1637
1640
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/views/host-collections-table-full.html
|
1638
1641
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/views/host-collections.html
|
1642
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-bulk-action.factory.js
|
1639
1643
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js
|
1640
1644
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
|
1641
1645
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js
|
@@ -1663,8 +1667,18 @@ files:
|
|
1663
1667
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.module.js
|
1664
1668
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.routes.js
|
1665
1669
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/views/organization-selector.html
|
1670
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/ostree-branches-details-repositories.controller.js
|
1671
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/ostree-branches-details.controller.js
|
1672
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details-info.html
|
1673
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details-repositories.html
|
1674
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details.html
|
1666
1675
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branch.factory.js
|
1676
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.controller.js
|
1667
1677
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.module.js
|
1678
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.routes.js
|
1679
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches-table-collapsed.html
|
1680
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches-table-full.html
|
1681
|
+
- engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches.html
|
1668
1682
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-group.factory.js
|
1669
1683
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-groups.module.js
|
1670
1684
|
- engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details-repositories.controller.js
|
@@ -1823,7 +1837,6 @@ files:
|
|
1823
1837
|
- lib/katello/permissions.rb
|
1824
1838
|
- lib/katello/permissions/activation_key_permissions.rb
|
1825
1839
|
- lib/katello/permissions/capsule_content_permissions.rb
|
1826
|
-
- lib/katello/permissions/content_host_permissions.rb
|
1827
1840
|
- lib/katello/permissions/content_view_permissions.rb
|
1828
1841
|
- lib/katello/permissions/gpg_key_permissions.rb
|
1829
1842
|
- lib/katello/permissions/host_collections_permissions.rb
|
@@ -1854,6 +1867,7 @@ files:
|
|
1854
1867
|
- lib/katello/tasks/setup.rake
|
1855
1868
|
- lib/katello/tasks/simplecov.rake
|
1856
1869
|
- lib/katello/tasks/test.rake
|
1870
|
+
- lib/katello/tasks/unify_hosts.rake
|
1857
1871
|
- lib/katello/tasks/upgrade_check.rake
|
1858
1872
|
- lib/katello/tasks/upgrades/2.4/import_distributions.rake
|
1859
1873
|
- lib/katello/tasks/upgrades/2.4/import_package_groups.rake
|
@@ -1864,7 +1878,6 @@ files:
|
|
1864
1878
|
- lib/katello/tasks/upgrades/3.0/delete_docker_v1_content.rake
|
1865
1879
|
- lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
|
1866
1880
|
- lib/katello/tasks/upgrades/3.0/update_subscription_facet_backend_data.rake
|
1867
|
-
- lib/katello/tasks/yard.rake
|
1868
1881
|
- lib/katello/url_constrained_cookie_store.rb
|
1869
1882
|
- lib/katello/version.rb
|
1870
1883
|
- lib/monkeys/anemone.rb
|
@@ -1953,7 +1966,6 @@ files:
|
|
1953
1966
|
- vendor/assets/stylesheets/katello/facebox.css
|
1954
1967
|
- vendor/assets/stylesheets/katello/jquery-ui-1.8.11.custom.css
|
1955
1968
|
- vendor/assets/stylesheets/katello/jquery.jnotify.css
|
1956
|
-
- vendor/assets/stylesheets/katello/jquery.jscrollpane.css
|
1957
1969
|
- vendor/assets/stylesheets/katello/jquery.loadmask.css
|
1958
1970
|
- vendor/assets/stylesheets/katello/jquery.multiselect.css
|
1959
1971
|
- vendor/assets/stylesheets/katello/jquery.multiselect.filter.css
|
@@ -1973,12 +1985,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1973
1985
|
version: '0'
|
1974
1986
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1975
1987
|
requirements:
|
1976
|
-
- - "
|
1988
|
+
- - ">"
|
1977
1989
|
- !ruby/object:Gem::Version
|
1978
|
-
version:
|
1990
|
+
version: 1.3.1
|
1979
1991
|
requirements: []
|
1980
1992
|
rubyforge_project:
|
1981
|
-
rubygems_version: 2.
|
1993
|
+
rubygems_version: 2.5.0
|
1982
1994
|
signing_key:
|
1983
1995
|
specification_version: 4
|
1984
1996
|
summary: ''
|