katello 3.9.0.rc2 → 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/lib/actions/katello/repository/destroy.rb +4 -4
- data/db/migrate/20141209103005_disown_foreman_templates.rb +1 -6
- data/db/migrate/20180814202747_add_recurring_logic_to_sync_plan.rb +1 -0
- data/db/migrate/20180821144248_add_cron_logic_to_sync_plans.rb +1 -1
- data/lib/katello/plugin.rb +2 -0
- data/lib/katello/tasks/upgrade_check.rake +1 -1
- data/lib/katello/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '091b4e68cbaf3d4f59e7e68eadb6c7614dec995d'
|
4
|
+
data.tar.gz: d5f981cb609b26e25e4e3115578f499965ee506a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0efb1494294fad86bd7b712f297daf11a1ca22dda766436fa5c59fc1c4e71db9657ce20752f60874f9126d37bd2ba04f7c2be50be7ce2921afd55e09d01338a6
|
7
|
+
data.tar.gz: e0b07d723a3a90e0dff8e89e5ca56030d660b3428570acb9995ec4a00b80af84a53eeac9d1c1b39d0239b513517eaa2b3b16ffeb3ab0dda79f60acb46b99e08c
|
@@ -28,7 +28,7 @@ module Actions
|
|
28
28
|
if repository.redhat?
|
29
29
|
handle_redhat_content(repository)
|
30
30
|
else
|
31
|
-
handle_custom_content(repository
|
31
|
+
handle_custom_content(repository) unless skip_environment_update
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -42,10 +42,10 @@ module Actions
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
def handle_custom_content(
|
45
|
+
def handle_custom_content(repository)
|
46
46
|
#if this is the last instance of a custom repo, destroy the content
|
47
|
-
if root.repositories.
|
48
|
-
plan_action(Product::ContentDestroy, root)
|
47
|
+
if repository.root.repositories.where.not(id: repository.id).empty?
|
48
|
+
plan_action(::Actions::Katello::Product::ContentDestroy, repository.root)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -19,11 +19,6 @@ class DisownForemanTemplates < ActiveRecord::Migration[4.2]
|
|
19
19
|
|
20
20
|
def update_templates_attributes(attribute_hash)
|
21
21
|
templates = ["puppet.conf", "freeipa_register", "Kickstart default iPXE", "Kickstart default PXELinux", "PXELinux global default"]
|
22
|
-
|
23
|
-
templates.each do |template|
|
24
|
-
if (template = FakeConfigTemplate.find_by(:name => template))
|
25
|
-
template.update_attributes(attribute_hash)
|
26
|
-
end
|
27
|
-
end
|
22
|
+
FakeConfigTemplate.where(name: templates).update_all(attribute_hash)
|
28
23
|
end
|
29
24
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
class AddRecurringLogicToSyncPlan < ActiveRecord::Migration[5.1]
|
2
2
|
def change
|
3
3
|
add_column :katello_sync_plans, :foreman_tasks_recurring_logic_id, :integer
|
4
|
+
add_column :katello_sync_plans, :cron_expression, :string
|
4
5
|
add_foreign_key :katello_sync_plans, :foreman_tasks_recurring_logics, :name => "katello_sync_plan_foreman_tasks_recurring_logic_fk", :column => "foreman_tasks_recurring_logic_id"
|
5
6
|
Katello::SyncPlan.find_each do |sync_plan|
|
6
7
|
User.as_anonymous_admin do
|
data/lib/katello/plugin.rb
CHANGED
@@ -315,6 +315,8 @@ Foreman::Plugin.register :katello do
|
|
315
315
|
Katello::PermissionCreator.new(self).define
|
316
316
|
add_all_permissions_to_default_roles
|
317
317
|
|
318
|
+
add_permissions_to_default_roles 'System admin' => [:create_lifecycle_environments, :create_content_views]
|
319
|
+
|
318
320
|
role 'Register hosts', [
|
319
321
|
:view_hostgroups, :view_activation_keys, :view_hosts,
|
320
322
|
:create_hosts, :edit_hosts, :destroy_hosts,
|
@@ -11,7 +11,7 @@ namespace :katello do
|
|
11
11
|
puts "Checking upgradeability...\n\n"
|
12
12
|
|
13
13
|
# check for any running tasks
|
14
|
-
task_count = ::ForemanTasks::Task.active.where("label NOT IN (?)", [CP_LISTEN_ACTION, EVENT_QUEUE_ACTION]).count
|
14
|
+
task_count = ::ForemanTasks::Task.active.where("label NOT IN (?)", [CP_LISTEN_ACTION, EVENT_QUEUE_ACTION]).where("state != 'scheduled'").count
|
15
15
|
task_status = task_count > 0 ? fail : success
|
16
16
|
puts "Checking for running tasks..."
|
17
17
|
puts "[#{task_status}] - There are #{task_count} active tasks. "
|
data/lib/katello/version.rb
CHANGED
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.9.0
|
4
|
+
version: 3.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- N/A
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -2610,9 +2610,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2610
2610
|
version: '0'
|
2611
2611
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2612
2612
|
requirements:
|
2613
|
-
- - "
|
2613
|
+
- - ">="
|
2614
2614
|
- !ruby/object:Gem::Version
|
2615
|
-
version:
|
2615
|
+
version: '0'
|
2616
2616
|
requirements: []
|
2617
2617
|
rubyforge_project:
|
2618
2618
|
rubygems_version: 2.6.14.1
|