foreman_maintain 0.3.5 → 0.3.6
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: f0a600b819e8c744cacd365f94a9bdedbbc187686d637d1e9b7ed39d065c3d54
|
|
4
|
+
data.tar.gz: eb3b315d318f8b85e3a6f78f79f951f6f70f0acfa11d31726c47df065aab9b3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fd325f4efac68b36d08857a3860b1d875727cfc7841bd12d6c98ce96196f263526c9398875c4c9e3c3fe904c9f77926f7eb393e84bacac00847f9be247c40002
|
|
7
|
+
data.tar.gz: af9c5cedfe89e7e89dfea149c36833364bd1df4717f5a6c3241ce560eeca8772fe45523c3631c4f3d48e702790b26c8b6f3ad66f6f76f119f2e4b92d9a167fd2
|
|
@@ -11,6 +11,8 @@ module Procedures::Backup
|
|
|
11
11
|
param :backup_dir, 'Directory where to backup to', :required => true
|
|
12
12
|
param :proxy_features, 'List of proxy features to backup (default: all)',
|
|
13
13
|
:array => true, :default => ['all']
|
|
14
|
+
param :ignore_changed_files, 'Should packing tar ignore changed files',
|
|
15
|
+
:flag => true, :default => false
|
|
14
16
|
end
|
|
15
17
|
|
|
16
18
|
def run
|
|
@@ -18,9 +20,10 @@ module Procedures::Backup
|
|
|
18
20
|
increments = File.join(@backup_dir, '.config.snar')
|
|
19
21
|
with_spinner('Collecting config files to backup') do
|
|
20
22
|
configs = config_files.join(' ')
|
|
23
|
+
statuses = @ignore_changed_files ? [0, 1] : [0]
|
|
21
24
|
execute!("tar --selinux --create --gzip --file=#{tarball} " \
|
|
22
25
|
"--listed-incremental=#{increments} --ignore-failed-read " \
|
|
23
|
-
"#{configs}")
|
|
26
|
+
"#{configs}", :valid_exit_statuses => statuses)
|
|
24
27
|
end
|
|
25
28
|
end
|
|
26
29
|
|
|
@@ -19,7 +19,6 @@ module ForemanMaintain::Scenarios
|
|
|
19
19
|
param :tar_volume_size, 'Size of tar volume (indicates splitting)'
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
# rubocop:disable Metrics/MethodLength
|
|
23
22
|
def compose
|
|
24
23
|
check_valid_startegy
|
|
25
24
|
safety_confirmation
|
|
@@ -27,7 +26,6 @@ module ForemanMaintain::Scenarios
|
|
|
27
26
|
prepare_directory
|
|
28
27
|
logical_volume_confirmation
|
|
29
28
|
add_step_with_context(Procedures::Backup::Metadata)
|
|
30
|
-
add_step_with_context(Procedures::Backup::ConfigFiles)
|
|
31
29
|
|
|
32
30
|
case strategy
|
|
33
31
|
when :online
|
|
@@ -39,7 +37,6 @@ module ForemanMaintain::Scenarios
|
|
|
39
37
|
end
|
|
40
38
|
add_step_with_context(Procedures::Backup::CompressData)
|
|
41
39
|
end
|
|
42
|
-
# rubocop:enable Metrics/MethodLength
|
|
43
40
|
|
|
44
41
|
# rubocop:disable Metrics/MethodLength
|
|
45
42
|
def set_context_mapping
|
|
@@ -132,6 +129,7 @@ module ForemanMaintain::Scenarios
|
|
|
132
129
|
add_steps_with_context(
|
|
133
130
|
Procedures::MaintenanceMode::Enable,
|
|
134
131
|
Procedures::Service::Stop,
|
|
132
|
+
Procedures::Backup::ConfigFiles,
|
|
135
133
|
Procedures::Backup::Pulp,
|
|
136
134
|
Procedures::Backup::Offline::Mongo,
|
|
137
135
|
Procedures::Backup::Offline::CandlepinDB,
|
|
@@ -162,6 +160,7 @@ module ForemanMaintain::Scenarios
|
|
|
162
160
|
Procedures::Backup::Snapshot::PrepareMount,
|
|
163
161
|
Procedures::MaintenanceMode::Enable,
|
|
164
162
|
Procedures::Service::Stop,
|
|
163
|
+
Procedures::Backup::ConfigFiles,
|
|
165
164
|
Procedures::Backup::Snapshot::MountMongo,
|
|
166
165
|
Procedures::Backup::Snapshot::MountPulp,
|
|
167
166
|
Procedures::Backup::Snapshot::MountCandlepinDB,
|
|
@@ -184,6 +183,7 @@ module ForemanMaintain::Scenarios
|
|
|
184
183
|
# rubocop:enable Metrics/MethodLength
|
|
185
184
|
|
|
186
185
|
def add_online_backup_steps
|
|
186
|
+
add_step_with_context(Procedures::Backup::ConfigFiles, :ignore_changed_files => true)
|
|
187
187
|
add_step_with_context(Procedures::Backup::Pulp, :ensure_unchanged => true)
|
|
188
188
|
add_steps_with_context(
|
|
189
189
|
Procedures::Backup::Online::Mongo,
|
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.3.
|
|
4
|
+
version: 0.3.6
|
|
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: 2019-
|
|
11
|
+
date: 2019-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: clamp
|
|
@@ -329,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
329
329
|
version: '0'
|
|
330
330
|
requirements: []
|
|
331
331
|
rubyforge_project:
|
|
332
|
-
rubygems_version: 2.7.
|
|
332
|
+
rubygems_version: 2.7.10
|
|
333
333
|
signing_key:
|
|
334
334
|
specification_version: 4
|
|
335
335
|
summary: Foreman maintenance tool belt
|