foreman_maintain 0.7.0 → 0.7.1
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 +4 -4
- data/definitions/features/foreman_cockpit.rb +15 -0
- data/definitions/procedures/backup/online/safety_confirmation.rb +10 -6
- data/definitions/procedures/content/prepare.rb +2 -1
- data/lib/foreman_maintain/package_manager/dnf.rb +1 -0
- data/lib/foreman_maintain/utils/backup.rb +1 -1
- data/lib/foreman_maintain/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b787c9490d94fe3a96d7b36f8faea35a8d086ae7ccee0aa23200a60fa344daa
|
4
|
+
data.tar.gz: 5102cd1826bb415b9a3a32f1bf5055ca8c13ed7c6ccdb9a7f9ab0357ca5f2d09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 674907284187a7b64cbb16bd11d5718cf32dd94663eebeb1193b7c82a350359328ab59e8b1c593abed51e2d2891e16db073c3f2f87c352e25264b07600804c78
|
7
|
+
data.tar.gz: a5789c3df8d36291c0b7793eac25911921873bfb7e02ad50bc9212f4ae668059c70459d5cbc05728b5dfd5dbbee714ffc1f0b5fd942c5b62943b0c5f88efcabe
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Features::ForemanCockpit < ForemanMaintain::Feature
|
2
|
+
metadata do
|
3
|
+
label :foreman_cockpit
|
4
|
+
|
5
|
+
confine do
|
6
|
+
server? && find_package('tfm-rubygem-foreman_remote_execution-cockpit')
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
def services
|
11
|
+
[
|
12
|
+
system_service('foreman-cockpit')
|
13
|
+
]
|
14
|
+
end
|
15
|
+
end
|
@@ -4,21 +4,25 @@ module Procedures::Backup
|
|
4
4
|
metadata do
|
5
5
|
description 'Data consistency warning'
|
6
6
|
tags :backup
|
7
|
+
param :include_db_dumps
|
7
8
|
end
|
8
9
|
|
9
10
|
def run
|
10
|
-
answer = ask_decision(
|
11
|
-
|
11
|
+
answer = ask_decision(warning_message(@include_db_dumps), 'y(yes), q(quit)')
|
12
|
+
abort! unless answer == :yes
|
13
|
+
end
|
14
|
+
|
15
|
+
def warning_message(include_db_dumps)
|
16
|
+
substr = include_db_dumps ? 'database dump' : 'online backup'
|
17
|
+
"*** WARNING: The #{substr} is intended for making a copy of the data\n" \
|
12
18
|
'*** for debugging purposes only.' \
|
13
19
|
" The backup routine can not ensure 100% consistency while the\n" \
|
14
20
|
"*** backup is taking place as there is a chance there may be data mismatch between\n" \
|
15
21
|
'*** Mongo and Postgres databases while the services are live.' \
|
16
|
-
" If you wish to utilize the
|
22
|
+
" If you wish to utilize the #{substr}\n" \
|
17
23
|
'*** for production use you need to ensure that there are' \
|
18
24
|
" no modifications occurring during\n" \
|
19
|
-
"*** your backup run.\n\nDo you want to proceed?"
|
20
|
-
)
|
21
|
-
abort! unless answer == :yes
|
25
|
+
"*** your backup run.\n\nDo you want to proceed?"
|
22
26
|
end
|
23
27
|
end
|
24
28
|
end
|
@@ -163,7 +163,7 @@ module ForemanMaintain
|
|
163
163
|
def validate_hostname?
|
164
164
|
# make sure that the system hostname is the same as the backup
|
165
165
|
config_tarball = file_map[:config_files][:path]
|
166
|
-
tar_cmd = "tar zxf #{config_tarball} etc/httpd/conf/httpd.conf --to-stdout"
|
166
|
+
tar_cmd = "tar zxf #{config_tarball} etc/httpd/conf/httpd.conf --to-stdout --occurrence=1"
|
167
167
|
status, httpd_config = execute_with_status(tar_cmd)
|
168
168
|
|
169
169
|
# Incremental backups sometimes don't include httpd.conf. Since a "base" backup
|
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.7.
|
4
|
+
version: 0.7.1
|
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-12-
|
11
|
+
date: 2020-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -170,6 +170,7 @@ files:
|
|
170
170
|
- definitions/features/dynflow_sidekiq.rb
|
171
171
|
- definitions/features/foreman_1_11_x.rb
|
172
172
|
- definitions/features/foreman_1_7_x.rb
|
173
|
+
- definitions/features/foreman_cockpit.rb
|
173
174
|
- definitions/features/foreman_database.rb
|
174
175
|
- definitions/features/foreman_openscap.rb
|
175
176
|
- definitions/features/foreman_proxy.rb
|