katello 3.0.0.rc1 → 3.0.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.

Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/katello/katello.scss +5 -5
  3. data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +3 -3
  4. data/app/controllers/katello/api/v2/activation_keys_controller.rb +12 -12
  5. data/app/controllers/katello/api/v2/api_controller.rb +13 -5
  6. data/app/controllers/katello/api/v2/content_view_versions_controller.rb +30 -27
  7. data/app/controllers/katello/api/v2/content_views_controller.rb +4 -1
  8. data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +100 -3
  9. data/app/controllers/katello/api/v2/repositories_controller.rb +2 -2
  10. data/app/controllers/katello/api/v2/repository_sets_controller.rb +1 -1
  11. data/app/controllers/katello/api/v2/subscriptions_controller.rb +0 -1
  12. data/app/controllers/katello/api/v2/systems_controller.rb +1 -88
  13. data/app/controllers/katello/concerns/api/v2/bulk_hosts_extensions.rb +10 -4
  14. data/app/controllers/katello/remote_execution_controller.rb +1 -1
  15. data/app/helpers/katello/concerns/settings_helper_extensions.rb +50 -0
  16. data/app/helpers/katello/hosts_and_hostgroups_helper.rb +17 -4
  17. data/app/helpers/katello/katello_urls_helper.rb +3 -2
  18. data/app/helpers/katello/providers_helper.rb +2 -5
  19. data/app/lib/actions/katello/capsule_content/configure_capsule.rb +1 -1
  20. data/app/lib/actions/katello/capsule_content/{create_or_update.rb → create_repos.rb} +2 -7
  21. data/app/lib/actions/katello/capsule_content/remove_orphans.rb +15 -0
  22. data/app/lib/actions/katello/capsule_content/remove_unneeded_repos.rb +6 -5
  23. data/app/lib/actions/katello/capsule_content/sync.rb +32 -0
  24. data/app/lib/actions/katello/content_view/incremental_updates.rb +4 -3
  25. data/app/lib/actions/katello/content_view/promote.rb +4 -0
  26. data/app/lib/actions/katello/content_view/publish.rb +4 -0
  27. data/app/lib/actions/katello/content_view_puppet_module/destroy.rb +4 -5
  28. data/app/lib/actions/katello/content_view_version/incremental_update.rb +5 -3
  29. data/app/lib/actions/katello/host/erratum/applicable_errata_install.rb +2 -2
  30. data/app/lib/actions/katello/host/generate_applicability.rb +1 -1
  31. data/app/lib/actions/katello/host/hypervisors_update.rb +1 -1
  32. data/app/lib/actions/katello/host/register.rb +10 -4
  33. data/app/lib/actions/katello/repository/destroy.rb +2 -1
  34. data/app/lib/actions/katello/repository/import_applicability.rb +23 -0
  35. data/app/lib/actions/katello/repository/sync.rb +1 -8
  36. data/app/lib/actions/pulp/abstract_async_task.rb +8 -0
  37. data/app/lib/actions/pulp/consumer/content_install.rb +14 -0
  38. data/app/lib/actions/pulp/repository/create.rb +2 -1
  39. data/app/lib/actions/pulp/repository/delete_distributor.rb +18 -0
  40. data/app/lib/actions/pulp/repository/refresh.rb +25 -7
  41. data/app/lib/katello/api/v2/error_handling.rb +2 -2
  42. data/app/lib/katello/capsule_content.rb +11 -0
  43. data/app/lib/katello/errors.rb +1 -1
  44. data/app/mailers/katello/errata_mailer.rb +3 -3
  45. data/app/models/katello/activation_key.rb +6 -6
  46. data/app/models/katello/candlepin/product_content.rb +15 -0
  47. data/app/models/katello/concerns/content_facet_host_extensions.rb +13 -0
  48. data/app/models/katello/concerns/operatingsystem_extensions.rb +17 -1
  49. data/app/models/katello/concerns/pulp_database_unit.rb +3 -1
  50. data/app/models/katello/concerns/setting_extensions.rb +12 -0
  51. data/app/models/katello/content_view.rb +2 -2
  52. data/app/models/katello/erratum.rb +7 -0
  53. data/app/models/katello/glue/candlepin/product.rb +4 -0
  54. data/app/models/katello/glue/candlepin/subscription.rb +1 -1
  55. data/app/models/katello/glue/pulp/repo.rb +31 -3
  56. data/app/models/katello/host/content_facet.rb +43 -16
  57. data/app/models/katello/host/subscription_facet.rb +1 -0
  58. data/app/models/katello/pool.rb +6 -11
  59. data/app/models/katello/repository.rb +20 -15
  60. data/app/models/katello/subscription.rb +14 -0
  61. data/app/models/katello/sync_plan.rb +5 -0
  62. data/app/models/katello/system.rb +0 -10
  63. data/app/models/setting/katello.rb +2 -1
  64. data/app/presenters/katello/product_content_presenter.rb +16 -0
  65. data/app/services/katello/candlepin/consumer.rb +22 -1
  66. data/app/services/katello/repository_type_manager.rb +4 -0
  67. data/app/views/dashboard/_content_views_widget.html.erb +2 -2
  68. data/app/views/dashboard/_errata_widget.html.erb +1 -1
  69. data/app/views/dashboard/_host_collection_widget.html.erb +2 -2
  70. data/app/views/dashboard/_subscription_status_widget.html.erb +5 -5
  71. data/app/views/dashboard/_subscription_widget.html.erb +1 -1
  72. data/app/views/dashboard/_sync_widget.html.erb +2 -2
  73. data/app/views/foreman/unattended/finish-katello.erb +2 -0
  74. data/app/views/foreman/unattended/kickstart-katello-atomic.erb +42 -0
  75. data/app/views/foreman/unattended/kickstart-katello.erb +2 -0
  76. data/app/views/foreman/unattended/snippets/_subscription_manager_registration.erb +15 -9
  77. data/app/views/foreman/unattended/userdata-katello.erb +6 -1
  78. data/app/views/katello/api/v2/activation_keys/show.json.rabl +2 -2
  79. data/app/views/katello/api/v2/common/_metadata.json.rabl +1 -0
  80. data/app/views/katello/api/v2/content_facet/show.json.rabl +4 -0
  81. data/app/views/katello/api/v2/host_subscriptions/content_override.json.rabl +3 -0
  82. data/app/views/katello/api/v2/{systems/_content.json.rabl → host_subscriptions/product_content.json.rabl} +1 -3
  83. data/app/views/katello/api/v2/sync_plans/show.json.rabl +5 -1
  84. data/app/views/katello/errata_mailer/host_errata.html.erb +2 -2
  85. data/app/views/katello/errata_mailer/promote_errata.html.erb +1 -1
  86. data/app/views/katello/errata_mailer/promote_errata.text.erb +1 -1
  87. data/app/views/katello/errata_mailer/sync_errata.html.erb +1 -1
  88. data/app/views/katello/errata_mailer/sync_errata.text.erb +1 -1
  89. data/app/views/overrides/activation_keys/_host_environment_select.html.erb +21 -11
  90. data/config/katello.yaml.example +1 -0
  91. data/config/routes/api/v2.rb +0 -6
  92. data/config/routes/overrides.rb +3 -0
  93. data/db/migrate/20140117160939_refactor_content_views.rb +1 -0
  94. data/db/migrate/20140222022712_remove_provider_discovery.rb +2 -0
  95. data/db/migrate/20140502164009_rename_system_groups_to_host_collections.rb +7 -0
  96. data/db/migrate/20141210173220_create_docker_tables.rb +4 -3
  97. data/db/migrate/20151219203225_rename_index_repository_puppet_module.rb +1 -1
  98. data/db/migrate/20160203195736_remove_docker_image_schema.rb +1 -0
  99. data/db/migrate/20160317171813_change_activation_key_column_names.rb +11 -0
  100. data/db/migrate/20160323065901_increase_cdn_length.rb +11 -0
  101. data/db/migrate/20160404132250_remove_katello_from_notification_name.rb +26 -0
  102. data/db/seeds.d/103-provisioning_templates.rb +3 -1
  103. data/db/seeds.d/106-mail_notifications.rb +3 -3
  104. data/db/seeds.d/109-atomic_os.rb +11 -0
  105. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js +1 -1
  106. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +21 -9
  107. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-add-subscriptions.html +3 -3
  108. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +41 -40
  109. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-details.html +1 -1
  110. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html +7 -7
  111. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-subscriptions-list.html +3 -3
  112. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/new-activation-key.controller.js +1 -1
  113. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/views/activation-key-new.html +8 -8
  114. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/capsule-content.routes.js +2 -2
  115. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +0 -8
  116. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +19 -16
  117. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +1 -1
  118. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details-info.controller.js +5 -3
  119. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +27 -3
  120. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-products.controller.js +79 -26
  121. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +3 -3
  122. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +32 -10
  123. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +8 -8
  124. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-products.html +11 -11
  125. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +3 -3
  126. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-promotion.html +1 -1
  127. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-puppet-modules.html +3 -3
  128. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +1 -1
  129. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-content-hosts.controller.js +33 -10
  130. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-content-hosts.html +5 -5
  131. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +2 -2
  132. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-details.html +1 -1
  133. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/new-gpg-key.controller.js +7 -3
  134. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-details.html +1 -1
  135. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/views/host-collection-new-form.html +1 -1
  136. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-subscription.factory.js +3 -1
  137. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/check-current-organization.run.js +3 -15
  138. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/fenced-pages.service.js +36 -0
  139. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization.factory.js +1 -1
  140. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/bulk-actions.html +14 -3
  141. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +1 -1
  142. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-repositories.html +13 -3
  143. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-info.html +1 -1
  144. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-docker-manifests.html +3 -1
  145. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-packages.html +7 -5
  146. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-puppet-modules.html +5 -3
  147. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-import.controller.js +16 -6
  148. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details-info.controller.js +7 -2
  149. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-details.html +1 -1
  150. data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/bastion_katello.scss +6 -0
  151. data/lib/katello/engine.rb +4 -3
  152. data/lib/katello/permissions/host_permissions.rb +1 -0
  153. data/lib/katello/version.rb +1 -1
  154. metadata +17 -11
  155. data/app/controllers/katello/concerns/api/v2/bulk_systems_extensions.rb +0 -39
  156. data/app/views/katello/api/v2/systems/content_override.json.rabl +0 -3
  157. data/app/views/katello/api/v2/systems/product_content.json.rabl +0 -3
  158. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-product-details.controller.js +0 -97
  159. data/lib/katello/tasks/upgrades/2.1/import_errata.rake +0 -45
  160. data/lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake +0 -20
  161. data/lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake +0 -18
@@ -10,6 +10,7 @@ Foreman::AccessControl.permission(:edit_hosts).actions.concat [
10
10
  'katello/api/v2/host_subscriptions/auto_attach',
11
11
  'katello/api/v2/host_subscriptions/add_subscriptions',
12
12
  'katello/api/v2/host_subscriptions/remove_subscriptions',
13
+ 'katello/api/v2/host_subscriptions/content_override',
13
14
  'katello/api/v2/hosts_bulk_actions/bulk_add_host_collections',
14
15
  'katello/api/v2/hosts_bulk_actions/bulk_remove_host_collections',
15
16
  'katello/api/v2/hosts_bulk_actions/install_content',
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "3.0.0.rc1"
2
+ VERSION = "3.0.0.rc2"
3
3
  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.0.0.rc1
4
+ version: 3.0.0.rc2
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-03-18 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -472,7 +472,6 @@ files:
472
472
  - app/controllers/katello/auto_complete_search_controller.rb
473
473
  - app/controllers/katello/concerns/api/api_controller.rb
474
474
  - app/controllers/katello/concerns/api/v2/bulk_hosts_extensions.rb
475
- - app/controllers/katello/concerns/api/v2/bulk_systems_extensions.rb
476
475
  - app/controllers/katello/concerns/api/v2/hostgroups_controller_extensions.rb
477
476
  - app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb
478
477
  - app/controllers/katello/concerns/api/v2/repository_content_controller.rb
@@ -496,6 +495,7 @@ files:
496
495
  - app/helpers/katello/activation_keys_helper.rb
497
496
  - app/helpers/katello/application_helper.rb
498
497
  - app/helpers/katello/concerns/foreman_docker/container_steps_helper_extensions.rb
498
+ - app/helpers/katello/concerns/settings_helper_extensions.rb
499
499
  - app/helpers/katello/concerns/smart_proxy_helper_extensions.rb
500
500
  - app/helpers/katello/errata_mailer_helper.rb
501
501
  - app/helpers/katello/host_collection_events_helper.rb
@@ -554,7 +554,8 @@ files:
554
554
  - app/lib/actions/katello/activation_key/reassign.rb
555
555
  - app/lib/actions/katello/activation_key/update.rb
556
556
  - app/lib/actions/katello/capsule_content/configure_capsule.rb
557
- - app/lib/actions/katello/capsule_content/create_or_update.rb
557
+ - app/lib/actions/katello/capsule_content/create_repos.rb
558
+ - app/lib/actions/katello/capsule_content/remove_orphans.rb
558
559
  - app/lib/actions/katello/capsule_content/remove_unneeded_repos.rb
559
560
  - app/lib/actions/katello/capsule_content/sync.rb
560
561
  - app/lib/actions/katello/content_view/add_to_environment.rb
@@ -638,6 +639,7 @@ files:
638
639
  - app/lib/actions/katello/repository/export.rb
639
640
  - app/lib/actions/katello/repository/filtered_index_content.rb
640
641
  - app/lib/actions/katello/repository/finish_upload.rb
642
+ - app/lib/actions/katello/repository/import_applicability.rb
641
643
  - app/lib/actions/katello/repository/import_upload.rb
642
644
  - app/lib/actions/katello/repository/incremental_import.rb
643
645
  - app/lib/actions/katello/repository/index_content.rb
@@ -700,6 +702,7 @@ files:
700
702
  - app/lib/actions/pulp/repository/create.rb
701
703
  - app/lib/actions/pulp/repository/create_in_plan.rb
702
704
  - app/lib/actions/pulp/repository/create_upload_request.rb
705
+ - app/lib/actions/pulp/repository/delete_distributor.rb
703
706
  - app/lib/actions/pulp/repository/delete_upload_request.rb
704
707
  - app/lib/actions/pulp/repository/destroy.rb
705
708
  - app/lib/actions/pulp/repository/distributor_publish.rb
@@ -813,6 +816,7 @@ files:
813
816
  - app/models/katello/concerns/organization_extensions.rb
814
817
  - app/models/katello/concerns/pulp_database_unit.rb
815
818
  - app/models/katello/concerns/redhat_extensions.rb
819
+ - app/models/katello/concerns/setting_extensions.rb
816
820
  - app/models/katello/concerns/smart_proxy_extensions.rb
817
821
  - app/models/katello/concerns/subscription_facet_host_extensions.rb
818
822
  - app/models/katello/concerns/user_extensions.rb
@@ -917,6 +921,7 @@ files:
917
921
  - app/presenters/katello/activation_key_subscription_presenter.rb
918
922
  - app/presenters/katello/content_view_version_compare_presenter.rb
919
923
  - app/presenters/katello/host_subscription_presenter.rb
924
+ - app/presenters/katello/product_content_presenter.rb
920
925
  - app/presenters/katello/relation_presenter.rb
921
926
  - app/presenters/katello/repository_presenter.rb
922
927
  - app/presenters/katello/sync_status_presenter.rb
@@ -958,6 +963,7 @@ files:
958
963
  - app/views/foreman/smart_proxies/_content_tab.html.erb
959
964
  - app/views/foreman/smart_proxies/show.html.erb
960
965
  - app/views/foreman/unattended/finish-katello.erb
966
+ - app/views/foreman/unattended/kickstart-katello-atomic.erb
961
967
  - app/views/foreman/unattended/kickstart-katello.erb
962
968
  - app/views/foreman/unattended/snippets/_subscription_manager_registration.erb
963
969
  - app/views/foreman/unattended/userdata-katello.erb
@@ -1039,8 +1045,10 @@ files:
1039
1045
  - app/views/katello/api/v2/host_errata/system_task.json.rabl
1040
1046
  - app/views/katello/api/v2/host_packages/base.json.rabl
1041
1047
  - app/views/katello/api/v2/host_packages/index.json.rabl
1048
+ - app/views/katello/api/v2/host_subscriptions/content_override.json.rabl
1042
1049
  - app/views/katello/api/v2/host_subscriptions/events.json.rabl
1043
1050
  - app/views/katello/api/v2/host_subscriptions/index.json.rabl
1051
+ - app/views/katello/api/v2/host_subscriptions/product_content.json.rabl
1044
1052
  - app/views/katello/api/v2/hostgroups_extensions/show.json.rabl
1045
1053
  - app/views/katello/api/v2/hosts/base.json.rabl
1046
1054
  - app/views/katello/api/v2/hosts/index.json.rabl
@@ -1108,13 +1116,11 @@ files:
1108
1116
  - app/views/katello/api/v2/sync_plans/available_products.json.rabl
1109
1117
  - app/views/katello/api/v2/sync_plans/index.json.rabl
1110
1118
  - app/views/katello/api/v2/sync_plans/show.json.rabl
1111
- - app/views/katello/api/v2/systems/_content.json.rabl
1112
1119
  - app/views/katello/api/v2/systems/_pool.json.rabl
1113
1120
  - app/views/katello/api/v2/systems/activate.json.rabl
1114
1121
  - app/views/katello/api/v2/systems/add_host_collections.json.rabl
1115
1122
  - app/views/katello/api/v2/systems/available_host_collections.json.rabl
1116
1123
  - app/views/katello/api/v2/systems/base.json.rabl
1117
- - app/views/katello/api/v2/systems/content_override.json.rabl
1118
1124
  - app/views/katello/api/v2/systems/enabled_repos.json.rabl
1119
1125
  - app/views/katello/api/v2/systems/erratum.json.rabl
1120
1126
  - app/views/katello/api/v2/systems/events.json.rabl
@@ -1122,7 +1128,6 @@ files:
1122
1128
  - app/views/katello/api/v2/systems/package.json.rabl
1123
1129
  - app/views/katello/api/v2/systems/package_profile.json.rabl
1124
1130
  - app/views/katello/api/v2/systems/pools.json.rabl
1125
- - app/views/katello/api/v2/systems/product_content.json.rabl
1126
1131
  - app/views/katello/api/v2/systems/regenerate_identity_certificates.json.rabl
1127
1132
  - app/views/katello/api/v2/systems/releases.json.rabl
1128
1133
  - app/views/katello/api/v2/systems/remove_host_collections.json.rabl
@@ -1324,6 +1329,9 @@ files:
1324
1329
  - db/migrate/20160222143432_move_system_description_to_host.rb
1325
1330
  - db/migrate/20160224155909_add_registered_at_to_subscription_facet.rb
1326
1331
  - db/migrate/20160301070319_add_version_ostree_branches.rb
1332
+ - db/migrate/20160317171813_change_activation_key_column_names.rb
1333
+ - db/migrate/20160323065901_increase_cdn_length.rb
1334
+ - db/migrate/20160404132250_remove_katello_from_notification_name.rb
1327
1335
  - db/seeds.d/101-locations.rb
1328
1336
  - db/seeds.d/102-organizations.rb
1329
1337
  - db/seeds.d/103-provisioning_templates.rb
@@ -1332,6 +1340,7 @@ files:
1332
1340
  - db/seeds.d/106-mail_notifications.rb
1333
1341
  - db/seeds.d/107-enable_dynflow.rb
1334
1342
  - db/seeds.d/108-ensure_sync_notification.rb
1343
+ - db/seeds.d/109-atomic_os.rb
1335
1344
  - db/seeds.d/75-job_templates.rb
1336
1345
  - engines/bastion_katello/README.md
1337
1346
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-key.factory.js
@@ -1405,7 +1414,6 @@ files:
1405
1414
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details-info.controller.js
1406
1415
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js
1407
1416
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-host-collections.controller.js
1408
- - engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-product-details.controller.js
1409
1417
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-products.controller.js
1410
1418
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js
1411
1419
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html
@@ -1635,6 +1643,7 @@ files:
1635
1643
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/zanata.xml
1636
1644
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js
1637
1645
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/check-current-organization.run.js
1646
+ - engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/fenced-pages.service.js
1638
1647
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization-selector.controller.js
1639
1648
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization.factory.js
1640
1649
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.module.js
@@ -1828,9 +1837,6 @@ files:
1828
1837
  - lib/katello/tasks/setup.rake
1829
1838
  - lib/katello/tasks/simplecov.rake
1830
1839
  - lib/katello/tasks/test.rake
1831
- - lib/katello/tasks/upgrades/2.1/import_errata.rake
1832
- - lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
1833
- - lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
1834
1840
  - lib/katello/tasks/upgrades/2.4/import_distributions.rake
1835
1841
  - lib/katello/tasks/upgrades/2.4/import_package_groups.rake
1836
1842
  - lib/katello/tasks/upgrades/2.4/import_puppet_modules.rake
@@ -1,39 +0,0 @@
1
- module Katello
2
- module Concerns
3
- module Api::V2::BulkSystemsExtensions
4
- extend ActiveSupport::Concern
5
-
6
- def find_bulk_systems(permission, bulk_params, restrict_to = nil)
7
- #works on a structure of param_group bulk_params and transforms it into a list of systems
8
- organization = find_organization
9
- bulk_params[:included] ||= {}
10
- bulk_params[:excluded] ||= {}
11
- @hosts = []
12
-
13
- unless bulk_params[:included][:ids].blank?
14
- @hosts = ::Host::Managed.authorized(permission).where(:id => bulk_params[:included][:ids])
15
- @hosts = @hosts.where(:organization_id => organization.id) if organization
16
- @hosts = @hosts.where('id not in (?)', bulk_params[:excluded]) unless bulk_params[:excluded][:ids].blank?
17
- @hosts = restrict_to.call(@hosts) if restrict_to
18
- end
19
-
20
- if bulk_params[:included][:search]
21
- search_hosts = ::Host::Managed.where(:organization_id => organization_id) if params[:organization_id]
22
- search_hosts = search_hosts.search_for(bulk_params[:included][:search])
23
- @hosts += search_hosts
24
- end
25
-
26
- if bulk_params[:included][:ids].blank? && bulk_params[:included][:search].nil?
27
- fail HttpErrors::BadRequest, _("No hosts have been specified.")
28
- elsif @hosts.empty?
29
- fail HttpErrors::Forbidden, _("Action unauthorized to be performed on selected hosts.")
30
- end
31
- @hosts
32
- end
33
-
34
- def find_organization
35
- Organization.find_by_id(params[:organization_id])
36
- end
37
- end
38
- end
39
- end
@@ -1,3 +0,0 @@
1
- object false
2
-
3
- extends "katello/api/v2/systems/content"
@@ -1,3 +0,0 @@
1
- object false
2
-
3
- extends "katello/api/v2/systems/content"
@@ -1,97 +0,0 @@
1
- /**
2
- * @ngdoc object
3
- * @name Bastion.content-hosts.controller:ContentHostProductDetailsController
4
- *
5
- * @requires $scope
6
- * @requires translate
7
- * @requires ContentHost
8
- */
9
- angular.module('Bastion.content-hosts').controller('ContentHostProductDetailsController',
10
- ['$scope', 'translate', 'ContentHost',
11
- function ($scope, translate, ContentHost) {
12
-
13
- $scope.expanded = true;
14
- $scope.details = null;
15
-
16
- $scope.productDetails = function (product) {
17
- var override;
18
-
19
- if ($scope.details === null) {
20
- $scope.details = product;
21
- angular.forEach($scope.details['available_content'], function (content) {
22
- override = _.findWhere($scope.contentHost["content_overrides"],
23
- {"contentLabel": content.content.label, name: "enabled"});
24
- if (angular.isUndefined(override)) {
25
- content.overrideEnabled = null;
26
- } else {
27
- content.overrideEnabled = Number(override.value);
28
- }
29
- content.enabledText = $scope.getEnabledText(content.enabled, content.overrideEnabled);
30
- });
31
- }
32
- };
33
-
34
- $scope.overrideEnableChoices = function (content) {
35
- var choices;
36
- if (content.enabled === true) {
37
- choices = [
38
- {name: $scope.getEnabledText(content.enabled, null), id: null},
39
- {name: $scope.getEnabledText(null, 0), id: 0}
40
- ];
41
- } else {
42
- choices = [
43
- {name: $scope.getEnabledText(content.enabled, null), id: null},
44
- {name: $scope.getEnabledText(null, 1), id: 1}
45
- ];
46
- }
47
- return choices;
48
- };
49
-
50
- $scope.getEnabledText = function (enabled, overrideEnabled) {
51
- var enabledText;
52
-
53
- if (overrideEnabled === null) {
54
- enabledText = enabled ? translate("Yes (Default)") : translate("No (Default)");
55
- } else if (overrideEnabled === 1) {
56
- enabledText = translate("Override to Yes");
57
- } else {
58
- enabledText = translate("Override to No");
59
- }
60
-
61
- return enabledText;
62
- };
63
-
64
- $scope.success = function (content) {
65
- content.enabledText = $scope.getEnabledText(content.enabled, content.overrideEnabled);
66
- $scope.successMessages.push(translate('Updated override to "%x".')
67
- .replace('%x', content.enabledText));
68
- };
69
-
70
- $scope.error = function (error) {
71
- $scope.errorMessages.push(error.data.errors);
72
- };
73
-
74
- $scope.saveContentOverride = function (content) {
75
- if (content.overrideEnabled === null) {
76
- ContentHost.contentOverride({id: $scope.contentHost.uuid},
77
- {'content_override': {'content_label': content.content.label,
78
- name: "enabled"}
79
- },
80
- function () {
81
- $scope.success(content);
82
- },
83
- $scope.error);
84
- } else {
85
- ContentHost.contentOverride({id: $scope.contentHost.uuid},
86
- {'content_override': { 'content_label': content.content.label,
87
- name: "enabled",
88
- value: content.overrideEnabled}
89
- },
90
- function () {
91
- $scope.success(content);
92
- },
93
- $scope.error);
94
- }
95
- };
96
- }]
97
- );
@@ -1,45 +0,0 @@
1
- namespace :katello do
2
- namespace :upgrades do
3
- namespace '2.1' do
4
- task :import_errata => ["environment"] do
5
-
6
- def error(exception, system)
7
- message = _("There was an error updating Content Host %{name} with id %{id}") %
8
- {:name =>system.name, :id => system.id}
9
- puts message
10
- Rails.logger.error(message)
11
- Rails.logger.error(exception.message)
12
- end
13
-
14
- def update_system_repositories(system)
15
- if system.bound_repositories.empty?
16
- puts _("Updating Content Host Repositories %s") % system.name
17
- system.bound_repositories << Katello::Repository.where(:pulp_id => system.pulp_bound_yum_repositories)
18
- system.save!
19
- system.propagate_yum_repos
20
- end
21
- end
22
-
23
-
24
- User.current = User.anonymous_api_admin
25
-
26
- puts _("Importing Errata")
27
- Katello::Erratum.import_all
28
-
29
- Katello::System.find_each do |system|
30
- begin
31
- update_system_repositories(system)
32
- rescue => e
33
- error(e, system)
34
- end
35
- end
36
-
37
- if Katello::System.any?
38
- puts _("Generating applicability for %s Content Hosts") % Katello::System.count
39
- ForemanTasks.sync_task(::Actions::Katello::System::GenerateApplicability,
40
- Katello::System.select([:id, :uuid]).all)
41
- end
42
- end
43
- end
44
- end
45
- end
@@ -1,20 +0,0 @@
1
- namespace :katello do
2
- namespace :upgrades do
3
- namespace '2.2' do
4
- task :update_gpg_key_urls => ["environment"] do
5
- User.current = User.anonymous_api_admin
6
- puts _("Importing GPG Key Urls to support Capsule Communication")
7
-
8
- Katello::Product.find_each do |product|
9
- unless product.redhat?
10
- product.repositories.each do |repo|
11
- if repo.yum_gpg_key_url && repo.yum_gpg_key_url != repo.content.gpgUrl
12
- ForemanTasks.sync_task(::Actions::Katello::Repository::Update, repo, {})
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end
20
- end
@@ -1,18 +0,0 @@
1
- namespace :katello do
2
- namespace :upgrades do
3
- namespace '2.2' do
4
- task :update_metadata_expire => ["environment"] do
5
- User.current = User.anonymous_api_admin
6
- puts _("Updating Expire Metadata for Custom Content")
7
-
8
- Katello::Product.find_each do |product|
9
- unless product.redhat?
10
- product.repositories.each do |repo|
11
- ForemanTasks.sync_task(::Actions::Katello::Repository::Update, repo, {})
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end