foreman_scc_manager 1.8.16 → 1.8.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96a0d125c5dab16617adfbfbabb28166111f8d0f85c5cbac77836e2f2d6a6791
|
4
|
+
data.tar.gz: 2b3ea8baa9f5f09427aee36ce034f6d4e0c385c395b148311ce1605221d9843d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 193d57d91538c74f8e29ee1d7fce65153c46a286b586a281674cbfcde51e833a485c8c7bab8e4342ab09451bcc044dceb09be42e489f3ed3ef4a91217b2b5585
|
7
|
+
data.tar.gz: 76f4ff19c508a4f61d5153dcf80f1298c9edb140c0e59e05f702218d097b4d62fe9f7f945dd797bbe0c4ad495db2a39b0807cd7006a7d20f2f8994616feb9da7
|
@@ -86,7 +86,11 @@ module Actions
|
|
86
86
|
:arch => input[:arch],
|
87
87
|
:download_policy => ::Runcible::Models::YumImporter::DOWNLOAD_IMMEDIATE }
|
88
88
|
repository = product.add_repo(repo_param)
|
89
|
-
repository.mirror_on_sync
|
89
|
+
if repository.has_attribute?('mirror_on_sync')
|
90
|
+
repository.mirror_on_sync = true
|
91
|
+
else
|
92
|
+
repository.mirroring_policy = ::Katello::RootRepository::MIRRORING_POLICY_CONTENT
|
93
|
+
end
|
90
94
|
repository.verify_ssl_on_sync = true
|
91
95
|
trigger(::Actions::Katello::Repository::CreateRoot, repository).tap do
|
92
96
|
output[:katello_root_repository_id] = repository.id
|
data/app/models/scc_product.rb
CHANGED
@@ -58,7 +58,11 @@ class SccProduct < ApplicationRecord
|
|
58
58
|
gpg_key = new_product.gpg_key
|
59
59
|
new_repo = new_product.add_repo(label, uniq_repo_name, repo.full_url, 'yum', unprotected, gpg_key)
|
60
60
|
new_repo.arch = arch || 'noarch'
|
61
|
-
new_repo.mirror_on_sync
|
61
|
+
if new_repo.has_attribute?('mirror_on_sync')
|
62
|
+
new_repo.mirror_on_sync = true
|
63
|
+
else
|
64
|
+
new_repo.mirroring_policy = ::Katello::RootRepository::MIRRORING_POLICY_CONTENT
|
65
|
+
end
|
62
66
|
new_repo.verify_ssl_on_sync = true
|
63
67
|
ForemanTasks.sync_task(::Actions::Katello::Repository::Create, new_repo, false, false)
|
64
68
|
end
|
@@ -25,7 +25,7 @@
|
|
25
25
|
display_link_if_authorized(_("Sync"), hash_for_sync_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer),
|
26
26
|
:method => :put),
|
27
27
|
display_delete_if_authorized(hash_for_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer, :permission => 'delete_scc_accounts'),
|
28
|
-
:data => { :confirm => _("
|
28
|
+
:data => { :confirm => _("WARNING: If you want to switch SCC accounts and retain the synchronized content, DO NOT delete your old SCC account, even if it is expired. Please change the login and password of your SCC account, instead.\n\nIf you delete your old SCC account, you CANNOT reuse existing repositories, products, content views, and composite content views.\n\nReally delete SCC account %s?") % scc_account.to_s })
|
29
29
|
|
30
30
|
) %>
|
31
31
|
</td>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_scc_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ATIX AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|