foreman_maintain 1.2.7 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ccc920a2ad9478b2248e92981f894eedfdb8b2daf9f26ecb45fbdef68d8f11a
4
- data.tar.gz: b7a57772a0c219bdcd60ac45396643cd45c1d1b1edeaef7a55defffad14b5a71
3
+ metadata.gz: b4d4f7fe5a4a2f6a3a992a94e7fe674a00866dac9fa0f2f59fe30b5296c0a3a4
4
+ data.tar.gz: 56b9be2ae99686aefa13e2de26b9c72bcd4a3eb82697ef2ec7b099252a2ce352
5
5
  SHA512:
6
- metadata.gz: 802d12634cbf41e4c2703c35c3b2e5843cbc7bf0c2f705199e9304e856de8c4115c1b9e5cad659ac3e38eae6fa0f2cfc1baf46c86e1b1433be0801188e3a1ee5
7
- data.tar.gz: 79d2d5208fee0628b7fe6a1469b9c08a296a4ecb0ea9a9107f7f566e9b701055d1c09d21b898d4274b17ecc485af3d448564acdb873651ccbdad885f61b997b9
6
+ metadata.gz: 9dc4c82dcc0fef0ee09cc838af7afd1065c5171ea5b3400a33c58e6aece35e0964b359e8a57a9f058cb4ee82741edafc5d6da14e9d8e566a13455c44a524f9a6
7
+ data.tar.gz: 4dae3e89d6bdc190fa10dde17fce93147f6c6f31ba636bb87d919cf78dbfc253dd10096e45e78f606230709bac50963a7e6c4b006203dc6386331f8209c1b425
@@ -0,0 +1,10 @@
1
+ class Procedures::ForemanMaintainFeatures < ForemanMaintain::Procedure
2
+ metadata do
3
+ description 'List detected Foreman Maintain features'
4
+ end
5
+
6
+ def run
7
+ features = ForemanMaintain.available_features
8
+ output << features.map(&:inspect).join("\n")
9
+ end
10
+ end
@@ -4,7 +4,7 @@ module Procedures::Puppet
4
4
  description 'Remove Puppet feature'
5
5
  confine do
6
6
  feature(:puppet_server) &&
7
- (check_min_version('foreman', '3.0') || check_min_version('foreman-proxy', '3.0'))
7
+ (check_min_version('foreman', '3.6') || check_min_version('foreman-proxy', '3.6'))
8
8
  end
9
9
  advanced_run false
10
10
  end
@@ -42,7 +42,6 @@ module Procedures::Puppet
42
42
  options << '--foreman-proxy-puppet false'
43
43
  options << '--foreman-proxy-puppetca false'
44
44
  end
45
- options << '--foreman-proxy-content-puppet false' if answers.key?('foreman_proxy_content')
46
45
  options
47
46
  end
48
47
 
@@ -108,7 +108,7 @@ module ForemanMaintain::Scenarios
108
108
  end
109
109
 
110
110
  def compose
111
- pkgs_to_update = %w[rubygem-foreman_maintain]
111
+ pkgs_to_update = [ForemanMaintain.main_package_name]
112
112
  if feature(:instance).downstream
113
113
  pkgs_to_update << 'satellite-maintain'
114
114
  downstream_self_upgrade(pkgs_to_update)
@@ -30,7 +30,7 @@ module ForemanMaintain
30
30
  end
31
31
 
32
32
  def systemd_installed?
33
- File.exist?('/usr/bin/systemctl')
33
+ File.exist?('/run/systemd/system/')
34
34
  end
35
35
 
36
36
  def check_min_version(name, minimal_version)
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '1.2.7'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
@@ -205,7 +205,7 @@ module ForemanMaintain
205
205
  end
206
206
 
207
207
  def main_package_name
208
- 'rubygem-foreman_maintain'
208
+ el? ? 'rubygem-foreman_maintain' : 'ruby-foreman-maintain'
209
209
  end
210
210
  end
211
211
  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.2.7
4
+ version: 1.3.0
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: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp
@@ -269,6 +269,7 @@ files:
269
269
  - definitions/procedures/foreman/remove_duplicate_obsolete_roles.rb
270
270
  - definitions/procedures/foreman/remove_duplicate_permissions.rb
271
271
  - definitions/procedures/foreman_docker/remove_foreman_docker.rb
272
+ - definitions/procedures/foreman_maintain_features.rb
272
273
  - definitions/procedures/foreman_openscap/invalid_report_associations.rb
273
274
  - definitions/procedures/foreman_proxy/features.rb
274
275
  - definitions/procedures/foreman_tasks/delete.rb
@@ -499,7 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
499
500
  - !ruby/object:Gem::Version
500
501
  version: '0'
501
502
  requirements: []
502
- rubygems_version: 3.3.26
503
+ rubygems_version: 3.2.33
503
504
  signing_key:
504
505
  specification_version: 4
505
506
  summary: Foreman maintenance tool belt