foreman_maintain 1.13.4 → 1.13.5
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/installer.rb +12 -3
- data/lib/foreman_maintain/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf0e0bd63ffc53a49811c596049e70f2e8ca088578fcb5c88bcd9e6006e7de25
|
4
|
+
data.tar.gz: e942f9db83429d09770067d37fbe63d974b295b21ff63ab1ddc9e26922a6d896
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5757b1fc0b9f1c25ecc2b729d10ca0c4ea754804e49e723fa56b7b5699c702fbb1365bce16830285143eb9ccb3e8a59ca00bf5193eb33872721ab6063662d1c3
|
7
|
+
data.tar.gz: d1fda696ef3f633fdcd9c250e1b721bc81fff0c888f9f5b1277333d37b1fbafd5c5a7510fd0d06b56cf74149ae7bda1d7fba3052e42702b362b97eede170eaab
|
@@ -1,9 +1,12 @@
|
|
1
1
|
class Features::Installer < ForemanMaintain::Feature
|
2
|
+
CONFIG_DIRECTORY = '/etc/foreman-installer'.freeze
|
3
|
+
LAST_SCENARIO_YAML = File.join(CONFIG_DIRECTORY, 'scenarios.d/last_scenario.yaml').freeze
|
4
|
+
|
2
5
|
metadata do
|
3
6
|
label :installer
|
4
7
|
|
5
8
|
confine do
|
6
|
-
find_package('foreman-installer')
|
9
|
+
find_package('foreman-installer') && file_exists?(LAST_SCENARIO_YAML)
|
7
10
|
end
|
8
11
|
end
|
9
12
|
|
@@ -20,7 +23,7 @@ class Features::Installer < ForemanMaintain::Feature
|
|
20
23
|
end
|
21
24
|
|
22
25
|
def config_directory
|
23
|
-
|
26
|
+
CONFIG_DIRECTORY
|
24
27
|
end
|
25
28
|
|
26
29
|
def custom_hiera_file
|
@@ -87,6 +90,12 @@ class Features::Installer < ForemanMaintain::Feature
|
|
87
90
|
end
|
88
91
|
|
89
92
|
def last_scenario_config
|
90
|
-
|
93
|
+
if File.exist?(last_scenario_yaml)
|
94
|
+
Pathname.new(last_scenario_yaml).realpath.to_s
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
def last_scenario_yaml
|
99
|
+
LAST_SCENARIO_YAML
|
91
100
|
end
|
92
101
|
end
|