foreman_maintain 0.6.1 → 0.6.2

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: a4e65df7ebef0968a8e42c0d8bcc643b46dfb2855dd2d7c89124004370b63e15
4
- data.tar.gz: 6f18c7e5ed3415ecf1bfe1e75bc13bb437aab40a95d06493e531a5d500d99d95
3
+ metadata.gz: 2b80a6708b24b9107d23a2e88357ecd8dbaba11d3015eda0c07f2ffc34f47cc4
4
+ data.tar.gz: f0e5890c595b48d44f22eba1b1ac5872137669100d97465090cc12fccd7aa480
5
5
  SHA512:
6
- metadata.gz: c51b1f7d04a9df33f4c5b0e82c3df17f51162942eee4a4df61a2fe8930f8118d03b35c0f21de56a208662dee0b259e980a9552785d3f83bb6fd60f7422f5e943
7
- data.tar.gz: 81e2b0db0d04283cc4ec49b778dc7fdb783ef0b462f826230713fa77a2c6425f54f93283706f4c24886d9d0c4e195dc39f403b0707e83ff5a7df673788b89c54
6
+ metadata.gz: 8859ccb05729eb6588465e71504918744163899025eba90c2819bd19d0e979e0e15fe199df62def03d23e1445685104f385ced535dc0ee892077affc1a54c2ba
7
+ data.tar.gz: 16db194cc592c4dc2c0a9212ea569e361cbac8782da5bd9500a5d0c351dc55715667a941ea8ca8f4297e5886ebda1fcf2a06a7d9d4e18b992f2431434fe47b21
@@ -52,6 +52,13 @@ class Features::Katello < ForemanMaintain::Feature
52
52
  end
53
53
  # rubocop:enable Metrics/MethodLength
54
54
 
55
+ def config_files_exclude_for_online
56
+ [
57
+ '/var/lib/qpidd',
58
+ '/var/lib/candlepin/activemq-artemis'
59
+ ]
60
+ end
61
+
55
62
  private
56
63
 
57
64
  def installer_scenario_answers
@@ -17,6 +17,8 @@ module Procedures::Backup
17
17
  :array => true, :default => ['all']
18
18
  param :ignore_changed_files, 'Should packing tar ignore changed files',
19
19
  :flag => true, :default => false
20
+ param :online_backup, 'The config files are being prepared for an online backup',
21
+ :flag => true, :default => false
20
22
  end
21
23
 
22
24
  # rubocop:disable Metrics/MethodLength
@@ -55,6 +57,7 @@ module Procedures::Backup
55
57
 
56
58
  configs += feature.config_files
57
59
  exclude_configs += feature.config_files_to_exclude
60
+ exclude_configs += feature.config_files_exclude_for_online if @online_backup
58
61
  end
59
62
 
60
63
  if feature(:foreman_proxy)
@@ -200,7 +200,8 @@ module ForemanMaintain::Scenarios
200
200
  # rubocop:enable Metrics/MethodLength
201
201
 
202
202
  def add_online_backup_steps
203
- add_step_with_context(Procedures::Backup::ConfigFiles, :ignore_changed_files => true)
203
+ add_step_with_context(Procedures::Backup::ConfigFiles, :ignore_changed_files => true,
204
+ :online_backup => true)
204
205
  add_step_with_context(Procedures::Backup::Pulp, :ensure_unchanged => true)
205
206
  add_steps_with_context(
206
207
  Procedures::Backup::Online::Mongo,
@@ -41,5 +41,9 @@ module ForemanMaintain
41
41
  def config_files_to_exclude
42
42
  []
43
43
  end
44
+
45
+ def config_files_exclude_for_online
46
+ []
47
+ end
44
48
  end
45
49
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.6.2'.freeze
3
3
  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: 0.6.1
4
+ version: 0.6.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: 2020-03-06 00:00:00.000000000 Z
11
+ date: 2020-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp