foreman_maintain 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/definitions/checks/pulpcore/group_ownership_check.rb +2 -2
- data/definitions/procedures/puppet/remove_puppet.rb +11 -3
- data/definitions/procedures/repositories/disable.rb +1 -1
- data/definitions/procedures/repositories/enable.rb +1 -1
- data/lib/foreman_maintain/concerns/downstream.rb +1 -1
- data/lib/foreman_maintain/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65892e9e2d93db0e9b4793b00743b75474ce7900cb425abe85e006cf7b6190ad
|
4
|
+
data.tar.gz: ee0ddd71d2dbb04805e080c60bff8a4b943122d6dd0e4c96b14401cf731fe7bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df314cd4b969b7e9a71dfc3255ee6bd54ce598a42b26596ec499b866385b0838f8c455a4adc5e74acafbfd7cc733c63f072ada1d2d2af5b5473f8ba329ab77a2
|
7
|
+
data.tar.gz: 41f7380430eb839081e4fa70610b0ef87b733d08acfaa3573a8a4750d2e4880e650a91e415c4a04e4be9c28e828dd4e2c9d9245839a4891c50690247c62697a5
|
@@ -2,13 +2,13 @@ module Checks
|
|
2
2
|
module Pulpcore
|
3
3
|
class GroupOwnershipCheck < ForemanMaintain::Check
|
4
4
|
metadata do
|
5
|
-
description 'Check the group owner of /var/lib/pulp directory'
|
5
|
+
description 'Check the group owner of /var/lib/pulp/content directory'
|
6
6
|
label :group_ownership_check_of_pulp_content
|
7
7
|
manual_detection
|
8
8
|
end
|
9
9
|
|
10
10
|
def run
|
11
|
-
group_id = File.stat('/var/lib/pulp/').gid
|
11
|
+
group_id = File.stat('/var/lib/pulp/content/').gid
|
12
12
|
if Etc.getgrgid(group_id).name != 'pulp'
|
13
13
|
fail! "Please run 'foreman-maintain prep-6.10-upgrade' prior to upgrading."
|
14
14
|
end
|
@@ -10,15 +10,23 @@ module Procedures::Puppet
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def run
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
stop_applicable_services
|
14
|
+
if server_with_puppet? && feature(:foreman_server)
|
15
|
+
execute!('foreman-rake db:migrate VERSION=0 SCOPE=foreman_puppet')
|
16
|
+
end
|
16
17
|
feature(:installer).run(installer_arguments_disabling_puppet.join(' '), :interactive => false)
|
17
18
|
packages_action(:remove, packages_to_remove, :assumeyes => true)
|
18
19
|
end
|
19
20
|
|
20
21
|
private
|
21
22
|
|
23
|
+
def stop_applicable_services
|
24
|
+
services = []
|
25
|
+
services = feature(:foreman_server).services if feature(:foreman_server)
|
26
|
+
services << feature(:dynflow_sidekiq).services if feature(:dynflow_sidekiq)
|
27
|
+
Procedures::Service::Stop.new(:only => services) unless services.empty?
|
28
|
+
end
|
29
|
+
|
22
30
|
def server_with_puppet?
|
23
31
|
find_package(foreman_plugin_name('foreman_puppet'))
|
24
32
|
end
|
@@ -30,7 +30,7 @@ module ForemanMaintain
|
|
30
30
|
execute!(%(subscription-manager register #{org_options}\
|
31
31
|
--activationkey #{shellescape(activation_key)} --force))
|
32
32
|
else
|
33
|
-
repository_manager.rhsm_disable_repos('*')
|
33
|
+
repository_manager.rhsm_disable_repos(['*'])
|
34
34
|
repository_manager.rhsm_enable_repos(rh_repos(version))
|
35
35
|
end
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_maintain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Nečas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|