katello 4.9.2 → 4.10.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 +4 -7
- data/app/assets/javascripts/katello/locale/bn/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/bn_IN/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/ca/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/cs/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +8969 -0
- data/app/assets/javascripts/katello/locale/de/katello.js +8991 -1
- data/app/assets/javascripts/katello/locale/de_AT/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/de_DE/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/el/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/en/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/en_GB/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/en_US/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/es/katello.js +8984 -1
- data/app/assets/javascripts/katello/locale/et_EE/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/fr/katello.js +9008 -1
- data/app/assets/javascripts/katello/locale/gl/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/gu/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/he_IL/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/hi/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/id/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/it/katello.js +8974 -1
- data/app/assets/javascripts/katello/locale/ja/katello.js +9004 -1
- data/app/assets/javascripts/katello/locale/ka/katello.js +8976 -1
- data/app/assets/javascripts/katello/locale/kn/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/ko/katello.js +8972 -1
- data/app/assets/javascripts/katello/locale/locale/katello.js +3070 -1
- data/app/assets/javascripts/katello/locale/ml_IN/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/mr/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/nl_NL/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/or/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/pa/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/pl/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/pl_PL/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/pt/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/pt_BR/katello.js +8984 -1
- data/app/assets/javascripts/katello/locale/ro/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/ro_RO/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/ru/katello.js +8973 -1
- data/app/assets/javascripts/katello/locale/sl/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/sv_SE/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/ta/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/ta_IN/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/te/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/tr/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/vi/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/vi_VN/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/zh/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/zh_CN/katello.js +9004 -1
- data/app/assets/javascripts/katello/locale/zh_TW/katello.js +8972 -1
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +1 -1
- data/app/controllers/katello/api/v2/alternate_content_sources_bulk_actions_controller.rb +22 -1
- data/app/controllers/katello/api/v2/api_controller.rb +0 -15
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +13 -4
- data/app/controllers/katello/api/v2/host_errata_controller.rb +0 -12
- data/app/controllers/katello/api/v2/host_packages_controller.rb +0 -55
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +0 -77
- data/app/controllers/katello/api/v2/organizations_controller.rb +2 -1
- data/app/controllers/katello/api/v2/repositories_controller.rb +6 -10
- data/app/controllers/katello/api/v2/sync_controller.rb +0 -1
- data/app/controllers/katello/concerns/api/api_controller.rb +0 -10
- data/app/controllers/katello/concerns/hosts_controller_extensions.rb +1 -1
- data/app/lib/actions/katello/alternate_content_source/update.rb +1 -1
- data/app/lib/actions/katello/content_view/capsule_sync.rb +1 -1
- data/app/lib/actions/katello/content_view/incremental_updates.rb +3 -9
- data/app/lib/actions/katello/content_view_version/republish_repositories.rb +8 -2
- data/app/lib/actions/katello/repository/capsule_sync.rb +1 -1
- data/app/lib/actions/katello/repository/update_metadata_sync.rb +1 -1
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +4 -9
- data/app/lib/katello/resources/cdn.rb +4 -0
- data/app/lib/katello/validators/alternate_content_source_products_validator.rb +1 -1
- data/app/models/katello/cdn_configuration.rb +4 -0
- data/app/models/katello/concerns/host_managed_extensions.rb +2 -1
- data/app/models/katello/content_view.rb +5 -1
- data/app/models/katello/content_view_component.rb +1 -1
- data/app/models/katello/content_view_version.rb +4 -0
- data/app/models/katello/host/content_facet.rb +4 -5
- data/app/models/katello/ping.rb +0 -19
- data/app/models/katello/repository.rb +5 -1
- data/app/models/katello/root_repository.rb +2 -8
- data/app/services/katello/applicability/applicable_content_helper.rb +2 -2
- data/app/services/katello/registration_manager.rb +2 -12
- data/app/views/foreman/job_templates/configure_host_for_new_content_source.erb +25 -0
- data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +1 -1
- data/app/views/katello/api/v2/content_facet/show.json.rabl +0 -12
- data/app/views/katello/api/v2/content_view_components/show.json.rabl +4 -1
- data/app/views/katello/api/v2/content_views/base.json.rabl +6 -2
- data/app/views/katello/api/v2/repositories/show.json.rabl +0 -1
- data/config/initializers/monkeys.rb +1 -0
- data/config/katello.yaml.example +0 -4
- data/config/routes/api/v2.rb +3 -0
- data/config/routes/overrides.rb +0 -11
- data/db/migrate/20230609155411_add_custom_cdn_auth_enabled_to_katello_cdn_configurations.rb +5 -0
- data/db/migrate/20230710190626_remove_relative_path_limit.rb +5 -0
- data/db/migrate/20230717150442_change_change_content_source_job_template_name.rb +20 -0
- data/db/migrate/20230828143236_remove_katello_agent_dispatch_history.rb +15 -0
- data/db/seeds.d/111-upgrade_tasks.rb +1 -2
- data/engines/bastion/app/views/bastion/layouts/assets.html.erb +1 -1
- data/engines/bastion_katello/README.md +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +4 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys.html +8 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +3 -44
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-module-streams-modal.controller.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-packages-modal.controller.js +1 -65
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-errata-modal.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-packages-modal.html +1 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-applicable.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +1 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-module-streams.controller.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-actions.controller.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +2 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +0 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +1 -39
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-applicable.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-actions.html +2 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-applicable.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-installed.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +2 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +2 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +0 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/views/file-content-views.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +235 -521
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-packages.html +13 -2
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +1 -3
- data/lib/katello/engine.rb +0 -18
- data/lib/katello/permission_creator.rb +1 -1
- data/lib/katello/plugin.rb +0 -25
- data/lib/katello/version.rb +1 -1
- data/lib/monkeys/remove_hidden_distribution.rb +383 -0
- data/locale/action_names.rb +3 -1
- data/locale/bn/katello.po +130 -39
- data/locale/bn_IN/katello.po +130 -39
- data/locale/ca/katello.po +130 -39
- data/locale/cs/katello.po +130 -39
- data/locale/cs_CZ/katello.po +130 -39
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/katello.po +134 -43
- data/locale/de_AT/katello.po +130 -39
- data/locale/de_DE/katello.po +130 -39
- data/locale/el/katello.po +130 -39
- data/locale/en/katello.po +130 -39
- data/locale/en_GB/katello.po +130 -39
- data/locale/en_US/katello.po +130 -39
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/katello.po +133 -42
- data/locale/et_EE/katello.po +130 -39
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/katello.po +138 -47
- data/locale/gl/katello.po +130 -39
- data/locale/gu/katello.po +130 -39
- data/locale/he_IL/katello.po +130 -39
- data/locale/hi/katello.po +130 -39
- data/locale/id/katello.po +130 -39
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/katello.po +131 -40
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/katello.po +138 -47
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/katello.po +131 -40
- data/locale/katello.pot +805 -642
- data/locale/kn/katello.po +130 -39
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/katello.po +131 -40
- data/locale/ml_IN/katello.po +130 -39
- data/locale/mr/katello.po +130 -39
- data/locale/nl_NL/katello.po +130 -39
- data/locale/or/katello.po +130 -39
- data/locale/pa/katello.po +130 -39
- data/locale/pl/katello.po +130 -39
- data/locale/pl_PL/katello.po +130 -39
- data/locale/pt/katello.po +130 -39
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/katello.po +133 -42
- data/locale/ro/katello.po +130 -39
- data/locale/ro_RO/katello.po +130 -39
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/katello.po +131 -40
- data/locale/sl/katello.po +130 -39
- data/locale/sv_SE/katello.po +130 -39
- data/locale/ta/katello.po +130 -39
- data/locale/ta_IN/katello.po +130 -39
- data/locale/te/katello.po +130 -39
- data/locale/tr/katello.po +130 -39
- data/locale/vi/katello.po +130 -39
- data/locale/vi_VN/katello.po +130 -39
- data/locale/zh/katello.po +130 -39
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/katello.po +138 -47
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/katello.po +131 -40
- data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsModal.js +0 -5
- data/webpack/components/extensions/HostDetails/Tabs/ContentTab/index.js +9 -3
- data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.js +7 -58
- data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/HostErrataActions.js +2 -11
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/HostPackagesActions.js +1 -40
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/HostPackagesConstants.js +0 -3
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackageInstallModal.js +5 -40
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackagesTab.js +6 -65
- data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +5 -4
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/errataTab.test.js +0 -212
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/packageInstallModal.test.js +2 -157
- data/webpack/components/extensions/HostDetails/hostDetailsHelpers.js +0 -20
- data/webpack/containers/Application/config.js +5 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyActions.js +31 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyConstants.js +3 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.js +127 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.scss +37 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetailsSelectors.js +16 -0
- data/webpack/scenes/ActivationKeys/Details/__tests__/activationKeyDetails.test.js +117 -0
- data/webpack/scenes/ActivationKeys/Details/components/DeleteMenu.js +77 -0
- data/webpack/scenes/ActivationKeys/Details/components/DeleteModal.js +63 -0
- data/webpack/scenes/ActivationKeys/Details/components/EditModal.js +199 -0
- data/webpack/scenes/ActivationKeys/Details/index.js +3 -0
- data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditCredentials.js +10 -5
- data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditProducts.js +8 -3
- data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditSmartProxies.js +8 -3
- data/webpack/scenes/AlternateContentSources/Details/__tests__/ACSEdits.test.js +2 -2
- data/webpack/scenes/AlternateContentSources/MainTable/ACSTable.js +1 -1
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewAddModal.js +37 -29
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewBulkAddModal.js +53 -37
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +7 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.fixtures.json +15 -6
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.test.js +6 -5
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/publishedContentViewDetails.fixtures.json +43 -197
- data/webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js +1 -1
- data/webpack/scenes/ContentViews/Details/Filters/Rules/Package/AddEditPackageRuleModal.js +1 -1
- data/webpack/scenes/ContentViews/Details/Promote/ContentViewVersionPromote.js +2 -2
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.fixtures.json +0 -98
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.test.js +103 -1
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersionsLatestEnvironment.fixtures.json +634 -0
- data/webpack/scenes/ContentViews/components/ContentViewSelect/helpers.js +1 -1
- data/webpack/scenes/Hosts/ChangeContentSource/actions.js +14 -12
- data/webpack/scenes/Hosts/ChangeContentSource/components/ContentSourceForm.js +45 -6
- data/webpack/scenes/Hosts/ChangeContentSource/components/ContentSourceTemplate.js +42 -7
- data/webpack/scenes/Hosts/ChangeContentSource/index.js +37 -10
- data/webpack/scenes/Hosts/ChangeContentSource/styles.scss +5 -0
- data/webpack/scenes/RedHatRepositories/index.scss +1 -1
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +2 -2
- metadata +85 -81
- data/app/lib/actions/katello/agent/dispatch_history_presenter.rb +0 -64
- data/app/lib/actions/katello/agent_action.rb +0 -120
- data/app/lib/actions/katello/bulk_agent_action.rb +0 -37
- data/app/lib/actions/katello/host/erratum/applicable_errata_install.rb +0 -44
- data/app/lib/actions/katello/host/erratum/install.rb +0 -38
- data/app/lib/actions/katello/host/package/install.rb +0 -34
- data/app/lib/actions/katello/host/package/remove.rb +0 -48
- data/app/lib/actions/katello/host/package/update.rb +0 -42
- data/app/lib/actions/katello/host/package_group/install.rb +0 -30
- data/app/lib/actions/katello/host/package_group/remove.rb +0 -30
- data/app/lib/katello/agent/base_message.rb +0 -41
- data/app/lib/katello/agent/client_message_handler.rb +0 -69
- data/app/lib/katello/agent/connection.rb +0 -38
- data/app/lib/katello/agent/install_errata_message.rb +0 -25
- data/app/lib/katello/agent/install_package_group_message.rb +0 -25
- data/app/lib/katello/agent/install_package_message.rb +0 -28
- data/app/lib/katello/agent/remove_package_group_message.rb +0 -25
- data/app/lib/katello/agent/remove_package_message.rb +0 -28
- data/app/lib/katello/agent/update_package_message.rb +0 -33
- data/app/lib/katello/event_daemon/services/agent_event_receiver.rb +0 -59
- data/app/lib/katello/qpid/connection.rb +0 -149
- data/app/lib/katello/util/default_enablement_migrator.rb +0 -183
- data/app/models/katello/agent/dispatch_history.rb +0 -19
- data/app/models/katello/events/delete_host_agent_queue.rb +0 -19
- data/app/services/katello/agent/dispatcher.rb +0 -60
- data/app/views/foreman/job_templates/change_content_source.erb +0 -18
- data/app/views/katello/api/v2/sync/index.json.rabl +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/katello-agent-notice.html +0 -8
- data/lib/katello/tasks/upgrades/4.9/update_custom_products_enablement.rake +0 -13
- data/webpack/components/extensions/HostDetails/common/KatelloAgentDeprecationAlert.js +0 -23
@@ -21,32 +21,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostsBulkPackagesModa
|
|
21
21
|
['$scope', '$location', '$timeout', '$window', '$uibModalInstance', 'HostBulkAction', 'CurrentOrganization', 'translate', 'Notification', 'BastionConfig', 'hostIds',
|
22
22
|
function ($scope, $location, $timeout, $window, $uibModalInstance, HostBulkAction, CurrentOrganization, translate, Notification, BastionConfig, hostIds) {
|
23
23
|
|
24
|
-
function successMessage(type) {
|
25
|
-
var messages = {
|
26
|
-
install: translate("Successfully scheduled package installation"),
|
27
|
-
update: translate("Successfully scheduled package update"),
|
28
|
-
remove: translate("Successfully scheduled package removal"),
|
29
|
-
"update all": translate("Successfully scheduled an update of all packages")
|
30
|
-
};
|
31
|
-
return messages[type];
|
32
|
-
}
|
33
|
-
|
34
|
-
function installParams() {
|
35
|
-
var params = hostIds;
|
36
|
-
params['content_type'] = $scope.content.contentType;
|
37
|
-
if ($scope.content.action === "update all") {
|
38
|
-
params['update_all'] = true;
|
39
|
-
params.content = null;
|
40
|
-
} else {
|
41
|
-
params.content = $scope.content.content.split(/ *, */);
|
42
|
-
}
|
43
|
-
params['organization_id'] = CurrentOrganization;
|
44
|
-
return params;
|
45
|
-
}
|
46
|
-
|
47
24
|
$scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
|
48
|
-
$scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
|
49
|
-
$scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
|
50
25
|
$scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;
|
51
26
|
|
52
27
|
$scope.packageActionFormValues = {
|
@@ -74,46 +49,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostsBulkPackagesModa
|
|
74
49
|
};
|
75
50
|
|
76
51
|
$scope.performContentAction = function () {
|
77
|
-
|
78
|
-
$scope.performViaRemoteExecution();
|
79
|
-
} else {
|
80
|
-
$scope.performViaKatelloAgent();
|
81
|
-
}
|
82
|
-
};
|
83
|
-
|
84
|
-
$scope.performViaKatelloAgent = function (action, actionInput) {
|
85
|
-
var success, error, params;
|
86
|
-
|
87
|
-
if (action) {
|
88
|
-
$scope.content.action = action;
|
89
|
-
}
|
90
|
-
|
91
|
-
if (actionInput) {
|
92
|
-
$scope.content.actionInput = actionInput;
|
93
|
-
}
|
94
|
-
|
95
|
-
$scope.content.confirm = false;
|
96
|
-
|
97
|
-
success = function () {
|
98
|
-
Notification.setSuccessMessage(successMessage($scope.content.action));
|
99
|
-
};
|
100
|
-
|
101
|
-
error = function (response) {
|
102
|
-
angular.forEach(response.data.errors, function (responseError) {
|
103
|
-
Notification.setErrorMessage(responseError);
|
104
|
-
});
|
105
|
-
};
|
106
|
-
|
107
|
-
params = installParams();
|
108
|
-
if ($scope.content.action === "install") {
|
109
|
-
HostBulkAction.installContent(params, success, error);
|
110
|
-
} else if ($scope.content.action === "update") {
|
111
|
-
HostBulkAction.updateContent(params, success, error);
|
112
|
-
} else if ($scope.content.action === "remove") {
|
113
|
-
HostBulkAction.removeContent(params, success, error);
|
114
|
-
} else if ($scope.content.action === "update all") {
|
115
|
-
HostBulkAction.updateContent(params, success, error);
|
116
|
-
}
|
52
|
+
$scope.performViaRemoteExecution();
|
117
53
|
};
|
118
54
|
|
119
55
|
$scope.performViaRemoteExecution = function(action, customize) {
|
@@ -27,11 +27,10 @@
|
|
27
27
|
</div>
|
28
28
|
</div>
|
29
29
|
|
30
|
-
<div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
|
31
30
|
<div bst-feature-flag="remote_actions">
|
32
31
|
<p bst-alert="warning" ng-hide="hostToolingEnabled">
|
33
32
|
<span translate>
|
34
|
-
Performing host package actions is disabled because Katello is not configured for Remote Execution
|
33
|
+
Performing host package actions is disabled because Katello is not configured for Remote Execution.
|
35
34
|
</span>
|
36
35
|
</p>
|
37
36
|
</div>
|
@@ -58,7 +57,6 @@
|
|
58
57
|
</button>
|
59
58
|
|
60
59
|
<ul uib-dropdown-menu class="dropdown-menu-right" role="menu" aria-labelledby="use-remote-execution">
|
61
|
-
<li ng-show="katelloAgentPresent" role="presentation"><a ng-click="installErrataViaKatelloAgent()" role="menuitem" translate>via Katello agent</a></li>
|
62
60
|
<li role="presentation"><a ng-click="installErrataViaRemoteExecution(false)" role="menuitem" translate>via remote execution</a></li>
|
63
61
|
<li role="presentation"><a ng-click="installErrataViaRemoteExecution(true)" role="menuitem" translate>via remote execution - customize first</a></li>
|
64
62
|
</ul>
|
@@ -8,11 +8,10 @@
|
|
8
8
|
</div>
|
9
9
|
</div>
|
10
10
|
|
11
|
-
<div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
|
12
11
|
<div bst-feature-flag="remote_actions">
|
13
12
|
<p bst-alert="warning" ng-hide="hostToolingEnabled">
|
14
13
|
<span translate>
|
15
|
-
Performing host package actions is disabled because Katello is not configured for Remote Execution
|
14
|
+
Performing host package actions is disabled because Katello is not configured for Remote Execution.
|
16
15
|
</span>
|
17
16
|
</p>
|
18
17
|
<p bst-alert="warning">
|
@@ -38,7 +37,6 @@
|
|
38
37
|
<span class="caret"></span>
|
39
38
|
</button>
|
40
39
|
<ul uib-dropdown-menu role="menu" aria-labelledby="install-use-remote-execution">
|
41
|
-
<li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent('update all', content)" role="menuitem" tabindex="-1" href="#" translate>via Katello Agent</a></li>
|
42
40
|
<li role="presentation"><a ng-click="performViaRemoteExecution('update all', false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
|
43
41
|
<li role="presentation"><a ng-click="performViaRemoteExecution('update all', true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
|
44
42
|
</ul>
|
@@ -99,7 +97,6 @@
|
|
99
97
|
<span class="caret"></span>
|
100
98
|
</button>
|
101
99
|
<ul uib-dropdown-menu role="menu" aria-labelledby="install-use-remote-execution">
|
102
|
-
<li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent('install', content)" role="menuitem" tabindex="-1" href="#" translate>via Katello Agent</a></li>
|
103
100
|
<li role="presentation"><a ng-click="performViaRemoteExecution('install', false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
|
104
101
|
<li role="presentation"><a ng-click="performViaRemoteExecution('install', true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
|
105
102
|
</ul>
|
@@ -121,7 +118,6 @@
|
|
121
118
|
<span class="caret"></span>
|
122
119
|
</button>
|
123
120
|
<ul uib-dropdown-menu role="menu" aria-labelledby="update-use-remote-execution">
|
124
|
-
<li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent('update', content)" role="menuitem" tabindex="-1" href="#" translate>via Katello Agent</a></li>
|
125
121
|
<li role="presentation"><a ng-click="performViaRemoteExecution('update', false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
|
126
122
|
<li role="presentation"><a ng-click="performViaRemoteExecution('update', true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
|
127
123
|
</ul>
|
@@ -142,7 +138,6 @@
|
|
142
138
|
<span class="caret"></span>
|
143
139
|
</button>
|
144
140
|
<ul uib-dropdown-menu role="menu" aria-labelledby="remove-use-remote-execution">
|
145
|
-
<li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent('remove', content)" role="menuitem" tabindex="-1" href="#" translate>via Katello Agent</a></li>
|
146
141
|
<li role="presentation"><a ng-click="performViaRemoteExecution('remove', false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
|
147
142
|
<li role="presentation"><a ng-click="performViaRemoteExecution('remove', true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
|
148
143
|
</ul>
|
@@ -30,7 +30,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostDebsApplicableCon
|
|
30
30
|
return $scope.getSelectedDebs().join(' ');
|
31
31
|
};
|
32
32
|
|
33
|
-
$scope.
|
33
|
+
$scope.performRexUpdate = function () {
|
34
34
|
$scope.performViaRemoteExecution('packageUpdate', $scope.getRemoteExecutionCommand(), false);
|
35
35
|
};
|
36
36
|
|
@@ -42,8 +42,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostErrataController'
|
|
42
42
|
};
|
43
43
|
|
44
44
|
$scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
|
45
|
-
$scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
|
46
|
-
$scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
|
47
45
|
$scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;
|
48
46
|
$scope.errataActionFormValues = {
|
49
47
|
authenticityToken: $window.AUTH_TOKEN.replace(/"/g, '')
|
@@ -124,15 +122,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostErrataController'
|
|
124
122
|
return $scope.nutupane.getAllSelectedResults('errata_id');
|
125
123
|
};
|
126
124
|
|
127
|
-
$scope.performViaKatelloAgent = function () {
|
128
|
-
var errataIds = $scope.selectedErrataIds();
|
129
|
-
HostErratum.apply({id: $scope.host.id, 'bulk_errata_ids': angular.toJson(errataIds)},
|
130
|
-
function (task) {
|
131
|
-
$scope.table.selectAll(false);
|
132
|
-
$scope.transitionTo('content-host.tasks.details', {taskId: task.id});
|
133
|
-
});
|
134
|
-
};
|
135
|
-
|
136
125
|
$scope.performViaRemoteExecution = function(customize) {
|
137
126
|
var errataIds = $scope.selectedErrataIds();
|
138
127
|
|
@@ -148,11 +137,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostErrataController'
|
|
148
137
|
};
|
149
138
|
|
150
139
|
$scope.applySelected = function () {
|
151
|
-
|
152
|
-
$scope.performViaRemoteExecution(false);
|
153
|
-
} else {
|
154
|
-
$scope.performViaKatelloAgent();
|
155
|
-
}
|
140
|
+
$scope.performViaRemoteExecution(false);
|
156
141
|
};
|
157
142
|
|
158
143
|
$scope.nutupane.enableSelectAllResults();
|
@@ -29,7 +29,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostModuleStreamsCont
|
|
29
29
|
$scope.table = $scope.moduleStreamsNutupane.table;
|
30
30
|
|
31
31
|
$scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
|
32
|
-
$scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
|
33
32
|
$scope.moduleStreamActionFormValues = {
|
34
33
|
authenticityToken: $window.AUTH_TOKEN.replace(/"/g, ''),
|
35
34
|
remoteAction: 'module_stream_action'
|
@@ -12,7 +12,6 @@
|
|
12
12
|
angular.module('Bastion.content-hosts').controller('ContentHostPackagesActionsController',
|
13
13
|
['$scope', '$location', 'BastionConfig', function ($scope, $location, BastionConfig) {
|
14
14
|
var packageName = $location.search().package_name;
|
15
|
-
$scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
|
16
15
|
$scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
|
17
16
|
$scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;
|
18
17
|
|
@@ -19,7 +19,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesApplicabl
|
|
19
19
|
function ($scope, $timeout, $window, Package, HostPackage, translate, Nutupane, BastionConfig) {
|
20
20
|
var packagesNutupane, openEventInfo;
|
21
21
|
|
22
|
-
$scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
|
23
22
|
$scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
|
24
23
|
$scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;
|
25
24
|
|
@@ -35,16 +34,8 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesApplicabl
|
|
35
34
|
return $scope.getSelectedPackages().join(' ');
|
36
35
|
};
|
37
36
|
|
38
|
-
$scope.
|
39
|
-
|
40
|
-
};
|
41
|
-
|
42
|
-
$scope.performDefaultUpdateAction = function () {
|
43
|
-
if ($scope.remoteExecutionByDefault) {
|
44
|
-
$scope.performViaRemoteExecution('packageUpdate', $scope.getRemoteExecutionCommand(), false);
|
45
|
-
} else {
|
46
|
-
$scope.performViaKatelloAgent('packageUpdate', $scope.getKatelloAgentCommand());
|
47
|
-
}
|
37
|
+
$scope.performRexUpdate = function () {
|
38
|
+
$scope.performViaRemoteExecution('packageUpdate', $scope.getRemoteExecutionCommand(), false);
|
48
39
|
};
|
49
40
|
|
50
41
|
packagesNutupane = new Nutupane(Package, {'host_id': $scope.$stateParams.hostId, 'packages_restrict_upgradable': true});
|
@@ -18,8 +18,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesInstalled
|
|
18
18
|
function ($scope, $timeout, $window, HostPackage, translate, Nutupane, BastionConfig) {
|
19
19
|
var packagesNutupane;
|
20
20
|
$scope.controllerName = 'katello_host_installed_packages';
|
21
|
-
|
22
|
-
$scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
|
23
21
|
$scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
|
24
22
|
$scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;
|
25
23
|
|
@@ -16,8 +16,6 @@
|
|
16
16
|
angular.module('Bastion.content-hosts').controller('ContentHostPackagesController',
|
17
17
|
['$scope', '$timeout', '$window', 'HostPackage', 'translate', 'Nutupane', 'BastionConfig', 'Notification',
|
18
18
|
function ($scope, $timeout, $window, HostPackage, translate, Nutupane, BastionConfig, Notification) {
|
19
|
-
var packageActions;
|
20
|
-
|
21
19
|
$scope.openEventInfo = function (event) {
|
22
20
|
// when the event has label defined, it means it comes
|
23
21
|
// from foreman-tasks
|
@@ -38,7 +36,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesControlle
|
|
38
36
|
|
39
37
|
$scope.working = false;
|
40
38
|
$scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
|
41
|
-
$scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
|
42
39
|
$scope.packageActionFormValues = {
|
43
40
|
authenticityToken: $window.AUTH_TOKEN.replace(/"/g, '')
|
44
41
|
};
|
@@ -49,22 +46,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesControlle
|
|
49
46
|
};
|
50
47
|
|
51
48
|
$scope.performPackageAction = function (actionType, term) {
|
52
|
-
|
53
|
-
$scope.performViaRemoteExecution(actionType, term, false);
|
54
|
-
} else {
|
55
|
-
$scope.performViaKatelloAgent(actionType, term);
|
56
|
-
}
|
57
|
-
};
|
58
|
-
|
59
|
-
$scope.performViaKatelloAgent = function (actionType, term) {
|
60
|
-
var terms = [];
|
61
|
-
if (term === '') {
|
62
|
-
packageActions.updateAll();
|
63
|
-
} else {
|
64
|
-
terms = term.split(/ *, */);
|
65
|
-
packageActions[actionType](terms);
|
66
|
-
}
|
67
|
-
$scope.working = true;
|
49
|
+
$scope.performViaRemoteExecution(actionType, term, false);
|
68
50
|
};
|
69
51
|
|
70
52
|
$scope.performViaRemoteExecution = function(actionType, term, customize) {
|
@@ -80,25 +62,5 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesControlle
|
|
80
62
|
}, 0);
|
81
63
|
};
|
82
64
|
|
83
|
-
packageActions = {
|
84
|
-
updateAll: function () {
|
85
|
-
HostPackage.updateAll({id: $scope.host.id}, $scope.openEventInfo, $scope.errorHandler);
|
86
|
-
},
|
87
|
-
packageInstall: function (termList) {
|
88
|
-
HostPackage.install({id: $scope.host.id, packages: termList}, $scope.openEventInfo, $scope.errorHandler);
|
89
|
-
},
|
90
|
-
packageUpdate: function (termList) {
|
91
|
-
HostPackage.update({id: $scope.host.id, packages: termList}, $scope.openEventInfo, $scope.errorHandler);
|
92
|
-
},
|
93
|
-
packageRemove: function (termList) {
|
94
|
-
HostPackage.remove({id: $scope.host.id, packages: termList}, $scope.openEventInfo, $scope.errorHandler);
|
95
|
-
},
|
96
|
-
groupInstall: function (termList) {
|
97
|
-
HostPackage.install({id: $scope.host.id, groups: termList}, $scope.openEventInfo, $scope.errorHandler);
|
98
|
-
},
|
99
|
-
groupRemove: function (termList) {
|
100
|
-
HostPackage.remove({id: $scope.host.id, groups: termList}, $scope.openEventInfo, $scope.errorHandler);
|
101
|
-
}
|
102
|
-
};
|
103
65
|
}
|
104
66
|
]);
|
@@ -14,11 +14,11 @@
|
|
14
14
|
|
15
15
|
<div data-block="list-actions" bst-feature-flag="remote_actions">
|
16
16
|
<div ng-hide="denied('edit_hosts', host)" class="nutupane-actions fr">
|
17
|
-
<form ng-submit="
|
17
|
+
<form ng-submit="performRexUpdate()" role="form">
|
18
18
|
|
19
19
|
<span uib-dropdown class="btn-group">
|
20
20
|
<button class="btn btn-primary" type="button"
|
21
|
-
ng-click="
|
21
|
+
ng-click="performRexUpdate()"
|
22
22
|
ng-hide="denied('edit_hosts', host)"
|
23
23
|
ng-disabled="working || table.numSelected === 0"
|
24
24
|
translate>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<div bst-feature-flag="remote_actions">
|
25
25
|
<p bst-alert="warning" ng-hide="hostToolingEnabled">
|
26
26
|
<span translate>
|
27
|
-
Performing host package actions is disabled because Katello is not configured for
|
27
|
+
Performing host package actions is disabled because Katello is not configured for remote execution.
|
28
28
|
</span>
|
29
29
|
</p>
|
30
30
|
</div>
|
@@ -78,7 +78,6 @@
|
|
78
78
|
<span class="caret"></span>
|
79
79
|
</button>
|
80
80
|
<ul uib-dropdown-menu role="menu" aria-labelledby="use-remote-execution">
|
81
|
-
<li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent()" role="menuitem" tabindex="-1" href="#" translate>via Katello agent</a></li>
|
82
81
|
<li role="presentation"><a ng-click="performViaRemoteExecution(false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
|
83
82
|
<li role="presentation"><a ng-click="performViaRemoteExecution(true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
|
84
83
|
</ul>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<h4 translate>Package Actions</h4>
|
5
5
|
<p bst-alert="warning" ng-hide="hostToolingEnabled">
|
6
6
|
<span translate>
|
7
|
-
Performing host package actions is disabled because Katello is not configured for
|
7
|
+
Performing host package actions is disabled because Katello is not configured for remote execution.
|
8
8
|
</span>
|
9
9
|
</p>
|
10
10
|
<p bst-alert="warning">
|
@@ -48,7 +48,6 @@
|
|
48
48
|
<span class="caret"></span>
|
49
49
|
</button>
|
50
50
|
<ul uib-dropdown-menu role="menu" aria-labelledby="use-remote-execution">
|
51
|
-
<li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent(packageAction.actionType, packageAction.term)" role="menuitem" tabindex="-1" href="#" translate>via Katello agent</a></li>
|
52
51
|
<li role="presentation"><a ng-click="performViaRemoteExecution(packageAction.actionType, packageAction.term, false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
|
53
52
|
<li role="presentation"><a ng-click="performViaRemoteExecution(packageAction.actionType, packageAction.term, true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
|
54
53
|
</ul>
|
@@ -59,7 +58,7 @@
|
|
59
58
|
<div class="form-group">
|
60
59
|
<button class="btn btn-default" type="button"
|
61
60
|
translate
|
62
|
-
ng-disabled="working ||
|
61
|
+
ng-disabled="working || !remoteExecutionPresent"
|
63
62
|
ng-click="updateAll()">
|
64
63
|
Update All Packages
|
65
64
|
</button>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<section ng-hide="denied('edit_hosts', host)" bst-feature-flag="remote_actions">
|
6
6
|
<p bst-alert="warning" ng-hide="hostToolingEnabled">
|
7
7
|
<span translate>
|
8
|
-
Performing host package actions is disabled because Katello is not configured for
|
8
|
+
Performing host package actions is disabled because Katello is not configured for remote execution.
|
9
9
|
</span>
|
10
10
|
</p>
|
11
11
|
</section>
|
@@ -22,11 +22,11 @@
|
|
22
22
|
|
23
23
|
<div data-block="list-actions" bst-feature-flag="remote_actions">
|
24
24
|
<div ng-hide="denied('edit_hosts', host)" class="nutupane-actions fr">
|
25
|
-
<form ng-submit="
|
25
|
+
<form ng-submit="performRexUpdate()" role="form">
|
26
26
|
|
27
27
|
<span uib-dropdown class="btn-group">
|
28
28
|
<button class="btn btn-primary" type="button"
|
29
|
-
ng-click="
|
29
|
+
ng-click="performRexUpdate()"
|
30
30
|
ng-hide="denied('edit_hosts', host)"
|
31
31
|
ng-disabled="working || table.numSelected === 0 || !hostToolingEnabled"
|
32
32
|
translate>
|
@@ -39,7 +39,6 @@
|
|
39
39
|
<span class="caret"></span>
|
40
40
|
</button>
|
41
41
|
<ul uib-dropdown-menu role="menu" aria-labelledby="use-remote-execution">
|
42
|
-
<li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent('packageUpdate', getKatelloAgentCommand())" role="menuitem" tabindex="-1" href="#" translate>via Katello agent</a></li>
|
43
42
|
<li role="presentation"><a ng-click="performViaRemoteExecution('packageUpdate', getRemoteExecutionCommand(), false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
|
44
43
|
<li role="presentation"><a ng-click="performViaRemoteExecution('packageUpdate', getRemoteExecutionCommand(), true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
|
45
44
|
</ul>
|
@@ -48,7 +47,7 @@
|
|
48
47
|
<button class="btn btn-default"
|
49
48
|
type="button"
|
50
49
|
translate
|
51
|
-
ng-disabled="working ||
|
50
|
+
ng-disabled="working || !remoteExecutionPresent"
|
52
51
|
ng-click="updateAll()">
|
53
52
|
Update All Packages
|
54
53
|
</button>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<section ng-hide="denied('edit_hosts', host)" bst-feature-flag="remote_actions">
|
6
6
|
<p bst-alert="warning" ng-hide="hostToolingEnabled">
|
7
7
|
<span translate>
|
8
|
-
Performing host package actions is disabled because Katello is not configured for
|
8
|
+
Performing host package actions is disabled because Katello is not configured for remote execution.
|
9
9
|
</span>
|
10
10
|
</p>
|
11
11
|
</section>
|
@@ -15,7 +15,6 @@
|
|
15
15
|
* @requires ContentHostsHelper
|
16
16
|
* @requires simpleContentAccessEnabled
|
17
17
|
* @requires newHostDetailsUI
|
18
|
-
* @requires BastionConfig
|
19
18
|
*
|
20
19
|
* @description
|
21
20
|
* Provides the functionality specific to Content Hosts for use with the Nutupane UI pattern.
|
@@ -23,8 +22,8 @@
|
|
23
22
|
* within the table.
|
24
23
|
*/
|
25
24
|
angular.module('Bastion.content-hosts').controller('ContentHostsController',
|
26
|
-
['$scope', '$q', '$state', '$location', '$uibModal', 'translate', 'Nutupane', 'Host', 'HostBulkAction', 'Notification', 'CurrentOrganization', 'ContentHostsHelper', 'ContentHostsModalHelper', '$httpParamSerializer', 'simpleContentAccessEnabled', 'newHostDetailsUI',
|
27
|
-
function ($scope, $q, $state, $location, $uibModal, translate, Nutupane, Host, HostBulkAction, Notification, CurrentOrganization, ContentHostsHelper, ContentHostsModalHelper, $httpParamSerializer, simpleContentAccessEnabled, newHostDetailsUI
|
25
|
+
['$scope', '$q', '$state', '$location', '$uibModal', 'translate', 'Nutupane', 'Host', 'HostBulkAction', 'Notification', 'CurrentOrganization', 'ContentHostsHelper', 'ContentHostsModalHelper', '$httpParamSerializer', 'simpleContentAccessEnabled', 'newHostDetailsUI',
|
26
|
+
function ($scope, $q, $state, $location, $uibModal, translate, Nutupane, Host, HostBulkAction, Notification, CurrentOrganization, ContentHostsHelper, ContentHostsModalHelper, $httpParamSerializer, simpleContentAccessEnabled, newHostDetailsUI) {
|
28
27
|
var nutupane, params, query;
|
29
28
|
|
30
29
|
if ($location.search().search) {
|
@@ -52,7 +51,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostsController',
|
|
52
51
|
$scope.nutupane = nutupane;
|
53
52
|
$scope.simpleContentAccessEnabled = simpleContentAccessEnabled;
|
54
53
|
$scope.newHostDetailsUI = newHostDetailsUI;
|
55
|
-
$scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
|
56
54
|
|
57
55
|
// @TODO begin hack necessary because of foreman API bug http://projects.theforeman.org/issues/13877
|
58
56
|
$scope.table.sortBy = function (column) {
|
@@ -14,14 +14,13 @@
|
|
14
14
|
* @requires deleteHostOnUnregister
|
15
15
|
* @requires ContentHostsHelper
|
16
16
|
* @requires simpleContentAccessEnabled
|
17
|
-
* @requires BastionConfig
|
18
17
|
*
|
19
18
|
* @description
|
20
19
|
* Provides the functionality for the content host details action pane.
|
21
20
|
*/
|
22
21
|
angular.module('Bastion.content-hosts').controller('ContentHostDetailsController',
|
23
|
-
['$scope', '$state', '$q', '$location', 'translate', 'Host', 'HostSubscription', 'Organization', 'CurrentOrganization', 'Notification', 'MenuExpander', 'ApiErrorHandler', 'deleteHostOnUnregister', 'ContentHostsHelper', 'simpleContentAccessEnabled',
|
24
|
-
function ($scope, $state, $q, $location, translate, Host, HostSubscription, Organization, CurrentOrganization, Notification, MenuExpander, ApiErrorHandler, deleteHostOnUnregister, ContentHostsHelper, simpleContentAccessEnabled
|
22
|
+
['$scope', '$state', '$q', '$location', 'translate', 'Host', 'HostSubscription', 'Organization', 'CurrentOrganization', 'Notification', 'MenuExpander', 'ApiErrorHandler', 'deleteHostOnUnregister', 'ContentHostsHelper', 'simpleContentAccessEnabled',
|
23
|
+
function ($scope, $state, $q, $location, translate, Host, HostSubscription, Organization, CurrentOrganization, Notification, MenuExpander, ApiErrorHandler, deleteHostOnUnregister, ContentHostsHelper, simpleContentAccessEnabled) {
|
25
24
|
$scope.menuExpander = MenuExpander;
|
26
25
|
|
27
26
|
$scope.getHostStatusIcon = ContentHostsHelper.getHostStatusIcon;
|
@@ -37,7 +36,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostDetailsController
|
|
37
36
|
|
38
37
|
$scope.purposeAddonsCount = 0;
|
39
38
|
$scope.simpleContentAccessEnabled = simpleContentAccessEnabled;
|
40
|
-
$scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
|
41
39
|
|
42
40
|
$scope.panel = {
|
43
41
|
error: false,
|
@@ -54,7 +54,6 @@
|
|
54
54
|
|
55
55
|
<nav data-block="navigation">
|
56
56
|
<div content-access-mode-banner></div>
|
57
|
-
<div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
|
58
57
|
<ul class="nav nav-tabs">
|
59
58
|
<li ng-class="{active: isState('content-host.info')}">
|
60
59
|
<a translate
|
@@ -51,20 +51,6 @@
|
|
51
51
|
</button>
|
52
52
|
</dd>
|
53
53
|
|
54
|
-
<dt bst-feature-flag="remote_actions" ng-show="katelloAgentPresent">
|
55
|
-
<span translate>Katello Agent</span>
|
56
|
-
</dt>
|
57
|
-
<dd bst-feature-flag="remote_actions" ng-show="katelloAgentPresent">
|
58
|
-
<span ng-show="host.content_facet_attributes.katello_agent_installed">
|
59
|
-
<span class="{{ getHostStatusIcon(0) }}"></span>
|
60
|
-
<span translate>Installed</span>
|
61
|
-
</span>
|
62
|
-
<span ng-hide="host.content_facet_attributes.katello_agent_installed">
|
63
|
-
<span class="{{ getHostStatusIcon(1) }}"></span>
|
64
|
-
<span translate>Not installed</span>
|
65
|
-
</span>
|
66
|
-
</dd>
|
67
|
-
|
68
54
|
<dt ng-show="host.subscription_facet_attributes.virtual_guests" translate>Virtual Guests</dt>
|
69
55
|
<dd ng-show="host.subscription_facet_attributes.virtual_guests">
|
70
56
|
<a ng-href="/content_hosts?search={{virtualGuestIds(host)}}"
|
@@ -66,10 +66,6 @@
|
|
66
66
|
</span>
|
67
67
|
</div>
|
68
68
|
|
69
|
-
<span data-block="messages">
|
70
|
-
<div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
|
71
|
-
</span>
|
72
|
-
|
73
69
|
<span data-block="no-rows-message" translate>
|
74
70
|
You currently don't have any Content Hosts, you can register one by clicking the button on the right and following the instructions.
|
75
71
|
</span>
|
@@ -43,7 +43,6 @@ angular.module('Bastion.errata').controller('ApplyErrataController',
|
|
43
43
|
$scope.applyingErrata = false;
|
44
44
|
|
45
45
|
$scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
|
46
|
-
$scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
|
47
46
|
$scope.errataActionFormValues = {
|
48
47
|
authenticityToken: $window.AUTH_TOKEN.replace(/"/g, ''),
|
49
48
|
errata: IncrementalUpdate.getErrataIds().join(','),
|
@@ -144,7 +143,7 @@ angular.module('Bastion.errata').controller('ApplyErrataController',
|
|
144
143
|
$scope.confirmApply = function() {
|
145
144
|
$scope.applyingErrata = true;
|
146
145
|
if ($scope.updates.length === 0) {
|
147
|
-
if ($scope.remoteExecutionPresent
|
146
|
+
if ($scope.remoteExecutionPresent) {
|
148
147
|
angular.element('#errataActionForm').submit();
|
149
148
|
} else {
|
150
149
|
applyErrata();
|
@@ -11,7 +11,8 @@
|
|
11
11
|
var contentViewsNutupane,
|
12
12
|
params = {
|
13
13
|
'file_id': $scope.$stateParams.fileId,
|
14
|
-
'organization_id': CurrentOrganization
|
14
|
+
'organization_id': CurrentOrganization,
|
15
|
+
'nondefault': true
|
15
16
|
};
|
16
17
|
|
17
18
|
contentViewsNutupane = new Nutupane(ContentViewVersion, params);
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<tbody>
|
25
25
|
<tr bst-table-row ng-repeat="version in table.rows">
|
26
26
|
<td bst-table-cell>
|
27
|
-
<a
|
27
|
+
<a href="/content_views/{{version.content_view.id}}">
|
28
28
|
{{ version.content_view.name }}
|
29
29
|
</a>
|
30
30
|
</td>
|